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: 6252fd20dae6fde1d2db8ae22a0acab49ba31027
4
- data.tar.gz: b0bb235b3b57e5789acf0e81948e6f2398cfb2d2
3
+ metadata.gz: d6ee6c39d0d6737f378b4d59df2cdadffc6b0056
4
+ data.tar.gz: 7b5f59a19ab1a6c2c6147c04740903760055ac29
5
5
  SHA512:
6
- metadata.gz: 6fc10e81d58cf2b8ec7579f26d5c87a580649f38ef2b07a4dc419a9bd9570f471d55d51048a88d6e00e98d57c993a008c1fcdbfa81d1aefb06b98d58852be06b
7
- data.tar.gz: 8f3adc292fe325ae117c825161ef3c71f559de6ae6cf20dce121cf378b88a84c72ca28c4bfcdb3822d68555a13f569cd7af75283228a6584ef29dd936a0aa8e7
6
+ metadata.gz: 908e60ca9d74183126c319daee2b8f14557222b47b0f82edd18ec3ee59aca8d44ef2d6f833c97ad5a1a1bc814683a3214409aff81744658db1924149b41a3138
7
+ data.tar.gz: 3dbbe3e24c96d1ee7bdad39ffa30297ba039bd2afa971f96f9371dd0a261781e3e6f72e56146f35cccf394eea0c1ada72e6cbb0f037609b4083f0830bdc05240
@@ -10,6 +10,7 @@ module BootstrapBuilders
10
10
  autoload :AttributeRows
11
11
  autoload :ArgumentsParser
12
12
  autoload :Button
13
+ autoload :CapybaraSpecHelpers
13
14
  autoload :ClassAttributeHandler
14
15
  autoload :Configuration
15
16
  autoload :Flash
@@ -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
@@ -1,3 +1,3 @@
1
1
  module BootstrapBuilders
2
- VERSION = "0.0.27".freeze
2
+ VERSION = "0.0.28".freeze
3
3
  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.27
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-09 00:00:00.000000000 Z
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.1
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.