sul_styles 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e6b58b3e69919ad7bc8981d0c50398f03b48acd
4
- data.tar.gz: 5762f4fdb7ee6c0a5f038524782feb1611bd18e8
3
+ metadata.gz: 7223237efb4d3c3293d8580c8640a89aad89aa75
4
+ data.tar.gz: ed4873088e36531586ef60dd4fc69bde726ff7df
5
5
  SHA512:
6
- metadata.gz: fa729ae5ce9461bbd6687bb31d5b5b90f0771f35f4313db22657fc48679b6a43c62aeb402b2a1ab04c81ef21b2317c31d68c3401f007d4bf354c144550fe0cb5
7
- data.tar.gz: 504b35e5ed2921d28c7108a84fb3e0a0b759996233fe2377658bd8ce26667f7b4e9dafc2e33d82e3617a591a420c887ca45c97f2f181b93f5e45a144d5836d1e
6
+ metadata.gz: 9f0ba294b1e1b229e13446839ea41ca485a194ed8ed07698d50f56e2dc978edffd700ef730cfc69905f57e6ec2a693a1d5e7ead5dd537fca1fac84934d7e2ea9
7
+ data.tar.gz: f130b4f9cf5325f2aaa02bfb14ed1e7f815d33a089750f16eb99efb77e78b7eb9981ff50fb80e18d9803ca1467f62fb3a8be7beb1a859bb185df151b061dc9dc
data/.gitignore CHANGED
@@ -9,3 +9,5 @@
9
9
  /tmp/
10
10
  /icon_svgs/*.svg
11
11
  /spec/internal
12
+
13
+ .internal_test_app
data/.travis.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.2
3
+ - 2.3.1
data/Gemfile CHANGED
@@ -3,19 +3,37 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in sul_styles.gemspec
4
4
  gemspec
5
5
 
6
- # the below comes from engine_cart, a gem used to test this Rails engine gem in the context of a Rails app
7
- file = File.expand_path('Gemfile', ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path('../spec/internal', __FILE__))
6
+ # BEGIN ENGINE_CART BLOCK
7
+ # engine_cart: 1.0.1
8
+ # engine_cart stanza: 0.10.0
9
+ # the below comes from engine_cart, a gem used to test this Rails engine gem in the context of a Rails app.
10
+ file = File.expand_path('Gemfile', ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path('.internal_test_app', File.dirname(__FILE__)))
8
11
  if File.exist?(file)
9
- puts 'Loading #{file} ...' if $DEBUG # `ruby -d` or `bundle -v`
10
- instance_eval File.read(file)
12
+ begin
13
+ eval_gemfile file
14
+ rescue Bundler::GemfileError => e
15
+ Bundler.ui.warn '[EngineCart] Skipping Rails application dependencies:'
16
+ Bundler.ui.warn e.message
17
+ end
11
18
  else
12
- # we get here when we haven't yet generated the testing app via engine_cart
13
- gem 'rails', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
19
+ Bundler.ui.warn "[EngineCart] Unable to find test application dependencies in #{file}, using placeholder dependencies"
20
+
21
+ if ENV['RAILS_VERSION']
22
+ if ENV['RAILS_VERSION'] == 'edge'
23
+ gem 'rails', github: 'rails/rails'
24
+ ENV['ENGINE_CART_RAILS_OPTIONS'] = '--edge --skip-turbolinks'
25
+ else
26
+ gem 'rails', ENV['RAILS_VERSION']
27
+ end
28
+ end
14
29
 
15
- if ENV['RAILS_VERSION'] && ENV['RAILS_VERSION'] =~ /^4.2/
30
+ case ENV['RAILS_VERSION']
31
+ when /^4.2/
16
32
  gem 'responders', '~> 2.0'
17
33
  gem 'sass-rails', '>= 5.0'
18
- else
34
+ gem 'coffee-rails', '~> 4.1.0'
35
+ when /^4.[01]/
19
36
  gem 'sass-rails', '< 5.0'
20
37
  end
21
38
  end
39
+ # END ENGINE_CART BLOCK
@@ -1,6 +1,7 @@
1
1
  <h2>Colors</h2>
2
2
  <% @colors.each do |color_group| %>
3
- <h3><%= color_group.title %></h3>
3
+ <% color_title = color_group.title.split(" from ") %>
4
+ <h3><%= link_to color_title[0], color_title[1] %></h3>
4
5
  <div class='color-sample-container'>
5
6
  <% color_group.colors.each do |color| %>
6
7
  <div class='color-sample'>
@@ -1,3 +1,3 @@
1
1
  module SulStyles
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
data/sul_styles.gemspec CHANGED
@@ -18,11 +18,11 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ["lib"]
19
19
  spec.required_ruby_version = '>= 2.1'
20
20
 
21
- spec.add_dependency 'rails', '~> 4.1'
21
+ spec.add_dependency 'rails', '>= 4.1', '< 6'
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.10"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
- spec.add_development_dependency 'engine_cart', '~> 0.7.0'
25
+ spec.add_development_dependency 'engine_cart', '~> 1.0'
26
26
  spec.add_development_dependency 'rspec-rails', '~> 3.0'
27
27
  spec.add_development_dependency 'capybara', '~> 2.4.4'
28
28
  spec.add_development_dependency 'capistrano', '~> 3.4.0'
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sul_styles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Reed
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-26 00:00:00.000000000 Z
11
+ date: 2016-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '6'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '4.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '6'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: bundler
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +64,14 @@ dependencies:
58
64
  requirements:
59
65
  - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: 0.7.0
67
+ version: '1.0'
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
72
  - - "~>"
67
73
  - !ruby/object:Gem::Version
68
- version: 0.7.0
74
+ version: '1.0'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: rspec-rails
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -232,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
238
  version: '0'
233
239
  requirements: []
234
240
  rubyforge_project:
235
- rubygems_version: 2.4.6
241
+ rubygems_version: 2.5.1
236
242
  signing_key:
237
243
  specification_version: 4
238
244
  summary: A gem for adding Stanford University Libraries styles to Rails applications