sul_styles 0.5.1 → 0.7.0

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
- SHA1:
3
- metadata.gz: 2d02180ed772a4d37f30e5120deb8c23e545f7bf
4
- data.tar.gz: b41f9dbbdcbf1a4b49f70747630e0b46ec21acec
2
+ SHA256:
3
+ metadata.gz: ce2c0a846dcd2f90187e8633282efa7a4064eb5c180e2241f6854e580a1c570a
4
+ data.tar.gz: 032cb95d8cd1d8ef7cb0c4b523884abfae53d40576f4240f4a88c742820771ae
5
5
  SHA512:
6
- metadata.gz: b1ea533156e472d4adf052ef212c3eade3a78c0aa1a2aa9e027025ca40f27a2779c16ff86b225732f51aa0665203cb6b4c4f84a118a716107f7ba49a75ffa569
7
- data.tar.gz: bfb8208deec059a968b340b1aa5752c0dc41e8a1667f518d828b6e72350aa891680d0f59ae620095bd33bce15e40246a46686bca73c1f4fb1cbc385d656283ac
6
+ metadata.gz: 376b6b8d6dec2394ef0654998e7d1705e22cea49620e17ae873bb0c7e1ed219ac790bc651a87eff24b4afdfdd69ce8703903c5fdf31a57018f225bacecac54e9
7
+ data.tar.gz: 72010ad62f84e7ff05ee4fb1a51489535eedfc896ed6d793c63e85b9c2edab37b6ff47f805cd346d8c89b5401e204736153acf2e76afae9268ad20473f273f3f
@@ -0,0 +1,36 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ tests:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ rails_version: [5.2.4.4, 6.1.1, 7.0.0]
15
+ ruby: ['2.7', '3.0']
16
+ exclude:
17
+ - rails_version: 5.2.4.4
18
+ ruby: '3.0'
19
+ env:
20
+ RAILS_VERSION: ${{ matrix.rails_version }}
21
+ steps:
22
+ - uses: actions/checkout@v2
23
+ - name: Set up Ruby
24
+ uses: ruby/setup-ruby@v1
25
+ with:
26
+ ruby-version: ${{ matrix.ruby }}
27
+ - uses: actions/cache@v2
28
+ with:
29
+ path: vendor/bundle
30
+ key: ${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.rails_version }}-gems-${{ hashFiles('**/Gemfile.lock') }}
31
+ restore-keys: |
32
+ ${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.rails_version }}-gems-
33
+ - name: Bundle install
34
+ run: bundle install
35
+ - name: Run tests
36
+ run: bundle exec rake
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/Capfile CHANGED
@@ -3,6 +3,7 @@ require 'capistrano/setup'
3
3
 
4
4
  # Include default deployment tasks
5
5
  require 'capistrano/deploy'
6
+ require 'capistrano/bundler'
6
7
  require 'dlss/capistrano'
7
8
 
8
9
  # Load custom tasks from `lib/capistrano/tasks` if you have any defined
data/Gemfile CHANGED
@@ -3,19 +3,36 @@ 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
+ gem 'dlss-capistrano', require: false
7
+ gem 'capistrano-bundler'
8
+
9
+ # BEGIN ENGINE_CART BLOCK
10
+ # engine_cart: 1.0.1
11
+ # engine_cart stanza: 0.10.0
12
+ # the below comes from engine_cart, a gem used to test this Rails engine gem in the context of a Rails app.
13
+ file = File.expand_path('Gemfile', ENV['ENGINE_CART_DESTINATION'] || ENV['RAILS_ROOT'] || File.expand_path('.internal_test_app', File.dirname(__FILE__)))
8
14
  if File.exist?(file)
9
- puts 'Loading #{file} ...' if $DEBUG # `ruby -d` or `bundle -v`
10
- instance_eval File.read(file)
15
+ begin
16
+ eval_gemfile file
17
+ rescue Bundler::GemfileError => e
18
+ Bundler.ui.warn '[EngineCart] Skipping Rails application dependencies:'
19
+ Bundler.ui.warn e.message
20
+ end
11
21
  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']
