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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e52dca442328fb7835c9e086c06df9d64bccad712a58d49c1bc6aace5bf1face
|
4
|
+
data.tar.gz: f61ee8b016154de1487d9eb5a533eab9b4bfcf87453532e7672eeac014d0f584
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 `
|
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
|
data/docs/getting-started.md
CHANGED
@@ -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
|
|
data/docs/upgrades/yolo-130.md
CHANGED
@@ -146,7 +146,29 @@ git add -A
|
|
146
146
|
git commit -m "Upgrading Bullet Train gems."
|
147
147
|
```
|
148
148
|
|
149
|
-
###
|
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
|
-
###
|
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 {
|
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
|
data/lib/bullet_train/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|