bulma_form_builder 0.1.1 → 0.2.0

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: 3810c3622b59cb88b1c2861f1a441f63ff79717eba2e2f25472d44ad1049aaad
4
- data.tar.gz: 4d67a0cc8e74e5bcc59788ce87b9f555802673211abbe9f8f9b123face322d52
3
+ metadata.gz: ff366cb41c4a2fc423e5bfe9e7d11533aeb1200ca5104d637fcfc5d93f67b498
4
+ data.tar.gz: 17ef764cc4ffd0567d12c74365d7f68c261a6674f52a2ffb3f16f4ed9bd5d931
5
5
  SHA512:
6
- metadata.gz: 39c52166549b552ef11da6e2c67159c03f57a95024997839a90b81f80bccdb11797b7475e5df3261012183f348307f0adf80a4c5a918e07285710e0a0ed1447c
7
- data.tar.gz: da8ebbb5f51ea6b1bf58c9a3abeea9cb25784860873a4652a2b2edc15f5684e9382d48bc9b5af1c708635f531f24db54d67e85c5359556118444cda5edb8cef8
6
+ metadata.gz: 9ea0f56b3111553700dabf37c75f33fee933bd929cf1bf548451acc99cf0fa4a067834fed52f26d4a2537f39f3527c5a428f5681ae07c664a48a8b95cf528593
7
+ data.tar.gz: '001414638e15e1368422f784f66e7be46defda223aa3524fb9614dfb348518a89b9c83f74505f14321e957fcf69cd9a5ff1bb7ad4ac9fb9f3857f4685c7da995'
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+ Gemfile.lock
@@ -1,3 +1,7 @@
1
+ ## 0.2.0
2
+
3
+ - Add collection_radio_buttons
4
+
1
5
  ## 0.1.1
2
6
 
3
7
  - Add wrapper_class option
@@ -25,6 +25,6 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency "rails", ">= 5.2.0"
26
26
 
27
27
  spec.add_development_dependency "bundler", "~> 2.0"
28
- spec.add_development_dependency "rake", "~> 10.0"
29
- spec.add_development_dependency "rspec", "~> 3.0"
28
+ spec.add_development_dependency "rake"
29
+ spec.add_development_dependency "rspec"
30
30
  end
@@ -26,6 +26,7 @@ module BulmaFormBuilder
26
26
  include BulmaFormBuilder::Inputs::TextArea
27
27
  include BulmaFormBuilder::Inputs::CheckBox
28
28
  include BulmaFormBuilder::Inputs::CollectionCheckBoxes
29
+ include BulmaFormBuilder::Inputs::CollectionRadioButtons
29
30
 
30
31
  delegate :content_tag, :capture, :concat, to: :@template
31
32
 
@@ -1,6 +1,7 @@
1
1
  require 'bulma_form_builder/inputs/base'
2
2
  require 'bulma_form_builder/inputs/check_box'
3
3
  require 'bulma_form_builder/inputs/collection_check_boxes'
4
+ require 'bulma_form_builder/inputs/collection_radio_buttons'
4
5
  require 'bulma_form_builder/inputs/date_field'
5
6
  require 'bulma_form_builder/inputs/email_field'
6
7
  require 'bulma_form_builder/inputs/month_field'
@@ -0,0 +1,23 @@
1
+ module BulmaFormBuilder
2
+ module Inputs
3
+ module CollectionRadioButtons
4
+ extend ActiveSupport::Concern
5
+ include Base
6
+
7
+ included do
8
+ def collection_radio_buttons_with_bulma(method, collection, value_method, text_method, options = {}, html_options = {}) # rubocop:disable Metrics/ParameterLists
9
+ html = form_field_builder(method, options, html_options) do
10
+ collection_radio_buttons_without_bulma(method, collection, value_method, text_method, options, html_options) do |b|
11
+ content_tag(:label, class: 'radio') do
12
+ concat b.radio_button
13
+ concat content_tag(:span, class: 'control-label') { b.text }
14
+ end
15
+ end
16
+ end
17
+ end
18
+
19
+ bulma_alias :collection_radio_buttons
20
+ end
21
+ end
22
+ end
23
+ end
@@ -1,3 +1,3 @@
1
1
  module BulmaFormBuilder