22
+ Bundler.ui.warn "[EngineCart] Unable to find test application dependencies in #{file}, using placeholder dependencies"
23
+
24
+ if ENV['RAILS_VERSION']
25
+ if ENV['RAILS_VERSION'] == 'edge'
26
+ gem 'rails', github: 'rails/rails'
27
+ ENV['ENGINE_CART_RAILS_OPTIONS'] = '--edge --skip-turbolinks'
28
+ else
29
+ gem 'rails', ENV['RAILS_VERSION']
30
+ end
31
+ end
14
32
 
15
- if ENV['RAILS_VERSION'] && ENV['RAILS_VERSION'] =~ /^4.2/
16
- gem 'responders', '~> 2.0'
17
- gem 'sass-rails', '>= 5.0'
18
- else
19
- gem 'sass-rails', '< 5.0'
33
+ case ENV['RAILS_VERSION']
34
+ when /^5.[12]/, /^6.0/
35
+ gem 'sass-rails', '~> 5.0'
20
36
  end
21
37
  end
38
+ # END ENGINE_CART BLOCK
@@ -0,0 +1,77 @@
1
+ #su-content {
2
+ padding-bottom: $footer-height !important;
3
+ }
4
+
5
+ #sul-footer-container {
6
+ background-color: $sul-footer-bg-color;
7
+ border-top: 1px solid $sul-footer-border-top-color;
8
+ -webkit-box-shadow: $sul-footer-shadow;
9
+ box-shadow: $sul-footer-shadow;
10
+ clear: both;
11
+ margin-top: -1 * $footer-height;
12
+ min-height: $footer-height;
13
+ padding: 0 !important;
14
+ position: relative;
15
+ }
16
+
17
+ #sul-footer {
18
+ display: table;
19
+ font-size: small;
20
+ height: 80px;
21
+ margin: 0 auto;
22
+ padding: 0;
23
+
24
+ ul {
25
+ list-style-type: none;
26
+ margin: 0;
27
+ }
28
+
29
+ li {
30
+ display: inline;
31
+ margin: 0 13px 3px 0;
32
+ padding: 0;
33
+
34
+ a {
35
+ color: $color-blackish;
36
+ white-space: nowrap;
37
+ }
38
+
39
+ a,
40
+ a:hover,
41
+ a:focus {
42
+ border-bottom: 1px dotted $color-gray-60;
43
+ text-decoration: none;
44
+ }
45
+ }
46
+ }
47
+
48
+ #sul-footer-img {
49
+ display: table-cell;
50
+ vertical-align: middle;
51
+ width: 162px;
52
+ }
53
+
54
+ #sul-footer-links {
55
+ display: table-cell;
56
+ padding-left: 15px;
57
+ text-align: left;
58
+ vertical-align: middle;
59
+ }
60
+
61
+ @media (min-width: 768px) {
62
+ #sul-footer {
63
+ width: 750px;
64
+ }
65
+ }
66
+
67
+ @media (min-width: 980px) {
68
+ #sul-footer {
69
+ width: 970px;
70
+ }
71
+ }
72
+
73
+ @media (min-width: 1200px) {
74
+ #sul-footer {
75
+ width: 1170px;
76
+ }
77
+ }
@@ -0,0 +1,5 @@
1
+ $sul-footer-bg-color: $color-beige-10;
2
+ $sul-footer-border-top-color: $color-beige-20;
3
+ $footer-height: 200px;
4
+ $sul-footer-shadow-color: rgba(0, 0, 0, 0.2);
5
+ $sul-footer-shadow: 0 4px 8px -8px $sul-footer-shadow-color inset;
@@ -1,3 +1,4 @@
1
-
2
1
  @import 'sul-styles/su_web_colors';
3
2
  @import 'sul-styles/su_primary_colors';
