Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove compass dependency #50

Merged
merged 2 commits into from
Nov 5, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/assets/stylesheets/jefferies_tube.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import compass/reset
@import 'meyer_reset'

html
box-sizing: border-box
Expand Down
48 changes: 48 additions & 0 deletions app/assets/stylesheets/meyer_reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
1 change: 0 additions & 1 deletion jefferies_tube.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rspec", '~> 3.0'

spec.add_dependency "bundler-audit", '~> 0.6.1'
spec.add_dependency 'compass-rails'
end
6 changes: 4 additions & 2 deletions lib/jefferies_tube.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ class Configuration
attr_accessor :prompt_name

def initialize
@environment = ::Rails.env.downcase || nil
@prompt_name = ::Rails.application.class.parent_name || nil
if defined?(Rails)
@environment = ::Rails.env.downcase || nil
@prompt_name = ::Rails.application.class.parent_name || nil
end
end
end
end
2 changes: 1 addition & 1 deletion lib/jefferies_tube/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'open-uri'

module JefferiesTube
VERSION = "1.2"
VERSION = "1.3"

def self.latest_rubygems_version
JSON.parse(URI.parse("https://rubygems.org/api/v1/versions/jefferies_tube/latest.json").read)["version"]
Expand Down
2 changes: 0 additions & 2 deletions spec/configuration_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
require_relative '../lib/jefferies_tube'
require 'rails'


RSpec.describe "Configuration" do
describe 'configuration' do
Expand Down