2
- VERSION = '0.1.1'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulma_form_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - aki77
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-12 00:00:00.000000000 Z
11
+ date: 2020-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -42,30 +42,30 @@ dependencies:
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '3.0'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '3.0'
68
+ version: '0'
69
69
  description: bulma_form_builder is a Rails form builder that makes it super easy to
70
70
  integrate Bulma style forms into your Rails application.
71
71
  email:
@@ -80,7 +80,6 @@ files:
80
80
  - CHANGELOG.md
81
81
  - CODE_OF_CONDUCT.md
82
82
  - Gemfile
83
- - Gemfile.lock
84
83
  - LICENSE.txt
85
84
  - README.md
86
85
  - Rakefile
@@ -99,6 +98,7 @@ files:
99
98
  - lib/bulma_form_builder/inputs/base.rb
100
99
  - lib/bulma_form_builder/inputs/check_box.rb
101
100
  - lib/bulma_form_builder/inputs/collection_check_boxes.rb
101
+ - lib/bulma_form_builder/inputs/collection_radio_buttons.rb
102
102
  - lib/bulma_form_builder/inputs/date_field.rb
103
103
  - lib/bulma_form_builder/inputs/email_field.rb
104
104
  - lib/bulma_form_builder/inputs/month_field.rb
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubygems_version: 3.0.3
132
+ rubygems_version: 3.1.2
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Rails form builder
@@ -1,158 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- bulma_form_builder (0.1.1)
5
- rails (>= 5.2.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actioncable (6.0.1)
11
- actionpack (= 6.0.1)
12
- nio4r (~> 2.0)
13
- websocket-driver (>= 0.6.1)
14
- actionmailbox (6.0.1)
15
- actionpack (= 6.0.1)
16
- activejob (= 6.0.1)
17
- activerecord (= 6.0.1)
18
- activestorage (= 6.0.1)
19
- activesupport (= 6.0.1)
20
- mail (>= 2.7.1)
21
- actionmailer (6.0.1)
22
- actionpack (= 6.0.1)
23
- actionview (= 6.0.1)
24
- activejob (= 6.0.1)
25
- mail (~> 2.5, >= 2.5.4)
26
- rails-dom-testing (~> 2.0)
27
- actionpack (6.0.1)
28
- actionview (= 6.0.1)
29
- activesupport (= 6.0.1)
30
- rack (~> 2.0)
31
- rack-test (>= 0.6.3)
32
- rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
- actiontext (6.0.1)
35
- actionpack (= 6.0.1)
36
- activerecord (= 6.0.1)
37
- activestorage (= 6.0.1)
38
- activesupport (= 6.0.1)
39
- nokogiri (>= 1.8.5)
40
- actionview (6.0.1)
41
- activesupport (= 6.0.1)
42
- builder (~> 3.1)
43
- erubi (~> 1.4)
44
- rails-dom-testing (~> 2.0)
45
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
- activejob (6.0.1)
47
- activesupport (= 6.0.1)
48
- globalid (>= 0.3.6)
49
- activemodel (6.0.1)
50
- activesupport (= 6.0.1)
51
- activerecord (6.0.1)
52
- activemodel (= 6.0.1)
53
- activesupport (= 6.0.1)
54
- activestorage (6.0.1)
55
- actionpack (= 6.0.1)
56
- activejob (= 6.0.1)
57
- activerecord (= 6.0.1)
58
- marcel (~> 0.3.1)
59
- activesupport (6.0.1)
60
- concurrent-ruby (~> 1.0, >= 1.0.2)
61
- i18n (>= 0.7, < 2)
62
- minitest (~> 5.1)
63
- tzinfo (~> 1.1)
64
- zeitwerk (~> 2.2)
65
- builder (3.2.3)
66
- concurrent-ruby (1.1.5)
67
- crass (1.0.5)
68
- diff-lcs (1.3)
69
- erubi (1.9.0)
70
- globalid (0.4.2)
71
- activesupport (>= 4.2.0)
72
- i18n (1.7.0)
73
- concurrent-ruby (~> 1.0)
74
- loofah (2.3.1)
75
- crass (~> 1.0.2)
76
- nokogiri (>= 1.5.9)
77
- mail (2.7.1)
78
- mini_mime (>= 0.1.1)
79
- marcel (0.3.3)
80
- mimemagic (~> 0.3.2)
81
- method_source (0.9.2)
82
- mimemagic (0.3.3)
83
- mini_mime (1.0.2)
84
- mini_portile2 (2.4.0)
85
- minitest (5.13.0)
86
- nio4r (2.5.2)
87
- nokogiri (1.10.5)
88
- mini_portile2 (~> 2.4.0)
89
- rack (2.0.7)
90
- rack-test (1.1.0)
91
- rack (>= 1.0, < 3)
92
- rails (6.0.1)
93
- actioncable (= 6.0.1)
94
- actionmailbox (= 6.0.1)
95
- actionmailer (= 6.0.1)
96
- actionpack (= 6.0.1)
97
- actiontext (= 6.0.1)
98
- actionview (= 6.0.1)
99
- activejob (= 6.0.1)
100
- activemodel (= 6.0.1)
101
- activerecord (= 6.0.1)
102
- activestorage (= 6.0.1)
103
- activesupport (= 6.0.1)
104
- bundler (>= 1.3.0)
105
- railties (= 6.0.1)
106
- sprockets-rails (>= 2.0.0)
107
- rails-dom-testing (2.0.3)
108
- activesupport (>= 4.2.0)
109
- nokogiri (>= 1.6)
110
- rails-html-sanitizer (1.3.0)
111
- loofah (~> 2.3)
112
- railties (6.0.1)
113
- actionpack (= 6.0.1)
114
- activesupport (= 6.0.1)
115
- method_source
116
- rake (>= 0.8.7)
117
- thor (>= 0.20.3, < 2.0)
118
- rake (10.5.0)
119
- rspec (3.9.0)
120
- rspec-core (~> 3.9.0)
121
- rspec-expectations (~> 3.9.0)
122
- rspec-mocks (~> 3.9.0)
123
- rspec-core (3.9.0)
124
- rspec-support (~> 3.9.0)
125
- rspec-expectations (3.9.0)
126
- diff-lcs (>= 1.2.0, < 2.0)
127
- rspec-support (~> 3.9.0)
128
- rspec-mocks (3.9.0)
129
- diff-lcs (>= 1.2.0, < 2.0)
130
- rspec-support (~> 3.9.0)
131
- rspec-support (3.9.0)
132
- sprockets (4.0.0)
133
- concurrent-ruby (~> 1.0)
134
- rack (> 1, < 3)
135
- sprockets-rails (3.2.1)
136
- actionpack (>= 4.0)
137
- activesupport (>= 4.0)
138
- sprockets (>= 3.0.0)
139
- thor (0.20.3)
140
- thread_safe (0.3.6)
141
- tzinfo (1.2.5)
142
- thread_safe (~> 0.1)
143
- websocket-driver (0.7.1)
144
- websocket-extensions (>= 0.1.0)
145
- websocket-extensions (0.1.4)
146
- zeitwerk (2.2.1)
147
-
148
- PLATFORMS
149
- ruby
150
-
151
- DEPENDENCIES
152
- bulma_form_builder!
153
- bundler (~> 2.0)
154
- rake (~> 10.0)
155
- rspec (~> 3.0)
156
-
157
- BUNDLED WITH
158
- 2.0.2