gnarails 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +4 -14
- data/.ruby-version +1 -1
- data/CHANGELOG.md +14 -0
- data/Gemfile +1 -2
- data/gnarails.gemspec +3 -3
- data/gnarly.rb +18 -1
- data/lib/gnarails/version.rb +1 -1
- data/templates/README.md +2 -1
- data/test-app/app/views/layouts/application.html.erb +1 -1
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dff35b5d3dcc542270769b94c2098901c821cfc8a4d78e019cc8c36e991a6db1
|
4
|
+
data.tar.gz: 321d3c26a186e509ca4b2ea6c236ee4ddbab4de8743725d4c5301e9a9f6ad5fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d5170e4d563873701f345bc71e31f33f10840fa76dce10f1a8e8474ed728f3480d42c4a3e372c172c2763bd3688d09281e122aa45f7f2897889fbf31826f17a
|
7
|
+
data.tar.gz: 1564b285aba6cd8ad0350251b0733d5b61cdc28ce87617b2a4a7f42b27d26fa3d8f222d5f97675da20579b7f5e621d7d1f7d1d43685eb353267da29b39e2a12f
|
data/.circleci/config.yml
CHANGED
@@ -6,7 +6,7 @@ version: 2
|
|
6
6
|
jobs:
|
7
7
|
unit_test:
|
8
8
|
docker:
|
9
|
-
- image: circleci/ruby:2.6.
|
9
|
+
- image: circleci/ruby:2.6.3-stretch-node-browsers
|
10
10
|
environment:
|
11
11
|
RAILS_ENV: test
|
12
12
|
steps:
|
@@ -34,7 +34,7 @@ jobs:
|
|
34
34
|
|
35
35
|
build-rails:
|
36
36
|
docker:
|
37
|
-
- image: circleci/ruby:2.6.
|
37
|
+
- image: circleci/ruby:2.6.3-stretch-node-browsers
|
38
38
|
|
39
39
|
steps:
|
40
40
|
- checkout
|
@@ -44,16 +44,6 @@ jobs:
|
|
44
44
|
name: Install cmake
|
45
45
|
command: sudo apt-get -y -qq update && sudo apt-get -y -qq install cmake
|
46
46
|
|
47
|
-
# Remove bundler 2
|
48
|
-
- run:
|
49
|
-
name: Uninstall bundler
|
50
|
-
command: sudo gem uninstall bundler
|
51
|
-
|
52
|
-
# Install specific version of bundler
|
53
|
-
- run:
|
54
|
-
name: Install bundler 1.17.2
|
55
|
-
command: sudo gem install bundler -v 1.17.2
|
56
|
-
|
57
47
|
# Install rake after installing specific version of bundler
|
58
48
|
- run:
|
59
49
|
name: Install rake
|
@@ -82,7 +72,7 @@ jobs:
|
|
82
72
|
|
83
73
|
test-rails-app:
|
84
74
|
docker:
|
85
|
-
- image: circleci/ruby:2.6.
|
75
|
+
- image: circleci/ruby:2.6.3-stretch-node-browsers
|
86
76
|
environment:
|
87
77
|
RAILS_ENV: test
|
88
78
|
PG_HOST: localhost
|
@@ -109,7 +99,7 @@ jobs:
|
|
109
99
|
|
110
100
|
# Bundle install dependencies
|
111
101
|
- run:
|
112
|
-
name:
|
102
|
+
name: Install dependencies
|
113
103
|
command: bundle install
|
114
104
|
|
115
105
|
# Database setup
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.6.
|
1
|
+
2.6.3
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
## Current release (in development)
|
2
2
|
|
3
|
+
## 3.0.0 - 2019-09-20
|
4
|
+
|
5
|
+
* Downgrade to Ruby 2.6.3 [#148](https://github.com/TheGnarCo/gnarails/pull/148)
|
6
|
+
|
7
|
+
[Kevin Murphy](https://github.com/kevin-j-m)
|
8
|
+
|
9
|
+
* Support Ruby 2.6.4 [#147](https://github.com/TheGnarCo/gnarails/pull/147)
|
10
|
+
|
11
|
+
[Reese Williams](https://github.com/reese)
|
12
|
+
|
13
|
+
* Upgrade to Rails 6 [#146](https://github.com/TheGnarCo/gnarails/pull/146)
|
14
|
+
|
15
|
+
[Reese Williams](https://github.com/reese)
|
16
|
+
|
3
17
|
## 2.0.0 - 2019-03-01
|
4
18
|
|
5
19
|
* Support Ruby 2.6.1 [#134](https://github.com/TheGnarCo/gnarails/pull/134)
|
data/Gemfile
CHANGED
data/gnarails.gemspec
CHANGED
@@ -19,12 +19,12 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.required_ruby_version = ">= 2.6.
|
22
|
+
spec.required_ruby_version = ">= 2.6.3"
|
23
23
|
|
24
|
-
spec.add_dependency "rails", "~>
|
24
|
+
spec.add_dependency "rails", "~> 6.0.0"
|
25
25
|
spec.add_dependency "thor"
|
26
26
|
|
27
|
-
spec.add_development_dependency "bundler", "
|
27
|
+
spec.add_development_dependency "bundler", ">= 1.16", "< 3.0"
|
28
28
|
spec.add_development_dependency "gnar-style"
|
29
29
|
spec.add_development_dependency "pronto"
|
30
30
|
spec.add_development_dependency "pronto-rubocop"
|
data/gnarly.rb
CHANGED
@@ -42,12 +42,14 @@ def add_gems
|
|
42
42
|
gem 'dotenv-rails'
|
43
43
|
gem 'factory_bot_rails'
|
44
44
|
gem 'gnar-style', require: false
|
45
|
+
gem 'launchy'
|
45
46
|
gem 'lol_dba'
|
46
47
|
gem 'okcomputer'
|
47
48
|
gem 'pronto'
|
48
49
|
gem 'pronto-brakeman', require: false
|
49
50
|
gem 'pronto-rubocop', require: false
|
50
51
|
gem 'pronto-scss', require: false
|
52
|
+
gem 'pry-byebug'
|
51
53
|
gem 'pry-rails'
|
52
54
|
gem 'rspec-its'
|
53
55
|
gem 'rspec-rails', '~> 3.7'
|
@@ -231,6 +233,7 @@ def setup_environments
|
|
231
233
|
setup_ci
|
232
234
|
setup_docker
|
233
235
|
setup_procfile
|
236
|
+
configure_i18n
|
234
237
|
end
|
235
238
|
|
236
239
|
def setup_dotenv
|
@@ -268,6 +271,19 @@ def setup_readme
|
|
268
271
|
gsub_file "README.md", "__application_name__", app_name
|
269
272
|
end
|
270
273
|
|
274
|
+
def configure_i18n
|
275
|
+
gsub_file(
|
276
|
+
"config/environments/test.rb",
|
277
|
+
"# config.action_view.raise_on_missing_translations = true",
|
278
|
+
"config.action_view.raise_on_missing_translations = true",
|
279
|
+
)
|
280
|
+
gsub_file(
|
281
|
+
"config/environments/development.rb",
|
282
|
+
"# config.action_view.raise_on_missing_translations = true",
|
283
|
+
"config.action_view.raise_on_missing_translations = true",
|
284
|
+
)
|
285
|
+
end
|
286
|
+
|
271
287
|
def ascii_art
|
272
288
|
puts " _____ __ _ ____ ____ "
|
273
289
|
puts " / / \\ \\ | \\ | | / \\ | \\ "
|
@@ -285,7 +301,8 @@ def post_install_instructions
|
|
285
301
|
puts "\n\nNEXT STEPS"
|
286
302
|
puts "=========="
|
287
303
|
puts "* Install Google Chrome for acceptance tests"
|
288
|
-
puts "*
|
304
|
+
puts "* Ensure you have Homebrew Cask installed: brew tap homebrew/cask"
|
305
|
+
puts "* Install ChromeDriver for default headless acceptance tests: brew cask install chromedriver"
|
289
306
|
puts "* Follow the post-install instructions to set up circle to allow gnarbot to comment on PRs."
|
290
307
|
puts " * https://github.com/TheGnarCo/gnarails#post-install"
|
291
308
|
end
|
data/lib/gnarails/version.rb
CHANGED
data/templates/README.md
CHANGED
@@ -20,7 +20,8 @@ To run acceptance tests chromedriver is required.
|
|
20
20
|
If using macOS and homebrew, you can install chromedriver with the following
|
21
21
|
command:
|
22
22
|
```sh
|
23
|
-
$ brew
|
23
|
+
$ brew tap homebrew/cask
|
24
|
+
$ brew cask install chromedriver
|
24
25
|
```
|
25
26
|
|
26
27
|
To run the full test suite:
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%= csrf_meta_tags %>
|
6
6
|
|
7
7
|
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
8
|
-
<%=
|
8
|
+
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
|
9
9
|
</head>
|
10
10
|
|
11
11
|
<body>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gnarails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Gnar Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 6.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: thor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,16 +42,22 @@ dependencies:
|
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.16'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '3.0'
|
48
51
|
type: :development
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- - "
|
55
|
+
- - ">="
|
53
56
|
- !ruby/object:Gem::Version
|
54
57
|
version: '1.16'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '3.0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: gnar-style
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,14 +207,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
207
|
requirements:
|
202
208
|
- - ">="
|
203
209
|
- !ruby/object:Gem::Version
|
204
|
-
version: 2.6.
|
210
|
+
version: 2.6.3
|
205
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
212
|
requirements:
|
207
213
|
- - ">="
|
208
214
|
- !ruby/object:Gem::Version
|
209
215
|
version: '0'
|
210
216
|
requirements: []
|
211
|
-
rubygems_version: 3.0.
|
217
|
+
rubygems_version: 3.0.4
|
212
218
|
signing_key:
|
213
219
|
specification_version: 4
|
214
220
|
summary: Easily create a gnarly rails app.
|