simple_form-bootstrap 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +34 -0
- data/.rspec +2 -0
- data/.travis.yml +17 -0
- data/CHANGELOG.md +34 -0
- data/Gemfile +3 -0
- data/LICENSE +22 -0
- data/README.md +36 -0
- data/Rakefile +12 -12
- data/app/assets/javascripts/simple_form-bootstrap.js +24 -24
- data/app/assets/javascripts/simple_form-bootstrap/date_time_input.js +77 -77
- data/app/assets/javascripts/simple_form-bootstrap/select_input.js +12 -12
- data/lib/simple_form/bootstrap.rb +26 -26
- data/lib/simple_form/bootstrap/engine.rb +2 -2
- data/lib/simple_form/bootstrap/form_builders.rb +9 -9
- data/lib/simple_form/bootstrap/form_builders/button.rb +18 -0
- data/lib/simple_form/bootstrap/form_builders/date_time.rb +26 -26
- data/lib/simple_form/bootstrap/inputs.rb +7 -7
- data/lib/simple_form/bootstrap/inputs/date_time_input.rb +135 -135
- data/lib/simple_form/bootstrap/railtie.rb +5 -5
- data/lib/simple_form/bootstrap/setup.rb +189 -189
- data/lib/simple_form/bootstrap/version.rb +1 -1
- data/simple_form-bootstrap.gemspec +40 -0
- data/spec/coverage_helper.rb +63 -0
- data/spec/rails_helper.rb +45 -0
- data/spec/simple_form/bootstrap/form_builders/button_spec.rb +85 -0
- data/spec/simple_form/bootstrap/form_builders/date_time_spec.rb +69 -0
- data/spec/simple_form/simple_form_spec.rb +14 -0
- data/spec/spec_helper.rb +90 -0
- data/spec/support/action_controller.rb +5 -0
- data/spec/support/mock_controller.rb +39 -0
- data/spec/support/rspec_html_matchers.rb +3 -0
- data/spec/support/simple_form.rb +10 -0
- metadata +20 -2
@@ -0,0 +1,10 @@
|
|
1
|
+
module MockViewAdditions
|
2
|
+
def simple_form_for(*args, &proc)
|
3
|
+
concat super(*args, &proc)
|
4
|
+
end
|
5
|
+
end
|
6
|
+
|
7
|
+
RSpec.configure do |config|
|
8
|
+
config.include SimpleForm::ActionViewExtensions::FormHelper, type: :view
|
9
|
+
config.include MockViewAdditions, type: :view
|
10
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form-bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Low
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap-sass
|
@@ -157,6 +157,13 @@ executables: []
|
|
157
157
|
extensions: []
|
158
158
|
extra_rdoc_files: []
|
159
159
|
files:
|
160
|
+
- ".gitignore"
|
161
|
+
- ".rspec"
|
162
|
+
- ".travis.yml"
|
163
|
+
- CHANGELOG.md
|
164
|
+
- Gemfile
|
165
|
+
- LICENSE
|
166
|
+
- README.md
|
160
167
|
- Rakefile
|
161
168
|
- app/assets/javascripts/simple_form-bootstrap.js
|
162
169
|
- app/assets/javascripts/simple_form-bootstrap/date_time_input.js
|
@@ -171,6 +178,17 @@ files:
|
|
171
178
|
- lib/simple_form/bootstrap/railtie.rb
|
172
179
|
- lib/simple_form/bootstrap/setup.rb
|
173
180
|
- lib/simple_form/bootstrap/version.rb
|
181
|
+
- simple_form-bootstrap.gemspec
|
182
|
+
- spec/coverage_helper.rb
|
183
|
+
- spec/rails_helper.rb
|
184
|
+
- spec/simple_form/bootstrap/form_builders/button_spec.rb
|
185
|
+
- spec/simple_form/bootstrap/form_builders/date_time_spec.rb
|
186
|
+
- spec/simple_form/simple_form_spec.rb
|
187
|
+
- spec/spec_helper.rb
|
188
|
+
- spec/support/action_controller.rb
|
189
|
+
- spec/support/mock_controller.rb
|
190
|
+
- spec/support/rspec_html_matchers.rb
|
191
|
+
- spec/support/simple_form.rb
|
174
192
|
homepage: https://github.com/lowjoel/simple_form-bootstrap
|
175
193
|
licenses:
|
176
194
|
- MIT
|