date_select_separator 0.0.7 → 0.0.8

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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.travis.yml +23 -0
  4. data/Gemfile +3 -0
  5. data/LICENSE +28 -0
  6. data/README.md +3 -4
  7. data/Rakefile +3 -21
  8. data/date_select_separator.gemspec +21 -0
  9. data/gemfiles/Gemfile-rails.4.0 +7 -0
  10. data/gemfiles/Gemfile-rails.4.1 +7 -0
  11. data/gemfiles/Gemfile-rails.4.2 +7 -0
  12. data/gemfiles/Gemfile-rails.5.0 +7 -0
  13. data/lib/date_select_separator/action_view_extension.rb +85 -90
  14. data/lib/date_select_separator/railtie.rb +1 -1
  15. data/lib/date_select_separator/version.rb +1 -1
  16. metadata +61 -114
  17. data/test/date_select_separator_test.rb +0 -4599
  18. data/test/dummy/README.rdoc +0 -28
  19. data/test/dummy/Rakefile +0 -6
  20. data/test/dummy/app/assets/javascripts/application.js +0 -13
  21. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  22. data/test/dummy/app/controllers/application_controller.rb +0 -5
  23. data/test/dummy/app/controllers/samples_controller.rb +0 -58
  24. data/test/dummy/app/helpers/application_helper.rb +0 -2
  25. data/test/dummy/app/models/sample.rb +0 -3
  26. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  27. data/test/dummy/app/views/samples/_form.html.erb +0 -29
  28. data/test/dummy/app/views/samples/edit.html.erb +0 -6
  29. data/test/dummy/app/views/samples/index.html.erb +0 -31
  30. data/test/dummy/app/views/samples/new.html.erb +0 -5
  31. data/test/dummy/app/views/samples/show.html.erb +0 -19
  32. data/test/dummy/bin/bundle +0 -3
  33. data/test/dummy/bin/rails +0 -4
  34. data/test/dummy/bin/rake +0 -4
  35. data/test/dummy/config.ru +0 -4
  36. data/test/dummy/config/application.rb +0 -24
  37. data/test/dummy/config/boot.rb +0 -5
  38. data/test/dummy/config/database.yml +0 -25
  39. data/test/dummy/config/environment.rb +0 -5
  40. data/test/dummy/config/environments/development.rb +0 -31
  41. data/test/dummy/config/environments/production.rb +0 -80
  42. data/test/dummy/config/environments/test.rb +0 -38
  43. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  44. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  45. data/test/dummy/config/initializers/inflections.rb +0 -16
  46. data/test/dummy/config/initializers/mime_types.rb +0 -5
  47. data/test/dummy/config/initializers/secret_token.rb +0 -12
  48. data/test/dummy/config/initializers/session_store.rb +0 -3
  49. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  50. data/test/dummy/config/locales/en.yml +0 -218
  51. data/test/dummy/config/locales/ja.yml +0 -208
  52. data/test/dummy/config/routes.rb +0 -4
  53. data/test/dummy/db/development.sqlite3 +0 -0
  54. data/test/dummy/db/migrate/20140214065227_create_samples.rb +0 -11
  55. data/test/dummy/db/schema.rb +0 -24
  56. data/test/dummy/db/test.sqlite3 +0 -0
  57. data/test/dummy/log/development.log +0 -1549
  58. data/test/dummy/log/test.log +0 -128327
  59. data/test/dummy/public/404.html +0 -58
  60. data/test/dummy/public/422.html +0 -58
  61. data/test/dummy/public/500.html +0 -57
  62. data/test/dummy/public/favicon.ico +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  69. data/test/test_helper.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bddcd7a558ebc3bae63f3cc4090619028af6191
4
- data.tar.gz: 47cb9da0d7a6c261f12e19ded1f50e600cb9cf9e
3
+ metadata.gz: 915040a12abce6f1efd4ff9507e92b02ef1df003
4
+ data.tar.gz: 4937396836ee264487afae6cf47d5b1b1529cde1
5
5
  SHA512:
