bullet_train 1.6.6 → 1.6.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34e95175a433a61c20b034424ccae74ccc5def7450c0c6d9816a0280230f679f
4
- data.tar.gz: edc6deef3ee07f3063c737e39be15179526da94e6b96a5c86deefad8f45b6363
3
+ metadata.gz: e52dca442328fb7835c9e086c06df9d64bccad712a58d49c1bc6aace5bf1face
4
+ data.tar.gz: f61ee8b016154de1487d9eb5a533eab9b4bfcf87453532e7672eeac014d0f584
5
5
  SHA512:
6
- metadata.gz: 5b9c78763e65bc237dee7e401f8c25239a524b636389807007ca13c1e3f6ed3d7cbcde167ccd4b1955d6e682f8603d6fbc0d37162a2597ef3e4f2daa103cb859
7
- data.tar.gz: 46a0a83713afaad259d6875359f892c62027e2aca1aeddd7c533570d4c9b8f9343491134aec8ebce94eaabfc55510467e476a36f9f59dcfb93768582f3b7bd05
6
+ metadata.gz: 4ce2fbb334c9fb0f05613c923fde81ca67c468a8806a46218a357de8183d7e718493575a2db22863db90d80933c023ff9fa45848f7cafb1d614cd8e180f66ead
7
+ data.tar.gz: fbde2a92b68e2d208f9293664f3398381e23c98811c1b8e4c2a5b86bbcad8f59c0f73a13863c17d034ca7d13364f6d37a471890e9ee70a1bc14ed07ec6eca14b
@@ -74,7 +74,7 @@ What if you'd instead want to:
74
74
  * Show/hide multiple dependent fields based on the value of the `dependable` field.
75
75
  * Update more than the field itself, but also the value of its `label`. As an example, the [`address_field`](/docs/field-partials/address-field.md) partial shows an empty "State / Province / Region" sub-field by default, and on changing the `:country_id` field to the United States, changes the whole `:region_id` to "State" as its label and with all US States as its choices.
76
76
 
77
- For these situations, Bullet Train has a `dependent_fields_turbo_frame` partial that's made to listen to `dependable:updated` events by default.
77
+ For these situations, Bullet Train has a `dependent_fields_frame` partial that's made to listen to `dependable:updated` events by default.
78
78
 
79
79
  ```erb
80
80
  # update the super-select `dependable-dependents-selector-value` to "##{form.field_id(:heard_from, :dependent_fields)}" to match
@@ -19,7 +19,6 @@ If you're using Bullet Train for the first time, begin by learning these five im
19
19
  2. Use `bin/super-scaffold crud-field` to add a new field to a model you've already scaffolded:
20
20
 
21
21
  ```
22
- rails g migration add_description_to_projects description:text
23
22
  bin/super-scaffold crud-field Project description:trix_editor
24
23
  ```
25
24
 
@@ -4,7 +4,6 @@ When issuing a `bin/super-scaffold crud` command, you can pass the `--sortable`
4
4
 
5
5
  ```
6
6
  # E.g. Pages belong to a Site and are sortable via drag-and-drop:
7
- rails g model Page site:references name:string path:text
8
7
  bin/super-scaffold crud Page Site,Team name:text_field path:text_area --sortable
9
8
  ```
10
9
 
@@ -146,7 +146,29 @@ git add -A
146
146
  git commit -m "Upgrading Bullet Train gems."
147
147
  ```
148
148
 
149
- ### 5. Run Tests.
149
+ ### 6. Update the version of JavaScript packages
150
+
151
+ You'll need to also update your `package.json` to point to the same Bullet Train version set in your `Gemfile`.
152
+
153
+ Also note that we're removing the `^` "compatible with version" character. For each version change through `1.3.x` versions, we'll specify the exact version. `v1.4.0` releases (and above) include this change automatically.
154
+
155
+ So we're changing from:
156
+
157
+ ```json
158
+ "@bullet-train/bullet-train": "^1.3.0",
159
+ "@bullet-train/bullet-train-sortable": "^1.3.0",
160
+ "@bullet-train/fields": "^1.3.0",
161
+ ```
162
+
163
+ To this:
164
+
165
+ ```json
166
+ "@bullet-train/bullet-train": "1.3.0",
167
+ "@bullet-train/bullet-train-sortable": "1.3.0",
168
+ "@bullet-train/fields": "1.3.0",
169
+ ```
170
+
171
+ ### 7. Run Tests.
150
172
 
151
173
  ```
152
174
  rails test
@@ -155,7 +177,7 @@ rails test:system
155
177
 
156
178
  If anything fails, investigate the failures and get things working again, and commit those changes.
157
179
 
158
- ### 6. Merge into `main` and delete the branch.
180
+ ### 8. Merge into `main` and delete the branch.
159
181
 
160
182
  ```
161
183
  git checkout main
@@ -58,7 +58,7 @@ module BulletTrain
58
58
  # Look for showcase preview.
59
59
  file_name = source_file[:absolute_path].split("/").last
60
60
  showcase_partials = Dir.glob(`bundle show bullet_train-themes-light`.chomp + "/app/views/showcase/**/*.html.erb")
61
- showcase_preview = showcase_partials.find { _1.end_with?(file_name) }
61
+ showcase_preview = showcase_partials.find { |partial| partial.split("/").last == file_name }
62
62
  if showcase_preview
63
63
  puts "Ejecting showcase preview for #{source_file[:relative_path]}"
64
64
  partial_relative_path = showcase_preview.scan(/(?=app\/views\/showcase).*/).last
@@ -1,3 +1,3 @@
1
1
  module BulletTrain
2
- VERSION = "1.6.6"
2
+ VERSION = "1.6.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6
4
+ version: 1.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-19 00:00:00.000000000 Z
11
+ date: 2023-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard