bp3-formtastic 0.1.1 → 0.1.2

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: badca2d2bd57d4a8e74bf01fb63699e98b556e9bde9bacf841493003085218a5
4
- data.tar.gz: 71e33e1a799e9b1a4329f1e8470056dfd75ee3c6a816f703f0559487de8063ff
3
+ metadata.gz: 4fd4667ebdd632b2a5fb80e8b9498dc1594990719d2cbae101d52618d97793ac
4
+ data.tar.gz: 57b9b6579614d3e4cfd9e439a85fefdcc6eb6b0f391501133997035b25132b20
5
5
  SHA512:
6
- metadata.gz: c2c5fe8aa33f2389357a510b7fc50383924369cf27d7177391bd389fbb6c5b54a56a44cec8109536680941d658c98c948bd22a14bfab11ab5346e6b57ac8e607
7
- data.tar.gz: ed2e4a9f370d0dde477a0e72c7ce8b660da795b9fcc00fea36ce3865d276875169b0f05e4d54544fe0dce024cd515311b6ffaaf77e1ffa0dfb7e01f3ab8041cc
6
+ metadata.gz: 1def99fea2ec09af93804aa32d9229debaf918222126a08bf5470c30d3b6900476aa22995b7231025a3e502599149f76e5e2f39d7057ccf797f5a0028e0acb6b
7
+ data.tar.gz: 3797ae7d099d5044f65813981963e5d2559d64b57557e2514c49d494675a6840e14a4ae1d4e106e03e98d615d2e8a39fca0c8358a2ba911c1b0974732843edfa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.2] - 2024-07-01
4
+
5
+ - Check for builder.id
6
+ - Tweaks
7
+
3
8
  ## [0.1.1] - 2024-05-31
4
9
 
5
10
  - Tweaks and documentation
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bp3-formtastic (0.1.1)
4
+ bp3-formtastic (0.1.2)
5
5
  actionpack (>= 7.1.2, < 8)
6
6
  activesupport (>= 7.1.2, < 8)
7
7
  formtastic (~> 5.0)
@@ -9,9 +9,9 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (7.1.3)
13
- actionview (= 7.1.3)
14
- activesupport (= 7.1.3)
12
+ actionpack (7.1.3.4)
13
+ actionview (= 7.1.3.4)
14
+ activesupport (= 7.1.3.4)
15
15
  nokogiri (>= 1.8.5)
16
16
  racc
17
17
  rack (>= 2.2.4)
@@ -19,13 +19,13 @@ GEM
19
19
  rack-test (>= 0.6.3)
20
20
  rails-dom-testing (~> 2.2)
21
21
  rails-html-sanitizer (~> 1.6)
22
- actionview (7.1.3)
23
- activesupport (= 7.1.3)
22
+ actionview (7.1.3.4)
23
+ activesupport (= 7.1.3.4)
24
24
  builder (~> 3.1)
25
25
  erubi (~> 1.11)
26
26
  rails-dom-testing (~> 2.2)
27
27
  rails-html-sanitizer (~> 1.6)
28
- activesupport (7.1.3)
28
+ activesupport (7.1.3.4)
29
29
  base64
30
30
  bigdecimal
31
31
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -37,35 +37,34 @@ GEM
37
37
  tzinfo (~> 2.0)
38
38
  ast (2.4.2)
39
39
  base64 (0.2.0)
40
- bigdecimal (3.1.6)
41
- builder (3.2.4)
40
+ bigdecimal (3.1.8)
41
+ builder (3.3.0)
42
42
  byebug (11.1.3)
43
- concurrent-ruby (1.2.3)
43
+ concurrent-ruby (1.3.3)
44
44
  connection_pool (2.4.1)
45
45
  crass (1.0.6)
46
- diff-lcs (1.5.0)
47
- drb (2.2.0)
48
- ruby2_keywords
49
- erubi (1.12.0)
46
+ diff-lcs (1.5.1)
47
+ drb (2.2.1)
48
+ erubi (1.13.0)
50
49
  formtastic (5.0.0)
51
50
  actionpack (>= 6.0.0)