6
- metadata.gz: 31f38d0a1c2badfb971bbb80fabfb562c324f022646ae22d6c2897b4561bd3f50f9f9568e7421c74335993bef4d84c6f9da0c455f4004295f690380d2f605060
7
- data.tar.gz: 22b7f3a8f57670694df17ef35cf955b6d80820efdc43098c90e29394f55ce0dd5f214d0a24dc38fedd05a1ab28b54a70449f10d306a0e794753cf2b4fe4fad3d
6
+ metadata.gz: 41d71f965a4bf74d3ef03c9cb0906e4c1a0187b876635da5e5b8b99d9e2d0a266b13977fdb3ba4b6fcdb59582c4c36f913a65df9a6c9afd879647f1d58015bf9
7
+ data.tar.gz: 6126ed9b6983ec44b4e4ed9697ffea320148a0e11ff7c45e1b579b80b992a14eca0ba1df8cf4c7b727c8460f54ee4c19c0bcf72e0b4d75ca523d3748b305de5d
@@ -0,0 +1,20 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ gemfiles/*.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
19
+ test/dummy/log/*.log
20
+ test/dummy/db/*.sqlite3
@@ -0,0 +1,23 @@
1
+ language: ruby
2
+
3
+ cache:
4
+ - bundler
5
+
6
+ rvm:
7
+ - 2.2.5
8
+ - 2.3.1
9
+ - ruby-head
10
+
11
+ gemfile:
12
+ - gemfiles/Gemfile-rails.4.0
13
+ - gemfiles/Gemfile-rails.4.1
14
+ - gemfiles/Gemfile-rails.4.2
15
+ - gemfiles/Gemfile-rails.5.0
16
+
17
+ sudo: false
18
+
19
+ before_install: gem install bundler
20
+
21
+ matrix:
22
+ allow_failures:
23
+ - rvm: ruby-head
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ Copyright (c) 2013-2014 rono23
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+
24
+
25
+ ## Ruby on Rails
26
+
27
+ Copyright (c) 2005-2014 David Heinemeier Hansson
28
+ Portions of some codes were copied and modified from Ruby on Rails, released under the MIT license.
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
- # DateSelectSeparator
1
+ # DateSelectSeparator [![Build Status](https://travis-ci.org/rono23/date_select_separator.svg?branch=master)](https://travis-ci.org/rono23/date_select_separator)
2
2
 
3
3
  Add separators to data_select and datetime_select on Ruby on Rails.
4
4
 
5
- ![](https://dl.dropboxusercontent.com/u/177616/images/github/date_select_separator/1.png)
6
- ![](https://dl.dropboxusercontent.com/u/177616/images/github/date_select_separator/2.png)
5
+ ![](https://cloud.githubusercontent.com/assets/26753/14019368/c98d9f7e-f215-11e5-8ad4-0c91297640c3.png)
7
6
 
8
7
  ## Installation
9
8
 
@@ -40,7 +39,7 @@ Add `use_separators: true` option to data_select or datetime_select.
40
39
  <%= f.datetime_select :birthday, time_separator: '', use_separators: { inline: true } %>
41
40
 
42
41
  # Options: html_tag, class_prefix, translations, wrapper_select_tag etc
43
- <%= f.date_select :birthday, use_month_numbers: true, use_separators: { html_tag: :div, class_prefix: 'foo' } %>
42
+ <%= f.date_select :birthday, use_month_numbers: true, use_separators: { html_tag: :div, class_prefix: 'foo_' } %>
44
43
  <%= f.date_select :birthday, use_month_numbers: true, use_separators: { year: 'yy', month: 'mm', day: 'dd' } %>
45
44
  <%= f.date_select :birthday, use_month_numbers: true, use_separators: { wrapper_select_tag: true } %>
46
45
  <%= f.date_select :birthday, use_month_numbers: true, use_separators: { wrapper_select_tag: { html_tag: :span, class_prefix: 'foo_' }} %>
data/Rakefile CHANGED
@@ -1,28 +1,10 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
- end
6
-
7
- require 'rdoc/task'
8
-
9
- RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'DateSelectSeparator'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.rdoc')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
15
- end
16
-
17
- Bundler::GemHelper.install_tasks
18
-
1
+ require 'bundler/gem_tasks'
19
2
  require 'rake/testtask'
20
3
 
21
4
  Rake::TestTask.new(:test) do |t|
22
- t.libs << 'lib'
23
5
  t.libs << 'test'
24
- t.pattern = 'test/**/*_test.rb'
25
- t.verbose = false
6
+ t.libs << 'lib'
7
+ t.test_files = FileList['test/**/*_test.rb']
26
8
  end
27
9
 
28
10
  task default: :test