3
+ @import 'sul-styles/variables';
4
+ @import 'sul-styles/sul_footer';
@@ -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'>
@@ -0,0 +1,4 @@
1
+ server 'sul-cdn-dev.stanford.edu', user: 'cdn', roles: %w{web db app}
2
+
3
+ Capistrano::OneTimeKey.generate_one_time_key!
4
+ set :rails_env, 'development'
@@ -0,0 +1,4 @@
1
+ server 'sul-cdn-prod.stanford.edu', user: 'cdn', roles: %w{web db app}
2
+
3
+ Capistrano::OneTimeKey.generate_one_time_key!
4
+ set :rails_env, 'development'
@@ -0,0 +1,4 @@
1
+ server 'sul-cdn-stage.stanford.edu', user: 'cdn', roles: %w{web db app}
2
+
3
+ Capistrano::OneTimeKey.generate_one_time_key!
4
+ set :rails_env, 'development'
data/config/deploy.rb CHANGED
@@ -1,15 +1,11 @@
1
1
  # config valid only for current version of Capistrano
2
- lock '3.4.0'
3
-
4
2
  set :application, 'sul_styles'
5
-
3
+ set :repo_url, 'https://github.com/sul-dlss/sul_styles.git'
6
4
  # Default branch is :master
7
5
  # ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
8
- ask :user, proc { `whoami`.chomp }.call
9
- set :home_directory, "/opt/app/#{fetch(:user)}"
10
6
 
11
7
  # Default deploy_to directory is /var/www/my_app_name
12
- set :deploy_to, "#{fetch(:home_directory)}/#{fetch(:application)}"
8
+ set :deploy_to, '/opt/app/cdn/sul_styles'
13
9
 
14
10
  # Default value for :scm is :git
15
11
  # set :scm, :git
@@ -1,3 +1,3 @@
1
1
  module SulStyles
2
- VERSION = "0.5.1"
2
+ VERSION = "0.7.0"
3
3
  end
data/sul_styles.gemspec CHANGED
@@ -16,15 +16,13 @@ Gem::Specification.new do |spec|
16
16
  spec.bindir = "exe"
17
17
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
18
  spec.require_paths = ["lib"]
19
- spec.required_ruby_version = '>= 2.1'
19
+ spec.required_ruby_version = '>= 2.3'
20
20
 
21
- spec.add_dependency 'rails', '~> 4.1'
21
+ spec.add_dependency 'rails', '>= 4.1', '< 8'
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.10"
24
- spec.add_development_dependency "rake", "~> 10.0"
25
- spec.add_development_dependency 'engine_cart', '~> 0.7.0'
23
+ spec.add_development_dependency "bundler", "~> 2"
24
+ spec.add_development_dependency "rake"
25
+ spec.add_development_dependency 'engine_cart', '~> 2.0'
26
26
  spec.add_development_dependency 'rspec-rails', '~> 3.0'
27
- spec.add_development_dependency 'capybara', '~> 2.4.4'
28
- spec.add_development_dependency 'capistrano', '~> 3.4.0'
29
- spec.add_development_dependency 'lyberteam-capistrano-devel'
27
+ spec.add_development_dependency 'capybara', '~> 3.31'
30
28
  end
metadata CHANGED
@@ -1,71 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sul_styles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Reed
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-29 00:00:00.000000000 Z
11
+ date: 2022-01-03 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: '8'
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: '8'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: bundler
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '1.10'
39
+ version: '2'
34
40
  type: :development
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
44
  - - "~>"
39
45
  - !ruby/object:Gem::Version
40
- version: '1.10'
46
+ version: '2'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: rake
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
- - - "~>"
51
+ - - ">="
46
52
  - !ruby/object:Gem::Version
47
- version: '10.0'
53
+ version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
- - - "~>"
58
+ - - ">="
53
59
  - !ruby/object:Gem::Version
54
- version: '10.0'
60
+ version: '0'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: engine_cart
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
65
  - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: 0.7.0
67
+ version: '2.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: '2.0'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: rspec-rails
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -86,43 +92,15 @@ dependencies:
86
92
  requirements:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: 2.4.4
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 2.4.4
97
- - !ruby/object:Gem::Dependency
98
- name: capistrano
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: 3.4.0
95
+ version: '3.31'
104
96
  type: :development
105
97
  prerelease: false
106
98
  version_requirements: !ruby/object:Gem::Requirement
107
99
  requirements:
