enhanced_date_select 1.0.0 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NTRiYjcyNmE0OTNlOGRhNjBhOWY2NmQ5MDZjMDA0YmFiOWM0YWEzMA==
5
+ data.tar.gz: !binary |-
6
+ NmNmNzExMzA0NWFhM2FmYmZkMmI1OGEwZWNhMzQ5YzJiZDU2OTYzOA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MTFkYTNmYjZiZGE2MjQwODVlODkxY2FhMDlkODNkOGUxZDIxNzVhMDJlOTEy
10
+ NDgyYTRmODNlOTc0YWQ1YTRlMmEwNjUzMTc2ODVjOWYwODYxMDc3YjAxNzVl
11
+ ZWQxNDBhOWQwOWJiYTI5NDgxYjhhZjgzNDQ4ZjI3YzFiMjU0ZTY=
12
+ data.tar.gz: !binary |-
13
+ OWRhYTA4OGRmMjA0YTZhODM2MGUyZjM4ODY4MzVkMWU0OTcyOTZiNjU1MGY1
14
+ Njk2MTQxMDIyOWUzOGY5NDA5MzMwOTRkY2U5YTBmMWI0ZGYyMDI0ZTQ5NWI4
15
+ MzMyMzk3ZTUxODZjNGRhZTVhMDk0ODQwYjgzOGE2MDIyNzMzY2U=
data/.gitignore ADDED
@@ -0,0 +1,111 @@
1
+ # rcov generated
2
+ coverage
3
+ coverage.data
4
+
5
+ # rdoc generated
6
+ rdoc
7
+
8
+ # yard generated
9
+ doc
10
+ .yardoc
11
+
12
+ # bundler
13
+ .bundle
14
+
15
+ # jeweler generated
16
+ pkg
17
+
18
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
19
+ #
20
+ # * Create a file at ~/.gitignore
21
+ # * Include files you want ignored
22
+ # * Run: git config --global core.excludesfile ~/.gitignore
23
+ #
24
+ # After doing this, these files will be ignored in all your git projects,
25
+ # saving you from having to 'pollute' every project you touch with them
26
+ #
27
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
28
+ #
29
+ # For MacOS:
30
+ #
31
+ #.DS_Store
32
+
33
+ # For TextMate
34
+ #*.tmproj
35
+ #tmtags
36
+
37
+ # For emacs:
38
+ #*~
39
+ #\#*
40
+ #.\#*
41
+
42
+ # For vim:
43
+ #*.swp
44
+
45
+ # For redcar:
46
+ #.redcar
47
+
48
+ # For rubinius:
49
+ #*.rbc
50
+ /nbproject/private/
51
+
52
+ /tmp/
53
+ Gemfile.lock
54
+ # Compiled source #
55
+ ###################
56
+ *.com
57
+ *.class
58
+ *.dll
59
+ *.exe
60
+ *.o
61
+ *.so
62
+
63
+ # Packages #
64
+ ############
65
+ # it's better to unpack these files and commit the raw source
66
+ # git has its own built in compression methods
67
+ *.7z
68
+ *.dmg
69
+ *.gz
70
+ *.iso
71
+ *.jar
72
+ *.rar
73
+ *.tar
74
+ *.zip
75
+
76
+ # Logs and databases #
77
+ ######################
78
+ *.log
79
+ *.sql
80
+ *.sqlite
81
+
82
+ # OS generated files #
83
+ ######################
84
+ .DS_Store
85
+ .DS_Store?
86
+ ._*
87
+ .Spotlight-V100
88
+ .Trashes
89
+ Icon?
90
+ ehthumbs.db
91
+ Thumbs.db
92
+ .rvmrc
93
+ s.rbx/
94
+ .bundle/
95
+ *.gem
96
+ .idea/
97
+ .rvmrc
98
+ *.swp
99
+ log/*.log
100
+ pkg/
101
+ spec/dummy/db/*.sqlite3
102
+ spec/dummy/log/*.log
103
+ spec/dummy/tmp/
104
+ gemfiles
105
+ coverage
106
+ tags
107
+ Gemfile.lock
108
+ /nbproject/
109
+ /.git-rewrite/
110
+ .rbenv-version
111
+ .ruby-version
data/.travis.yml ADDED
@@ -0,0 +1,14 @@
1
+ before_install:
2
+ - gem install bundler
3
+ - gem install appraisal
4
+ -gem install rspec-rails
5
+ rvm:
6
+ - 1.9.3
7
+ - jruby-19mode
8
+ - 2.0.0
9
+ env:
10
+ - RAILS_ENV=test RACK_ENV=test
11
+ branches:
12
+ only:
13
+ - master
14
+ - develop
data/Appraisals ADDED
@@ -0,0 +1,11 @@
1
+ appraise "rails-3.1.3" do
2
+ gem "rails", "3.1.3"
3
+ end
4
+
5
+ appraise "rails-3.2.12" do
6
+ gem "rails", "3.2.12"
7
+ end
8
+
9
+ appraise "rails-4.0.0" do
10
+ gem "rails", "4.0.0"
11
+ end
data/Gemfile CHANGED
@@ -2,25 +2,25 @@ source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
-
5
+ gemspec
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  group :development, :test do
9
9
  gem 'rspec-rails'
10
- gem 'capybara'
11
- gem 'spork', "> 0.9.0.rc"
12
- gem 'active_reload'
10
+ gem 'guard'
11
+ gem 'guard-rspec'
12
+ gem 'rb-fsevent'
13
+ gem 'appraisal'
13
14
  gem "shoulda"
14
15
  gem "rdoc"
15
16
  gem 'rspec'
16
17
  gem 'rake'
17
18
  gem 'rspec-mocks'
18
19
  gem "bundler"
19
- gem "jeweler"
20
20
  gem "simplecov"
21
21
  gem 'simplecov', :require => false
22
22
  gem 'simplecov-rcov', :require => false
23
- gem 'webmock'
23
+ gem 'simplecov-summary'
24
24
  gem 'mocha'
25
25
  end
26
26
 
data/Guardfile ADDED
@@ -0,0 +1,12 @@
1
+ # More info at https://github.com/guard/guard#readme
2
+
3
+ # Could be changed to whatever you want.
4
+ # See: https://github.com/guard/guard#notification
5
+ notification :off
6
+
7
+ guard 'rspec' do
8
+ watch %r{^spec/.+_spec\.rb$}
9
+ watch %r{lib/} do 'spec' end
10
+ end
11
+
12
+ # vim:ft=ruby
data/README.rdoc CHANGED
@@ -1,8 +1,9 @@
1
- = enhanced_date_select
1
+ = enhanced_date_select {<img src="https://travis-ci.org/bogdanRada/enhanced_date_select.png" />}[https://travis-ci.org/bogdanRada/enhanced_date_select] {<img src="https://badge.fury.io/rb/enhanced_date_select.png" alt="Gem Version" />}[http://badge.fury.io/rb/enhanced_date_select]
2
2
 
3
3
  = Overview
4
4
 
5
5
 
6
+
6
7
  An enhanced date select form helper that allows you to use the full {HTML spec}[http://www.w3.org/TR/html5] for date_select helper methods from rails. This is more than what you get with the
7
8
  default Rails date select helper because it can allow values to persist in dropdowns even if you submit a invalid value.
8
9
 
@@ -67,7 +68,7 @@ To test, do the following:
67
68
 
68
69
  1. cd to the gem root.
69
70
  2. bundle install
70
- 3. bundle exec rspec spec
71
+ 3. bundle exec rake
71
72
 
72
73
  = Contributions
73
74
 
data/Rakefile CHANGED
@@ -1,7 +1,11 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'rubygems'
4
- require 'bundler'
4
+ require 'bundler/setup'
5
+ require 'bundler/gem_tasks'
6
+ require 'appraisal'
7
+ require 'rspec/core/rake_task'
8
+
5
9
  begin
6
10
  Bundler.setup(:default, :development)
7
11
  rescue Bundler::BundlerError => e
@@ -11,23 +15,17 @@ rescue Bundler::BundlerError => e
11
15
  end
12
16
  require 'rake'
13
17
 
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "enhanced_date_select"
18
- gem.homepage = "http://github.com/bogdanRada/enhanced_date_select"
19
- gem.license = "MIT"
20
- gem.summary = %Q{"enhanced date select"}
21
- gem.description = %Q{"Enhances ActionView with a customizable date select form helper where any valid HTML attribute can be applied."}
22
- gem.email = "raoul_ice@yahoo.com"
23
- gem.authors = ["bogdanRada"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
27
18
 
28
19
 
20
+ RSpec::Core::RakeTask.new(:spec)
29
21
 
30
- task :default => :test
22
+ desc "Default: run the unit tests."
23
+ task :default => [:all]
24
+
25
+ desc 'Test the plugin under all supported Rails versions.'
26
+ task :all => ["appraisal:install"] do |t|
27
+ exec('rake appraisal spec')
28
+ end
31
29
 
32
30
  require 'rdoc/task'
33
31
  Rake::RDocTask.new do |rdoc|
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.3
@@ -1,97 +1,38 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
1
 
6
2
  Gem::Specification.new do |s|
7
3
  s.name = "enhanced_date_select"
8
- s.version = "1.0.0"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["bogdanRada"]
12
- s.date = "2013-07-29"
4
+ s.version = File.exist?('VERSION') ? File.read('VERSION') : ""
5
+ s.platform = Gem::Platform::RUBY
6
+ s.summary = "\"enhanced date select\""
7
+ s.email = "raoul_ice@yahoo.com"
8
+ s.homepage = "http://github.com/bogdanRada/enhanced_date_select"
13
9
  s.description = "\"Enhances ActionView with a customizable date select form helper where any valid HTML attribute can be applied.\""
14
- s.email = "raoul_ice@yahoo.com"
10
+ s.authors = ["bogdanRada"]
11
+
12
+ s.date = "2013-12-05"
13
+
15
14
  s.extra_rdoc_files = [
16
15
  "LICENSE.txt",
17
16
  "README.rdoc"
18
17
  ]
19
- s.files = [
20
- ".rbenv-version",
21
- ".rspec",
22
- ".rvmrc",
23
- "Gemfile",
24
- "LICENSE.txt",
25
- "README.rdoc",
26
- "Rakefile",
27
- "VERSION",
28
- "enhanced_date_select-0.3.0.gem",
29
- "enhanced_date_select.gemspec",
30
- "lib/enhanced_date_select.rb",
31
- "spec/enhanced_date_select_spec.rb",
32
- "spec/spec_helper.rb"
33
- ]
34
- s.homepage = "http://github.com/bogdanRada/enhanced_date_select"
35
18
  s.licenses = ["MIT"]
19
+ s.files = `git ls-files`.split("\n")
20
+ s.test_files = s.files.grep(/^(spec)/)
36
21
  s.require_paths = ["lib"]
37
- s.rubygems_version = "1.8.25"
38
- s.summary = "\"enhanced date select\""
39
-
40
- if s.respond_to? :specification_version then
41
- s.specification_version = 3
42
-
43
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
- s.add_development_dependency(%q<rspec-rails>, [">= 0"])
45
- s.add_development_dependency(%q<capybara>, [">= 0"])
46
- s.add_development_dependency(%q<spork>, ["> 0.9.0.rc"])
47
- s.add_development_dependency(%q<active_reload>, [">= 0"])
48
- s.add_development_dependency(%q<shoulda>, [">= 0"])
49
- s.add_development_dependency(%q<rdoc>, [">= 0"])
50
- s.add_development_dependency(%q<rspec>, [">= 0"])
51
- s.add_development_dependency(%q<rake>, [">= 0"])
52
- s.add_development_dependency(%q<rspec-mocks>, [">= 0"])
53
- s.add_development_dependency(%q<bundler>, [">= 0"])
54
- s.add_development_dependency(%q<jeweler>, [">= 0"])
55
- s.add_development_dependency(%q<simplecov>, [">= 0"])
56
- s.add_development_dependency(%q<simplecov>, [">= 0"])
57
- s.add_development_dependency(%q<simplecov-rcov>, [">= 0"])
58
- s.add_development_dependency(%q<webmock>, [">= 0"])
59
- s.add_development_dependency(%q<mocha>, [">= 0"])
60
- else
61
- s.add_dependency(%q<rspec-rails>, [">= 0"])
62
- s.add_dependency(%q<capybara>, [">= 0"])
63
- s.add_dependency(%q<spork>, ["> 0.9.0.rc"])
64
- s.add_dependency(%q<active_reload>, [">= 0"])
65
- s.add_dependency(%q<shoulda>, [">= 0"])
66
- s.add_dependency(%q<rdoc>, [">= 0"])
67
- s.add_dependency(%q<rspec>, [">= 0"])
68
- s.add_dependency(%q<rake>, [">= 0"])
69
- s.add_dependency(%q<rspec-mocks>, [">= 0"])
70
- s.add_dependency(%q<bundler>, [">= 0"])
71
- s.add_dependency(%q<jeweler>, [">= 0"])
72
- s.add_dependency(%q<simplecov>, [">= 0"])
73
- s.add_dependency(%q<simplecov>, [">= 0"])
74
- s.add_dependency(%q<simplecov-rcov>, [">= 0"])
75
- s.add_dependency(%q<webmock>, [">= 0"])
76
- s.add_dependency(%q<mocha>, [">= 0"])
77
- end
78
- else
79
- s.add_dependency(%q<rspec-rails>, [">= 0"])
80
- s.add_dependency(%q<capybara>, [">= 0"])
81
- s.add_dependency(%q<spork>, ["> 0.9.0.rc"])
82
- s.add_dependency(%q<active_reload>, [">= 0"])
83
- s.add_dependency(%q<shoulda>, [">= 0"])
84
- s.add_dependency(%q<rdoc>, [">= 0"])
85
- s.add_dependency(%q<rspec>, [">= 0"])
86
- s.add_dependency(%q<rake>, [">= 0"])
87
- s.add_dependency(%q<rspec-mocks>, [">= 0"])
88
- s.add_dependency(%q<bundler>, [">= 0"])
89
- s.add_dependency(%q<jeweler>, [">= 0"])
90
- s.add_dependency(%q<simplecov>, [">= 0"])
91
- s.add_dependency(%q<simplecov>, [">= 0"])
92
- s.add_dependency(%q<simplecov-rcov>, [">= 0"])
93
- s.add_dependency(%q<webmock>, [">= 0"])
94
- s.add_dependency(%q<mocha>, [">= 0"])
95
- end
22
+ s.add_development_dependency(%q<rspec-rails>, [">= 0"])
23
+ s.add_development_dependency(%q<guard>, [">= 0"])
24
+ s.add_development_dependency(%q<guard-rspec>, [">= 0"])
25
+ s.add_development_dependency(%q<rb-fsevent>, [">= 0"])
26
+ s.add_development_dependency(%q<appraisal>, [">= 0"])
27
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
28
+ s.add_development_dependency(%q<rdoc>, [">= 0"])
29
+ s.add_development_dependency(%q<rspec>, [">= 0"])
30
+ s.add_development_dependency(%q<rake>, [">= 0"])
31
+ s.add_development_dependency(%q<rspec-mocks>, [">= 0"])
32
+ s.add_development_dependency(%q<bundler>, [">= 0"])
33
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
34
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
35
+ s.add_development_dependency(%q<simplecov-rcov>, [">= 0"])
36
+ s.add_development_dependency(%q<simplecov-summary>, [">= 0"])
37
+ s.add_development_dependency(%q<mocha>, [">= 0"])
96
38
  end
97
-
@@ -4,21 +4,27 @@ describe "Enhanced DateSelect" do
4
4
  include ActionView::Helpers::FormOptionsHelper
5
5
  let(:student) {Object.new}
6
6
  let(:form_builder){ ActionView::Helpers::FormBuilder.new(:birthday, student, self, {}, nil)}
7
-
7
+
8
8
  let(:instance_tag) { ActionView::Helpers::InstanceTag.new(student.class, 'birthday', self, student )}
9
+ let(:rails4_instance_tag) {ActionView::Helpers::Tags::Base.new(student.class, 'birthday', self, student ) }
9
10
  let(:datetime){{:year => 2001, :month => 2, :day => 3}}
10
11
  let(:html_options){{}}
11
12
  let(:options) {{ :discard_day =>true,
12
13
  :value => {:year => 2001, :month => 2, :day => 3},
13
14
  :order => [:day, :month, :year],
14
- :start_year => Time.now.year,
15
+ :start_year => 2013,
15
16
  :end_year => 1940 }}
16
17
  let(:expected_result) {"<input id=\"birthday_birthday_3i\" name=\"birthday[birthday(3i)]\" type=\"hidden\" value=\"1\" />\n<select id=\"birthday_birthday_2i\" name=\"birthday[birthday(2i)]\">\n<option value=\"1\">January</option>\n<option selected=\"selected\" value=\"2\">February</option>\n<option value=\"3\">March</option>\n<option value=\"4\">April</option>\n<option value=\"5\">May</option>\n<option value=\"6\">June</option>\n<option value=\"7\">July</option>\n<option value=\"8\">August</option>\n<option value=\"9\">September</option>\n<option value=\"10\">October</option>\n<option value=\"11\">November</option>\n<option value=\"12\">December</option>\n</select>\n<select id=\"birthday_birthday_1i\" name=\"birthday[birthday(1i)]\">\n<option value=\"2012\">2012</option>\n<option value=\"2011\">2011</option>\n<option value=\"2010\">2010</option>\n<option value=\"2009\">2009</option>\n<option value=\"2008\">2008</option>\n<option value=\"2007\">2007</option>\n<option value=\"2006\">2006</option>\n<option value=\"2005\">2005</option>\n<option value=\"2004\">2004</option>\n<option value=\"2003\">2003</option>\n<option value=\"2002\">2002</option>\n<option selected=\"selected\" value=\"2001\">2001</option>\n<option value=\"2000\">2000</option>\n<option value=\"1999\">1999</option>\n<option value=\"1998\">1998</option>\n<option value=\"1997\">1997</option>\n<option value=\"1996\">1996</option>\n<option value=\"1995\">1995</option>\n<option value=\"1994\">1994</option>\n<option value=\"1993\">1993</option>\n<option value=\"1992\">1992</option>\n<option value=\"1991\">1991</option>\n<option value=\"1990\">1990</option>\n<option value=\"1989\">1989</option>\n<option value=\"1988\">1988</option>\n<option value=\"1987\">1987</option>\n<option value=\"1986\">1986</option>\n<option value=\"1985\">1985</option>\n<option value=\"1984\">1984</option>\n<option value=\"1983\">1983</option>\n<option value=\"1982\">1982</option>\n<option value=\"1981\">1981</option>\n<option value=\"1980\">1980</option>\n<option value=\"1979\">1979</option>\n<option value=\"1978\">1978</option>\n<option value=\"1977\">1977</option>\n<option value=\"1976\">1976</option>\n<option value=\"1975\">1975</option>\n<option value=\"1974\">1974</option>\n<option value=\"1973\">1973</option>\n<option value=\"1972\">1972</option>\n<option value=\"1971\">1971</option>\n<option value=\"1970\">1970</option>\n<option value=\"1969\">1969</option>\n<option value=\"1968\">1968</option>\n<option value=\"1967\">1967</option>\n<option value=\"1966\">1966</option>\n<option value=\"1965\">1965</option>\n<option value=\"1964\">1964</option>\n<option value=\"1963\">1963</option>\n<option value=\"1962\">1962</option>\n<option value=\"1961\">1961</option>\n<option value=\"1960\">1960</option>\n<option value=\"1959\">1959</option>\n<option value=\"1958\">1958</option>\n<option value=\"1957\">1957</option>\n<option value=\"1956\">1956</option>\n<option value=\"1955\">1955</option>\n<option value=\"1954\">1954</option>\n<option value=\"1953\">1953</option>\n<option value=\"1952\">1952</option>\n<option value=\"1951\">1951</option>\n<option value=\"1950\">1950</option>\n<option value=\"1949\">1949</option>\n<option value=\"1948\">1948</option>\n<option value=\"1947\">1947</option>\n<option value=\"1946\">1946</option>\n<option value=\"1945\">1945</option>\n<option value=\"1944\">1944</option>\n<option value=\"1943\">1943</option>\n<option value=\"1942\">1942</option>\n<option value=\"1941\">1941</option>\n<option value=\"1940\">1940</option>\n</select>\n"}
17
18
  before(:each) do
18
- @instance_tag =ActionView::Helpers::InstanceTag.new(student.class, 'birthday', self, student )
19
+ student.stub(:delete).and_return(student)
20
+ if ( Rails::VERSION::MAJOR.to_i <= 3 )
21
+ @instance_tag = instance_tag
22
+ else
23
+ @instance_tag = rails4_instance_tag
24
+ end
19
25
  @enhanced_datetime_selector = ActionView::Helpers::EnhancedDateTimeSelector.new(datetime, options, {})
20
26
  end
21
-
27
+
22
28
 
23
29
  describe ".enhanced_date_select" do
24
30
  it "constructs 3 selectboxes" do
@@ -28,59 +34,92 @@ describe "Enhanced DateSelect" do
28
34
  :year => "please select one" },
29
35
  :value => {:year => 2001, :month => 2, :day => 3},
30
36
  :order => [:day, :month, :year],
31
- :start_year => Time.now.year,
32
- :end_year => 1940 } ).should == "<select id=\"birthday_birthday_3i\" name=\"birthday[birthday(3i)]\">\n<option value=\"\">please select one</option>\n<option value=\"1\">1</option>\n<option value=\"2\">2</option>\n<option selected=\"selected\" value=\"3\">3</option>\n<option value=\"4\">4</option>\n<option value=\"5\">5</option>\n<option value=\"6\">6</option>\n<option value=\"7\">7</option>\n<option value=\"8\">8</option>\n<option value=\"9\">9</option>\n<option value=\"10\">10</option>\n<option value=\"11\">11</option>\n<option value=\"12\">12</option>\n<option value=\"13\">13</option>\n<option value=\"14\">14</option>\n<option value=\"15\">15</option>\n<option value=\"16\">16</option>\n<option value=\"17\">17</option>\n<option value=\"18\">18</option>\n<option value=\"19\">19</option>\n<option value=\"20\">20</option>\n<option value=\"21\">21</option>\n<option value=\"22\">22</option>\n<option value=\"23\">23</option>\n<option value=\"24\">24</option>\n<option value=\"25\">25</option>\n<option value=\"26\">26</option>\n<option value=\"27\">27</option>\n<option value=\"28\">28</option>\n<option value=\"29\">29</option>\n<option value=\"30\">30</option>\n<option value=\"31\">31</option>\n</select>\n<select id=\"birthday_birthday_2i\" name=\"birthday[birthday(2i)]\">\n<option value=\"\">please select one</option>\n<option value=\"1\">January</option>\n<option selected=\"selected\" value=\"2\">February</option>\n<option value=\"3\">March</option>\n<option value=\"4\">April</option>\n<option value=\"5\">May</option>\n<option value=\"6\">June</option>\n<option value=\"7\">July</option>\n<option value=\"8\">August</option>\n<option value=\"9\">September</option>\n<option value=\"10\">October</option>\n<option value=\"11\">November</option>\n<option value=\"12\">December</option>\n</select>\n<select id=\"birthday_birthday_1i\" name=\"birthday[birthday(1i)]\">\n<option value=\"\">please select one</option>\n<option value=\"2012\">2012</option>\n<option value=\"2011\">2011</option>\n<option value=\"2010\">2010</option>\n<option value=\"2009\">2009</option>\n<option value=\"2008\">2008</option>\n<option value=\"2007\">2007</option>\n<option value=\"2006\">2006</option>\n<option value=\"2005\">2005</option>\n<option value=\"2004\">2004</option>\n<option value=\"2003\">2003</option>\n<option value=\"2002\">2002</option>\n<option selected=\"selected\" value=\"2001\">2001</option>\n<option value=\"2000\">2000</option>\n<option value=\"1999\">1999</option>\n<option value=\"1998\">1998</option>\n<option value=\"1997\">1997</option>\n<option value=\"1996\">1996</option>\n<option value=\"1995\">1995</option>\n<option value=\"1994\">1994</option>\n<option value=\"1993\">1993</option>\n<option value=\"1992\">1992</option>\n<option value=\"1991\">1991</option>\n<option value=\"1990\">1990</option>\n<option value=\"1989\">1989</option>\n<option value=\"1988\">1988</option>\n<option value=\"1987\">1987</option>\n<option value=\"1986\">1986</option>\n<option value=\"1985\">1985</option>\n<option value=\"1984\">1984</option>\n<option value=\"1983\">1983</option>\n<option value=\"1982\">1982</option>\n<option value=\"1981\">1981</option>\n<option value=\"1980\">1980</option>\n<option value=\"1979\">1979</option>\n<option value=\"1978\">1978</option>\n<option value=\"1977\">1977</option>\n<option value=\"1976\">1976</option>\n<option value=\"1975\">1975</option>\n<option value=\"1974\">1974</option>\n<option value=\"1973\">1973</option>\n<option value=\"1972\">1972</option>\n<option value=\"1971\">1971</option>\n<option value=\"1970\">1970</option>\n<option value=\"1969\">1969</option>\n<option value=\"1968\">1968</option>\n<option value=\"1967\">1967</option>\n<option value=\"1966\">1966</option>\n<option value=\"1965\">1965</option>\n<option value=\"1964\">1964</option>\n<option value=\"1963\">1963</option>\n<option value=\"1962\">1962</option>\n<option value=\"1961\">1961</option>\n<option value=\"1960\">1960</option>\n<option value=\"1959\">1959</option>\n<option value=\"1958\">1958</option>\n<option value=\"1957\">1957</option>\n<option value=\"1956\">1956</option>\n<option value=\"1955\">1955</option>\n<option value=\"1954\">1954</option>\n<option value=\"1953\">1953</option>\n<option value=\"1952\">1952</option>\n<option value=\"1951\">1951</option>\n<option value=\"1950\">1950</option>\n<option value=\"1949\">1949</option>\n<option value=\"1948\">1948</option>\n<option value=\"1947\">1947</option>\n<option value=\"1946\">1946</option>\n<option value=\"1945\">1945</option>\n<option value=\"1944\">1944</option>\n<option value=\"1943\">1943</option>\n<option value=\"1942\">1942</option>\n<option value=\"1941\">1941</option>\n<option value=\"1940\">1940</option>\n</select>\n"
37
+ :start_year => 2013,
38
+ :end_year => 1940 } ).should == "<select id=\"birthday_birthday_3i\" name=\"birthday[birthday(3i)]\">\n<option value=\"\">please select one</option>\n<option value=\"1\">1</option>\n<option value=\"2\">2</option>\n<option selected=\"selected\" value=\"3\">3</option>\n<option value=\"4\">4</option>\n<option value=\"5\">5</option>\n<option value=\"6\">6</option>\n<option value=\"7\">7</option>\n<option value=\"8\">8</option>\n<option value=\"9\">9</option>\n<option value=\"10\">10</option>\n<option value=\"11\">11</option>\n<option value=\"12\">12</option>\n<option value=\"13\">13</option>\n<option value=\"14\">14</option>\n<option value=\"15\">15</option>\n<option value=\"16\">16</option>\n<option value=\"17\">17</option>\n<option value=\"18\">18</option>\n<option value=\"19\">19</option>\n<option value=\"20\">20</option>\n<option value=\"21\">21</option>\n<option value=\"22\">22</option>\n<option value=\"23\">23</option>\n<option value=\"24\">24</option>\n<option value=\"25\">25</option>\n<option value=\"26\">26</option>\n<option value=\"27\">27</option>\n<option value=\"28\">28</option>\n<option value=\"29\">29</option>\n<option value=\"30\">30</option>\n<option value=\"31\">31</option>\n</select>\n<select id=\"birthday_birthday_2i\" name=\"birthday[birthday(2i)]\">\n<option value=\"\">please select one</option>\n<option value=\"1\">January</option>\n<option selected=\"selected\" value=\"2\">February</option>\n<option value=\"3\">March</option>\n<option value=\"4\">April</option>\n<option value=\"5\">May</option>\n<option value=\"6\">June</option>\n<option value=\"7\">July</option>\n<option value=\"8\">August</option>\n<option value=\"9\">September</option>\n<option value=\"10\">October</option>\n<option value=\"11\">November</option>\n<option value=\"12\">December</option>\n</select>\n<select id=\"birthday_birthday_1i\" name=\"birthday[birthday(1i)]\">\n<option value=\"\">please select one</option>\n<option value=\"2013\">2013</option>\n<option value=\"2012\">2012</option>\n<option value=\"2011\">2011</option>\n<option value=\"2010\">2010</option>\n<option value=\"2009\">2009</option>\n<option value=\"2008\">2008</option>\n<option value=\"2007\">2007</option>\n<option value=\"2006\">2006</option>\n<option value=\"2005\">2005</option>\n<option value=\"2004\">2004</option>\n<option value=\"2003\">2003</option>\n<option value=\"2002\">2002</option>\n<option selected=\"selected\" value=\"2001\">2001</option>\n<option value=\"2000\">2000</option>\n<option value=\"1999\">1999</option>\n<option value=\"1998\">1998</option>\n<option value=\"1997\">1997</option>\n<option value=\"1996\">1996</option>\n<option value=\"1995\">1995</option>\n<option value=\"1994\">1994</option>\n<option value=\"1993\">1993</option>\n<option value=\"1992\">1992</option>\n<option value=\"1991\">1991</option>\n<option value=\"1990\">1990</option>\n<option value=\"1989\">1989</option>\n<option value=\"1988\">1988</option>\n<option value=\"1987\">1987</option>\n<option value=\"1986\">1986</option>\n<option value=\"1985\">1985</option>\n<option value=\"1984\">1984</option>\n<option value=\"1983\">1983</option>\n<option value=\"1982\">1982</option>\n<option value=\"1981\">1981</option>\n<option value=\"1980\">1980</option>\n<option value=\"1979\">1979</option>\n<option value=\"1978\">1978</option>\n<option value=\"1977\">1977</option>\n<option value=\"1976\">1976</option>\n<option value=\"1975\">1975</option>\n<option value=\"1974\">1974</option>\n<option value=\"1973\">1973</option>\n<option value=\"1972\">1972</option>\n<option value=\"1971\">1971</option>\n<option value=\"1970\">1970</option>\n<option value=\"1969\">1969</option>\n<option value=\"1968\">1968</option>\n<option value=\"1967\">1967</option>\n<option value=\"1966\">1966</option>\n<option value=\"1965\">1965</option>\n<option value=\"1964\">1964</option>\n<option value=\"1963\">1963</option>\n<option value=\"1962\">1962</option>\n<option value=\"1961\">1961</option>\n<option value=\"1960\">1960</option>\n<option value=\"1959\">1959</option>\n<option value=\"1958\">1958</option>\n<option value=\"1957\">1957</option>\n<option value=\"1956\">1956</option>\n<option value=\"1955\">1955</option>\n<option value=\"1954\">1954</option>\n<option value=\"1953\">1953</option>\n<option value=\"1952\">1952</option>\n<option value=\"1951\">1951</option>\n<option value=\"1950\">1950</option>\n<option value=\"1949\">1949</option>\n<option value=\"1948\">1948</option>\n<option value=\"1947\">1947</option>\n<option value=\"1946\">1946</option>\n<option value=\"1945\">1945</option>\n<option value=\"1944\">1944</option>\n<option value=\"1943\">1943</option>\n<option value=\"1942\">1942</option>\n<option value=\"1941\">1941</option>\n<option value=\"1940\">1940</option>\n</select>\n"
33
39
  end
34
-
40
+
35
41
  it "construct withoud the day dropdown" do
36
42
  form_builder.enhanced_date_select(:birthday,{ :discard_day =>true,
37
43
  :value => {:year => 2001, :month => 2, :day => 3},
38
44
  :order => [:day, :month, :year],
39
- :start_year => Time.now.year,
40
- :end_year => 1940 } ).should =="<input id=\"birthday_birthday_3i\" name=\"birthday[birthday(3i)]\" type=\"hidden\" value=\"1\" />\n<select id=\"birthday_birthday_2i\" name=\"birthday[birthday(2i)]\">\n<option value=\"1\">January</option>\n<option selected=\"selected\" value=\"2\">February</option>\n<option value=\"3\">March</option>\n<option value=\"4\">April</option>\n<option value=\"5\">May</option>\n<option value=\"6\">June</option>\n<option value=\"7\">July</option>\n<option value=\"8\">August</option>\n<option value=\"9\">September</option>\n<option value=\"10\">October</option>\n<option value=\"11\">November</option>\n<option value=\"12\">December</option>\n</select>\n<select id=\"birthday_birthday_1i\" name=\"birthday[birthday(1i)]\">\n<option value=\"2012\">2012</option>\n<option value=\"2011\">2011</option>\n<option value=\"2010\">2010</option>\n<option value=\"2009\">2009</option>\n<option value=\"2008\">2008</option>\n<option value=\"2007\">2007</option>\n<option value=\"2006\">2006</option>\n<option value=\"2005\">2005</option>\n<option value=\"2004\">2004</option>\n<option value=\"2003\">2003</option>\n<option value=\"2002\">2002</option>\n<option selected=\"selected\" value=\"2001\">2001</option>\n<option value=\"2000\">2000</option>\n<option value=\"1999\">1999</option>\n<option value=\"1998\">1998</option>\n<option value=\"1997\">1997</option>\n<option value=\"1996\">1996</option>\n<option value=\"1995\">1995</option>\n<option value=\"1994\">1994</option>\n<option value=\"1993\">1993</option>\n<option value=\"1992\">1992</option>\n<option value=\"1991\">1991</option>\n<option value=\"1990\">1990</option>\n<option value=\"1989\">1989</option>\n<option value=\"1988\">1988</option>\n<option value=\"1987\">1987</option>\n<option value=\"1986\">1986</option>\n<option value=\"1985\">1985</option>\n<option value=\"1984\">1984</option>\n<option value=\"1983\">1983</option>\n<option value=\"1982\">1982</option>\n<option value=\"1981\">1981</option>\n<option value=\"1980\">1980</option>\n<option value=\"1979\">1979</option>\n<option value=\"1978\">1978</option>\n<option value=\"1977\">1977</option>\n<option value=\"1976\">1976</option>\n<option value=\"1975\">1975</option>\n<option value=\"1974\">1974</option>\n<option value=\"1973\">1973</option>\n<option value=\"1972\">1972</option>\n<option value=\"1971\">1971</option>\n<option value=\"1970\">1970</option>\n<option value=\"1969\">1969</option>\n<option value=\"1968\">1968</option>\n<option value=\"1967\">1967</option>\n<option value=\"1966\">1966</option>\n<option value=\"1965\">1965</option>\n<option value=\"1964\">1964</option>\n<option value=\"1963\">1963</option>\n<option value=\"1962\">1962</option>\n<option value=\"1961\">1961</option>\n<option value=\"1960\">1960</option>\n<option value=\"1959\">1959</option>\n<option value=\"1958\">1958</option>\n<option value=\"1957\">1957</option>\n<option value=\"1956\">1956</option>\n<option value=\"1955\">1955</option>\n<option value=\"1954\">1954</option>\n<option value=\"1953\">1953</option>\n<option value=\"1952\">1952</option>\n<option value=\"1951\">1951</option>\n<option value=\"1950\">1950</option>\n<option value=\"1949\">1949</option>\n<option value=\"1948\">1948</option>\n<option value=\"1947\">1947</option>\n<option value=\"1946\">1946</option>\n<option value=\"1945\">1945</option>\n<option value=\"1944\">1944</option>\n<option value=\"1943\">1943</option>\n<option value=\"1942\">1942</option>\n<option value=\"1941\">1941</option>\n<option value=\"1940\">1940</option>\n</select>\n"
45
+ :start_year => 2013,
46
+ :end_year => 1940 } ).should =="<input id=\"birthday_birthday_3i\" name=\"birthday[birthday(3i)]\" type=\"hidden\" value=\"1\" />\n<select id=\"birthday_birthday_2i\" name=\"birthday[birthday(2i)]\">\n<option value=\"1\">January</option>\n<option selected=\"selected\" value=\"2\">February</option>\n<option value=\"3\">March</option>\n<option value=\"4\">April</option>\n<option value=\"5\">May</option>\n<option value=\"6\">June</option>\n<option value=\"7\">July</option>\n<option value=\"8\">August</option>\n<option value=\"9\">September</option>\n<option value=\"10\">October</option>\n<option value=\"11\">November</option>\n<option value=\"12\">December</option>\n</select>\n<select id=\"birthday_birthday_1i\" name=\"birthday[birthday(1i)]\">\n<option value=\"2013\">2013</option>\n<option value=\"2012\">2012</option>\n<option value=\"2011\">2011</option>\n<option value=\"2010\">2010</option>\n<option value=\"2009\">2009</option>\n<option value=\"2008\">2008</option>\n<option value=\"2007\">2007</option>\n<option value=\"2006\">2006</option>\n<option value=\"2005\">2005</option>\n<option value=\"2004\">2004</option>\n<option value=\"2003\">2003</option>\n<option value=\"2002\">2002</option>\n<option selected=\"selected\" value=\"2001\">2001</option>\n<option value=\"2000\">2000</option>\n<option value=\"1999\">1999</option>\n<option value=\"1998\">1998</option>\n<option value=\"1997\">1997</option>\n<option value=\"1996\">1996</option>\n<option value=\"1995\">1995</option>\n<option value=\"1994\">1994</option>\n<option value=\"1993\">1993</option>\n<option value=\"1992\">1992</option>\n<option value=\"1991\">1991</option>\n<option value=\"1990\">1990</option>\n<option value=\"1989\">1989</option>\n<option value=\"1988\">1988</option>\n<option value=\"1987\">1987</option>\n<option value=\"1986\">1986</option>\n<option value=\"1985\">1985</option>\n<option value=\"1984\">1984</option>\n<option value=\"1983\">1983</option>\n<option value=\"1982\">1982</option>\n<option value=\"1981\">1981</option>\n<option value=\"1980\">1980</option>\n<option value=\"1979\">1979</option>\n<option value=\"1978\">1978</option>\n<option value=\"1977\">1977</option>\n<option value=\"1976\">1976</option>\n<option value=\"1975\">1975</option>\n<option value=\"1974\">1974</option>\n<option value=\"1973\">1973</option>\n<option value=\"1972\">1972</option>\n<option value=\"1971\">1971</option>\n<option value=\"1970\">1970</option>\n<option value=\"1969\">1969</option>\n<option value=\"1968\">1968</option>\n<option value=\"1967\">1967</option>\n<option value=\"1966\">1966</option>\n<option value=\"1965\">1965</option>\n<option value=\"1964\">1964</option>\n<option value=\"1963\">1963</option>\n<option value=\"1962\">1962</option>\n<option value=\"1961\">1961</option>\n<option value=\"1960\">1960</option>\n<option value=\"1959\">1959</option>\n<option value=\"1958\">1958</option>\n<option value=\"1957\">1957</option>\n<option value=\"1956\">1956</option>\n<option value=\"1955\">1955</option>\n<option value=\"1954\">1954</option>\n<option value=\"1953\">1953</option>\n<option value=\"1952\">1952</option>\n<option value=\"1951\">1951</option>\n<option value=\"1950\">1950</option>\n<option value=\"1949\">1949</option>\n<option value=\"1948\">1948</option>\n<option value=\"1947\">1947</option>\n<option value=\"1946\">1946</option>\n<option value=\"1945\">1945</option>\n<option value=\"1944\">1944</option>\n<option value=\"1943\">1943</option>\n<option value=\"1942\">1942</option>\n<option value=\"1941\">1941</option>\n<option value=\"1940\">1940</option>\n</select>\n"
41
47
  end
42
48
  end
43
-
44
-
49
+
50
+
45
51
  describe ActionView::Helpers::FormOptionsHelper do
46
52
 
47
-
53
+
48
54
  before(:each) do
55
+ if ( Rails::VERSION::MAJOR.to_i <= 3 )
49
56
  ActionView::Helpers::InstanceTag.stub(:new).and_return(@instance_tag)
57
+ @class = ActionView::Helpers::InstanceTag
58
+ else
59
+ ActionView::Helpers::Tags::Base.stub(:new).and_return(@instance_tag)
60
+ @class = ActionView::Helpers::Tags::Base
61
+ end
50
62
  end
51
-
63
+
52
64
  it "should call the instance tag with argument" do
53
- ActionView::Helpers::InstanceTag.should_receive(:new).with(student, 'birthday', self, options.delete(:object)).and_return(@instance_tag)
65
+ if ( Rails::VERSION::MAJOR.to_i <= 3 )
66
+ @class.should_receive(:new).with(student, 'birthday', self, options.delete(:object)).and_return(@instance_tag)
67
+ else
68
+ @class.should_receive(:new).with(student, 'birthday', self, options).and_return(@instance_tag)
69
+ end
54
70
  enhanced_date_select(student,'birthday',options )
55
71
  end
56
72
  it "should call the tp date_select_tag method" do
57
73
  @instance_tag.should_receive(:to_enhanced_date_select_tag).with(options, {})
58
74
  enhanced_date_select(student,'birthday',options )
59
75
  end
60
-
76
+
61
77
  end
62
-
63
-
78
+
79
+ if ( Rails::VERSION::MAJOR.to_i <= 3 )
64
80
  describe ActionView::Helpers::InstanceTag do
65
81
 
66
82
  before(:each) do
67
83
  @instance_tag.stub(:enhanced_datetime_selector).and_return(@enhanced_datetime_selector)
68
84
  end
69
-
70
-
85
+
86
+
87
+ it "should call the datetimeselector" do
88
+ @instance_tag.should_receive(:enhanced_datetime_selector).with(options, html_options).and_return(@enhanced_datetime_selector)
89
+ @instance_tag.to_enhanced_date_select_tag(options, html_options)
90
+ end
91
+
92
+ it "should call the datetimeselector" do
93
+ @enhanced_datetime_selector.should_receive(:enhanced_select_date).and_return(expected_result)
94
+ @instance_tag.to_enhanced_date_select_tag(options, html_options)
95
+ end
96
+
97
+
98
+
99
+ end
100
+
101
+ else
102
+ describe ActionView::Helpers::Tags::Base do
103
+
104
+ before(:each) do
105
+ @instance_tag.stub(:enhanced_datetime_selector).and_return(@enhanced_datetime_selector)
106
+ end
107
+
108
+
71
109
  it "should call the datetimeselector" do
72
110
  @instance_tag.should_receive(:enhanced_datetime_selector).with(options, html_options).and_return(@enhanced_datetime_selector)
73
111
  @instance_tag.to_enhanced_date_select_tag(options, html_options)
74
112
  end
75
-
113
+
76
114
  it "should call the datetimeselector" do
77
115
  @enhanced_datetime_selector.should_receive(:enhanced_select_date).and_return(expected_result)
78
116
  @instance_tag.to_enhanced_date_select_tag(options, html_options)
79
117
  end
80
-
81
-
82
-
118
+
119
+
120
+
83
121
  end
84
-
122
+
123
+ end
85
124
 
86
125
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enhanced_date_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - bogdanRada
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-29 00:00:00.000000000 Z
11
+ date: 2013-12-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec-rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,15 +20,13 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
- name: capybara
28
+ name: guard
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,31 +34,27 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
- name: spork
42
+ name: guard-rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>'
45
+ - - ! '>='
52
46
  - !ruby/object:Gem::Version
53
- version: 0.9.0.rc
47
+ version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>'
52
+ - - ! '>='
60
53
  - !ruby/object:Gem::Version
61
- version: 0.9.0.rc
54
+ version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
- name: active_reload
56
+ name: rb-fsevent
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,15 +62,13 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
- name: shoulda
70
+ name: appraisal
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ! '>='
84
74
  - !ruby/object:Gem::Version
@@ -86,15 +76,13 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ! '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
- name: rdoc
84
+ name: shoulda
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ! '>='
100
88
  - !ruby/object:Gem::Version
@@ -102,15 +90,13 @@ dependencies:
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ! '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
- name: rspec
98
+ name: rdoc
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ! '>='
116
102
  - !ruby/object:Gem::Version
@@ -118,15 +104,13 @@ dependencies:
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ! '>='
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
- name: rake
112
+ name: rspec
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
115
  - - ! '>='
132
116
  - !ruby/object:Gem::Version
@@ -134,15 +118,13 @@ dependencies:
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
122
  - - ! '>='
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
125
  - !ruby/object:Gem::Dependency
143
- name: rspec-mocks
126
+ name: rake
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
129
  - - ! '>='
148
130
  - !ruby/object:Gem::Version
@@ -150,15 +132,13 @@ dependencies:
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
136
  - - ! '>='
156
137
  - !ruby/object:Gem::Version
157
138
  version: '0'
158
139
  - !ruby/object:Gem::Dependency
159
- name: bundler
140
+ name: rspec-mocks
160
141
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
142
  requirements:
163
143
  - - ! '>='
164
144
  - !ruby/object:Gem::Version
@@ -166,15 +146,13 @@ dependencies:
166
146
  type: :development
167
147
  prerelease: false
168
148
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
149
  requirements:
171
150
  - - ! '>='
172
151
  - !ruby/object:Gem::Version
173
152
  version: '0'
174
153
  - !ruby/object:Gem::Dependency
175
- name: jeweler
154
+ name: bundler
176
155
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
156
  requirements:
179
157
  - - ! '>='
180
158
  - !ruby/object:Gem::Version
@@ -182,7 +160,6 @@ dependencies:
182
160
  type: :development
183
161
  prerelease: false
184
162
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
163
  requirements:
187
164
  - - ! '>='
188
165
  - !ruby/object:Gem::Version
@@ -190,7 +167,6 @@ dependencies:
190
167
  - !ruby/object:Gem::Dependency
191
168
  name: simplecov
192
169
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
170
  requirements:
195
171
  - - ! '>='
196
172
  - !ruby/object:Gem::Version
@@ -198,7 +174,6 @@ dependencies:
198
174
  type: :development
199
175
  prerelease: false
200
176
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
177
  requirements:
203
178
  - - ! '>='
204
179
  - !ruby/object:Gem::Version
@@ -206,7 +181,6 @@ dependencies:
206
181
  - !ruby/object:Gem::Dependency
207
182
  name: simplecov
208
183
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
184
  requirements:
211
185
  - - ! '>='
212
186
  - !ruby/object:Gem::Version
@@ -214,7 +188,6 @@ dependencies:
214
188
  type: :development
215
189
  prerelease: false
216
190
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
191
  requirements:
219
192
  - - ! '>='
220
193
  - !ruby/object:Gem::Version
@@ -222,7 +195,6 @@ dependencies:
222
195
  - !ruby/object:Gem::Dependency
223
196
  name: simplecov-rcov
224
197
  requirement: !ruby/object:Gem::Requirement
225
- none: false
226
198
  requirements:
227
199
  - - ! '>='
228
200
  - !ruby/object:Gem::Version
@@ -230,15 +202,13 @@ dependencies:
230
202
  type: :development
231
203
  prerelease: false
232
204
  version_requirements: !ruby/object:Gem::Requirement
233
- none: false
234
205
  requirements:
235
206
  - - ! '>='
236
207
  - !ruby/object:Gem::Version
237
208
  version: '0'
238
209
  - !ruby/object:Gem::Dependency
239
- name: webmock
210
+ name: simplecov-summary
240
211
  requirement: !ruby/object:Gem::Requirement
241
- none: false
242
212
  requirements:
243
213
  - - ! '>='
244
214
  - !ruby/object:Gem::Version
@@ -246,7 +216,6 @@ dependencies:
246
216
  type: :development
247
217
  prerelease: false
248
218
  version_requirements: !ruby/object:Gem::Requirement
249
- none: false
250
219
  requirements:
251
220
  - - ! '>='
252
221
  - !ruby/object:Gem::Version
@@ -254,7 +223,6 @@ dependencies:
254
223
  - !ruby/object:Gem::Dependency
255
224
  name: mocha
256
225
  requirement: !ruby/object:Gem::Requirement
257
- none: false
258
226
  requirements:
259
227
  - - ! '>='
260
228
  - !ruby/object:Gem::Version
@@ -262,7 +230,6 @@ dependencies:
262
230
  type: :development
263
231
  prerelease: false
264
232
  version_requirements: !ruby/object:Gem::Requirement
265
- none: false
266
233
  requirements:
267
234
  - - ! '>='
268
235
  - !ruby/object:Gem::Version
@@ -276,15 +243,16 @@ extra_rdoc_files:
276
243
  - LICENSE.txt
277
244
  - README.rdoc
278
245
  files:
279
- - .rbenv-version
246
+ - .gitignore
280
247
  - .rspec
281
- - .rvmrc
248
+ - .travis.yml
249
+ - Appraisals
282
250
  - Gemfile
251
+ - Guardfile
283
252
  - LICENSE.txt
284
253
  - README.rdoc
285
254
  - Rakefile
286
255
  - VERSION
287
- - enhanced_date_select-0.3.0.gem
288
256
  - enhanced_date_select.gemspec
289
257
  - lib/enhanced_date_select.rb
290
258
  - spec/enhanced_date_select_spec.rb
@@ -292,29 +260,27 @@ files:
292
260
  homepage: http://github.com/bogdanRada/enhanced_date_select
293
261
  licenses:
294
262
  - MIT
263
+ metadata: {}
295
264
  post_install_message:
296
265
  rdoc_options: []
297
266
  require_paths:
298
267
  - lib
299
268
  required_ruby_version: !ruby/object:Gem::Requirement
300
- none: false
301
269
  requirements:
302
270
  - - ! '>='
303
271
  - !ruby/object:Gem::Version
304
272
  version: '0'
305
- segments:
306
- - 0
307
- hash: 110692367
308
273
  required_rubygems_version: !ruby/object:Gem::Requirement
309
- none: false
310
274
  requirements:
311
275
  - - ! '>='
312
276
  - !ruby/object:Gem::Version
313
277
  version: '0'
314
278
  requirements: []
315
279
  rubyforge_project:
316
- rubygems_version: 1.8.25
280
+ rubygems_version: 2.1.11
317
281
  signing_key:
318
- specification_version: 3
282
+ specification_version: 4
319
283
  summary: ! '"enhanced date select"'
320
- test_files: []
284
+ test_files:
285
+ - spec/enhanced_date_select_spec.rb
286
+ - spec/spec_helper.rb
data/.rbenv-version DELETED
@@ -1 +0,0 @@
1
- 1.9.3-p392
data/.rvmrc DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env bash
2
- export rvm_trust_rvmrcs_flag=1
3
- rvm use 'ruby-1.9.3-p392@enhanced_date_select' --create
Binary file