@@ -0,0 +1,21 @@
1
+ $:.push File.expand_path('../lib', __FILE__)
2
+
3
+ require 'date_select_separator/version'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'date_select_separator'
7
+ s.version = DateSelectSeparator::VERSION
8
+ s.authors = ['rono23']
9
+ s.email = ['rono23@gmail.com']
10
+ s.homepage = 'https://github.com/rono23/date_select_separator'
11
+ s.summary = 'Add separators to data_select on Rails.'
12
+ s.description = 'Add separators to data_select on Rails.'
13
+ s.license = 'MIT'
14
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
15
+
16
+ s.add_development_dependency 'bundler', '~> 1.11'
17
+ s.add_development_dependency 'rake', '~> 10.0'
18
+ s.add_development_dependency 'minitest', '~> 5.0'
19
+ s.add_development_dependency 'rails'
20
+ s.add_development_dependency 'sqlite3'
21
+ end
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'date_select_separator', path: '..'
4
+
5
+ gem 'minitest', '~> 4.7'
6
+ gem 'rails', '~> 4.0.0'
7
+ gem 'sqlite3'
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'date_select_separator', path: '..'
4
+
5
+ gem 'minitest', '~> 5.0'
6
+ gem 'rails', '~> 4.1.0'
7
+ gem 'sqlite3'
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'date_select_separator', path: '..'
4
+
5
+ gem 'minitest', '~> 5.0'
6
+ gem 'rails', '~> 4.2.0'
7
+ gem 'sqlite3'
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'date_select_separator', path: '..'
4
+
5
+ gem 'minitest', '~> 5.0'
6
+ gem 'rails', '~> 5.0.0'
7
+ gem 'sqlite3'
@@ -1,113 +1,108 @@
1
1
  module DateSelectSeparator
2
2
  module ActionViewExtension
3
- extend ActiveSupport::Concern
4
-
5
- included do
6
- def select_month_with_separator
7
- type = :month
8
- separator_options = @options[:use_separators]
9
- select_tag = select_month_without_separator
10
-
11
- if use_separators?(type, separator_options)
12
- unless inline_separator?(separator_options)
13
- select_tag << separator_tag(type, separator_options)
14
- end
15
-
16
- if use_wrapper_select_tag?(separator_options)
17
- select_tag = wrapper_select_tag(select_tag, type, separator_options)
18
- end
3
+
4
+ def select_month
5
+ type = :month
6
+ separator_options = @options[:use_separators]
7
+ select_tag = super
8
+
9
+ if use_separators?(type, separator_options)
10
+ unless inline_separator?(separator_options)
11
+ select_tag << separator_tag(type, separator_options)
19
12
  end
20
13
 
21
- select_tag
14
+ if use_wrapper_select_tag?(separator_options)
15
+ select_tag = wrapper_select_tag(select_tag, type, separator_options)
16
+ end
22
17
  end
23
- alias_method_chain :select_month, :separator
24
18
 
25
- private
26
- def use_separators?(type, separator_options)
27
- discard_type = "discard_#{type}".to_sym
28
- !@options[:use_hidden] && !@options[discard_type] && separator_options
29
- end
19
+ select_tag
20
+ end
30
21
 
31
- def inline_separator?(separator_options)
32
- separator_options.is_a?(Hash) && separator_options[:inline]
33
- end
22
+ private
23
+ def use_separators?(type, separator_options)
24
+ discard_type = "discard_#{type}".to_sym
25
+ !@options[:use_hidden] && !@options[discard_type] && separator_options
26
+ end
34
27
 
35
- def use_wrapper_select_tag?(separator_options)
36
- separator_options.is_a?(Hash) && separator_options[:wrapper_select_tag]
37
- end
28
+ def inline_separator?(separator_options)
29
+ separator_options.is_a?(Hash) && separator_options[:inline]
30
+ end
38
31
 
39
- def wrapper_select_tag(select_tag, type, separator_options)
40
- default_options = { html_tag: :div, class_prefix: 'wrapper_select_' }
41
- wrapper_options = separator_options[:wrapper_select_tag]
42
- wrapper_options = wrapper_options.is_a?(Hash) ? default_options.merge(wrapper_options) : default_options
43
- class_name = wrapper_options[:class_prefix] + "#{type}"
44
- content_tag(wrapper_options[:html_tag], "\n".html_safe + select_tag, class: class_name) + "\n"
45
- end
32
+ def use_wrapper_select_tag?(separator_options)
33
+ separator_options.is_a?(Hash) && separator_options[:wrapper_select_tag]
34
+ end
46
35
 