108
100
  - - "~>"
109
101
  - !ruby/object:Gem::Version
110
- version: 3.4.0
111
- - !ruby/object:Gem::Dependency
112
- name: lyberteam-capistrano-devel
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- description:
102
+ version: '3.31'
103
+ description:
126
104
  email:
127
105
  - pjreed@stanford.edu
128
106
  executables: []
@@ -130,9 +108,9 @@ extensions: []
130
108
  extra_rdoc_files: []
131
109
  files:
132
110
  - ".fontcustom-manifest.json"
111
+ - ".github/workflows/ruby.yml"
133
112
  - ".gitignore"
134
113
  - ".rspec"
135
- - ".travis.yml"
136
114
  - Capfile
137
115
  - Gemfile
138
116
  - LICENSE
@@ -152,6 +130,8 @@ files:
152
130
  - app/assets/stylesheets/sul-styles.scss
153
131
  - app/assets/stylesheets/sul-styles/su_primary_colors.scss
154
132
  - app/assets/stylesheets/sul-styles/su_web_colors.scss
133
+ - app/assets/stylesheets/sul-styles/sul_footer.scss
134
+ - app/assets/stylesheets/sul-styles/variables.scss
155
135
  - app/controllers/sul_styles/style_guide_controller.rb
156
136
  - app/views/layouts/styleguide.html.erb
157
137
  - app/views/sul_styles/style_guide/colors.html.erb
@@ -159,9 +139,9 @@ files:
159
139
  - app/views/sul_styles/style_guide/index.html.erb
160
140
  - bin/rails
161
141
  - config/deploy.rb
162
- - config/deploy/development.rb
163
- - config/deploy/production.rb
164
- - config/deploy/staging.rb
142
+ - config/deploy/dev.rb
143
+ - config/deploy/prod.rb
144
+ - config/deploy/stage.rb
165
145
  - config/locales/sul_styles.en.yml
166
146
  - config/routes.rb
167
147
  - dist/0.3.0/sul-icons.css
@@ -214,7 +194,7 @@ files:
214
194
  homepage: https://github.com/sul-dlss/sul_styles
215
195
  licenses: []
216
196
  metadata: {}
217
- post_install_message:
197
+ post_install_message:
218
198
  rdoc_options: []
219
199
  require_paths:
220
200
  - lib
@@ -222,16 +202,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
222
202
  requirements:
223
203
  - - ">="
224
204
  - !ruby/object:Gem::Version
225
- version: '2.1'
205
+ version: '2.3'
226
206
  required_rubygems_version: !ruby/object:Gem::Requirement
227
207
  requirements:
228
208
  - - ">="
229
209
  - !ruby/object:Gem::Version
230
210
  version: '0'
231
211
  requirements: []
232
- rubyforge_project:
233
- rubygems_version: 2.4.5
234
- signing_key:
212
+ rubygems_version: 3.2.32
213
+ signing_key:
235
214
  specification_version: 4
236
215
  summary: A gem for adding Stanford University Libraries styles to Rails applications
237
216
  test_files: []
data/.travis.yml DELETED
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.2
@@ -1,6 +0,0 @@
1
- set :deploy_host, ask('Server', 'e.g. server.stanford.edu')
2
-
3
- server fetch(:deploy_host), user: fetch(:user), roles: %w{web db app}
4
-
5
- Capistrano::OneTimeKey.generate_one_time_key!
6
- set :rails_env, 'development'
@@ -1,6 +0,0 @@
1
- set :deploy_host, ask('Server', 'e.g. server.stanford.edu')
2
-
3
- server fetch(:deploy_host), user: fetch(:user), roles: %w{web db app}
4
-
5
- Capistrano::OneTimeKey.generate_one_time_key!
6
- set :rails_env, 'development'
@@ -1,6 +0,0 @@
1
- set :deploy_host, ask('Server', 'e.g. server.stanford.edu')
2
-
3
- server fetch(:deploy_host), user: fetch(:user), roles: %w{web db app}
4
-
5
- Capistrano::OneTimeKey.generate_one_time_key!
6
- set :rails_env, 'development'