52
- i18n (1.14.1)
51
+ i18n (1.14.5)
53
52
  concurrent-ruby (~> 1.0)
54
- json (2.7.1)
53
+ json (2.7.2)
55
54
  language_server-protocol (3.17.0.3)
56
55
  loofah (2.22.0)
57
56
  crass (~> 1.0.2)
58
57
  nokogiri (>= 1.12.0)
59
- minitest (5.21.2)
58
+ minitest (5.24.1)
60
59
  mutex_m (0.2.0)
61
- nokogiri (1.16.0-x86_64-darwin)
60
+ nokogiri (1.16.6-x86_64-darwin)
62
61
  racc (~> 1.4)
63
- parallel (1.24.0)
64
- parser (3.3.0.4)
62
+ parallel (1.25.1)
63
+ parser (3.3.3.0)
65
64
  ast (~> 2.4.1)
66
65
  racc
67
- racc (1.7.3)
68
- rack (3.0.8)
66
+ racc (1.8.0)
67
+ rack (3.1.4)
69
68
  rack-session (2.0.0)
70
69
  rack (>= 3.0.0)
71
70
  rack-test (2.1.0)
@@ -78,23 +77,24 @@ GEM
78
77
  loofah (~> 2.21)
79
78
  nokogiri (~> 1.14)
80
79
  rainbow (3.1.1)
81
- rake (13.1.0)
82
- regexp_parser (2.9.0)
83
- rexml (3.2.6)
84
- rspec (3.12.0)
85
- rspec-core (~> 3.12.0)
86
- rspec-expectations (~> 3.12.0)
87
- rspec-mocks (~> 3.12.0)
88
- rspec-core (3.12.2)
89
- rspec-support (~> 3.12.0)
90
- rspec-expectations (3.12.3)
80
+ rake (13.2.1)
81
+ regexp_parser (2.9.2)
82
+ rexml (3.3.1)
83
+ strscan
84
+ rspec (3.13.0)
85
+ rspec-core (~> 3.13.0)
86
+ rspec-expectations (~> 3.13.0)
87
+ rspec-mocks (~> 3.13.0)
88
+ rspec-core (3.13.0)
89
+ rspec-support (~> 3.13.0)
90
+ rspec-expectations (3.13.1)
91
91
  diff-lcs (>= 1.2.0, < 2.0)
92
- rspec-support (~> 3.12.0)
93
- rspec-mocks (3.12.6)
92
+ rspec-support (~> 3.13.0)
93
+ rspec-mocks (3.13.1)
94
94
  diff-lcs (>= 1.2.0, < 2.0)
95
- rspec-support (~> 3.12.0)
96
- rspec-support (3.12.1)
97
- rubocop (1.60.1)
95
+ rspec-support (~> 3.13.0)
96
+ rspec-support (3.13.1)
97
+ rubocop (1.64.1)
98
98
  json (~> 2.3)
99
99
  language_server-protocol (>= 3.17.0)
100
100
  parallel (~> 1.10)
@@ -102,23 +102,26 @@ GEM
102
102
  rainbow (>= 2.2.2, < 4.0)
103
103
  regexp_parser (>= 1.8, < 3.0)
104
104
  rexml (>= 3.2.5, < 4.0)
105
- rubocop-ast (>= 1.30.0, < 2.0)
105
+ rubocop-ast (>= 1.31.1, < 2.0)
106
106
  ruby-progressbar (~> 1.7)
107
107
  unicode-display_width (>= 2.4.0, < 3.0)
108
- rubocop-ast (1.30.0)
109
- parser (>= 3.2.1.0)
110
- rubocop-capybara (2.20.0)
111
- rubocop (~> 1.41)
112
- rubocop-factory_bot (2.25.1)
108
+ rubocop-ast (1.31.3)
109
+ parser (>= 3.3.1.0)
110
+ rubocop-capybara (2.21.0)
113
111
  rubocop (~> 1.41)
112
+ rubocop-factory_bot (2.26.1)
113
+ rubocop (~> 1.61)
114
114
  rubocop-rake (0.6.0)
115
115
  rubocop (~> 1.0)