47
- def separator_text(type, separator_options)
48
- if separator_options.is_a?(Hash) && separator_options[type]
49
- separator_options[type]
50
- else
51
- key = 'datetime.separators.' + type.to_s
52
- I18n.translate(key, locale: @options[:locale], default: '')
53
- end
36
+ def wrapper_select_tag(select_tag, type, separator_options)
37
+ default_options = { html_tag: :div, class_prefix: 'wrapper_select_' }
38
+ wrapper_options = separator_options[:wrapper_select_tag]
39
+ wrapper_options = wrapper_options.is_a?(Hash) ? default_options.merge(wrapper_options) : default_options
40
+ class_name = wrapper_options[:class_prefix] + "#{type}"
41
+ content_tag(wrapper_options[:html_tag], "\n".html_safe + select_tag, class: class_name) + "\n"
42
+ end
43
+
44
+ def separator_text(type, separator_options)
45
+ if separator_options.is_a?(Hash) && separator_options[type]
46
+ separator_options[type]
47
+ else
48
+ key = 'datetime.separators.' + type.to_s
49
+ I18n.translate(key, locale: @options[:locale], default: '')
54
50
  end
51
+ end
55
52
 
56
- def separator_tag(type, separator_options)
57
- text = separator_text(type, separator_options)
58
- return text if text.empty?
53
+ def separator_tag(type, separator_options)
54
+ text = separator_text(type, separator_options)
55
+ return text if text.empty?
59
56
 
60
- default_options = { html_tag: :span, class_prefix: 'separator_' }
61
- options = separator_options.is_a?(Hash) ? default_options.merge(separator_options) : default_options
62
- class_name = options[:class_prefix] + "#{type}"
63
- content_tag(options[:html_tag], text, class: class_name) + "\n"
64
- end
57
+ default_options = { html_tag: :span, class_prefix: 'separator_' }
58
+ options = separator_options.is_a?(Hash) ? default_options.merge(separator_options) : default_options
59
+ class_name = options[:class_prefix] + "#{type}"
60
+ content_tag(options[:html_tag], text, class: class_name) + "\n"
61
+ end
65
62
 
66
- def build_options_and_select_with_separator(type, selected, options = {})
67
- separator_options = @options[:use_separators]
63
+ def build_options_and_select(type, selected, options = {})
64
+ separator_options = @options[:use_separators]
68
65
 
69
- unless use_separators?(type, separator_options)
70
- return build_options_and_select_without_separator(type, selected, options)
71
- end
66
+ unless use_separators?(type, separator_options)
67
+ return super(type, selected, options)
68
+ end
72
69
 
73
- select_tag = if inline_separator?(separator_options)
74
- options.merge!(separator: separator_text(type, separator_options))
75
- build_select(type, build_options_with_separator(selected, options))
76
- else
77
- build_select(type, build_options(selected, options)) + separator_tag(type, separator_options)
78
- end
70
+ select_tag = if inline_separator?(separator_options)
71
+ options.merge!(separator: separator_text(type, separator_options))
72
+ build_select(type, build_options_with_separator(selected, options))
73
+ else
74
+ build_select(type, build_options(selected, options)) + separator_tag(type, separator_options)
75
+ end
79
76
 
80
- if use_wrapper_select_tag?(separator_options)
81
- wrapper_select_tag(select_tag, type, separator_options)
82
- else
83
- select_tag
84
- end
77
+ if use_wrapper_select_tag?(separator_options)
78
+ wrapper_select_tag(select_tag, type, separator_options)
79
+ else
80
+ select_tag
85
81
  end
86
- alias_method_chain :build_options_and_select, :separator
87
-
88
- def build_options_with_separator(selected, options = {})
89
- options = {
90
- leading_zeros: true, ampm: false, use_two_digit_numbers: false, separator: false
91
- }.merge!(options)
92
-
93
- start = options.delete(:start) || 0
94
- stop = options.delete(:end) || 59
95
- step = options.delete(:step) || 1
96
- leading_zeros = options.delete(:leading_zeros)
97
-
98
- select_options = []
99
- start.step(stop, step) do |i|
100
- value = leading_zeros ? sprintf("%02d", i) : i
101
- tag_options = { value: value }
102
- tag_options[:selected] = "selected" if selected == i
103
- text = options[:use_two_digit_numbers] ? sprintf("%02d", i) : value
104
- text = options[:ampm] ? AMPM_TRANSLATION[i] : text
105
- text = options[:separator] ? text.to_s + options[:separator] : text
106
- select_options << content_tag(:option, text, tag_options)
107
- end
82
+ end
108
83
 
