uswds-rails 1.4.5 → 1.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +7 -5
- data/LICENSE.md +1 -1
- data/README.md +5 -5
- data/app/assets/stylesheets/uswds/components/_footer.scss +0 -2
- data/app/assets/stylesheets/uswds/elements/_typography.scss +0 -20
- data/app/assets/stylesheets/uswds/uswds.scss +1 -1
- data/lib/uswds/rails/version.rb +1 -1
- data/uswds-rails.gemspec +3 -3
- data/vendor/assets/stylesheets/uswds/components/_banner.scss +2 -2
- data/vendor/assets/stylesheets/uswds/components/_footer.scss +0 -2
- data/vendor/assets/stylesheets/uswds/elements/_typography.scss +0 -20
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13dc28249e6cf0f1d5abf0e74f761702e70990888eaf991de315cde12161952d
|
4
|
+
data.tar.gz: 34ee4e0c53e08be9a8c6ab945d5da10df82d5ead19c0181d853f77bedd684d22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1fdf5104bd1347767669c7ace0739486819154e4712dd21676d72938e09a2e587d265adc1e888485bbc0359307506babae9ae70d6c87092e617a2fc664d8db5
|
7
|
+
data.tar.gz: d5468157025b9716f2318b46e1c287f216563d462708dbe6892031817f3a5b22446e02961762930dbfb9a4c328a14aa209d9702d362b8f311229c22a90ebf5dd
|
data/CONTRIBUTING.md
CHANGED
@@ -16,9 +16,9 @@ There are several ways in which you can help improve this project:
|
|
16
16
|
|
17
17
|
## Getting Started
|
18
18
|
|
19
|
-
uswds-rails is written in [Ruby](https://www.ruby-lang.org/en/) (version 2.5.0) and development dependencies are managed using the [Bundler](http://bundler.io
|
19
|
+
uswds-rails is written in [Ruby](https://www.ruby-lang.org/en/) (version 2.5.0) and development dependencies are managed using the [Bundler](http://bundler.io) gem. [Travis CI builds](https://travis-ci.org/jgarber623/uswds-rails) use Ruby 2.2.9, 2.3.6, 2.4.3, and 2.5.0.
|
20
20
|
|
21
|
-
I manage Ruby versions with [rbenv](https://github.com/rbenv/rbenv). I'd recommend you do the same or use a similar Ruby version manager ([chruby](https://github.com/postmodern/chruby
|
21
|
+
I manage Ruby versions with [rbenv](https://github.com/rbenv/rbenv). I'd recommend you do the same or use a similar Ruby version manager ([chruby](https://github.com/postmodern/chruby) or [RVM](https://rvm.io) come to mind). Once you've installed Ruby 2.5.0 using your method of choice, install the project's gems by running:
|
22
22
|
|
23
23
|
```sh
|
24
24
|
bundle install
|
@@ -32,15 +32,17 @@ bundle install
|
|
32
32
|
1. Install development dependencies as outlined above.
|
33
33
|
1. Create a feature branch for the code changes you're looking to make: `git checkout -b your-descriptive-branch-name origin/master`.
|
34
34
|
1. _Write some code!_
|
35
|
-
1. Build (`
|
36
|
-
1. If your changes would benefit from testing, add the necessary tests and verify everything passes by running `
|
35
|
+
1. Build (`bin/rake build`) and install (`bin/rake install`) your updated code.
|
36
|
+
1. If your changes would benefit from testing, add the necessary tests and verify everything passes by running `bin/rake spec`.
|
37
37
|
1. Commit your changes: `git commit -am 'Add some new feature or fix some issue'`. _(See [this excellent article](https://chris.beams.io/posts/git-commit/) for tips on writing useful Git commit messages.)_
|
38
38
|
1. Push the branch to your fork: `git push -u origin your-descriptive-branch-name`.
|
39
39
|
1. Create a new pull request and we'll review your changes.
|
40
40
|
|
41
41
|
## Code Style
|
42
42
|
|
43
|
-
Code formatting conventions are defined in the `.editorconfig` file which uses the [EditorConfig](http://editorconfig.org
|
43
|
+
Code formatting conventions are defined in the `.editorconfig` file which uses the [EditorConfig](http://editorconfig.org) syntax. There are [plugins for a variety of editors](http://editorconfig.org/#download) that utilize the settings in the `.editorconfig` file. It is recommended that you install the EditorConfig plugin for your editor of choice.
|
44
|
+
|
45
|
+
Additionally, [Rubocop](https://github.com/bbatsov/rubocop) can be used to help identify possible trouble areas in your code. Run `bin/rubocop` to generate Rubocop's static code analysis report.
|
44
46
|
|
45
47
|
Your bug fix or feature addition won't be rejected if it runs afoul of any (or all) of these guidelines, but following the guidelines will definitely make everyone's lives a little easier.
|
46
48
|
|
data/LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# License Information
|
2
2
|
|
3
|
-
uswds-rails includes portions of the [U.S. Web Design
|
3
|
+
uswds-rails includes portions of the [U.S. Web Design System](https://github.com/uswds/uswds) released under a [CC0 1.0 Universal Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/). Portions of the U.S. Web Design System are not in the public domain. Additional licensing information can be found in the project's [LICENSE.md](https://github.com/uswds/uswds/blob/develop/LICENSE.md).
|
4
4
|
|
5
5
|
The remainder of uswds-rails is licensed under the [MIT License](https://opensource.org/licenses/MIT), the full text of which is included below.
|
6
6
|
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# uswds-rails
|
2
2
|
|
3
|
-
A Ruby gem for integrating the [U.S. Web Design
|
3
|
+
A Ruby gem for integrating the [U.S. Web Design System](https://github.com/uswds/uswds) into a [Ruby on Rails](http://rubyonrails.org) application.
|
4
4
|
|
5
5
|
[![Gem](https://img.shields.io/gem/v/uswds-rails.svg?style=for-the-badge)](https://rubygems.org/gems/uswds-rails)
|
6
6
|
[![Downloads](https://img.shields.io/gem/dt/uswds-rails.svg?style=for-the-badge)](https://rubygems.org/gems/uswds-rails)
|
@@ -10,7 +10,7 @@ A Ruby gem for integrating the [U.S. Web Design Standards](https://github.com/18
|
|
10
10
|
|
11
11
|
## Getting Started
|
12
12
|
|
13
|
-
Before installing and using uswds-rails, you'll want to have Ruby 2.2.9 (or newer) installed on your computer. There are plenty of ways to go about this, but my preference is [rbenv](https://github.com/sstephenson/rbenv). If you're developing on a Mac and using [Homebrew](http://brew.sh
|
13
|
+
Before installing and using uswds-rails, you'll want to have Ruby 2.2.9 (or newer) installed on your computer. There are plenty of ways to go about this, but my preference is [rbenv](https://github.com/sstephenson/rbenv). If you're developing on a Mac and using [Homebrew](http://brew.sh), installing rbenv is [super easy](https://github.com/sstephenson/rbenv#homebrew-on-mac-os-x).
|
14
14
|
|
15
15
|
uswds-rails _might_ work with other versions of Ruby, but it's developed in 2.5.0 and automatically tested against 2.2.9, 2.3.6, 2.4.3, and 2.5.0 by [Travis CI](https://travis-ci.org/jgarber623/uswds-rails).
|
16
16
|
|
@@ -32,7 +32,7 @@ Run `bundle install` to install uswds-rails and its dependencies.
|
|
32
32
|
|
33
33
|
## Usage
|
34
34
|
|
35
|
-
uswds-rails makes available to your Rails application the fonts, images, JavaScript files, and stylesheets from the U.S. Web Design
|
35
|
+
uswds-rails makes available to your Rails application the fonts, images, JavaScript files, and stylesheets from the U.S. Web Design System. Including the files varies depending on type.
|
36
36
|
|
37
37
|
The most basic integration looks like:
|
38
38
|
|
@@ -46,7 +46,7 @@ The most basic integration looks like:
|
|
46
46
|
//= require "uswds/uswds";
|
47
47
|
```
|
48
48
|
|
49
|
-
Adding those lines to your project's `application.scss` and `application.js` will include _everything_ from the U.S. Web Design
|
49
|
+
Adding those lines to your project's `application.scss` and `application.js` will include _everything_ from the U.S. Web Design System (fonts, JavaScript, and stylesheets).
|
50
50
|
|
51
51
|
Don't want to include the entire stylesheet in your project? Not to worry! You may include individual SCSS files by using uswds-rails' [`app/assets/stylesheets/uswds/uswds.scss`](https://github.com/jgarber623/uswds-rails/blob/master/app/assets/stylesheets/uswds/uswds.scss) as a guide.
|
52
52
|
|
@@ -56,7 +56,7 @@ For details on setting up your development environment and contributing to this
|
|
56
56
|
|
57
57
|
## Acknowledgments
|
58
58
|
|
59
|
-
This project woudn't exist without the [18F](https://github.com/18F) team's hard work on the [U.S. Web Design
|
59
|
+
This project woudn't exist without the [18F](https://github.com/18F) team's hard work on the [U.S. Web Design System](https://github.com/uswds/uswds).
|
60
60
|
|
61
61
|
uswds-rails is written and maintained by [Jason Garber](https://github.com/jgarber623).
|
62
62
|
|
@@ -169,26 +169,6 @@ dfn {
|
|
169
169
|
max-width: $lead-max-width;
|
170
170
|
}
|
171
171
|
|
172
|
-
.usa-image-block {
|
173
|
-
position: relative;
|
174
|
-
}
|
175
|
-
|
176
|
-
.usa-image-text-block {
|
177
|
-
color: $color-white;
|
178
|
-
left: 0;
|
179
|
-
margin-left: 8%;
|
180
|
-
position: absolute;
|
181
|
-
top: 0;
|
182
|
-
}
|
183
|
-
|
184
|
-
.usa-image-text {
|
185
|
-
margin-top: 0;
|
186
|
-
}
|
187
|
-
|
188
|
-
.usa-drop_text {
|
189
|
-
margin-bottom: 0;
|
190
|
-
}
|
191
|
-
|
192
172
|
.usa-background-dark {
|
193
173
|
background-color: $color-gray-dark;
|
194
174
|
|
data/lib/uswds/rails/version.rb
CHANGED
data/uswds-rails.gemspec
CHANGED
@@ -11,12 +11,12 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.authors = ['Jason Garber']
|
12
12
|
spec.email = ['jason@sixtwothree.org']
|
13
13
|
|
14
|
-
spec.summary = 'Integrate the U.S. Web Design
|
14
|
+
spec.summary = 'Integrate the U.S. Web Design System into a Ruby on Rails application.'
|
15
15
|
spec.description = spec.summary
|
16
16
|
spec.homepage = 'https://github.com/jgarber623/uswds-rails'
|
17
17
|
spec.license = 'MIT'
|
18
18
|
|
19
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(
|
19
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin|spec)/}) }
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
22
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency 'rails-controller-testing', '~> 1.0', '>= 1.0.2'
|
25
25
|
spec.add_development_dependency 'rake', '~> 12.3'
|
26
26
|
spec.add_development_dependency 'rspec-rails', '~> 3.7', '>= 3.7.2'
|
27
|
-
spec.add_development_dependency 'rubocop', '~> 0.52.
|
27
|
+
spec.add_development_dependency 'rubocop', '~> 0.52.1'
|
28
28
|
spec.add_development_dependency 'sass-rails', '~> 5.0', '>= 5.0.7'
|
29
29
|
spec.add_development_dependency 'simplecov-console', '~> 0.4.2'
|
30
30
|
|
@@ -141,11 +141,11 @@
|
|
141
141
|
@include padding(0 null null 0);
|
142
142
|
/* stylelint-disable declaration-block-no-ignored-properties */
|
143
143
|
display: inline;
|
144
|
-
height:
|
144
|
+
height: auto;
|
145
145
|
margin-left: 3px;
|
146
146
|
position: relative;
|
147
147
|
vertical-align: middle;
|
148
|
-
width:
|
148
|
+
width: auto;
|
149
149
|
/* stylelint-enable */
|
150
150
|
}
|
151
151
|
|
@@ -169,26 +169,6 @@ dfn {
|
|
169
169
|
max-width: $lead-max-width;
|
170
170
|
}
|
171
171
|
|
172
|
-
.usa-image-block {
|
173
|
-
position: relative;
|
174
|
-
}
|
175
|
-
|
176
|
-
.usa-image-text-block {
|
177
|
-
color: $color-white;
|
178
|
-
left: 0;
|
179
|
-
margin-left: 8%;
|
180
|
-
position: absolute;
|
181
|
-
top: 0;
|
182
|
-
}
|
183
|
-
|
184
|
-
.usa-image-text {
|
185
|
-
margin-top: 0;
|
186
|
-
}
|
187
|
-
|
188
|
-
.usa-drop_text {
|
189
|
-
margin-bottom: 0;
|
190
|
-
}
|
191
|
-
|
192
172
|
.usa-background-dark {
|
193
173
|
background-color: $color-gray-dark;
|
194
174
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uswds-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Garber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -104,14 +104,14 @@ dependencies:
|
|
104
104
|
requirements:
|
105
105
|
- - "~>"
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version: 0.52.
|
107
|
+
version: 0.52.1
|
108
108
|
type: :development
|
109
109
|
prerelease: false
|
110
110
|
version_requirements: !ruby/object:Gem::Requirement
|
111
111
|
requirements:
|
112
112
|
- - "~>"
|
113
113
|
- !ruby/object:Gem::Version
|
114
|
-
version: 0.52.
|
114
|
+
version: 0.52.1
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
116
|
name: sass-rails
|
117
117
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,7 +188,7 @@ dependencies:
|
|
188
188
|
- - '='
|
189
189
|
- !ruby/object:Gem::Version
|
190
190
|
version: 3.0.3
|
191
|
-
description: Integrate the U.S. Web Design
|
191
|
+
description: Integrate the U.S. Web Design System into a Ruby on Rails application.
|
192
192
|
email:
|
193
193
|
- jason@sixtwothree.org
|
194
194
|
executables: []
|
@@ -391,5 +391,5 @@ rubyforge_project:
|
|
391
391
|
rubygems_version: 2.7.4
|
392
392
|
signing_key:
|
393
393
|
specification_version: 4
|
394
|
-
summary: Integrate the U.S. Web Design
|
394
|
+
summary: Integrate the U.S. Web Design System into a Ruby on Rails application.
|
395
395
|
test_files: []
|