File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ Unreleased
2
2
3
3
* Require ` --skip-rubocop ` in favor of our [ linting configuration] [ ]
4
4
* Fixed: [ Specify a tag when installing capybara_accessible_selectors] ( https://github.com/thoughtbot/suspenders/issues/1228 )
5
+ * Fixed: [ Issue 1229: How do we want to handle un-released versions?] ( https://github.com/thoughtbot/suspenders/issues/1229 )
5
6
6
7
[ linting configuration ] : https://github.com/thoughtbot/suspenders/blob/main/FEATURES.md#linting
7
8
Original file line number Diff line number Diff line change @@ -35,8 +35,21 @@ PostgreSQL][] as our database.
35
35
36
36
We skip [ RuboCop rules by default] [ ] in favor of our [ holistic linting rules] [ ] .
37
37
38
+ #### Use the latest suspenders release:
39
+
40
+ ```
41
+ rails new app_name \
42
+ --skip_rubocop \
43
+ --skip-test \
44
+ -d=postgresql \
45
+ -m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb
46
+ ```
47
+
48
+ #### OR use the current (possibly unreleased) ` main ` branch of suspenders:
49
+
38
50
```
39
51
rails new app_name \
52
+ --suspenders_main \
40
53
--skip_rubocop \
41
54
--skip-test \
42
55
-d=postgresql \
Original file line number Diff line number Diff line change @@ -24,8 +24,14 @@ def apply_template!
24
24
end
25
25
if options [ :database ] == "postgresql" && options [ :skip_test ] && options [ :skip_rubocop ]
26
26
after_bundle do
27
- gem_group :development , :test do
28
- gem "suspenders"
27
+ if ARGV . include? ( "--suspenders_main" )
28
+ gem_group :development , :test do
29
+ gem "suspenders" , github : "thoughtbot/suspenders" , branch : "main"
30
+ end
31
+ else
32
+ gem_group :development , :test do
33
+ gem "suspenders"
34
+ end
29
35
end
30
36
31
37
run "bundle install"
@@ -41,12 +47,22 @@ def apply_template!
41
47
42
48
=== Please use the correct options ===
43
49
50
+ # Use the latest suspenders release:
44
51
rails new <app_name> \\
45
52
--skip-rubocop \\
46
53
--skip-test \\
47
54
-d=postgresql \\
48
55
-m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb
49
- ERROR
56
+
57
+ # OR use the current (possibly unreleased) `main` branch of suspenders:
58
+ rails new <app_name> \\
59
+ --suspenders_main \\
60
+ --skip-rubocop \\
61
+ --skip-test \\
62
+ -d=postgresql \\
63
+ -m=https://raw.githubusercontent.com/thoughtbot/suspenders/main/lib/install/web.rb
64
+
65
+ ERROR
50
66
51
67
fail Rails ::Generators ::Error , message
52
68
end
You can’t perform that action at this time.
0 commit comments