109
- (select_options.join("\n") + "\n").html_safe
84
+ def build_options_with_separator(selected, options = {})
85
+ options = {
86
+ leading_zeros: true, ampm: false, use_two_digit_numbers: false, separator: false
87
+ }.merge!(options)
88
+
89
+ start = options.delete(:start) || 0
90
+ stop = options.delete(:end) || 59
91
+ step = options.delete(:step) || 1
92
+ leading_zeros = options.delete(:leading_zeros)
93
+
94
+ select_options = []
95
+ start.step(stop, step) do |i|
96
+ value = leading_zeros ? sprintf("%02d", i) : i
97
+ tag_options = { value: value }
98
+ tag_options[:selected] = "selected" if selected == i
99
+ text = options[:use_two_digit_numbers] ? sprintf("%02d", i) : value
100
+ text = options[:ampm] ? AMPM_TRANSLATION[i] : text
101
+ text = options[:separator] ? text.to_s + options[:separator] : text
102
+ select_options << content_tag("option".freeze, text, tag_options)
110
103
  end
104
+
105
+ (select_options.join("\n") + "\n").html_safe
111
106
  end
112
107
  end
113
108
  end
@@ -2,7 +2,7 @@ module DateSelectSeparator
2
2
  class Railtie < ::Rails::Railtie
3
3
  initializer 'date_select_separator' do |app|
4
4
  ActiveSupport.on_load(:action_view) do
5
- ::ActionView::Helpers::DateTimeSelector.send :include, DateSelectSeparator::ActionViewExtension
5
+ ::ActionView::Helpers::DateTimeSelector.send :prepend, DateSelectSeparator::ActionViewExtension
6
6
  end
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module DateSelectSeparator
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,29 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_select_separator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - rono23
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-07 00:00:00.000000000 Z
11
+ date: 2016-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
13
55
  - !ruby/object:Gem::Dependency
14
56
  name: rails
15
57
  requirement: !ruby/object:Gem::Requirement
16
58
  requirements:
17
59
  - - ">="
18
60
  - !ruby/object:Gem::Version
19
- version: 4.0.0
20
- type: :runtime
61
+ version: '0'
62
+ type: :development
21
63
  prerelease: false
22
64
  version_requirements: !ruby/object:Gem::Requirement
23
65
  requirements:
24
66
  - - ">="
25
67
  - !ruby/object:Gem::Version
26
- version: 4.0.0
68
+ version: '0'
27
69
  - !ruby/object:Gem::Dependency
28
70
  name: sqlite3
29
71
  requirement: !ruby/object:Gem::Requirement
@@ -45,67 +87,24 @@ executables: []
45
87
  extensions: []
46
88
  extra_rdoc_files: []
47
89
  files:
90
+ - ".gitignore"
91
+ - ".travis.yml"
92
+ - Gemfile
93
+ - LICENSE
48
94
  - README.md
49
95
  - Rakefile
96
+ - date_select_separator.gemspec
97
+ - gemfiles/Gemfile-rails.4.0
98
+ - gemfiles/Gemfile-rails.4.1
99
+ - gemfiles/Gemfile-rails.4.2
100
+ - gemfiles/Gemfile-rails.5.0
50
101
  - lib/date_select_separator.rb
51
102
  - lib/date_select_separator/action_view_extension.rb
52
103
  - lib/date_select_separator/railtie.rb
53
104
  - lib/date_select_separator/version.rb
