date_select_separator 0.0.4 → 0.0.5

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 (66) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -10
  3. data/Rakefile +28 -1
  4. data/lib/date_select_separator/action_view_extension.rb +86 -0
  5. data/lib/date_select_separator/railtie.rb +9 -0
  6. data/lib/date_select_separator/version.rb +1 -1
  7. data/lib/date_select_separator.rb +4 -92
  8. data/test/date_select_separator_test.rb +3817 -319
  9. data/test/dummy/README.rdoc +28 -0
  10. data/test/dummy/Rakefile +6 -0
  11. data/test/dummy/app/assets/javascripts/application.js +13 -0
  12. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  13. data/test/dummy/app/controllers/application_controller.rb +5 -0
  14. data/test/dummy/app/controllers/samples_controller.rb +58 -0
  15. data/test/dummy/app/helpers/application_helper.rb +2 -0
  16. data/test/dummy/app/models/sample.rb +3 -0
  17. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  18. data/test/dummy/app/views/samples/_form.html.erb +29 -0
  19. data/test/dummy/app/views/samples/edit.html.erb +6 -0
  20. data/test/dummy/app/views/samples/index.html.erb +31 -0
  21. data/test/dummy/app/views/samples/new.html.erb +5 -0
  22. data/test/dummy/app/views/samples/show.html.erb +19 -0
  23. data/test/dummy/bin/bundle +3 -0
  24. data/test/dummy/bin/rails +4 -0
  25. data/test/dummy/bin/rake +4 -0
  26. data/test/dummy/config/application.rb +24 -0
  27. data/test/dummy/config/boot.rb +5 -0
  28. data/test/dummy/config/database.yml +25 -0
  29. data/test/dummy/config/environment.rb +5 -0
  30. data/test/dummy/config/environments/development.rb +31 -0
  31. data/test/dummy/config/environments/production.rb +80 -0
  32. data/test/dummy/config/environments/test.rb +36 -0
  33. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  35. data/test/dummy/config/initializers/inflections.rb +16 -0
  36. data/test/dummy/config/initializers/mime_types.rb +5 -0
  37. data/test/dummy/config/initializers/secret_token.rb +12 -0
  38. data/test/dummy/config/initializers/session_store.rb +3 -0
  39. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  40. data/test/dummy/config/locales/en.yml +218 -0
  41. data/test/dummy/config/locales/ja.yml +208 -0
  42. data/test/dummy/config/routes.rb +4 -0
  43. data/test/dummy/config.ru +4 -0
  44. data/test/dummy/db/development.sqlite3 +0 -0
  45. data/test/dummy/db/migrate/20140214065227_create_samples.rb +11 -0
  46. data/test/dummy/db/schema.rb +24 -0
  47. data/test/dummy/db/test.sqlite3 +0 -0
  48. data/test/dummy/log/development.log +1537 -0
  49. data/test/dummy/log/test.log +435691 -0
  50. data/test/dummy/public/404.html +58 -0
  51. data/test/dummy/public/422.html +58 -0
  52. data/test/dummy/public/500.html +57 -0
  53. data/test/dummy/public/favicon.ico +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  60. data/test/dummy/tmp/restart.txt +0 -0
  61. data/test/test_helper.rb +12 -0
  62. metadata +134 -17
  63. data/.gitignore +0 -17
  64. data/Gemfile +0 -4
  65. data/LICENSE.txt +0 -22
  66. data/date_select_separator.gemspec +0 -22
@@ -0,0 +1,218 @@
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
@@ -0,0 +1,208 @@
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
@@ -0,0 +1,4 @@
1
+ Dummy::Application.routes.draw do
2
+ resources :samples
3
+ root 'samples#index'
4
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
Binary file
@@ -0,0 +1,11 @@
1
+ class CreateSamples < ActiveRecord::Migration
2
+ def change
3
+ create_table :samples do |t|
4
+ t.string :name
5
+ t.date :dated_at
6
+ t.datetime :datetimed_at
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,24 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20140214065227) do
15
+
16
+ create_table "samples", force: true do |t|
17
+ t.string "name"
18
+ t.date "dated_at"
19
+ t.datetime "datetimed_at"
20
+ t.datetime "created_at"
21
+ t.datetime "updated_at"
22
+ end
23
+
24
+ end
Binary file