webpacker_helpers 3.0.0.beta.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4b4f1b97ca0bfcdafb9bce54315dc2e472fb8b35
4
+ data.tar.gz: 4dfc47986e7fecab02798c68c0482e04eb207f4c
5
+ SHA512:
6
+ metadata.gz: 2c82be9f0749437bcf31fb15a8799607e39b62cea17842df3e18f203f5ceb0b54ba5ede66fe38dd940ef8c96d9a0ab5c900c768a771004f5c1d3f18ef676871d
7
+ data.tar.gz: 64e8cf29a1ff62d804335a02ece0196337e0fc8de8209d486283172c4b0c0ba3cc555ac29e48708b65f55fb0321cdfe5ac12785d0eb609eb7d3afedcbde67ccd
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ /.bundle
2
+ node_modules
3
+ pkg
4
+ log
data/.rubocop.yml ADDED
@@ -0,0 +1,124 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.2
3
+ # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
4
+ # to ignore them, so only the ones explicitly set in this file are enabled.
5
+ DisabledByDefault: true
6
+ Exclude:
7
+ - 'lib/install/templates/**'
8
+ - 'vendor/**/*'
9
+ - 'node_modules/**/*'
10
+
11
+ # Prefer &&/|| over and/or.
12
+ Style/AndOr:
13
+ Enabled: true
14
+
15
+ # Do not use braces for hash literals when they are the last argument of a
16
+ # method call.
17
+ Style/BracesAroundHashParameters:
18
+ Enabled: true
19
+
20
+ # Align `when` with `case`.
21
+ Style/CaseIndentation:
22
+ Enabled: true
23
+
24
+ # Align comments with method definitions.
25
+ Style/CommentIndentation:
26
+ Enabled: true
27
+
28
+ # No extra empty lines.
29
+ Style/EmptyLines:
30
+ Enabled: true
31
+
32
+ # In a regular class definition, no empty lines around the body.
33
+ Style/EmptyLinesAroundClassBody:
34
+ Enabled: true
35
+
36
+ # In a regular method definition, no empty lines around the body.
37
+ Style/EmptyLinesAroundMethodBody:
38
+ Enabled: true
39
+
40
+ # In a regular module definition, no empty lines around the body.
41
+ Style/EmptyLinesAroundModuleBody:
42
+ Enabled: true
43
+
44
+ # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
45
+ Style/HashSyntax:
46
+ Enabled: true
47
+
48
+ # Method definitions after `private` or `protected` isolated calls need one
49
+ # extra level of indentation.
50
+ Style/IndentationConsistency:
51
+ Enabled: true
52
+ EnforcedStyle: rails
53
+
54
+ # Two spaces, no tabs (for indentation).
55
+ Style/IndentationWidth:
56
+ Enabled: true
57
+
58
+ Style/SpaceAfterColon:
59
+ Enabled: true
60
+
61
+ Style/SpaceAfterComma:
62
+ Enabled: true
63
+
64
+ Style/SpaceAroundEqualsInParameterDefault:
65
+ Enabled: true
66
+
67
+ Style/SpaceAroundKeyword:
68
+ Enabled: true
69
+
70
+ Style/SpaceAroundOperators:
71
+ Enabled: true
72
+
73
+ Style/SpaceBeforeFirstArg:
74
+ Enabled: true
75
+
76
+ # Defining a method with parameters needs parentheses.
77
+ Style/MethodDefParentheses:
78
+ Enabled: true
79
+
80
+ # Use `foo {}` not `foo{}`.
81
+ Style/SpaceBeforeBlockBraces:
82
+ Enabled: true
83
+
84
+ # Use `foo { bar }` not `foo {bar}`.
85
+ Style/SpaceInsideBlockBraces:
86
+ Enabled: true
87
+
88
+ # Use `{ a: 1 }` not `{a:1}`.
89
+ Style/SpaceInsideHashLiteralBraces:
90
+ Enabled: true
91
+
92
+ Style/SpaceInsideParens:
93
+ Enabled: true
94
+
95
+ # Check quotes usage according to lint rule below.
96
+ Style/StringLiterals:
97
+ Enabled: true
98
+ EnforcedStyle: double_quotes
99
+
100
+ # Detect hard tabs, no hard tabs.
101
+ Style/Tab:
102
+ Enabled: true
103
+
104
+ # Blank lines should not have any spaces.
105
+ Style/TrailingBlankLines:
106
+ Enabled: true
107
+
108
+ # No trailing whitespace.
109
+ Style/TrailingWhitespace:
110
+ Enabled: true
111
+
112
+ # Use quotes for string literals when they are enough.
113
+ Style/UnneededPercentQ:
114
+ Enabled: true
115
+
116
+ # Align `end` with the matching keyword or starting expression except for
117
+ # assignments, where it should be aligned with the LHS.
118
+ Lint/EndAlignment:
119
+ Enabled: true
120
+ EnforcedStyleAlignWith: variable
121
+
122
+ # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
123
+ Lint/RequireParentheses:
124
+ Enabled: true
data/.travis.yml ADDED
@@ -0,0 +1,13 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.2.6
5
+ - 2.3.3
6
+ - 2.4.1
7
+ cache:
8
+ bundler: true
9
+
10
+ install:
11
+ - bundle install
12
+ script:
13
+ - bundle exec rake
data/CHANGELOG.md ADDED
@@ -0,0 +1,42 @@
1
+ # Change Log
2
+ All notable changes to this project's source code will be documented in this file. Items under `Unreleased` is upcoming features that will be out in next version. NOTE: major versions of the npm module and the gem must be kept in sync.
3
+
4
+ Contributors: please follow the recommendations outlined at [keepachangelog.com](http://keepachangelog.com/). Please use the existing headings and styling as a guide, and add a link for the version diff at the bottom of the file. Also, please update the `Unreleased` link to compare to the latest release version.
5
+
6
+ ## [Unreleased]
7
+ *Please add entries here for your pull requests.*
8
+
9
+ ## [2.0.3] - 2017-05-29
10
+ ### Fixed
11
+ * Fixed caching of manifest.json for tests. [#14](https://github.com/shakacode/webpacker_helpers/pull/14) by [justin808](https://github.com/justin808).
12
+
13
+ ## [2.0.2] - 2017-05-26
14
+ ### Fixed
15
+ * Fixed rake assets:clobber. [#11](https://github.com/shakacode/webpacker_helpers/pull/11) by [dpuscher](https://github.com/dpuscher).
16
+
17
+ ## [2.0.1] - 2017-05-26
18
+
19
+ ### Changed
20
+ * Added better error messages for missing files.
21
+ * Added api to check if the manifest exists
22
+ [#12](https://github.com/shakacode/webpacker_helpers/pull/12) by [justin808](https://github.com/justin808).
23
+
24
+ ## [2.0.0] - 2017-05-23
25
+ All in [#9](https://github.com/shakacode/webpacker_helpers/pull/9) by [justin808](https://github.com/justin808) with help from [conturbo](https://github.com/conturbo) on the tests.
26
+
27
+ * Rewrote README.md.
28
+ * Configuration is simplified and changed to a single file, `/config/webpacker_helpers.yml`. See README.md.
29
+ * v1 assumed that manifest.json would contain the host name for hot reloading. v2 puts in the host at the Ruby level.
30
+ * `stylesheet_pack_tag` API changed. ENV value for `HOT_RELOADING` == "TRUE" results in the stylesheet_pack_tag not writing anything due to hot reloading requiring inlined JavaScript of styles and not extracted CSS.
31
+ * Removed any bits of JavaScript from webpacker_helpers.
32
+ * Added tests
33
+
34
+ ## [1.0.0] - 2017-05-03
35
+ Initial release
36
+
37
+ [Unreleased]: https://github.com/shakacode/webpacker_helpers/compare/2.0.3...master
38
+ [2.0.3]: https://github.com/shakacode/react_on_rails/compare/2.0.2...2.0.3
39
+ [2.0.2]: https://github.com/shakacode/react_on_rails/compare/2.0.1...2.0.2
40
+ [2.0.1]: https://github.com/shakacode/react_on_rails/compare/2.0.0...2.0.1
41
+ [2.0.0]: https://github.com/shakacode/react_on_rails/compare/1.0.0...2.0.0
42
+ [1.0.0]: https://github.com/shakacode/react_on_rails/compare/0.0.5...1.0.0
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,85 @@
1
+ # Tips for Contributors
2
+
3
+ ## Summary
4
+
5
+ For non-doc fixes:
6
+
7
+ * Provide changelog entry in the [unreleased section of the CHANGELOG.md](https://github.com/shakacode/react_on_rails/blob/master/CHANGELOG.md#unreleased).
8
+ * Ensure CI passes and that you added a test that passes with the fix and fails without the fix.
9
+ * Optionally, squash all commits down to one with a nice commit message *ONLY* once final review is given. Make sure this single commit is rebased on top of master.
10
+ * Please address all code review comments.
11
+ * Ensure that docs are updated accordingly if a feature is added.
12
+
13
+ ## Commit Messages
14
+
15
+ From [How to Write a Git Commit Message](http://chris.beams.io/posts/git-commit/)
16
+
17
+ #### The seven rules of a great git commit message
18
+ > Keep in mind: This has all been said before.
19
+
20
+ 1. Separate subject from body with a blank line
21
+ 1. Limit the subject line to 50 characters
22
+ 1. Capitalize the subject line
23
+ 1. Do not end the subject line with a period
24
+ 1. Use the imperative mood in the subject line
25
+ 1. Wrap the body at 72 characters
26
+ 1. Use the body to explain what and why vs. how
27
+
28
+
29
+ ## To run:
30
+
31
+ ### Tests
32
+ ```
33
+ rake test
34
+ ```
35
+
36
+ ### Linting
37
+
38
+ ```
39
+ rake rubocop
40
+ ```
41
+
42
+ or to autofix:
43
+
44
+ ```
45
+ bundle exec rubocop -a
46
+ ```
47
+
48
+ ### Debugging
49
+
50
+ Enable pry by setting an ENV value for `USE_PRY`. When you use pry, you may get a useless warning about circular references.
51
+
52
+ ### All ci
53
+
54
+ ```sh
55
+ rake
56
+ ```
57
+
58
+ # Configuring to test changes with your app
59
+
60
+ Use the relative path syntax in your gemfile.
61
+
62
+ ```ruby
63
+ gem "webpacker_helpers", path: "../../../webpacker_helpers"
64
+ ```
65
+
66
+ # Advice for Project Maintainers and Contributors
67
+
68
+ What do project maintainers do? What sort of work is involved? [sstephenson](https://github.com/sstephenson) wrote in the [turbolinks](https://github.com/turbolinks/turbolinks) repo:
69
+
70
+ > [Why this is not still fully merged?](https://github.com/turbolinks/turbolinks/pull/124#issuecomment-239826060)
71
+
72
+ # Releasing
73
+
74
+ Using [gem-release](https://github.com/svenfuchs/gem-release).
75
+
76
+ If the version to bump is `2.0.3`
77
+
78
+ ```
79
+ git checkout master
80
+ git pull --rebase
81
+ gem bump --version 2.0.3
82
+ bundle
83
+ git commit -am "Update Gemfile.lock"
84
+ gem release --tag
85
+ ```
data/Gemfile ADDED
@@ -0,0 +1,20 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ gem "rails"
6
+ gem "rake", ">= 11.1"
7
+ gem "rubocop", ">= 0.47", require: false
8
+
9
+ group :test do
10
+ gem "minitest", "~> 5.10", "!= 5.10.2"
11
+
12
+ if ENV["USE_PRY"]
13
+ gem "pry"
14
+ gem "pry-byebug"
15
+ gem "pry-doc"
16
+ gem "pry-rails"
17
+ gem "pry-rescue"
18
+ gem "pry-stack_explorer"
19
+ end
20
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,140 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ webpacker_helpers (3.0.0.beta.1)
5
+ activesupport (>= 4.2)
6
+ multi_json (~> 1.2)
7
+ railties (>= 4.2)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actioncable (5.1.1)
13
+ actionpack (= 5.1.1)
14
+ nio4r (~> 2.0)
15
+ websocket-driver (~> 0.6.1)
16
+ actionmailer (5.1.1)
17
+ actionpack (= 5.1.1)
18
+ actionview (= 5.1.1)
19
+ activejob (= 5.1.1)
20
+ mail (~> 2.5, >= 2.5.4)
21
+ rails-dom-testing (~> 2.0)
22
+ actionpack (5.1.1)
23
+ actionview (= 5.1.1)
24
+ activesupport (= 5.1.1)
25
+ rack (~> 2.0)
26
+ rack-test (~> 0.6.3)
27
+ rails-dom-testing (~> 2.0)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
+ actionview (5.1.1)
30
+ activesupport (= 5.1.1)
31
+ builder (~> 3.1)
32
+ erubi (~> 1.4)
33
+ rails-dom-testing (~> 2.0)
34
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
35
+ activejob (5.1.1)
36
+ activesupport (= 5.1.1)
37
+ globalid (>= 0.3.6)
38
+ activemodel (5.1.1)
39
+ activesupport (= 5.1.1)
40
+ activerecord (5.1.1)
41
+ activemodel (= 5.1.1)
42
+ activesupport (= 5.1.1)
43
+ arel (~> 8.0)
44
+ activesupport (5.1.1)
45
+ concurrent-ruby (~> 1.0, >= 1.0.2)
46
+ i18n (~> 0.7)
47
+ minitest (~> 5.1)
48
+ tzinfo (~> 1.1)
49
+ arel (8.0.0)
50
+ ast (2.3.0)
51
+ builder (3.2.3)
52
+ concurrent-ruby (1.0.5)
53
+ erubi (1.6.0)
54
+ globalid (0.4.0)
55
+ activesupport (>= 4.2.0)
56
+ i18n (0.8.4)
57
+ loofah (2.0.3)
58
+ nokogiri (>= 1.5.9)
59
+ mail (2.6.5)
60
+ mime-types (>= 1.16, < 4)
61
+ method_source (0.8.2)
62
+ mime-types (3.1)
63
+ mime-types-data (~> 3.2015)
64
+ mime-types-data (3.2016.0521)
65
+ mini_portile2 (2.1.0)
66
+ minitest (5.10.1)
67
+ multi_json (1.12.1)
68
+ nio4r (2.0.0)
69
+ nokogiri (1.7.2)
70
+ mini_portile2 (~> 2.1.0)
71
+ parallel (1.11.2)
72
+ parser (2.4.0.0)
73
+ ast (~> 2.2)
74
+ powerpack (0.1.1)
75
+ rack (2.0.3)
76
+ rack-test (0.6.3)
77
+ rack (>= 1.0)
78
+ rails (5.1.1)
79
+ actioncable (= 5.1.1)
80
+ actionmailer (= 5.1.1)
81
+ actionpack (= 5.1.1)
82
+ actionview (= 5.1.1)
83
+ activejob (= 5.1.1)
84
+ activemodel (= 5.1.1)
85
+ activerecord (= 5.1.1)
86
+ activesupport (= 5.1.1)
87
+ bundler (>= 1.3.0, < 2.0)
88
+ railties (= 5.1.1)
89
+ sprockets-rails (>= 2.0.0)
90
+ rails-dom-testing (2.0.3)
91
+ activesupport (>= 4.2.0)
92
+ nokogiri (>= 1.6)
93
+ rails-html-sanitizer (1.0.3)
94
+ loofah (~> 2.0)
95
+ railties (5.1.1)
96
+ actionpack (= 5.1.1)
97
+ activesupport (= 5.1.1)
98
+ method_source
99
+ rake (>= 0.8.7)
100
+ thor (>= 0.18.1, < 2.0)
101
+ rainbow (2.2.2)
102
+ rake
103
+ rake (12.0.0)
104
+ rubocop (0.49.1)
105
+ parallel (~> 1.10)
106
+ parser (>= 2.3.3.1, < 3.0)
107
+ powerpack (~> 0.1)
108
+ rainbow (>= 1.99.1, < 3.0)
109
+ ruby-progressbar (~> 1.7)
110
+ unicode-display_width (~> 1.0, >= 1.0.1)
111
+ ruby-progressbar (1.8.1)
112
+ sprockets (3.7.1)
113
+ concurrent-ruby (~> 1.0)
114
+ rack (> 1, < 3)
115
+ sprockets-rails (3.2.0)
116
+ actionpack (>= 4.0)
117
+ activesupport (>= 4.0)
118
+ sprockets (>= 3.0.0)
119
+ thor (0.19.4)
120
+ thread_safe (0.3.6)
121
+ tzinfo (1.2.3)
122
+ thread_safe (~> 0.1)
123
+ unicode-display_width (1.2.1)
124
+ websocket-driver (0.6.5)
125
+ websocket-extensions (>= 0.1.0)
126
+ websocket-extensions (0.1.2)
127
+
128
+ PLATFORMS
129
+ ruby
130
+
131
+ DEPENDENCIES
132
+ bundler (~> 1.12)
133
+ minitest (~> 5.10, != 5.10.2)
134
+ rails
135
+ rake (>= 11.1)
136
+ rubocop (>= 0.47)
137
+ webpacker_helpers!
138
+
139
+ BUNDLED WITH
140
+ 1.15.0