bootstrap_builders 0.0.27 → 0.0.28
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6ee6c39d0d6737f378b4d59df2cdadffc6b0056
|
4
|
+
data.tar.gz: 7b5f59a19ab1a6c2c6147c04740903760055ac29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 908e60ca9d74183126c319daee2b8f14557222b47b0f82edd18ec3ee59aca8d44ef2d6f833c97ad5a1a1bc814683a3214409aff81744658db1924149b41a3138
|
7
|
+
data.tar.gz: 3dbbe3e24c96d1ee7bdad39ffa30297ba039bd2afa971f96f9371dd0a261781e3e6f72e56146f35cccf394eea0c1ada72e6cbb0f037609b4083f0830bdc05240
|
data/lib/bootstrap_builders.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
module BootstrapBuilders::CapybaraSpecHelpers
|
2
|
+
def set_bb_date_input(css_identifier, time)
|
3
|
+
element = find(css_identifier)
|
4
|
+
|
5
|
+
within element do
|
6
|
+
find(".bb-date-picker-input-year", visible: false).set(time.year)
|
7
|
+
find(".bb-date-picker-input-month", visible: false).set(time.month)
|
8
|
+
find(".bb-date-picker-input-day", visible: false).set(time.day)
|
9
|
+
|
10
|
+
if element[:class].include?("bb_date_time_picker")
|
11
|
+
find(".bb-date-picker-input-hour", visible: false).set(time.hour)
|
12
|
+
find(".bb-date-picker-input-min", visible: false).set(time.minute)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap_builders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kaspernj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- lib/bootstrap_builders/arguments_parser.rb
|
70
70
|
- lib/bootstrap_builders/attribute_rows.rb
|
71
71
|
- lib/bootstrap_builders/button.rb
|
72
|
+
- lib/bootstrap_builders/capybara_spec_helpers.rb
|
72
73
|
- lib/bootstrap_builders/class_attribute_handler.rb
|
73
74
|
- lib/bootstrap_builders/configuration.rb
|
74
75
|
- lib/bootstrap_builders/engine.rb
|
@@ -101,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
102
|
version: '0'
|
102
103
|
requirements: []
|
103
104
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.5.
|
105
|
+
rubygems_version: 2.5.2
|
105
106
|
signing_key:
|
106
107
|
specification_version: 4
|
107
108
|
summary: A library to generate Bootstrap HTML for Rails.
|