date_select_separator 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -1,38 +0,0 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Do not eager load code on boot. This avoids loading your whole application
11
- # just for the purpose of running a single test. If you are using a tool that
12
- # preloads Rails for running tests, you may have to set it to true.
13
- config.eager_load = false
14
-
15
- # Configure static asset server for tests with Cache-Control for performance.
16
- config.serve_static_files = true
17
- config.static_cache_control = "public, max-age=3600"
18
-
19
- # Show full error reports and disable caching.
20
- config.consider_all_requests_local = true
21
- config.action_controller.perform_caching = false
22
-
23
- # Raise exceptions instead of rendering exception templates.
24
- config.action_dispatch.show_exceptions = false
25
-
26
- # Disable request forgery protection in test environment.
27
- config.action_controller.allow_forgery_protection = false
28
-
29
- # Tell Action Mailer not to deliver emails to the real world.
30
- # The :test delivery method accumulates sent emails in the
31
- # ActionMailer::Base.deliveries array.
32
- config.action_mailer.delivery_method = :test
33
-
34
- # Print deprecation notices to the stderr.
35
- config.active_support.deprecation = :stderr
36
-
37
- config.active_support.test_order = :random
38
- end
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,4 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Configure sensitive parameters which will be filtered from the log file.
4
- Rails.application.config.filter_parameters += [:password]
@@ -1,16 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format. Inflections
4
- # are locale specific, and you may define rules for as many different
5
- # locales as you wish. All of these examples are active by default:
6
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
- # inflect.plural /^(ox)$/i, '\1en'
8
- # inflect.singular /^(ox)en/i, '\1'
9
- # inflect.irregular 'person', 'people'
10
- # inflect.uncountable %w( fish sheep )
11
- # end
12
-
13
- # These inflection rules are supported but not enabled by default:
14
- # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
- # inflect.acronym 'RESTful'
16
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,12 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure your secret_key_base is kept private
11
- # if you're sharing your code publicly.
12
- Dummy::Application.config.secret_key_base = 'dc498f06cced8f5cfcc042ddc7ed73fce78490951e553b9cf2700d1a6077fbf365eac1a6ae0f1a580334f311dddffb995a54cb89615c13d02a58e1b60bc3aba1'
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
@@ -1,218 +0,0 @@
1
- en:
2
- date:
3
- abbr_day_names:
4
- - Sun
5
- - Mon
6
- - Tue
7
- - Wed
8
- - Thu
9
- - Fri
10
- - Sat
11
- abbr_month_names:
12
- -
13
- - Jan
14
- - Feb
15
- - Mar
16
- - Apr
17
- - May
18
- - Jun
19
- - Jul
20
- - Aug
21
- - Sep
22
- - Oct
23
- - Nov
24
- - Dec
25
- day_names:
26
- - Sunday
27
- - Monday
28
- - Tuesday
29
- - Wednesday
30
- - Thursday
31
- - Friday
32
- - Saturday
33
- formats:
34
- default: ! '%Y-%m-%d'
35
- long: ! '%B %d, %Y'
36
- short: ! '%b %d'
37
- month_names:
38
- -
39
- - January
40
- - February
41
- - March
42
- - April
43
- - May
44
- - June
45
- - July
46
- - August
47
- - September
48
- - October
49
- - November
50
- - December
51
- order:
52
- - :year
53
- - :month
54
- - :day
55
- datetime:
56
- distance_in_words:
57
- about_x_hours:
58
- one: about 1 hour
59
- other: about %{count} hours
60
- about_x_months:
61
- one: about 1 month
62
- other: about %{count} months
63
- about_x_years:
64
- one: about 1 year
65
- other: about %{count} years
66
- almost_x_years:
67
- one: almost 1 year
68
- other: almost %{count} years
69
- half_a_minute: half a minute
70
- less_than_x_minutes:
71
- one: less than a minute
72
- other: less than %{count} minutes
73
- less_than_x_seconds:
74
- one: less than 1 second
75
- other: less than %{count} seconds
76
- over_x_years:
77
- one: over 1 year
78
- other: over %{count} years
79
- x_days:
80
- one: 1 day
81
- other: ! '%{count} days'
82
- x_minutes:
83
- one: 1 minute
84
- other: ! '%{count} minutes'
85
- x_months:
86
- one: 1 month
87
- other: ! '%{count} months'
88
- x_seconds:
89
- one: 1 second
90
- other: ! '%{count} seconds'
91
- prompts:
92
- day: Day
93
- hour: Hour
94
- minute: Minute
95
- month: Month
96
- second: Seconds
97
- year: Year
98
- separators:
99
- second: sec
100
- minute: min
101
- hour: h
102
- day: dd
103
- month: mm
104
- year: yy
105
- errors: &errors
106
- format: ! '%{attribute} %{message}'
107
- messages:
108
- accepted: must be accepted
109
- blank: can't be blank
110
- present: must be blank
111
- confirmation: ! "doesn't match %{attribute}"
112
- empty: can't be empty
113
- equal_to: must be equal to %{count}
114
- even: must be even
115
- exclusion: is reserved
116
- greater_than: must be greater than %{count}
117
- greater_than_or_equal_to: must be greater than or equal to %{count}
118
- inclusion: is not included in the list
119
- invalid: is invalid
120
- less_than: must be less than %{count}
121
- less_than_or_equal_to: must be less than or equal to %{count}
122
- not_a_number: is not a number
123
- not_an_integer: must be an integer
124
- odd: must be odd
125
- record_invalid: ! 'Validation failed: %{errors}'
126
- restrict_dependent_destroy:
127
- one: "Cannot delete record because a dependent %{record} exists"
128
- many: "Cannot delete record because dependent %{record} exist"
129
- taken: has already been taken
130
- too_long:
131
- one: is too long (maximum is 1 character)
132
- other: is too long (maximum is %{count} characters)
133
- too_short:
134
- one: is too short (minimum is 1 character)
135
- other: is too short (minimum is %{count} characters)
136
- wrong_length:
137
- one: is the wrong length (should be 1 character)
138
- other: is the wrong length (should be %{count} characters)
139
- other_than: "must be other than %{count}"
140
- template:
141
- body: ! 'There were problems with the following fields:'
142
- header:
143
- one: 1 error prohibited this %{model} from being saved
144
- other: ! '%{count} errors prohibited this %{model} from being saved'
145
- helpers:
146
- select:
147
- prompt: Please select
148
- submit:
149
- create: Create %{model}
150
- submit: Save %{model}
151
- update: Update %{model}
152
- number:
153
- currency:
154
- format:
155
- delimiter: ! ','
156
- format: ! '%u%n'
157
- precision: 2
158
- separator: .
159
- significant: false
160
- strip_insignificant_zeros: false
161
- unit: $
162
- format:
163
- delimiter: ! ','
164
- precision: 3
165
- separator: .
166
- significant: false
167
- strip_insignificant_zeros: false
168
- human:
169
- decimal_units:
170
- format: ! '%n %u'
171
- units:
172
- billion: Billion
173
- million: Million
174
- quadrillion: Quadrillion
175
- thousand: Thousand
176
- trillion: Trillion
177
- unit: ''
178
- format:
179
- delimiter: ''
180
- precision: 3
181
- significant: true
182
- strip_insignificant_zeros: true
183
- storage_units:
184
- format: ! '%n %u'
185
- units:
186
- byte:
187
- one: Byte
188
- other: Bytes
189
- gb: GB
190
- kb: KB
191
- mb: MB
192
- tb: TB
193
- percentage:
194
- format:
195
- delimiter: ''
196
- format: "%n%"
197
- precision:
198
- format:
199
- delimiter: ''
200
- support:
201
- array:
202
- last_word_connector: ! ', and '
203
- two_words_connector: ! ' and '
204
- words_connector: ! ', '
205
- time:
206
- am: am
207
- formats:
208
- default: ! '%a, %d %b %Y %H:%M:%S %z'
209
- long: ! '%B %d, %Y %H:%M'
210
- short: ! '%d %b %H:%M'
211
- pm: pm
212
- # remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
213
- activemodel:
214
- errors:
215
- <<: *errors
216
- activerecord:
217
- errors:
218
- <<: *errors
@@ -1,208 +0,0 @@
1
- ja:
2
- date:
3
- abbr_day_names:
4
- - 日
5
- - 月
6
- - 火
7
- - 水
8
- - 木
9
- - 金
10
- - 土
11
- abbr_month_names:
12
- -
13
- - 1月
14
- - 2月
15
- - 3月
16
- - 4月
17
- - 5月
18
- - 6月
19
- - 7月
20
- - 8月
21
- - 9月
22
- - 10月
23
- - 11月
24
- - 12月
25
- day_names:
26
- - 日曜日
27
- - 月曜日
28
- - 火曜日
29
- - 水曜日
30
- - 木曜日
31
- - 金曜日
32
- - 土曜日
33
- formats:
34
- default: ! '%Y/%m/%d'
35
- long: ! '%Y年%m月%d日(%a)'
36
- short: ! '%m/%d'
37
- month_names:
38
- -
39
- - 1月
40
- - 2月
41
- - 3月
42
- - 4月
43
- - 5月
44
- - 6月
45
- - 7月
46
- - 8月
47
- - 9月
48
- - 10月
49
- - 11月
50
- - 12月
51
- order:
52
- - :year
53
- - :month
54
- - :day
55
- datetime:
56
- distance_in_words:
57
- about_x_hours:
58
- one: 約1時間
59
- other: 約%{count}時間
60
- about_x_months:
61
- one: 約1ヶ月
62
- other: 約%{count}ヶ月
63
- about_x_years:
64
- one: 約1年
65
- other: 約%{count}年
66
- almost_x_years:
67
- one: 1年弱
68
- other: ! '%{count}年弱'
69
- half_a_minute: 30秒前後
70
- less_than_x_minutes:
71
- one: 1分以内
72
- other: ! '%{count}分未満'
73
- less_than_x_seconds:
74
- one: 1秒以内
75
- other: ! '%{count}秒未満'
76
- over_x_years:
77
- one: 1年以上
78
- other: ! '%{count}年以上'
79
- x_days:
80
- one: 1日
81
- other: ! '%{count}日'
82
- x_minutes:
83
- one: 1分
84
- other: ! '%{count}分'
85
- x_months:
86
- one: 1ヶ月
87
- other: ! '%{count}ヶ月'
88
- x_seconds:
89
- one: 1秒
90
- other: ! '%{count}秒'
91
- prompts:
92
- day: 日
93
- hour: 時
94
- minute: 分
95
- month: 月
96
- second: 秒
97
- year: 年
98
- separators:
99
- year: 年
100
- month: 月
101
- day: 日
102
- hour: 時
103
- minute: 分
104
- second: 秒
105
- errors: &errors
106
- format: ! '%{attribute}%{message}'
107
- messages:
108
- accepted: を受諾してください。
109
- blank: を入力してください。
110
- present: は入力しないでください。
111
- confirmation: と%{attribute}の入力が一致しません。
112
- empty: を入力してください。
113
- equal_to: は%{count}にしてください。
114
- even: は偶数にしてください。
115
- exclusion: は予約されています。
116
- greater_than: は%{count}より大きい値にしてください。
117
- greater_than_or_equal_to: は%{count}以上の値にしてください。
118
- inclusion: は一覧にありません。
119
- invalid: は不正な値です。
120
- less_than: は%{count}より小さい値にしてください。
121
- less_than_or_equal_to: は%{count}以下の値にしてください。
122
- not_a_number: は数値で入力してください。
123
- not_an_integer: は整数で入力してください。
124
- odd: は奇数にしてください。
125
- record_invalid: バリデーションに失敗しました。 %{errors}
126
- restrict_dependent_destroy: ! '%{record}が存在しているので削除できません。'
127
- taken: はすでに存在します。
128
- too_long: は%{count}文字以内で入力してください。
129
- too_short: は%{count}文字以上で入力してください。
130
- wrong_length: は%{count}文字で入力してください。
131
- other_than: "は%{count}以外の値にしてください。"
132
- template:
133
- body: 次の項目を確認してください。
134
- header:
135
- one: ! '%{model}にエラーが発生しました。'
136
- other: ! '%{model}に%{count}個のエラーが発生しました。'
137
- helpers:
138
- select:
139
- prompt: 選択してください。
140
- submit:
141
- create: 登録する
142
- submit: 保存する
143
- update: 更新する
144
- number:
145
- currency:
146
- format:
147
- delimiter: ! ','
148
- format: ! '%n%u'
149
- precision: 0
150
- separator: .
151
- significant: false
152
- strip_insignificant_zeros: false
153
- unit: 円
154
- format:
155
- delimiter: ! ','
156
- precision: 3
157
- separator: .
158
- significant: false
159
- strip_insignificant_zeros: false
160
- human:
161
- decimal_units:
162
- format: ! '%n %u'
163
- units:
164
- billion: 十億
165
- million: 百万
166
- quadrillion: 千兆
167
- thousand: 千
168
- trillion: 兆
169
- unit: ''
170
- format:
171
- delimiter: ''
172
- precision: 3
173
- significant: true
174
- strip_insignificant_zeros: true
175
- storage_units:
176
- format: ! '%n%u'
177
- units:
178
- byte: バイト
179
- gb: ギガバイト
180
- kb: キロバイト
181
- mb: メガバイト
182
- tb: テラバイト
183
- percentage:
184
- format:
185
- delimiter: ''
186
- format: "%n%"
187
- precision:
188
- format:
189
- delimiter: ''
190
- support:
191
- array:
192
- last_word_connector: と
193
- two_words_connector: と
194
- words_connector: と
195
- time:
196
- am: 午前
197
- formats:
198
- default: ! '%Y/%m/%d %H:%M:%S'
199
- long: ! '%Y年%m月%d日(%a) %H時%M分%S秒 %z'
200
- short: ! '%y/%m/%d %H:%M'
201
- pm: 午後
202
- # remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
203
- activemodel:
204
- errors:
205
- <<: *errors
206
- activerecord:
207
- errors:
208
- <<: *errors