capybara-bootstrap-datepicker 0.0.9 → 0.1.0
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 +4 -4
- data/.codeclimate.yml +4 -0
- data/.gitignore +1 -1
- data/.rspec +2 -0
- data/.travis.yml +9 -0
- data/Gemfile +2 -0
- data/README.md +14 -0
- data/capybara-bootstrap-datepicker.gemspec +6 -4
- data/lib/capybara-bootstrap-datepicker.rb +103 -33
- data/lib/capybara-bootstrap-datepicker/version.rb +1 -1
- data/spec/features/bootstrap.html +2 -2
- data/spec/features/bootstrap_datepicker_spec.rb +2 -2
- data/spec/spec_helper.rb +8 -43
- metadata +34 -31
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad6a4e68b261a623cada611f520411eb2da99190
|
|
4
|
+
data.tar.gz: 60f005cd8463642cc3508a9317bca8e0a1e465d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f5a3bc5abd628e69cd6a79039b19d8eeeaed5712064e2727c89c4db3fdaba4836c76c4fbc76f04f85ba4db95486e28b1bdc93d620de470de586e5f1c6093a16
|
|
7
|
+
data.tar.gz: 9dc804b52ce10b105b05258c4b5a55c5dd6d4025f1cb2c556b4d7ad515dd9441689f7cb5bcb7d2724645d1a2e8a02fe3555c907b4c9238eced0c768a6a88d36b
|
data/.codeclimate.yml
ADDED
data/.gitignore
CHANGED
data/.rspec
ADDED
data/.travis.yml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
language: ruby
|
|
2
|
+
rvm:
|
|
3
|
+
- "2.2.2"
|
|
4
|
+
- "2.0.0"
|
|
5
|
+
script: bundle exec rspec spec
|
|
6
|
+
addons:
|
|
7
|
+
code_climate:
|
|
8
|
+
repo_token:
|
|
9
|
+
secure: SFpmOHwZ3HBMqMH0NKq0B6DqoQjeDtsr5V9YCRLM7D6LvkoMhbkFYPoNo4nz6EWQ0Ml9JzP7ORumUPv1ujhCcYV+yLQ5eIL/xg+g+3H0Xu1sx6CuzDY4C7mZJO5s84KoH7yu9pBrlIa+UJwezwrCOm7JWURsPhR94YvmKobyOZHEuAyvUbYb+eqAkYfXrl71dC6hywfdlSOP/OEncPpIDZ6EApfWRhqZYHHHoj9EqXuHasNzmr6c2cqAh++7XDIOlHJ8JUEjeZN9ofTrqN4oq4JkGvIVmUHOe62jaj92z4vi3ZH+4lv0GmM5KlxgwRZKcCts5WivaNTyQzUnInUbWlWcIHnBFQMPj17ggjhixb6O+w3uAKlbLUGDYkKRSc+MWEdURpFIhyNCMtesHA1GS9+aU6yuxgz3REJCu7K3s5XkenvqxWucWweCOhNVRYSHhwhXAFO4Atg8ZdgIvGA7gF50TMfvJvQ0UIUvOmCxpVi2dwXDfwCgeks5ghP4Hyf0qXbnkLn3/4CE6khYPjQhb3tDu5AnouzKC3SedVxg9QDKZZYD0XEr7TTB89/LelqDYOjDy1C7/+aLGIi24zgzE7A02W6G8SikX08Er5tUvRw1Fgohkr7Th6YFisIgYqNCyreUeV2co/dhI7lTGk6GrBDqltYPht78EIbto4PVu9s=
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
[](http://badge.fury.io/rb/capybara-bootstrap-datepicker)
|
|
2
|
+
[](https://travis-ci.org/akarzim/capybara-bootstrap-datepicker.svg?branch=master)
|
|
3
|
+
[](https://codeclimate.com/github/akarzim/capybara-bootstrap-datepicker)
|
|
4
|
+
[](https://codeclimate.com/github/akarzim/capybara-bootstrap-datepicker/coverage)
|
|
2
5
|
|
|
3
6
|
# Capybara::BootstrapDatepicker
|
|
4
7
|
|
|
@@ -48,6 +51,17 @@ Available options are:
|
|
|
48
51
|
+ **datepicker:** the way to fill your date input (:bootstrap = by clicking the popover using [bootstrap-datepicker](https://github.com/eternicode/bootstrap-datepicker))
|
|
49
52
|
; by default it just fill the input date.
|
|
50
53
|
|
|
54
|
+
## Test
|
|
55
|
+
|
|
56
|
+
Just run rspec in your terminal:
|
|
57
|
+
|
|
58
|
+
$ rspec
|
|
59
|
+
|
|
60
|
+
## Upgrading from 0.0.x
|
|
61
|
+
|
|
62
|
+
RSpec support has been split into a separate file. You'll need to change
|
|
63
|
+
`spec_helper.rb` to `require 'capybara-bootstrap-datepicker/rspec'`.
|
|
64
|
+
|
|
51
65
|
## Contributing
|
|
52
66
|
|
|
53
67
|
1. Fork it
|
|
@@ -8,9 +8,9 @@ Gem::Specification.new do |gem|
|
|
|
8
8
|
gem.version = Capybara::BootstrapDatepicker::VERSION
|
|
9
9
|
gem.authors = ['François Vantomme']
|
|
10
10
|
gem.email = ['akarzim@gmail.com']
|
|
11
|
+
gem.summary = %q{Bootstrap datepicker helper for Capybara}
|
|
11
12
|
gem.description = %q{Helper for triggering date input for bootstrap-datepicker javascript library}
|
|
12
13
|
gem.homepage = 'https://github.com/akarzim/capybara-bootstrap-datepicker'
|
|
13
|
-
gem.summary = gem.description
|
|
14
14
|
gem.license = 'MIT'
|
|
15
15
|
|
|
16
16
|
gem.files = `git ls-files`.split($/)
|
|
@@ -18,9 +18,11 @@ Gem::Specification.new do |gem|
|
|
|
18
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
19
19
|
gem.require_paths = ['lib']
|
|
20
20
|
|
|
21
|
-
gem.
|
|
22
|
-
|
|
21
|
+
gem.required_ruby_version = '>= 2.0.0'
|
|
22
|
+
|
|
23
|
+
gem.add_development_dependency 'capybara', '~> 2.4', '>= 2.4.4'
|
|
24
|
+
gem.add_development_dependency 'rspec', '~> 3.1', '>= 3.1.0'
|
|
25
|
+
gem.add_development_dependency 'capybara-screenshot', '~> 1.0', '>= 1.0.9'
|
|
23
26
|
gem.add_development_dependency 'phantomjs', '~> 1.9', '>= 1.9.7.1'
|
|
24
27
|
gem.add_development_dependency 'poltergeist', '~> 1.5', '>= 1.5.1'
|
|
25
|
-
gem.add_development_dependency 'pry', '~> 0.9', '>= 0.9.12.6'
|
|
26
28
|
end
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
require 'capybara-bootstrap-datepicker/version'
|
|
2
|
-
require 'rspec/core'
|
|
3
2
|
|
|
4
3
|
module Capybara
|
|
5
4
|
module BootstrapDatepicker
|
|
@@ -16,56 +15,127 @@ module Capybara
|
|
|
16
15
|
else
|
|
17
16
|
select_simple_date date_input, value
|
|
18
17
|
end
|
|
18
|
+
|
|
19
|
+
first(:xpath, '//body').click
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
def select_simple_date(date_input, value)
|
|
22
23
|
value = value.strftime format if format.present?
|
|
23
24
|
|
|
24
25
|
date_input.set "#{value}\e"
|
|
25
|
-
first(:xpath, '//body').click
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def select_bootstrap_date(date_input, value)
|
|
29
29
|
date_input.click
|
|
30
|
-
picker = find(:xpath, '//body').find('.datepicker')
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
picker_months = picker.find('.datepicker-months', visible: false)
|
|
34
|
-
picker_days = picker.find('.datepicker-days', visible: false)
|
|
31
|
+
picker = Picker.new
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
picker.goto_decade_panel
|
|
34
|
+
picker.navigate_through_decades value.year
|
|
35
|
+
|
|
36
|
+
picker.find_year(value.year).click
|
|
37
|
+
picker.find_month(value.strftime('%b')).click
|
|
38
|
+
picker.find_day(value.day).click
|
|
39
|
+
|
|
40
|
+
fail if Date.parse(date_input.value) != value
|
|
41
|
+
end
|
|
39
42
|
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
private
|
|
44
|
+
class Picker
|
|
45
|
+
def initialize
|
|
46
|
+
@element = find_picker
|
|
47
|
+
end
|
|
42
48
|
|
|
43
|
-
|
|
49
|
+
def goto_decade_panel
|
|
50
|
+
current_month.click if days.visible?
|
|
51
|
+
current_year.click if months.visible?
|
|
52
|
+
end
|
|
44
53
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
gap = value.year / 10 - decade_end / 10
|
|
50
|
-
gap.times { picker_years.find('th.next').click }
|
|
54
|
+
def navigate_through_decades(value)
|
|
55
|
+
decade_start, decade_end = current_decade_minmax
|
|
56
|
+
goto_prev_decade(value, decade_start) if value < decade_start
|
|
57
|
+
goto_next_decade(decade_end, value) if value > decade_end
|
|
51
58
|
end
|
|
52
59
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
.//*[contains(concat(' ', @class, ' '), ' day ')
|
|
57
|
-
and not(contains(concat(' ', @class, ' '), ' old '))
|
|
58
|
-
and not(contains(concat(' ', @class, ' '), ' new '))
|
|
59
|
-
and normalize-space(text())='#{value.day}']
|
|
60
|
-
eos
|
|
61
|
-
picker_days.find(:xpath, day_xpath).click
|
|
60
|
+
def find_year(value)
|
|
61
|
+
years.find '.year', text: value
|
|
62
|
+
end
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
def find_month(value)
|
|
65
|
+
months.find '.month', text: value
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def find_day(value)
|
|
69
|
+
day_xpath = <<-eos
|
|
70
|
+
.//*[contains(concat(' ', @class, ' '), ' day ')
|
|
71
|
+
and not(contains(concat(' ', @class, ' '), ' old '))
|
|
72
|
+
and not(contains(concat(' ', @class, ' '), ' new '))
|
|
73
|
+
and normalize-space(text())='#{value}']
|
|
74
|
+
eos
|
|
75
|
+
days.find :xpath, day_xpath
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
private
|
|
79
|
+
def find_picker
|
|
80
|
+
Capybara.find(:xpath, '//body').find('.datepicker')
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
def find_period(period)
|
|
84
|
+
@element.find(".datepicker-#{period}", visible: false)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def find_switch(period)
|
|
88
|
+
send(period).find('th.datepicker-switch', visible: false)
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
def years
|
|
92
|
+
find_period :years
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
def months
|
|
96
|
+
find_period :months
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
def days
|
|
100
|
+
find_period :days
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def current_decade
|
|
104
|
+
find_switch :years
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def current_year
|
|
108
|
+
find_switch :months
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
def current_month
|
|
112
|
+
find_switch :days
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def current_decade_minmax
|
|
116
|
+
current_decade.text.split('-').map(&:to_i)
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
def click_prev_decade
|
|
120
|
+
years.find('th.prev').click
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
def click_next_decade
|
|
124
|
+
years.find('th.next').click
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
def gap(min, max)
|
|
128
|
+
return 0 if min >= max
|
|
129
|
+
max/10 - min/10
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
def goto_prev_decade(value, decade_start)
|
|
133
|
+
gap(value, decade_start).times { click_prev_decade }
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
def goto_next_decade(decade_end, value)
|
|
137
|
+
gap(decade_end, value).times { click_next_decade }
|
|
138
|
+
end
|
|
65
139
|
end
|
|
66
140
|
end
|
|
67
141
|
end
|
|
68
|
-
|
|
69
|
-
RSpec.configure do |c|
|
|
70
|
-
c.include Capybara::BootstrapDatepicker
|
|
71
|
-
end
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<div class="container">
|
|
8
8
|
<h1>Bootstrap3 Datepicker</h1>
|
|
9
9
|
|
|
10
|
-
<form>
|
|
10
|
+
<form action=".">
|
|
11
11
|
<div class="form-group">
|
|
12
12
|
<label for="my-date-input">Label of my date input</label>
|
|
13
13
|
<div class="input-group date">
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
|
|
21
21
|
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
|
|
22
22
|
<script src="http://eternicode.github.io/bootstrap-datepicker/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
|
|
23
|
-
<script type="text/javascript">$('.input-group.date').datepicker({});</script>
|
|
23
|
+
<script type="text/javascript">$('.input-group.date').datepicker({ format: 'yyyy-mm-dd' });</script>
|
|
24
24
|
</body>
|
|
25
25
|
</html>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
RSpec.describe 'Bootstrap Datepicker', type: :feature do
|
|
3
|
+
it 'fill in datepicker based on Bootstrap 3.3', js: true do
|
|
4
4
|
Capybara.current_session.driver.visit "#{Capybara.app_host}/bootstrap.html"
|
|
5
5
|
expect(page).to have_content 'Bootstrap3 Datepicker'
|
|
6
6
|
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,36 +1,20 @@
|
|
|
1
|
-
# This file was generated by the `rspec --init` command. Conventionally, all
|
|
2
|
-
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
|
3
|
-
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
|
4
|
-
# file to always be loaded, without a need to explicitly require it in any files.
|
|
5
|
-
#
|
|
6
|
-
# Given that it is always loaded, you are encouraged to keep this file as
|
|
7
|
-
# light-weight as possible. Requiring heavyweight dependencies from this file
|
|
8
|
-
# will add to the boot time of your test suite on EVERY test run, even for an
|
|
9
|
-
# individual file that may not need all of that loaded. Instead, consider making
|
|
10
|
-
# a separate helper file that requires the additional dependencies and performs
|
|
11
|
-
# the additional setup, and require it from the spec files that actually need it.
|
|
12
|
-
#
|
|
13
|
-
# The `.rspec` file also contains a few flags that are not defaults but that
|
|
14
|
-
# users commonly want.
|
|
15
|
-
#
|
|
16
1
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
|
2
|
+
require 'codeclimate-test-reporter'
|
|
3
|
+
CodeClimate::TestReporter.start
|
|
17
4
|
|
|
18
5
|
require 'bundler/setup'
|
|
19
6
|
Bundler.setup
|
|
20
7
|
|
|
21
|
-
require 'capybara-bootstrap-datepicker'
|
|
8
|
+
require 'capybara-bootstrap-datepicker/rspec'
|
|
22
9
|
require 'capybara'
|
|
23
10
|
require 'capybara/rspec'
|
|
11
|
+
require 'capybara-screenshot/rspec'
|
|
24
12
|
require 'capybara/poltergeist'
|
|
25
13
|
require 'phantomjs/poltergeist'
|
|
26
|
-
require 'pry'
|
|
27
14
|
|
|
28
15
|
Capybara.configure do |config|
|
|
29
16
|
config.javascript_driver = :poltergeist
|
|
30
|
-
config.app_host = '
|
|
31
|
-
# config.app_host = 'http://localhost:3007'
|
|
32
|
-
# config.server_host = 'localhost'
|
|
33
|
-
# config.server_port = '3007'
|
|
17
|
+
config.app_host = File.join(File.dirname(__FILE__), 'features')
|
|
34
18
|
end
|
|
35
19
|
|
|
36
20
|
Capybara.register_driver :poltergeist do |app|
|
|
@@ -38,32 +22,14 @@ Capybara.register_driver :poltergeist do |app|
|
|
|
38
22
|
end
|
|
39
23
|
|
|
40
24
|
RSpec.configure do |config|
|
|
41
|
-
# rspec-expectations config goes here. You can use an alternate
|
|
42
|
-
# assertion/expectation library such as wrong or the stdlib/minitest
|
|
43
|
-
# assertions if you prefer.
|
|
44
25
|
config.expect_with :rspec do |expectations|
|
|
45
|
-
# This option will default to `true` in RSpec 4. It makes the `description`
|
|
46
|
-
# and `failure_message` of custom matchers include text for helper methods
|
|
47
|
-
# defined using `chain`, e.g.:
|
|
48
|
-
# be_bigger_than(2).and_smaller_than(4).description
|
|
49
|
-
# # => "be bigger than 2 and smaller than 4"
|
|
50
|
-
# ...rather than:
|
|
51
|
-
# # => "be bigger than 2"
|
|
52
26
|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
|
53
27
|
end
|
|
54
28
|
|
|
55
|
-
# rspec-mocks config goes here. You can use an alternate test double
|
|
56
|
-
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
|
57
29
|
config.mock_with :rspec do |mocks|
|
|
58
|
-
# Prevents you from mocking or stubbing a method that does not exist on
|
|
59
|
-
# a real object. This is generally recommended, and will default to
|
|
60
|
-
# `true` in RSpec 4.
|
|
61
30
|
mocks.verify_partial_doubles = true
|
|
62
31
|
end
|
|
63
32
|
|
|
64
|
-
# The settings below are suggested to provide a good initial experience
|
|
65
|
-
# with RSpec, but feel free to customize to your heart's content.
|
|
66
|
-
=begin
|
|
67
33
|
# These two settings work together to allow you to limit a spec run
|
|
68
34
|
# to individual examples or groups you care about by tagging them with
|
|
69
35
|
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
|
@@ -71,8 +37,8 @@ RSpec.configure do |config|
|
|
|
71
37
|
config.filter_run :focus
|
|
72
38
|
config.run_all_when_everything_filtered = true
|
|
73
39
|
|
|
74
|
-
# Limits the available syntax to the non-monkey patched syntax that is
|
|
75
|
-
# For more details, see:
|
|
40
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
|
41
|
+
# recommended. For more details, see:
|
|
76
42
|
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
|
77
43
|
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
|
78
44
|
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
|
@@ -80,7 +46,7 @@ RSpec.configure do |config|
|
|
|
80
46
|
|
|
81
47
|
# This setting enables warnings. It's recommended, but in some cases may
|
|
82
48
|
# be too noisy due to issues in dependencies.
|
|
83
|
-
config.warnings = true
|
|
49
|
+
# config.warnings = true
|
|
84
50
|
|
|
85
51
|
# Many RSpec users commonly either run the entire suite or an individual
|
|
86
52
|
# file, and it's useful to allow more verbose output when running an
|
|
@@ -108,5 +74,4 @@ RSpec.configure do |config|
|
|
|
108
74
|
# test failures related to randomization by passing the same `--seed` value
|
|
109
75
|
# as the one that triggered the failure.
|
|
110
76
|
Kernel.srand config.seed
|
|
111
|
-
=end
|
|
112
77
|
end
|
metadata
CHANGED
|
@@ -1,115 +1,115 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capybara-bootstrap-datepicker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- François Vantomme
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: capybara
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '2.4'
|
|
20
20
|
- - ">="
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version:
|
|
23
|
-
type: :
|
|
22
|
+
version: 2.4.4
|
|
23
|
+
type: :development
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
26
|
requirements:
|
|
27
27
|
- - "~>"
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '
|
|
29
|
+
version: '2.4'
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version:
|
|
32
|
+
version: 2.4.4
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
|
-
name:
|
|
34
|
+
name: rspec
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '
|
|
39
|
+
version: '3.1'
|
|
40
40
|
- - ">="
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version:
|
|
43
|
-
type: :
|
|
42
|
+
version: 3.1.0
|
|
43
|
+
type: :development
|
|
44
44
|
prerelease: false
|
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
47
|
- - "~>"
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: '
|
|
49
|
+
version: '3.1'
|
|
50
50
|
- - ">="
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
|
-
version:
|
|
52
|
+
version: 3.1.0
|
|
53
53
|
- !ruby/object:Gem::Dependency
|
|
54
|
-
name:
|
|
54
|
+
name: capybara-screenshot
|
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
|
57
57
|
- - "~>"
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: '1.
|
|
59
|
+
version: '1.0'
|
|
60
60
|
- - ">="
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: 1.9
|
|
62
|
+
version: 1.0.9
|
|
63
63
|
type: :development
|
|
64
64
|
prerelease: false
|
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
|
67
67
|
- - "~>"
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: '1.
|
|
69
|
+
version: '1.0'
|
|
70
70
|
- - ">="
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
|
-
version: 1.9
|
|
72
|
+
version: 1.0.9
|
|
73
73
|
- !ruby/object:Gem::Dependency
|
|
74
|
-
name:
|
|
74
|
+
name: phantomjs
|
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
|
76
76
|
requirements:
|
|
77
77
|
- - "~>"
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
|
-
version: '1.
|
|
79
|
+
version: '1.9'
|
|
80
80
|
- - ">="
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: 1.
|
|
82
|
+
version: 1.9.7.1
|
|
83
83
|
type: :development
|
|
84
84
|
prerelease: false
|
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '1.
|
|
89
|
+
version: '1.9'
|
|
90
90
|
- - ">="
|
|
91
91
|
- !ruby/object:Gem::Version
|
|
92
|
-
version: 1.
|
|
92
|
+
version: 1.9.7.1
|
|
93
93
|
- !ruby/object:Gem::Dependency
|
|
94
|
-
name:
|
|
94
|
+
name: poltergeist
|
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
|
96
96
|
requirements:
|
|
97
97
|
- - "~>"
|
|
98
98
|
- !ruby/object:Gem::Version
|
|
99
|
-
version: '
|
|
99
|
+
version: '1.5'
|
|
100
100
|
- - ">="
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version:
|
|
102
|
+
version: 1.5.1
|
|
103
103
|
type: :development
|
|
104
104
|
prerelease: false
|
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
107
|
- - "~>"
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '
|
|
109
|
+
version: '1.5'
|
|
110
110
|
- - ">="
|
|
111
111
|
- !ruby/object:Gem::Version
|
|
112
|
-
version:
|
|
112
|
+
version: 1.5.1
|
|
113
113
|
description: Helper for triggering date input for bootstrap-datepicker javascript
|
|
114
114
|
library
|
|
115
115
|
email:
|
|
@@ -118,7 +118,10 @@ executables: []
|
|
|
118
118
|
extensions: []
|
|
119
119
|
extra_rdoc_files: []
|
|
120
120
|
files:
|
|
121
|
+
- ".codeclimate.yml"
|
|
121
122
|
- ".gitignore"
|
|
123
|
+
- ".rspec"
|
|
124
|
+
- ".travis.yml"
|
|
122
125
|
- Gemfile
|
|
123
126
|
- LICENSE.txt
|
|
124
127
|
- README.md
|
|
@@ -142,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
142
145
|
requirements:
|
|
143
146
|
- - ">="
|
|
144
147
|
- !ruby/object:Gem::Version
|
|
145
|
-
version:
|
|
148
|
+
version: 2.0.0
|
|
146
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
150
|
requirements:
|
|
148
151
|
- - ">="
|
|
@@ -153,7 +156,7 @@ rubyforge_project:
|
|
|
153
156
|
rubygems_version: 2.4.5
|
|
154
157
|
signing_key:
|
|
155
158
|
specification_version: 4
|
|
156
|
-
summary:
|
|
159
|
+
summary: Bootstrap datepicker helper for Capybara
|
|
157
160
|
test_files:
|
|
158
161
|
- spec/features/bootstrap.html
|
|
159
162
|
- spec/features/bootstrap_datepicker_spec.rb
|