54
- - test/date_select_separator_test.rb
55
- - test/dummy/README.rdoc
56
- - test/dummy/Rakefile
57
- - test/dummy/app/assets/javascripts/application.js
58
- - test/dummy/app/assets/stylesheets/application.css
59
- - test/dummy/app/controllers/application_controller.rb
60
- - test/dummy/app/controllers/samples_controller.rb
61
- - test/dummy/app/helpers/application_helper.rb
62
- - test/dummy/app/models/sample.rb
63
- - test/dummy/app/views/layouts/application.html.erb
64
- - test/dummy/app/views/samples/_form.html.erb
65
- - test/dummy/app/views/samples/edit.html.erb
66
- - test/dummy/app/views/samples/index.html.erb
67
- - test/dummy/app/views/samples/new.html.erb
68
- - test/dummy/app/views/samples/show.html.erb
69
- - test/dummy/bin/bundle
70
- - test/dummy/bin/rails
71
- - test/dummy/bin/rake
72
- - test/dummy/config.ru
73
- - test/dummy/config/application.rb
74
- - test/dummy/config/boot.rb
75
- - test/dummy/config/database.yml
76
- - test/dummy/config/environment.rb
77
- - test/dummy/config/environments/development.rb
78
- - test/dummy/config/environments/production.rb
79
- - test/dummy/config/environments/test.rb
80
- - test/dummy/config/initializers/backtrace_silencers.rb
81
- - test/dummy/config/initializers/filter_parameter_logging.rb
82
- - test/dummy/config/initializers/inflections.rb
83
- - test/dummy/config/initializers/mime_types.rb
84
- - test/dummy/config/initializers/secret_token.rb
85
- - test/dummy/config/initializers/session_store.rb
86
- - test/dummy/config/initializers/wrap_parameters.rb
87
- - test/dummy/config/locales/en.yml
88
- - test/dummy/config/locales/ja.yml
89
- - test/dummy/config/routes.rb
90
- - test/dummy/db/development.sqlite3
91
- - test/dummy/db/migrate/20140214065227_create_samples.rb
92
- - test/dummy/db/schema.rb
93
- - test/dummy/db/test.sqlite3
94
- - test/dummy/log/development.log
95
- - test/dummy/log/test.log
96
- - test/dummy/public/404.html
97
- - test/dummy/public/422.html
98
- - test/dummy/public/500.html
99
- - test/dummy/public/favicon.ico
100
- - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
101
- - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
102
- - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
103
- - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
104
- - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
105
- - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
106
- - test/test_helper.rb
107
105
  homepage: https://github.com/rono23/date_select_separator
108
- licenses: []
106
+ licenses:
107
+ - MIT
109
108
  metadata: {}
110
109
  post_install_message:
111
110
  rdoc_options: []
@@ -123,61 +122,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
122
  version: '0'
124
123
  requirements: []
125
124
  rubyforge_project:
126
- rubygems_version: 2.2.2
125
+ rubygems_version: 2.6.6
127
126
  signing_key:
128
127
  specification_version: 4
129
128
  summary: Add separators to data_select on Rails.
130
- test_files:
131
- - test/date_select_separator_test.rb
132
- - test/dummy/app/assets/javascripts/application.js
133
- - test/dummy/app/assets/stylesheets/application.css
134
- - test/dummy/app/controllers/application_controller.rb
135
- - test/dummy/app/controllers/samples_controller.rb
136
- - test/dummy/app/helpers/application_helper.rb
137
- - test/dummy/app/models/sample.rb
138
- - test/dummy/app/views/layouts/application.html.erb
139
- - test/dummy/app/views/samples/_form.html.erb
140
- - test/dummy/app/views/samples/edit.html.erb
141
- - test/dummy/app/views/samples/index.html.erb
142
- - test/dummy/app/views/samples/new.html.erb
143
- - test/dummy/app/views/samples/show.html.erb
144
- - test/dummy/bin/bundle
145
- - test/dummy/bin/rails
146
- - test/dummy/bin/rake
147
- - test/dummy/config/application.rb
148
- - test/dummy/config/boot.rb
149
- - test/dummy/config/database.yml
150
- - test/dummy/config/environment.rb
151
- - test/dummy/config/environments/development.rb
152
- - test/dummy/config/environments/production.rb
153
- - test/dummy/config/environments/test.rb
154
- - test/dummy/config/initializers/backtrace_silencers.rb
155
- - test/dummy/config/initializers/filter_parameter_logging.rb
156
- - test/dummy/config/initializers/inflections.rb
157
- - test/dummy/config/initializers/mime_types.rb
158
- - test/dummy/config/initializers/secret_token.rb
159
- - test/dummy/config/initializers/session_store.rb
160
- - test/dummy/config/initializers/wrap_parameters.rb
161
- - test/dummy/config/locales/en.yml
162
- - test/dummy/config/locales/ja.yml
163
- - test/dummy/config/routes.rb
164
- - test/dummy/config.ru
165
- - test/dummy/db/development.sqlite3
166
- - test/dummy/db/migrate/20140214065227_create_samples.rb
167
- - test/dummy/db/schema.rb
168
- - test/dummy/db/test.sqlite3
169
- - test/dummy/log/development.log
170
- - test/dummy/log/test.log
171
- - test/dummy/public/404.html
172
- - test/dummy/public/422.html
173
- - test/dummy/public/500.html
174
- - test/dummy/public/favicon.ico
175
- - test/dummy/Rakefile
176
- - test/dummy/README.rdoc
177
- - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
178
- - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
179
- - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
180
- - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
181
- - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
182
- - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
183
- - test/test_helper.rb
129
+ test_files: []
130
+ has_rdoc: