brut 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/Gemfile.lock +1 -1
- data/lib/brut/cli/apps/build_assets.rb +2 -2
- data/lib/brut/front_end/components/inputs/select_tag_with_options.rb +2 -2
- data/lib/brut/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 657d2ac0d7c8de2b4d7ed55cbe7bd399677a011d1ae545fc927fd570d1656e90
|
4
|
+
data.tar.gz: 29f11570fc3adffbd5ebd36480150a578c5d162fad03b1a9e0bb4dacd74cec14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 286b7fdca5f9c2e636e51078c6b8d209aa7360b0589cb796958831da4c5ddce37b1545897f90b2bc9fa4f14a34539765255d8526baa34e44d742a7cccfb0226f
|
7
|
+
data.tar.gz: 9c04ee17ff44afc0562941e7fc9ca5e94407d06d42bc59a86376f5013b5ab717e80cd6a5fd740cac4a9adbb588ee5efacba02d0ce905b36d35d5e3bffe2495ce
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Brut CHANGELOG
|
2
|
+
|
3
|
+
## v0.2.2 - July 10, 2025
|
4
|
+
|
5
|
+
* **Address incorrect underscorization on classnames**
|
6
|
+
|
7
|
+
## v0.2.1 - July 10, 2025
|
8
|
+
|
9
|
+
* **Fix bug with select component where a blank value would cause an exception**
|
10
|
+
|
11
|
+
## v0.2.0 - July 10, 2025
|
12
|
+
|
13
|
+
* **Re-implement `RichString.underscorize` + add tests for `RichString`**
|
14
|
+
|
15
|
+
`RichString` may not survive until 1.0
|
data/Gemfile.lock
CHANGED
@@ -38,7 +38,7 @@ This is to ensure that any images your code references will end up in the public
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
class
|
41
|
+
class Css < Brut::CLI::Command
|
42
42
|
description "Builds a single CSS file suitable for sending to the browser"
|
43
43
|
|
44
44
|
detailed_description %{
|
@@ -77,7 +77,7 @@ This is to ensure that any images your code references will end up in the public
|
|
77
77
|
asset_metadata.save!
|
78
78
|
end
|
79
79
|
end
|
80
|
-
class
|
80
|
+
class Js < Brut::CLI::Command
|
81
81
|
description "Builds and bundles JavaScript destined for the browser"
|
82
82
|
opts.on("--output-file=FILE","Bundle to create that will be sent to the browser, relative to the JS public folder. Default is app.js")
|
83
83
|
opts.on("--source-file=FILE","Entry point used to create the bundle, relative to the source JS folder. Default is index.js")
|
@@ -63,7 +63,7 @@ class Brut::FrontEnd::Components::Inputs::SelectTagWithOptions < Brut::FrontEnd:
|
|
63
63
|
@html_attributes = default_html_attributes.merge(html_attributes)
|
64
64
|
@html_attributes[:name] = name
|
65
65
|
|
66
|
-
if input_value.nil?
|
66
|
+
if input_value.nil? || input_value.to_s.strip == ""
|
67
67
|
@selected_value = nil # explicitly nothing is selected
|
68
68
|
else
|
69
69
|
if input_value.kind_of?(Array)
|
@@ -72,7 +72,7 @@ class Brut::FrontEnd::Components::Inputs::SelectTagWithOptions < Brut::FrontEnd:
|
|
72
72
|
option = options.detect { |option|
|
73
73
|
input_value == option.send(@value_attribute)
|
74
74
|
}
|
75
|
-
if option.nil?
|
75
|
+
if option.nil?
|
76
76
|
raise ArgumentError, "selected_value #{input_value}/#{input_value.class} was not the value for #{value_attribute} on any of the options: #{options.map { |option| option.send(value_attribute) }.join(', ')}"
|
77
77
|
end
|
78
78
|
@selected_value = option.send(@value_attribute)
|
data/lib/brut/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brut
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Bryant Copeland
|
@@ -398,6 +398,7 @@ files:
|
|
398
398
|
- ".nvim.lua"
|
399
399
|
- ".projections.json"
|
400
400
|
- ".rspec"
|
401
|
+
- CHANGELOG.md
|
401
402
|
- CODE_OF_CONDUCT.txt
|
402
403
|
- Dockerfile.dx
|
403
404
|
- Gemfile
|