gnarails 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +227 -0
- data/.gitignore +5 -0
- data/.pronto.yml +2 -0
- data/.railsrc +2 -0
- data/.rspec +2 -0
- data/.rubocop.yml +3 -0
- data/.ruby-version +1 -0
- data/Brewfile +3 -0
- data/CHANGELOG.md +63 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/CONTRIBUTING.md +48 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +213 -0
- data/LICENSE +21 -0
- data/README.md +136 -0
- data/Rakefile +6 -0
- data/bin/ci_pronto +6 -0
- data/bin/console +14 -0
- data/bin/generate-react-test-app.sh +2 -0
- data/bin/generate-test-app.sh +22 -0
- data/bin/setup +8 -0
- data/bin/test-setup.sh +8 -0
- data/exe/gnarails +4 -0
- data/gnarails.gemspec +34 -0
- data/gnarly.rb +395 -0
- data/lib/gnarails/cli/application.rb +192 -0
- data/lib/gnarails/version.rb +3 -0
- data/lib/gnarails.rb +8 -0
- data/templates/.circleci/config.yml +66 -0
- data/templates/.env.development +5 -0
- data/templates/.env.docker/.env.docker-standard +1 -0
- data/templates/.env.docker/.env.docker-webpack +2 -0
- data/templates/.env.docker-assets +1 -0
- data/templates/.env.test +5 -0
- data/templates/.gitignore +20 -0
- data/templates/.pronto.yml +2 -0
- data/templates/.rspec +3 -0
- data/templates/.rubocop.yml +3 -0
- data/templates/.ruby-version +1 -0
- data/templates/.scss-lint.yml +33 -0
- data/templates/Dockerfile +20 -0
- data/templates/Dockerfile-assets +24 -0
- data/templates/README.md +83 -0
- data/templates/database.yml +20 -0
- data/templates/docker-compose.yml/docker-compose-standard.yml +15 -0
- data/templates/docker-compose.yml/docker-compose-webpack.yml +26 -0
- data/templates/react/.babelrc +18 -0
- data/templates/react/.eslintrc.js +45 -0
- data/templates/react/controllers/home_controller.rb +4 -0
- data/templates/react/js/Router/Router.jsx +22 -0
- data/templates/react/js/Router/index.js +3 -0
- data/templates/react/js/api/index.js +17 -0
- data/templates/react/js/api/sessions.js +8 -0
- data/templates/react/js/app_constants/index.js +6 -0
- data/templates/react/js/components/App/App.jsx +15 -0
- data/templates/react/js/components/App/App.tests.jsx +15 -0
- data/templates/react/js/components/App/_styles.scss +3 -0
- data/templates/react/js/components/App/index.js +3 -0
- data/templates/react/js/index.scss +2 -0
- data/templates/react/js/packs/main.jsx +13 -0
- data/templates/react/js/redux/entity_getter.js +7 -0
- data/templates/react/js/redux/history.js +5 -0
- data/templates/react/js/redux/initial_state.js +5 -0
- data/templates/react/js/redux/middlewares/authentication_middleware/authentication_middleware.tests.js +109 -0
- data/templates/react/js/redux/middlewares/authentication_middleware/helpers.js +21 -0
- data/templates/react/js/redux/middlewares/authentication_middleware/helpers.tests.js +84 -0
- data/templates/react/js/redux/middlewares/authentication_middleware/index.js +20 -0
- data/templates/react/js/redux/middlewares/index.js +11 -0
- data/templates/react/js/redux/nodes/app/actions.js +36 -0
- data/templates/react/js/redux/nodes/app/config.js +12 -0
- data/templates/react/js/redux/nodes/app/reducer.js +35 -0
- data/templates/react/js/redux/nodes/app/reducer.tests.js +78 -0
- data/templates/react/js/redux/reducers.js +11 -0
- data/templates/react/js/redux/store.js +14 -0
- data/templates/react/js/storage.js +15 -0
- data/templates/react/js/styles/_variables.scss +1 -0
- data/templates/react/js/test/.setup.js +51 -0
- data/templates/react/js/test/connect_wrapper.jsx +28 -0
- data/templates/react/js/test/create_request_mock.js +29 -0
- data/templates/react/js/test/mock_store.js +12 -0
- data/templates/react/layout.html.erb +16 -0
- data/templates/react/rails_routes.rb +5 -0
- data/templates/react/views/home/default.html.erb +1 -0
- data/templates/script/brakeman +15 -0
- data/templates/script/ci_pronto +6 -0
- data/templates/spec/support/factory_bot.rb +5 -0
- data/templates/spec/support/system_test_configuration.rb +13 -0
- data/test-app/app/controllers/job_postings_controller.rb +5 -0
- data/test-app/app/models/comment.rb +3 -0
- data/test-app/app/models/job_posting.rb +20 -0
- data/test-app/app/views/job_postings/index.html.erb +23 -0
- data/test-app/app/views/layouts/application.html.erb +14 -0
- data/test-app/config/routes.rb +5 -0
- data/test-app/db/migrate/20170918002433_create_job_postings.rb +12 -0
- data/test-app/db/migrate/20170918002455_create_comments.rb +10 -0
- data/test-app/spec/factories/job_postings.rb +5 -0
- data/test-app/spec/models/job_posting_spec.rb +21 -0
- data/test-app/spec/requests/status_spec.rb +11 -0
- data/test-app/spec/system/viewing_all_job_postings_spec.rb +36 -0
- metadata +270 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9c540fd4f1d9b92e8bd8c8c07d3f779067ca00601940b61189990d149c310ec8
|
4
|
+
data.tar.gz: ccf7b36bdce75750f80009b8a58a31b0cdae4089de3b5ce70d7934b3897d6444
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ae6d1d63556b5917f4d6b35349d49e2341ce7102b7743245f6995919a85978ecb80a60ca46e5a9b2854e8fc5328f52e1fe8cd7bec46600f9d528b0e66b543db1
|
7
|
+
data.tar.gz: 0be27c9df98e3e1a698445c850d1db147027aa9fcbe2646666e2b3d9372fa6005be109dd14cf5b25adf6300d2cca84c68ab136e326a4102e7f44270bf87b9df8
|
@@ -0,0 +1,227 @@
|
|
1
|
+
# Ruby CircleCI 2.0 configuration file
|
2
|
+
#
|
3
|
+
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
|
4
|
+
#
|
5
|
+
version: 2
|
6
|
+
jobs:
|
7
|
+
unit_test:
|
8
|
+
docker:
|
9
|
+
- image: circleci/ruby:2.5.0-stretch-node-browsers
|
10
|
+
environment:
|
11
|
+
RAILS_ENV: test
|
12
|
+
steps:
|
13
|
+
- checkout
|
14
|
+
|
15
|
+
# Download and cache dependencies
|
16
|
+
- restore_cache:
|
17
|
+
keys:
|
18
|
+
- gnarails-{{ checksum "Gemfile.lock" }}
|
19
|
+
# fallback to using the latest cache if no exact match is found
|
20
|
+
- gnarails-
|
21
|
+
|
22
|
+
# cmake is required by Rugged, a dependency of Pronto
|
23
|
+
- run:
|
24
|
+
name: Install cmake
|
25
|
+
command: sudo apt-get -y -qq update && sudo apt-get -y -qq install cmake
|
26
|
+
|
27
|
+
# Bundle install dependencies
|
28
|
+
- run:
|
29
|
+
name: install dependencies
|
30
|
+
command: bundle install --path vendor/bundle
|
31
|
+
|
32
|
+
# Store bundle cache
|
33
|
+
- save_cache:
|
34
|
+
paths:
|
35
|
+
- vendor/bundle
|
36
|
+
key: gnarails-{{ checksum "Gemfile.lock" }}
|
37
|
+
|
38
|
+
# Tests
|
39
|
+
- run:
|
40
|
+
name: RSpec
|
41
|
+
command: bundle exec rspec
|
42
|
+
|
43
|
+
# Pronto
|
44
|
+
- run:
|
45
|
+
name: Pronto
|
46
|
+
command: ./bin/ci_pronto
|
47
|
+
|
48
|
+
build-rails:
|
49
|
+
docker:
|
50
|
+
- image: ruby:2.5.0
|
51
|
+
|
52
|
+
steps:
|
53
|
+
- checkout
|
54
|
+
|
55
|
+
# Restore bundle cache
|
56
|
+
- restore_cache:
|
57
|
+
keys:
|
58
|
+
- gnarails-build-rails-{{ checksum "Gemfile.lock" }}
|
59
|
+
# fallback to using the latest cache if no exact match is found
|
60
|
+
- gnarails-build-rails-
|
61
|
+
|
62
|
+
# cmake is required by Rugged, a dependency of Pronto
|
63
|
+
- run:
|
64
|
+
name: Install cmake
|
65
|
+
command: apt-get -y -qq update && apt-get -y -qq install cmake
|
66
|
+
|
67
|
+
# Bundle install dependencies
|
68
|
+
- run:
|
69
|
+
name: Install Dependencies
|
70
|
+
command: bundle install --path vendor/bundle
|
71
|
+
|
72
|
+
# Store bundle cache
|
73
|
+
- save_cache:
|
74
|
+
paths:
|
75
|
+
- vendor/bundle
|
76
|
+
key: gnarails-build-rails-{{ checksum "Gemfile.lock" }}
|
77
|
+
|
78
|
+
# Generate test app
|
79
|
+
- run:
|
80
|
+
name: Generate Test App
|
81
|
+
command: sh ./bin/generate-test-app.sh
|
82
|
+
|
83
|
+
# Move test app
|
84
|
+
- run:
|
85
|
+
name: Move Test App
|
86
|
+
command: mkdir rails-app && cp -r ~/project/rails-test-app ~/project/rails-app/
|
87
|
+
|
88
|
+
# Save to shared workspace
|
89
|
+
- persist_to_workspace:
|
90
|
+
root: rails-app
|
91
|
+
paths:
|
92
|
+
- rails-test-app
|
93
|
+
|
94
|
+
build-rails-react:
|
95
|
+
docker:
|
96
|
+
- image: starefossen/ruby-node:2-8
|
97
|
+
|
98
|
+
steps:
|
99
|
+
- checkout
|
100
|
+
|
101
|
+
# Restore bundle cache
|
102
|
+
- restore_cache:
|
103
|
+
keys:
|
104
|
+
- gnarails-build-rails-react-{{ checksum "Gemfile.lock" }}
|
105
|
+
# fallback to using the latest cache if no exact match is found
|
106
|
+
- gnarails-build-rails-react-
|
107
|
+
|
108
|
+
# cmake is required by Rugged, a dependency of Pronto
|
109
|
+
- run:
|
110
|
+
name: Install cmake
|
111
|
+
command: apt-get -y -qq update && apt-get -y -qq install cmake
|
112
|
+
|
113
|
+
# Bundle install dependencies
|
114
|
+
- run:
|
115
|
+
name: Install Dependencies
|
116
|
+
command: bundle install --path vendor/bundle
|
117
|
+
|
118
|
+
# Store bundle cache
|
119
|
+
- save_cache:
|
120
|
+
paths:
|
121
|
+
- vendor/bundle
|
122
|
+
key: gnarails-build-rails-react-{{ checksum "Gemfile.lock" }}
|
123
|
+
|
124
|
+
# Generate test app
|
125
|
+
- run:
|
126
|
+
name: Generate Test App
|
127
|
+
command: sh ./bin/generate-react-test-app.sh
|
128
|
+
|
129
|
+
# Move test app
|
130
|
+
- run:
|
131
|
+
name: Move Test App
|
132
|
+
command: mkdir rails-app && cp -r ~/project/rails-react-test-app ~/project/rails-app/
|
133
|
+
|
134
|
+
# Save to shared workspace
|
135
|
+
- persist_to_workspace:
|
136
|
+
root: rails-app
|
137
|
+
paths:
|
138
|
+
- rails-react-test-app
|
139
|
+
|
140
|
+
test-rails-app:
|
141
|
+
docker:
|
142
|
+
- image: circleci/ruby:2.5.0-stretch-node-browsers
|
143
|
+
environment:
|
144
|
+
RAILS_ENV: test
|
145
|
+
PG_HOST: localhost
|
146
|
+
PG_USER: ubuntu
|
147
|
+
DATABASE_URL: "postgres://ubuntu@localhost:5432/rails-test-app-test"
|
148
|
+
- image: circleci/postgres:9.6.5
|
149
|
+
environment:
|
150
|
+
POSTGRES_USER: ubuntu
|
151
|
+
POSTGRES_DB: rails-test-app-test
|
152
|
+
|
153
|
+
steps:
|
154
|
+
- attach_workspace:
|
155
|
+
at: /tmp/rails-test-app
|
156
|
+
|
157
|
+
# Pull rails app from shared workspace
|
158
|
+
- run:
|
159
|
+
name: Copy Test App
|
160
|
+
command: cp -r /tmp/rails-test-app/rails-test-app/* ~/project
|
161
|
+
|
162
|
+
# Restore bundle cache
|
163
|
+
- restore_cache:
|
164
|
+
keys:
|
165
|
+
- gnarails-test-rails-app-{{ checksum "Gemfile.lock" }}
|
166
|
+
# fallback to using the latest cache if no exact match is found
|
167
|
+
- gnarails-test-rails-app-
|
168
|
+
|
169
|
+
# cmake is required by Rugged, a dependency of Pronto
|
170
|
+
- run:
|
171
|
+
name: Install cmake
|
172
|
+
command: sudo apt-get -y -qq update && sudo apt-get -y -qq install cmake
|
173
|
+
|
174
|
+
# Bundle install dependencies
|
175
|
+
- run:
|
176
|
+
name: install dependencies
|
177
|
+
command: bundle install --path vendor/bundle
|
178
|
+
|
179
|
+
# Store bundle cache
|
180
|
+
- save_cache:
|
181
|
+
paths:
|
182
|
+
- vendor/bundle
|
183
|
+
key: gnarails-test-rails-app-{{ checksum "Gemfile.lock" }}
|
184
|
+
|
185
|
+
# Database setup
|
186
|
+
- run:
|
187
|
+
name: Create database
|
188
|
+
command: bundle exec rake db:create && bundle exec rake db:migrate
|
189
|
+
|
190
|
+
# Tests
|
191
|
+
- run:
|
192
|
+
name: RSpec
|
193
|
+
command: bundle exec rspec
|
194
|
+
|
195
|
+
# Security analysis
|
196
|
+
- run:
|
197
|
+
name: Bundler Audit
|
198
|
+
command: bundle exec bundle-audit update && bundle exec bundle-audit check
|
199
|
+
- run:
|
200
|
+
name: Brakeman
|
201
|
+
command: ./script/brakeman
|
202
|
+
|
203
|
+
# Pronto
|
204
|
+
- run:
|
205
|
+
name: Pronto
|
206
|
+
command: ./script/ci_pronto
|
207
|
+
|
208
|
+
# Save Brakeman
|
209
|
+
- store_artifacts:
|
210
|
+
path: tmp/brakeman.html
|
211
|
+
destination: security/brakeman.html
|
212
|
+
|
213
|
+
# Save Coverage Analysis
|
214
|
+
- store_artifacts:
|
215
|
+
path: coverage
|
216
|
+
destination: coverage
|
217
|
+
|
218
|
+
workflows:
|
219
|
+
version: 2
|
220
|
+
build_and_test:
|
221
|
+
jobs:
|
222
|
+
- unit_test
|
223
|
+
- build-rails
|
224
|
+
- build-rails-react
|
225
|
+
- test-rails-app:
|
226
|
+
requires:
|
227
|
+
- build-rails
|
data/.gitignore
ADDED
data/.pronto.yml
ADDED
data/.railsrc
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.0
|
data/Brewfile
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
## Current release (in development)
|
2
|
+
|
3
|
+
## 0.9.0 - 2018-03-26
|
4
|
+
|
5
|
+
* Support all rails generator options in CLI new command [#99](https://github.com/TheGnarCo/gnarails/pull/99)
|
6
|
+
|
7
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
8
|
+
|
9
|
+
* Use heredocs for multi-line code inserted by template not in template files [#97](https://github.com/TheGnarCo/gnarails/pull/97)
|
10
|
+
|
11
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
12
|
+
|
13
|
+
* Separate template operations into separate methods [#96](https://github.com/TheGnarCo/gnarails/pull/96)
|
14
|
+
|
15
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
16
|
+
|
17
|
+
* Build a rails application with webpacker and react in CI [#95](https://github.com/TheGnarCo/gnarails/pull/95)
|
18
|
+
|
19
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
20
|
+
|
21
|
+
* Fix CLI to support installing webpacker [#94](https://github.com/TheGnarCo/gnarails/pull/94)
|
22
|
+
|
23
|
+
[Mike Stone](https://github.com/mikestone14)
|
24
|
+
|
25
|
+
* New rails apps will now use ruby 2.5 [#89](https://github.com/TheGnarCo/gnarails/pull/89)
|
26
|
+
|
27
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
28
|
+
|
29
|
+
* Test for N+1 query protection and status endpoint [#84](https://github.com/TheGnarCo/gnarails/pull/84)
|
30
|
+
|
31
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
32
|
+
|
33
|
+
* Build a README for the generated rails app [#82](https://github.com/TheGnarCo/gnarails/pull/82)
|
34
|
+
|
35
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
36
|
+
|
37
|
+
* Use pronto to comment on style guide preferences [#81](https://github.com/TheGnarCo/gnarails/pull/81)
|
38
|
+
|
39
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
40
|
+
|
41
|
+
* Run integration test in CI environment [#78](https://github.com/TheGnarCo/gnarails/pull/78)
|
42
|
+
|
43
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
44
|
+
|
45
|
+
* CLI for creating a new gnarails app [#77](https://github.com/TheGnarCo/gnarails/pull/77)
|
46
|
+
|
47
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
48
|
+
|
49
|
+
* Define rspec-rails as an explicit dependency [#76](https://github.com/TheGnarCo/gnarails/pull/76)
|
50
|
+
|
51
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
52
|
+
|
53
|
+
* Create initial integration test [#74](https://github.com/TheGnarCo/gnarails/pull/74)
|
54
|
+
|
55
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
56
|
+
|
57
|
+
* Define rails as an explicit dependency [#72](https://github.com/TheGnarCo/gnarails/pull/73)
|
58
|
+
|
59
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
60
|
+
|
61
|
+
* Introduce changelog [#70](https://github.com/TheGnarCo/gnarails/pull/70)
|
62
|
+
|
63
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at conduct@gnar.dog. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# How to contribute to Gnarails
|
2
|
+
|
3
|
+
Thank you for your interest in contributing to the project! All contributors
|
4
|
+
are expected to adhere to our [Code of Conduct](CODE_OF_CONDUCT.md).
|
5
|
+
|
6
|
+
## Find a bug?
|
7
|
+
|
8
|
+
* Create an issue explaining succinctly, but clearly, the problem encountered.
|
9
|
+
Include details such as:
|
10
|
+
* Steps to reproduce.
|
11
|
+
* Example output or behavior that shows the bug reported.
|
12
|
+
* Gem version.
|
13
|
+
* Ruby version.
|
14
|
+
* Rails version.
|
15
|
+
* A failing test.
|
16
|
+
|
17
|
+
## Interested in a new feature?
|
18
|
+
|
19
|
+
* Create an issue explaining the feature. Include information such as:
|
20
|
+
* Use case(s) for the feature.
|
21
|
+
* Benefits of the feature.
|
22
|
+
* Alternatives to the feature, if aware of any.
|
23
|
+
* Implementation information, if aware of any.
|
24
|
+
|
25
|
+
## Submitting a change?
|
26
|
+
|
27
|
+
1. Fork the repository.
|
28
|
+
2. Create a feature branch.
|
29
|
+
* `git checkout -b feature-branch-name`
|
30
|
+
3. Implement the change.
|
31
|
+
4. Include tests to verify the change performs as expected.
|
32
|
+
5. Run the test suite locally to ensure the change doesn't affect other
|
33
|
+
functionality.
|
34
|
+
* `bundle exec rspec`
|
35
|
+
6. Commit progress in [atomic commits](https://en.wikipedia.org/wiki/Atomic_commit).
|
36
|
+
* `git commit -am "A message with an informative title, and detailed description
|
37
|
+
in subsequent paragraphs"`
|
38
|
+
7. Push the change to the remote.
|
39
|
+
* `git push origin feature-branch-name`
|
40
|
+
8. Submit a pull request.
|
41
|
+
|
42
|
+
If you're not sure how to test the change being proposed, submit a PR and
|
43
|
+
include a comment saying you need help with the test.
|
44
|
+
|
45
|
+
This repository strives to adhere to the style guidelines derived from
|
46
|
+
[gnar-style](https://github.com/TheGnarCo/gnar-style). Please run rubocop
|
47
|
+
against your changes to check for style deviations: `bundle exec rubocop
|
48
|
+
<file.rb>`.
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,213 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
gnarails (0.9.0)
|
5
|
+
rails
|
6
|
+
rspec-rails
|
7
|
+
thor
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
actioncable (5.1.5)
|
13
|
+
actionpack (= 5.1.5)
|
14
|
+
nio4r (~> 2.0)
|
15
|
+
websocket-driver (~> 0.6.1)
|
16
|
+
actionmailer (5.1.5)
|
17
|
+
actionpack (= 5.1.5)
|
18
|
+
actionview (= 5.1.5)
|
19
|
+
activejob (= 5.1.5)
|
20
|
+
mail (~> 2.5, >= 2.5.4)
|
21
|
+
rails-dom-testing (~> 2.0)
|
22
|
+
actionpack (5.1.5)
|
23
|
+
actionview (= 5.1.5)
|
24
|
+
activesupport (= 5.1.5)
|
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.5)
|
30
|
+
activesupport (= 5.1.5)
|
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.5)
|
36
|
+
activesupport (= 5.1.5)
|
37
|
+
globalid (>= 0.3.6)
|
38
|
+
activemodel (5.1.5)
|
39
|
+
activesupport (= 5.1.5)
|
40
|
+
activerecord (5.1.5)
|
41
|
+
activemodel (= 5.1.5)
|
42
|
+
activesupport (= 5.1.5)
|
43
|
+
arel (~> 8.0)
|
44
|
+
activesupport (5.1.5)
|
45
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
46
|
+
i18n (~> 0.7)
|
47
|
+
minitest (~> 5.1)
|
48
|
+
tzinfo (~> 1.1)
|
49
|
+
addressable (2.5.2)
|
50
|
+
public_suffix (>= 2.0.2, < 4.0)
|
51
|
+
arel (8.0.0)
|
52
|
+
ast (2.4.0)
|
53
|
+
builder (3.2.3)
|
54
|
+
concurrent-ruby (1.0.5)
|
55
|
+
crass (1.0.3)
|
56
|
+
diff-lcs (1.3)
|
57
|
+
erubi (1.7.1)
|
58
|
+
faraday (0.14.0)
|
59
|
+
multipart-post (>= 1.2, < 3)
|
60
|
+
ffi (1.9.23)
|
61
|
+
gitlab (4.3.0)
|
62
|
+
httparty
|
63
|
+
terminal-table
|
64
|
+
globalid (0.4.1)
|
65
|
+
activesupport (>= 4.2.0)
|
66
|
+
gnar-style (0.4.0)
|
67
|
+
rubocop (~> 0.53)
|
68
|
+
thor
|
69
|
+
httparty (0.16.1)
|
70
|
+
multi_xml (>= 0.5.2)
|
71
|
+
i18n (0.9.5)
|
72
|
+
concurrent-ruby (~> 1.0)
|
73
|
+
listen (3.1.5)
|
74
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
75
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
76
|
+
ruby_dep (~> 1.2)
|
77
|
+
loofah (2.2.2)
|
78
|
+
crass (~> 1.0.2)
|
79
|
+
nokogiri (>= 1.5.9)
|
80
|
+
mail (2.7.0)
|
81
|
+
mini_mime (>= 0.1.1)
|
82
|
+
method_source (0.9.0)
|
83
|
+
mini_mime (1.0.0)
|
84
|
+
mini_portile2 (2.3.0)
|
85
|
+
minitest (5.11.3)
|
86
|
+
multi_xml (0.6.0)
|
87
|
+
multipart-post (2.0.0)
|
88
|
+
nio4r (2.3.0)
|
89
|
+
nokogiri (1.8.2)
|
90
|
+
mini_portile2 (~> 2.3.0)
|
91
|
+
octokit (4.8.0)
|
92
|
+
sawyer (~> 0.8.0, >= 0.5.3)
|
93
|
+
parallel (1.12.1)
|
94
|
+
parser (2.5.0.4)
|
95
|
+
ast (~> 2.4.0)
|
96
|
+
powerpack (0.1.1)
|
97
|
+
pronto (0.9.5)
|
98
|
+
gitlab (~> 4.0, >= 4.0.0)
|
99
|
+
httparty (>= 0.13.7)
|
100
|
+
octokit (~> 4.7, >= 4.7.0)
|
101
|
+
rainbow (~> 2.1)
|
102
|
+
rugged (~> 0.24, >= 0.23.0)
|
103
|
+
thor (~> 0.19.0)
|
104
|
+
pronto-rubocop (0.9.0)
|
105
|
+
pronto (~> 0.9.0)
|
106
|
+
rubocop (~> 0.38, >= 0.35.0)
|
107
|
+
public_suffix (3.0.2)
|
108
|
+
rack (2.0.4)
|
109
|
+
rack-proxy (0.6.4)
|
110
|
+
rack
|
111
|
+
rack-test (0.8.3)
|
112
|
+
rack (>= 1.0, < 3)
|
113
|
+
rails (5.1.5)
|
114
|
+
actioncable (= 5.1.5)
|
115
|
+
actionmailer (= 5.1.5)
|
116
|
+
actionpack (= 5.1.5)
|
117
|
+
actionview (= 5.1.5)
|
118
|
+
activejob (= 5.1.5)
|
119
|
+
activemodel (= 5.1.5)
|
120
|
+
activerecord (= 5.1.5)
|
121
|
+
activesupport (= 5.1.5)
|
122
|
+
bundler (>= 1.3.0)
|
123
|
+
railties (= 5.1.5)
|
124
|
+
sprockets-rails (>= 2.0.0)
|
125
|
+
rails-dom-testing (2.0.3)
|
126
|
+
activesupport (>= 4.2.0)
|
127
|
+
nokogiri (>= 1.6)
|
128
|
+
rails-html-sanitizer (1.0.4)
|
129
|
+
loofah (~> 2.2, >= 2.2.2)
|
130
|
+
railties (5.1.5)
|
131
|
+
actionpack (= 5.1.5)
|
132
|
+
activesupport (= 5.1.5)
|
133
|
+
method_source
|
134
|
+
rake (>= 0.8.7)
|
135
|
+
thor (>= 0.18.1, < 2.0)
|
136
|
+
rainbow (2.2.2)
|
137
|
+
rake
|
138
|
+
rake (10.5.0)
|
139
|
+
rb-fsevent (0.10.3)
|
140
|
+
rb-inotify (0.9.10)
|
141
|
+
ffi (>= 0.5.0, < 2)
|
142
|
+
rspec (3.7.0)
|
143
|
+
rspec-core (~> 3.7.0)
|
144
|
+
rspec-expectations (~> 3.7.0)
|
145
|
+
rspec-mocks (~> 3.7.0)
|
146
|
+
rspec-core (3.7.1)
|
147
|
+
rspec-support (~> 3.7.0)
|
148
|
+
rspec-expectations (3.7.0)
|
149
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
150
|
+
rspec-support (~> 3.7.0)
|
151
|
+
rspec-mocks (3.7.0)
|
152
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
153
|
+
rspec-support (~> 3.7.0)
|
154
|
+
rspec-rails (3.7.2)
|
155
|
+
actionpack (>= 3.0)
|
156
|
+
activesupport (>= 3.0)
|
157
|
+
railties (>= 3.0)
|
158
|
+
rspec-core (~> 3.7.0)
|
159
|
+
rspec-expectations (~> 3.7.0)
|
160
|
+
rspec-mocks (~> 3.7.0)
|
161
|
+
rspec-support (~> 3.7.0)
|
162
|
+
rspec-support (3.7.1)
|
163
|
+
rubocop (0.53.0)
|
164
|
+
parallel (~> 1.10)
|
165
|
+
parser (>= 2.5)
|
166
|
+
powerpack (~> 0.1)
|
167
|
+
rainbow (>= 2.2.2, < 4.0)
|
168
|
+
ruby-progressbar (~> 1.7)
|
169
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
170
|
+
ruby-progressbar (1.9.0)
|
171
|
+
ruby_dep (1.5.0)
|
172
|
+
rugged (0.26.0)
|
173
|
+
sawyer (0.8.1)
|
174
|
+
addressable (>= 2.3.5, < 2.6)
|
175
|
+
faraday (~> 0.8, < 1.0)
|
176
|
+
sprockets (3.7.1)
|
177
|
+
concurrent-ruby (~> 1.0)
|
178
|
+
rack (> 1, < 3)
|
179
|
+
sprockets-rails (3.2.1)
|
180
|
+
actionpack (>= 4.0)
|
181
|
+
activesupport (>= 4.0)
|
182
|
+
sprockets (>= 3.0.0)
|
183
|
+
terminal-table (1.8.0)
|
184
|
+
unicode-display_width (~> 1.1, >= 1.1.1)
|
185
|
+
thor (0.19.4)
|
186
|
+
thread_safe (0.3.6)
|
187
|
+
tzinfo (1.2.5)
|
188
|
+
thread_safe (~> 0.1)
|
189
|
+
unicode-display_width (1.3.0)
|
190
|
+
webpacker (3.0.0)
|
191
|
+
activesupport (>= 4.2)
|
192
|
+
rack-proxy (>= 0.6.1)
|
193
|
+
railties (>= 4.2)
|
194
|
+
websocket-driver (0.6.5)
|
195
|
+
websocket-extensions (>= 0.1.0)
|
196
|
+
websocket-extensions (0.1.3)
|
197
|
+
|
198
|
+
PLATFORMS
|
199
|
+
ruby
|
200
|
+
|
201
|
+
DEPENDENCIES
|
202
|
+
bundler (~> 1.16)
|
203
|
+
gnar-style
|
204
|
+
gnarails!
|
205
|
+
listen
|
206
|
+
pronto
|
207
|
+
pronto-rubocop
|
208
|
+
rake (~> 10.0)
|
209
|
+
rspec (~> 3.0)
|
210
|
+
webpacker (= 3.0)
|
211
|
+
|
212
|
+
BUNDLED WITH
|
213
|
+
1.16.1
|