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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6685c8c9019fdf808bc0d0640b06b2e5c665eb2a
4
- data.tar.gz: 957ede3dd64382c59e931908722af7697d268aa4
3
+ metadata.gz: d237eb4a90078b7f96aa870b1386355cd5cb1af0
4
+ data.tar.gz: df09a5a679ba1f71d6983d6741f31ba13424f9ef
5
5
  SHA512:
6
- metadata.gz: b53f4799eb5c2cf93dfb2f15d01b1639de3d0ded9876f08aa006e33759d78985671d8c764529086ac5f141043e802557920dbfbcb804616fb6c9a80eecca884e
7
- data.tar.gz: 3075f09a7309f87663e5a088688c362976c3d8d3161cf77c55e90916a737e402bc5d958594705aaf0fcb5f595f0ee2919af9d61a0215491e0a8b3ec416cd69af
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 this line to your application's Gemfile:
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
- And then execute:
13
+ then run `bundle` in the console, and then run:
14
14
 
15
- $ bundle
15
+ ```bash
16
+ rails g uswds:install
17
+ ```
16
18
 
17
- Or install it yourself as:
19
+ command. This should add:
18
20
 
19
- $ gem install us_web_design_standards_ror
21
+ ```ruby
22
+ *= require uswds
23
+ ```
20
24
 
21
- ## Usage
25
+ into `app/assets/stylesheets/application.css`, as well as
22
26
 
23
- The US Web Design Standards documentation can be found [here](https://standards.usa.gov/). It behaves similarly to Bootstrap, but has some peculiarities.
27
+ ```ruby
28
+ //= require uswds
29
+ ```
24
30
 
25
- ## Development
31
+ into `app/assets/javascripts/application.js`.
26
32
 
27
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
33
+ ## Usage
28
34
 
29
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
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 = " //= require uswds"
10
+ js_inject = "//= require uswds\n"
11
11
  app_js = File.join(Rails.root, 'app', 'assets', 'javascripts', 'application.js')
12
- css_inject = " *= require uswds"
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 => "require jquery\n"
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
@@ -1,3 +1,3 @@
1
1
  module Uswds
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: us_web_design_standards_ror
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Quinn