bard-tag_field 0.4.1 → 0.5.0
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/Appraisals +5 -1
- data/CLAUDE.md +109 -0
- data/README.md +16 -16
- data/Rakefile +3 -3
- data/app/assets/javascripts/input-tag.js +482 -465
- data/gemfiles/rails_8.1.gemfile +7 -0
- data/input-tag/bun.lockb +0 -0
- data/input-tag/package.json +16 -0
- data/lib/bard/tag_field/form_builder.rb +4 -4
- data/lib/bard/tag_field/version.rb +1 -1
- metadata +9 -7
- data/bard-tag/bun.lockb +0 -0
- data/bard-tag/package.json +0 -15
- /data/{bard-tag → input-tag}/.gitignore +0 -0
- /data/{bard-tag → input-tag}/index.js +0 -0
- /data/{bard-tag → input-tag}/rollup.config.js +0 -0
data/input-tag/bun.lockb
ADDED
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "module",
|
|
3
|
+
"scripts": {
|
|
4
|
+
"clean": "rm -f ../app/assets/javascripts/input-tag.js",
|
|
5
|
+
"build": "rollup -c"
|
|
6
|
+
},
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"@rollup/plugin-commonjs": "^28.0.8",
|
|
9
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
10
|
+
"rollup": "^4.52.5"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@botandrose/input-tag": "0.4.2"
|
|
14
|
+
},
|
|
15
|
+
"packageManager": "bun@latest"
|
|
16
|
+
}
|
|
@@ -3,19 +3,19 @@ require_relative "field"
|
|
|
3
3
|
module Bard
|
|
4
4
|
module TagField
|
|
5
5
|
module FormBuilder
|
|
6
|
-
def
|
|
6
|
+
def tag_field method, choices = nil, options = {}, html_options = {}, &block
|
|
7
7
|
# Handle different method signatures to match Rails select helper
|
|
8
8
|
case choices
|
|
9
9
|
when Hash
|
|
10
|
-
#
|
|
10
|
+
# tag_field(:method, { class: "form-control" })
|
|
11
11
|
html_options = options
|
|
12
12
|
options = choices
|
|
13
13
|
choices = nil
|
|
14
14
|
when Array
|
|
15
|
-
#
|
|
15
|
+
# tag_field(:method, choices_array, { class: "form-control" })
|
|
16
16
|
html_options = options if options.is_a?(Hash)
|
|
17
17
|
when NilClass
|
|
18
|
-
#
|
|
18
|
+
# tag_field(:method)
|
|
19
19
|
html_options = options
|
|
20
20
|
options = {}
|
|
21
21
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bard-tag_field
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Micah Geisel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-10-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -75,22 +75,24 @@ extra_rdoc_files: []
|
|
|
75
75
|
files:
|
|
76
76
|
- ".rspec"
|
|
77
77
|
- Appraisals
|
|
78
|
+
- CLAUDE.md
|
|
78
79
|
- Gemfile
|
|
79
80
|
- LICENSE
|
|
80
81
|
- README.md
|
|
81
82
|
- Rakefile
|
|
82
83
|
- app/assets/javascripts/input-tag.js
|
|
83
|
-
- bard-tag/.gitignore
|
|
84
|
-
- bard-tag/bun.lockb
|
|
85
|
-
- bard-tag/index.js
|
|
86
|
-
- bard-tag/package.json
|
|
87
|
-
- bard-tag/rollup.config.js
|
|
88
84
|
- bard-tag_field.gemspec
|
|
89
85
|
- bin/console
|
|
90
86
|
- bin/setup
|
|
91
87
|
- gemfiles/rails_7.1.gemfile
|
|
92
88
|
- gemfiles/rails_7.2.gemfile
|
|
93
89
|
- gemfiles/rails_8.0.gemfile
|
|
90
|
+
- gemfiles/rails_8.1.gemfile
|
|
91
|
+
- input-tag/.gitignore
|
|
92
|
+
- input-tag/bun.lockb
|
|
93
|
+
- input-tag/index.js
|
|
94
|
+
- input-tag/package.json
|
|
95
|
+
- input-tag/rollup.config.js
|
|
94
96
|
- lib/bard/tag_field.rb
|
|
95
97
|
- lib/bard/tag_field/cucumber.rb
|
|
96
98
|
- lib/bard/tag_field/field.rb
|
data/bard-tag/bun.lockb
DELETED
|
Binary file
|
data/bard-tag/package.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "module",
|
|
3
|
-
"scripts": {
|
|
4
|
-
"clean": "rm -f ../app/assets/javascripts/input-tag.js",
|
|
5
|
-
"build": "rollup -c"
|
|
6
|
-
},
|
|
7
|
-
"devDependencies": {
|
|
8
|
-
"@rollup/plugin-commonjs": "^25.0.7",
|
|
9
|
-
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
10
|
-
"rollup": "^4.5.2"
|
|
11
|
-
},
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@botandrose/input-tag": "0.3.0"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|