bard-tag_field 0.7.1 → 0.7.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 273e3dda2a790b12547aa1aecc3b897fcf114f667fe5e3b5c0d991b41e61c24f
4
- data.tar.gz: 12174ee0c8167b487dd2081b32220ac257874bf26e1cbaab1d51f7b422497b55
3
+ metadata.gz: 3b7ac94a1fb550eb7e58297a8cc81307d54586f0fbbd078330b8b956707d341f
4
+ data.tar.gz: fd32175f829a10338b99c87e14357bfa7093dd37a44cbb62eac3d601748579cb
5
5
  SHA512:
6
- metadata.gz: 1ae7bf9a3ff6260c925d22a890581e1995dd6e1327002abb91f70f9064c3c339f34517b92e5cc2ef24d78fcad67873c5fbb991240815f85bb2acf74333c1ccf1
7
- data.tar.gz: 43cbe858f1ecad6feed1fd80006bb3939af4c3c1963921973ae24c9cffb52eb67e3620d346b97a46d572325e7a889af07a1aedb78aa62b92899afb54227cafc7
6
+ metadata.gz: 9641455d386d85398760439770086aa56b9cdb3f6d3c7dd5529fdd729e106bcdd1b99376fcde56ed4283f43038f0de2c74a9e8cb72f84e14647ef9004ce38ec4
7
+ data.tar.gz: d7aa23769d039fbbd4dd105f2c3f813d583be752c39d714f92b571f14f81c7a7aa7a8911c5c7cd09f00c0bc81cc25efa99fc4be5b18906b851e6c562abf219bb
data/README.md CHANGED
@@ -338,6 +338,10 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
338
338
 
339
339
  To install this gem onto your local machine, run `bundle exec rake install`.
340
340
 
341
+ ### Working on the tag styling
342
+
343
+ The styles live in `input-tag/src/input-tag.js`. Edit that file and reload <http://bard-tag_field.localhost/> — your changes are there. No build, no restart.
344
+
341
345
  ## Contributing
342
346
 
343
347
  Bug reports and pull requests are welcome on GitHub at https://github.com/botandrose/bard-tag_field.
data/Rakefile CHANGED
@@ -21,3 +21,7 @@ desc "Install bun dependencies"
21
21
  task :install_deps do
22
22
  sh "cd input-tag && bun install"
23
23
  end
24
+
25
+ task :restart do
26
+ touch "tmp/restart.txt"
27
+ end
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
23
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
24
  `git ls-files -z`.split("\x0").reject do |f|
25
- (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
25
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features|public)/|config\.ru|\.(?:git|travis|circleci)|appveyor)})
26
26
  end
27
27
  end
28
28
  spec.bindir = "exe"
@@ -8,7 +8,7 @@ class Chop::Form::TagField < Chop::Form::Field
8
8
  end
9
9
 
10
10
  def get_value
11
- field.all("tag-option").map(&:text)
11
+ field.all("tag-option", minimum: 0).map(&:text)
12
12
  end
13
13
 
14
14
  def diff_value
@@ -11,14 +11,13 @@ module Bard
11
11
  html_options = options
12
12
  options = choices
13
13
  choices = nil
14
- when Array
15
- # tag_field(:method, choices_array, { class: "form-control" })
16
- html_options = options if options.is_a?(Hash)
17
14
  when NilClass
18
15
  # tag_field(:method)
19
16
  html_options = options
20
17
  options = {}
21
18
  end
19
+ # Array: choices/options/html_options are already correctly positioned;
20
+ # both options and html_options are merged below, matching Rails' select.
22
21
 
23
22
  # Merge options and html_options for Rails compatibility
24
23
  merged_options = objectify_options(options.merge(html_options))
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bard
4
4
  module TagField
5
- VERSION = "0.7.1"
5
+ VERSION = "0.7.3"
6
6
  end
7
7
  end
data/tmp/.keep ADDED
File without changes
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.7.1
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-17 00:00:00.000000000 Z
11
+ date: 2026-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -189,6 +189,7 @@ files:
189
189
  - lib/bard/tag_field/field.rb
190
190
  - lib/bard/tag_field/form_builder.rb
191
191
  - lib/bard/tag_field/version.rb
192
+ - tmp/.keep
192
193
  homepage: https://github.com/botandrose/bard-tag_field
193
194
  licenses:
194
195
  - MIT