116
- rubocop-rspec (2.26.1)
116
+ rubocop-rspec (2.31.0)
117
117
  rubocop (~> 1.40)
118
118
  rubocop-capybara (~> 2.17)
119
119
  rubocop-factory_bot (~> 2.22)
120
+ rubocop-rspec_rails (~> 2.28)
121
+ rubocop-rspec_rails (2.29.1)
122
+ rubocop (~> 1.61)
120
123
  ruby-progressbar (1.13.0)
121
- ruby2_keywords (0.0.5)
124
+ strscan (3.1.0)
122
125
  tzinfo (2.0.6)
123
126
  concurrent-ruby (~> 1.0)
124
127
  unicode-display_width (2.5.0)
data/README.md CHANGED
@@ -4,7 +4,6 @@ bp3-formtastic adapts formtastic for BP3, the persuavis/black_phoebe_3
4
4
  multi-site multi-tenant rails application.
5
5
 
6
6
  ## Installation
7
-
8
7
  Add this line to your application's Gemfile:
9
8
 
10
9
  ```ruby
@@ -20,14 +19,13 @@ Or install it yourself as:
20
19
  $ gem install bp3-formtastic
21
20
 
22
21
  ## Usage
23
-
24
22
  In your application's `config/initializers/bp3-action_dispatch` initializer, specify the name of the class
25
23
  that controls whether to show a formtastic input control or not:
26
24
  ```ruby
27
25
  Bp3::Formtastic.input_control_class_name = 'Vizfact::Input'
28
26
  ```
29
- ## Development
30
27
 
28
+ ## Development
31
29
  After checking out the repo, run `bin/setup` to install dependencies. Then, run
32
30
  `rake spec` to run the tests. You can also run `bin/console` for an interactive
33
31
  prompt that will allow you to experiment.
@@ -44,5 +42,4 @@ Run `rake` to run rspec tests and rubocop linting.
44
42
  A `.yardopts` file is provided to support yard documentation.
45
43
 
46
44
  ## License
47
-
48
45
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ['Wim den Braven']
9
9
  spec.email = ['wimdenbraven@persuavis.com']
10
10
 
11
- spec.summary = 'bp3-formtastic adapts formtastic for BP3 (persuavis/black_phoebe_3)..'
11
+ spec.summary = 'bp3-formtastic adapts formtastic for BP3 (persuavis/black_phoebe_3).'
12
12
  # spec.description = "TODO: Write a longer description or delete this line."
13
13
  spec.homepage = 'https://www.black-phoebe.com'
14
14
  spec.license = 'MIT'
@@ -25,7 +25,7 @@ module Bp3
25
25
  # workspace = template.controller.send(:current_workspace)
26
26
  controller = template.controller.class.name
27
27
  action = template.controller.action_name
28
- builder.id.gsub(/_#{UUID_REGEX}/, '')
28
+ builder.id&.gsub(/_#{UUID_REGEX}/, '')
29
29
  # puts "input_wrapping s:#{site.id} c:#{controller} a:#{action} " \
30
30
  # "e:#{method} n:#{field_name} as:#{options[:as].inspect}"
31
31
 
@@ -34,9 +34,9 @@ module Bp3
34
34
  element_action: action,
35
35
  element_name: field_name)
36
36
  .or(input_control_class.where(sites_site: site,
37
- element_controller: controller,
38
- element_action: action,
39
- element_ident: dom_id)).first
37
+ element_controller: controller,
38
+ element_action: action,
39
+ element_ident: dom_id)).first
40
40
  return nil if viz.present? && !viz.show_element
41
41
 
42
42
  super
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bp3
4
4
  module Formtastic
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bp3-formtastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wim den Braven
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-31 00:00:00.000000000 Z
11
+ date: 2024-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -197,5 +197,5 @@ requirements: []
197
197
  rubygems_version: 3.5.11
198
198
  signing_key:
199
199
  specification_version: 4
200
- summary: bp3-formtastic adapts formtastic for BP3 (persuavis/black_phoebe_3)..
200
+ summary: bp3-formtastic adapts formtastic for BP3 (persuavis/black_phoebe_3).
201
201
  test_files: []