us_web_design_standards_ror 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +24 -12
- data/lib/generators/uswds/install/install_generator.rb +3 -3
- data/lib/uswds/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d237eb4a90078b7f96aa870b1386355cd5cb1af0
|
|
4
|
+
data.tar.gz: df09a5a679ba1f71d6983d6741f31ba13424f9ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 287c984982203300e4ec812409d64971e658428c0ffa325f83ec9e23c0f4be448908d7eb3a43bfeaac1c5b05c23acf8558d8c909a910714d9312e5f5183c22bb
|
|
7
|
+
data.tar.gz: e1956e950da8f15d62b7ccc27e901ea8526a80295eb827935cd15a21e81ac5a73e8f2ba487ae9164868c0c0ac92738a8cd0cafcf26b4389e8d40f93c856c2006
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
- Updated version number
|
|
5
|
+
- Updated README to include instructions on running installer
|
|
6
|
+
- Updated README to remove Code of Conduct
|
|
7
|
+
- Updated README to include To-Do list
|
|
8
|
+
|
|
9
|
+
## 0.2.1
|
|
10
|
+
- Fixed typo that made JS not inject
|
|
11
|
+
|
|
3
12
|
## 0.2.0
|
|
4
13
|
- Included install generator
|
|
5
14
|
- Edited Gemspec
|
data/README.md
CHANGED
|
@@ -4,35 +4,47 @@ Hey, internet! I bundled the [US Web Design Standards](https://standards.usa.gov
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
Add
|
|
7
|
+
Add to your application's Gemfile:
|
|
8
8
|
|
|
9
9
|
```ruby
|
|
10
10
|
gem 'us_web_design_standards_ror'
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
then run `bundle` in the console, and then run:
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
```bash
|
|
16
|
+
rails g uswds:install
|
|
17
|
+
```
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
command. This should add:
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
```ruby
|
|
22
|
+
*= require uswds
|
|
23
|
+
```
|
|
20
24
|
|
|
21
|
-
|
|
25
|
+
into `app/assets/stylesheets/application.css`, as well as
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
```ruby
|
|
28
|
+
//= require uswds
|
|
29
|
+
```
|
|
24
30
|
|
|
25
|
-
|
|
31
|
+
into `app/assets/javascripts/application.js`.
|
|
26
32
|
|
|
27
|
-
|
|
33
|
+
## Usage
|
|
28
34
|
|
|
29
|
-
|
|
35
|
+
The US Web Design Standards documentation can be found [here](https://standards.usa.gov/). It behaves similarly to Bootstrap, but has some peculiarities.
|
|
30
36
|
|
|
31
37
|
## Contributing
|
|
32
38
|
|
|
33
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/Quinncuatro/USWebDesignStandardsRoRGem.
|
|
34
|
-
|
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Quinncuatro/USWebDesignStandardsRoRGem.
|
|
35
40
|
|
|
36
41
|
## License
|
|
37
42
|
|
|
38
43
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
44
|
+
|
|
45
|
+
## To-Do
|
|
46
|
+
|
|
47
|
+
- [X] Create installer to inject CSS/JS into asset pipeline
|
|
48
|
+
- [ ] Update installer to inject fonts/images into asset pipeline
|
|
49
|
+
- [ ] Create demo page to show implementations of various USWDS features in production
|
|
50
|
+
- [ ] Clean up code so that this doesn't LOOK like my first gem
|
|
@@ -7,14 +7,14 @@ module Uswds
|
|
|
7
7
|
|
|
8
8
|
desc "This generator installs USWDS framework to Asset Pipeline"
|
|
9
9
|
def add_assets
|
|
10
|
-
js_inject = "
|
|
10
|
+
js_inject = "//= require uswds\n"
|
|
11
11
|
app_js = File.join(Rails.root, 'app', 'assets', 'javascripts', 'application.js')
|
|
12
|
-
css_inject = "
|
|
12
|
+
css_inject = "*= require uswds\n"
|
|
13
13
|
app_scss = File.join(Rails.root, 'app', 'assets', 'stylesheets', 'application.scss')
|
|
14
14
|
app_css = File.join(Rails.root, 'app', 'assets', 'stylesheets', 'application.css')
|
|
15
15
|
|
|
16
16
|
if File.exist?(app_js)
|
|
17
|
-
insert_into_file app_js, js_inject, :after => "
|
|
17
|
+
insert_into_file app_js, js_inject, :after => "require_tree .\n"
|
|
18
18
|
else
|
|
19
19
|
say_status('','Nor application.js could not be found!')
|
|
20
20
|
end
|
data/lib/uswds/version.rb
CHANGED