gov_uk_date_fields 1.2.3 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/lib/gov_uk_date_fields.rb +1 -0
  4. data/lib/gov_uk_date_fields/engine.rb +3 -0
  5. data/lib/gov_uk_date_fields/form_fields.rb +24 -2
  6. data/lib/gov_uk_date_fields/version.rb +1 -1
  7. data/test/dummy/app/views/employees/_form.html.erb +1 -1
  8. data/test/dummy/config/application.rb +0 -2
  9. data/test/dummy/config/environments/production.rb +2 -1
  10. data/test/dummy/config/environments/test.rb +4 -2
  11. data/test/dummy/log/test.log +6105 -7291
  12. data/test/dummy/test/controllers/employees_controller_test.rb +18 -18
  13. data/test/{form_fields_test.rb → dummy/test/models/form_fields_test.rb} +60 -3
  14. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Ib/Iba6WBNFwCX5yJuWwyIroIgnaCpMU7V5k-oilkpHkIw.cache → 0U/0UsuEWiHamXrda57fOozPnIGx4-K_7O66LHOP8vudb8.cache} +0 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{bThUha0ZAgXXZqOvFJI_866MzJFssx9VvGaNUVVsR7Q.cache → 1g/1gPDAiJOvIXxPKBVJlTZDdPGrWfe6R0-NRVpRGAYLho.cache} +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v3.0/2u/2ufDB6YFi50dQLigiWTZjdW_0yWDhh7vBJXZ9gzCW18.cache +0 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{2ufDB6YFi50dQLigiWTZjdW_0yWDhh7vBJXZ9gzCW18.cache → 6y/6yCs4bjrjq_woX29iQp7zQKRQr4VKE00JKT4VwtkKx8.cache} +0 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{7AveDOdohHxuGSWFfoi9QSrdzFcwKX4Vg5sKbRr2SNU.cache → 7A/7AveDOdohHxuGSWFfoi9QSrdzFcwKX4Vg5sKbRr2SNU.cache} +0 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v3.0/7K/7KFvL_mhH1t2sq6vqYud_KxlB7tGsJlxx5hHn2Ei2wE.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v3.0/AX/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache +0 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v3.0/BM/BMVVSZKB_Pf0AvMej5u0o3ejymf06-xrOyLS1A3oE_g.cache +1 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DA/DANW1IdYCMFbfzTzF2IiwZmtUnujlyy0m4bQ8GDQqpA.cache +0 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache → DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache} +0 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DW/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache +0 -0
  26. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +0 -0
  27. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{ky/kyxo4JqvRvNeJBHBrMJN7MeSEpVOaKpqK9r2cnBA06I.cache → GN/GN91G9zCPwdfU-3wUEMYllpXk6yAX-n4Wd-3o9xsoTA.cache} +0 -0
  28. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{NiZw8s5wXO2UWOIIJ_Ys01CuvPjtgEWjxuDM99vKmlU.cache → Ni/NiZw8s5wXO2UWOIIJ_Ys01CuvPjtgEWjxuDM99vKmlU.cache} +0 -0
  29. data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -0
  30. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{OtkrSZFoXR9hhJ3TSv3sGLPQMIr-wyiSJDu-N-VCj58.cache → Ot/OtkrSZFoXR9hhJ3TSv3sGLPQMIr-wyiSJDu-N-VCj58.cache} +0 -0
  31. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{PKyATPKXmMlG9vK2VhPNMIPrLUSZ9KNrNeCtEpk_D-Q.cache → PK/PKyATPKXmMlG9vK2VhPNMIPrLUSZ9KNrNeCtEpk_D-Q.cache} +0 -0
  32. data/test/dummy/tmp/cache/assets/sprockets/v3.0/QY/QYmCF9M_-u9DeEFqK08PCml9MxMVg_JZ2L0nbJswYRE.cache +0 -0
  33. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Qu/QuJP8z6tdvC7pgbcL7QisCqFA3rx75OCVpPytW3DJow.cache +1 -0
  34. data/test/dummy/tmp/cache/assets/sprockets/v3.0/R8/R8LmW7GoFJJAuKZgLd-OuZszsRkKgOJMUTntIJvt3Jg.cache +1 -0
  35. data/test/dummy/tmp/cache/assets/sprockets/v3.0/S9/S9RfcyQQlKn5TKOB84kc0B5I65du_w9kalPMCUSdspY.cache +1 -0
  36. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{Uc/UcVp7l26vtjVzG3cFV82NyPuaionh8U30L1KUYGma2Y.cache → U3/U3Q26nlde4-roX1M6Slmm5ea9Plx0Hyjuq65G5C5k1M.cache} +0 -0
  37. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Vd/VdP-6UbSRWYvFbdI5FVuNPh_YqpCYzsriCd-F-nOWzs.cache +0 -0
  38. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Vq/Vqtyvk3_HRvdOe0o7tbVMz-AVOtLOmP06G7bcyny2rw.cache +1 -0
  39. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{DANW1IdYCMFbfzTzF2IiwZmtUnujlyy0m4bQ8GDQqpA.cache → X2/X2pGv50QK8En2u2IGwRAt8s1KZqXq0ys6zankgEMHkw.cache} +0 -0
  40. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{VDTfwqf5bZCLGry-YMdWV7ifYa4zht5okNvoJiTESM0.cache → _a/_a7iN3ijHBddAdbLJHEZb3GMkQrYU_FAlm8CV50HMvk.cache} +0 -0
  41. data/test/dummy/tmp/cache/assets/sprockets/v3.0/bT/bThUha0ZAgXXZqOvFJI_866MzJFssx9VvGaNUVVsR7Q.cache +0 -0
  42. data/test/dummy/tmp/cache/assets/sprockets/v3.0/dD/dDn_RXml7LXkXN6Qzk7vHaq5pX1ZIO_QUZNuOByzOZc.cache +0 -0
  43. data/test/dummy/tmp/cache/assets/sprockets/v3.0/dr/dr4dueB7rAgOuCtmmFpuEVM3JVheaJ6A_8B-W5y7ORs.cache +1 -0
  44. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ey/eynmzH6c_AlIz6KiJQAKQzAzP-kjaAiVZOijLhhxqBI.cache +0 -0
  45. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache → gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache} +0 -0
  46. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -0
  47. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{sQImiT0c9tubJaj4YrwzOynI7Lemwt9e970PQUXl7CE.cache → ii/ii1_QsBLPauBxab64GoAQEgxCmocXnPqJNSxb0e2SWA.cache} +0 -0
  48. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mw/mwN0rbtcDznuifP2YadFRXS6phP34qmZoyTrNMei_bQ.cache +0 -0
  49. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -0
  50. data/test/dummy/tmp/cache/assets/sprockets/v3.0/sQ/sQImiT0c9tubJaj4YrwzOynI7Lemwt9e970PQUXl7CE.cache +0 -0
  51. data/test/dummy/tmp/cache/assets/sprockets/v3.0/u7/u7HIXNsC7Vw71gPWHBwAg8FnAWzTT6DRWiCjt0vfqCE.cache +1 -0
  52. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{X9/X96qjqRPsr9LVXqv_1iNRyrDIwOta9biD9aA2XiTOpU.cache → vl/vlFeJF_vTQvhMxxUzOoIE4IapW6BjHX28sfZB5r9OK0.cache} +0 -0
  53. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{ck/ckZo8OV4MBnaBASgCoD3_c4BjNnlpRZAV6Z_gTa7UnM.cache → wc/wc-RxFdDoiWKZ8UFUsg-Ip4NMrDh_ZUNDkPK_W-fijU.cache} +0 -0
  54. data/test/dummy/tmp/cache/assets/sprockets/v3.0/{V2/V2GXFQijhEkmE1Ck9IU4rk_P7hCzSldvsSH3XKtG-iA.cache → zm/zmKlvRxXMP-rmyvBK2X9HF08J0yuKec2zJvzXSsJrfo.cache} +0 -0
  55. data/test/test_helper.rb +3 -0
  56. data/vendor/assets/javascripts/govuk_date_fields.js +56 -0
  57. data/vendor/assets/stylesheets/_govuk_date_fields.scss +32 -0
  58. metadata +65 -131
  59. data/test/dummy/tmp/cache/assets/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +0 -2
  60. data/test/dummy/tmp/cache/assets/sprockets/v3.0/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache +0 -2
  61. data/test/dummy/tmp/cache/assets/sprockets/v3.0/CAhJaukcOHNTyK-6wJPHvYJQ4RgpzgV7FmjbLiLaIYY.cache +0 -1
  62. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache +0 -2
  63. data/test/dummy/tmp/cache/assets/sprockets/v3.0/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +0 -2
  64. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ERzoNUWkp75nWqcNK1v25FlB_xETKRYzcoCRsF545kU.cache +0 -1
  65. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Iba6WBNFwCX5yJuWwyIroIgnaCpMU7V5k-oilkpHkIw.cache +0 -1
  66. data/test/dummy/tmp/cache/assets/sprockets/v3.0/JyIwYwpEPiwkoxU6_nsRA09Nwk4WwsAW74s_PhSJk1o.cache +0 -1
  67. data/test/dummy/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +0 -2
  68. data/test/dummy/tmp/cache/assets/sprockets/v3.0/UcVp7l26vtjVzG3cFV82NyPuaionh8U30L1KUYGma2Y.cache +0 -1
  69. data/test/dummy/tmp/cache/assets/sprockets/v3.0/V2GXFQijhEkmE1Ck9IU4rk_P7hCzSldvsSH3XKtG-iA.cache +0 -2
  70. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Vd/VDTfwqf5bZCLGry-YMdWV7ifYa4zht5okNvoJiTESM0.cache +0 -1
  71. data/test/dummy/tmp/cache/assets/sprockets/v3.0/VdP-6UbSRWYvFbdI5FVuNPh_YqpCYzsriCd-F-nOWzs.cache +0 -0
  72. data/test/dummy/tmp/cache/assets/sprockets/v3.0/X96qjqRPsr9LVXqv_1iNRyrDIwOta9biD9aA2XiTOpU.cache +0 -1
  73. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ckZo8OV4MBnaBASgCoD3_c4BjNnlpRZAV6Z_gTa7UnM.cache +0 -1
  74. data/test/dummy/tmp/cache/assets/sprockets/v3.0/eynmzH6c_AlIz6KiJQAKQzAzP-kjaAiVZOijLhhxqBI.cache +0 -0
  75. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +0 -2
  76. data/test/dummy/tmp/cache/assets/sprockets/v3.0/jByKrDRdTKWTib4H-cPT8zfOtQf-vMAO3W3hFg7W_m4.cache +0 -1
  77. data/test/dummy/tmp/cache/assets/sprockets/v3.0/kyxo4JqvRvNeJBHBrMJN7MeSEpVOaKpqK9r2cnBA06I.cache +0 -2
  78. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mJONNvwqoqoNqcH413V7RiNxUsv35TCTKElPpT845JI.cache +0 -1
  79. data/test/dummy/tmp/cache/assets/sprockets/v3.0/mwN0rbtcDznuifP2YadFRXS6phP34qmZoyTrNMei_bQ.cache +0 -0
  80. data/test/dummy/tmp/cache/assets/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +0 -2
  81. data/test/dummy/tmp/cache/assets/sprockets/v3.0/qeOqVLbVObrLpWWNieUCFWcUjSI9P8hf0ZLEIbSZk-0.cache +0 -1
  82. data/test/dummy/tmp/cache/assets/sprockets/v3.0/rtcJ_islohXm8x0bqaTIpW2nOttNweCIQw0qzQkEabo.cache +0 -1
@@ -19,14 +19,14 @@ class EmployeesControllerTest < ActionController::TestCase
19
19
 
20
20
  test "should create employee" do
21
21
  assert_difference('Employee.count') do
22
- post :create, employee: {
23
- dob_dd: '31',
22
+ post :create, params: { employee: {
23
+ dob_dd: '31',
24
24
  dob_mm: '12',
25
25
  dob_yyyy: '1965',
26
- joined_dd: '4',
27
- joined_mm: 'mar',
28
- joined_yyyy: '2015',
29
- name: 'Joe Blow' }
26
+ joined_dd: '4',
27
+ joined_mm: 'mar',
28
+ joined_yyyy: '2015',
29
+ name: 'Joe Blow' }}
30
30
  end
31
31
  assert_redirected_to employee_path(assigns(:employee))
32
32
  assert_equal 3, Employee.count
@@ -37,24 +37,24 @@ class EmployeesControllerTest < ActionController::TestCase
37
37
  end
38
38
 
39
39
  test "should show employee" do
40
- get :show, id: @employee
40
+ get :show, params: { id: @employee }
41
41
  assert_response :success
42
42
  end
43
43
 
44
44
  test "should get edit" do
45
- get :edit, id: @employee
45
+ get :edit, params: {id: @employee }
46
46
  assert_response :success
47
47
  end
48
48
 
49
49
  test "should update employee" do
50
- patch :update, id: @employee, employee: {
51
- dob_dd: '1',
52
- dob_mm: '11',
53
- dob_yyyy: '1981',
54
- joined_dd: '3',
55
- joined_mm: 'oct',
56
- joined_yyyy: '2015',
57
- name: 'Ioannis Kole' }
50
+ patch :update, params: {id: @employee, employee: {
51
+ dob_dd: '1',
52
+ dob_mm: '11',
53
+ dob_yyyy: '1981',
54
+ joined_dd: '3',
55
+ joined_mm: 'oct',
56
+ joined_yyyy: '2015',
57
+ name: 'Ioannis Kole' } }
58
58
  assert_redirected_to employee_path(assigns(:employee))
59
59
  e = Employee.find @employee.id
60
60
  assert_equal Date.new(1981, 11, 1), e.dob
@@ -64,14 +64,14 @@ class EmployeesControllerTest < ActionController::TestCase
64
64
 
65
65
  test "should destroy employee" do
66
66
  assert_difference('Employee.count', -1) do
67
- delete :destroy, id: @employee
67
+ delete :destroy, params: {id: @employee }
68
68
  end
69
69
 
70
70
  assert_redirected_to employees_path
71
71
  end
72
72
 
73
73
  test "should render gov_uk_date_fields" do
74
- get :edit, id: @employee
74
+ get :edit, params: { id: @employee }
75
75
 
76
76
  assert_select 'input#employee_dob_dd' do
77
77
  assert_select '[placeholder]',true
@@ -1,6 +1,6 @@
1
1
  require 'mocha/test_unit'
2
2
 
3
- require File.dirname(File.expand_path(__FILE__)) + '/test_helper'
3
+ require File.dirname(File.expand_path(__FILE__)) + '/../../../test_helper'
4
4
 
5
5
  class MockTemplate
6
6
  include ActionView::Helpers::FormHelper
@@ -42,7 +42,7 @@ class GovUkDateFieldsTest < ActiveSupport::TestCase
42
42
  date_fields = GovUkDateFields::FormFields.new(@form_builder, :employee, :dob, {legend_text: 'Date of birth', legend_class: 'govuk_legend_class', form_hint_text: 'In the form: dd mm yyyy'})
43
43
  assert_html_equal(date_fields.raw_output, expected_fieldset_output_with_form_hint)
44
44
  end
45
-
45
+
46
46
  test 'fieldset output with legend class' do
47
47
  date_fields = GovUkDateFields::FormFields.new(@form_builder, :employee, :joined, {legend_text: 'Joining date', legend_class: 'date-legend-class', form_hint_text: 'For example, 31 3 1980'})
48
48
  assert_html_equal(date_fields.raw_output, expected_fieldset_output_with_legend_class)
@@ -53,6 +53,16 @@ class GovUkDateFieldsTest < ActiveSupport::TestCase
53
53
  assert_html_equal(date_fields.raw_output, expected_fieldset_output_with_id)
54
54
  end
55
55
 
56
+ test 'fieldset output with today button with no css class specified' do
57
+ date_fields = GovUkDateFields::FormFields.new(@form_builder, :employee, :joined, {legend_text: 'Joining date', id: 'employee_date_joined', today_button: true})
58
+ assert_html_equal(date_fields.raw_output, expected_fieldset_output_with_unstyled_today_button)
59
+ end
60
+
61
+ test 'fieldset output with today button with css class applied' do
62
+ date_fields = GovUkDateFields::FormFields.new(@form_builder, :employee, :joined, {legend_text: 'Joining date', id: 'employee_date_joined', today_button: {class: 'today-button-class'} } )
63
+ assert_html_equal(date_fields.raw_output, expected_fieldset_output_with_syled_today_button)
64
+ end
65
+
56
66
  test 'fieldset with error_class and message' do
57
67
  @employee.errors[:joined] << "Invalid joining date"
58
68
  @employee.errors[:joined] << "Joining date must be in the past"
@@ -74,7 +84,7 @@ class GovUkDateFieldsTest < ActiveSupport::TestCase
74
84
  end
75
85
 
76
86
 
77
- def expected_basic_output_without_fieldset
87
+ def expected_basic_output_without_fieldset
78
88
  %Q{
79
89
  <input value="7" id="employee_dob_dd" name="employee[dob_dd]" size="2" type="text" />
80
90
  <input value="12" id="employee_dob_mm" name="employee[dob_mm]" size="3" type="text" />
@@ -191,5 +201,52 @@ class GovUkDateFieldsTest < ActiveSupport::TestCase
191
201
  }
192
202
  end
193
203
 
204
+ def expected_fieldset_output_with_unstyled_today_button
205
+ %Q{
206
+ <fieldset id="employee_date_joined" class="gov_uk_date">
207
+ <legend>Joining date</legend>
208
+ <div class="form-date">
209
+ <p class="form-hint" id="employee_date_joined-hint">For example, 31 3 1980</p>
210
+ <a class="button" role="button" href="#">Today</a>
211
+ <div class="form-group form-group-day">
212
+ <label for="employee_joined_dd">Day</label>
213
+ <input class="form-control" id="employee_joined_dd" name="employee[joined_dd]" type="number" min="0" max="31" aria-describedby="employee_date_joined-hint" value="1">
214
+ </div>
215
+ <div class="form-group form-group-month">
216
+ <label for="employee_joined_mm">Month</label>
217
+ <input class="form-control" id="employee_joined_mm" name="employee[joined_mm]" type="number" min="0" max="12" value="4">
218
+ </div>
219
+ <div class="form-group form-group-year">
220
+ <label for="employee_joined_yyyy">Year</label>
221
+ <input class="form-control" id="employee_joined_yyyy" name="employee[joined_yyyy]" type="number" min="0" max="2100" value="2015">
222
+ </div>
223
+ </div>
224
+ </fieldset>
225
+ }
226
+ end
227
+
228
+ def expected_fieldset_output_with_syled_today_button
229
+ %Q{
230
+ <fieldset id="employee_date_joined" class="gov_uk_date">
231
+ <legend>Joining date</legend>
232
+ <div class="form-date">
233
+ <p class="form-hint" id="employee_date_joined-hint">For example, 31 3 1980</p>
234
+ <a class="today-button-class" role="button" href="#">Today</a>
235
+ <div class="form-group form-group-day">
236
+ <label for="employee_joined_dd">Day</label>
237
+ <input class="form-control" id="employee_joined_dd" name="employee[joined_dd]" type="number" min="0" max="31" aria-describedby="employee_date_joined-hint" value="1">
238
+ </div>
239
+ <div class="form-group form-group-month">
240
+ <label for="employee_joined_mm">Month</label>
241
+ <input class="form-control" id="employee_joined_mm" name="employee[joined_mm]" type="number" min="0" max="12" value="4">
242
+ </div>
243
+ <div class="form-group form-group-year">
244
+ <label for="employee_joined_yyyy">Year</label>
245
+ <input class="form-control" id="employee_joined_yyyy" name="employee[joined_yyyy]" type="number" min="0" max="2100" value="2015">
246
+ </div>
247
+ </div>
248
+ </fieldset>
249
+ }
250
+ end
194
251
 
195
252
  end
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=906830539b7e9191a088b3862dfb05ba8182741adfd8ac52f788a6b7a74b8960:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=32f12f7a16b8e61189e4a0d18fab4504acc88e5659c291d256d898d431aa26ba:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/scaffold.css?type=text/css&pipeline=self&id=f9652017105028325f2e07c9bc1fea5628d21a27133a6319680c2487f4fcaa22:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/employees.js?type=application/javascript&pipeline=self&id=07b853380e2672a200db720139ba1a849d19c4ac888445bb19c6522718610b39:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/employees.css?type=text/css&pipeline=self&id=2d239d284b0ae39c907df587a2e193a4f05c3b1b6d513679f12585319d204922:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=cf4abf4dcc517b023b861f0efe8877fdcecd737298038d2d0dc3db5ad13edb63:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=30840e5b9a9780b74981139613a35b5838f824681a5642cf4fc76bc1ece225a5:ET
@@ -5,6 +5,9 @@ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
5
  ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
6
  require "rails/test_help"
7
7
  require "minitest/reporters"
8
+ require 'rails-controller-testing'
9
+
10
+ Rails::Controller::Testing.install
8
11
 
9
12
  # configure minitest reporting
10
13
  reporter_options = { color: true }
@@ -0,0 +1,56 @@
1
+ (function (){
2
+ var GOVUKDATEFIELDS = function (){
3
+ var $allDateGroupInstances = $(".form-date"),
4
+
5
+ init = function (){
6
+
7
+ $allDateGroupInstances.each(function (){
8
+ var $currentGroup = $(this);
9
+ var $inputs = $currentGroup.find('input');
10
+ var $todayButton = $currentGroup.find('a');
11
+
12
+ //Show Today Button if js is enabled
13
+ $todayButton.addClass('js-enabled');
14
+
15
+ $todayButton.on('click', function(e) {
16
+ //Set date and remove inputs from natural tab order
17
+ event.preventDefault();
18
+ setTodayDate($currentGroup, $inputs, $todayButton);
19
+ $inputs.attr('tabIndex', -1);
20
+ }).on('focus', function(){
21
+ $inputs.attr('tabIndex', 0);
22
+ })
23
+ })
24
+ },
25
+ setTodayDate = function($currentGroup, $inputs, $todayButton){
26
+ //Cache the input fields
27
+ var $dateField = $inputs.eq(0);
28
+ var $monthField = $inputs.eq(1);
29
+ var $yearField = $inputs.eq(2);
30
+
31
+ //Create and return todays date
32
+ var d = new Date();
33
+ var day = d.getUTCDate();
34
+ var month = d.getUTCMonth() + 1;
35
+ var year = d.getUTCFullYear();
36
+
37
+ if(month < 10 ){
38
+ month = '0' + month;
39
+ }
40
+
41
+ //Set the input fields
42
+ $dateField.val(day);
43
+ $monthField.val(month);
44
+ $yearField.val(year);
45
+ };
46
+
47
+ return {
48
+ init : function(){
49
+ init();
50
+ }
51
+ }
52
+ }();
53
+
54
+ GOVUKDATEFIELDS.init();
55
+
56
+ })();
@@ -0,0 +1,32 @@
1
+ .gov_uk_date {
2
+ position: relative;
3
+ display: inline-block;
4
+ width: auto;
5
+ zoom: 1;
6
+ &:before, &:after {
7
+ content: "";
8
+ display: block;
9
+ height: 0;
10
+ overflow: hidden;
11
+ }
12
+ &:after {
13
+ clear: both;
14
+ }
15
+ }
16
+
17
+ .gov_uk_date a {
18
+ display: none;
19
+ }
20
+
21
+ .gov_uk_date a.js-enabled {
22
+ display: inline-block;
23
+ position: absolute;
24
+ bottom: 0;
25
+ left: 100%;
26
+ }
27
+
28
+ .gov_uk_date a.js-enabled:active {
29
+ top: auto;
30
+ }
31
+
32
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gov_uk_date_fields
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Richards
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-28 00:00:00.000000000 Z
12
+ date: 2017-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -17,56 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '4.0'
20
+ version: '5.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '4.0'
28
- - !ruby/object:Gem::Dependency
29
- name: pg
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: 0.18.0
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - "~>"
40
- - !ruby/object:Gem::Version
41
- version: 0.18.0
42
- - !ruby/object:Gem::Dependency
43
- name: awesome_print
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - "~>"
47
- - !ruby/object:Gem::Version
48
- version: '1.6'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - "~>"
54
- - !ruby/object:Gem::Version
55
- version: '1.6'
56
- - !ruby/object:Gem::Dependency
57
- name: mocha
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - "~>"
61
- - !ruby/object:Gem::Version
62
- version: '1.1'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '1.1'
27
+ version: '5.0'
70
28
  description: Provides acts_as_gov_uk_date to mark Rails model attributes as dates
71
29
  that will be entered as three separate text edit boxes, and a form_builder method
72
30
  gov_uk_date_field to display those fields.
@@ -80,6 +38,7 @@ files:
80
38
  - Rakefile
81
39
  - lib/gov_uk_date_fields.rb
82
40
  - lib/gov_uk_date_fields/acts_as_gov_uk_date.rb
41
+ - lib/gov_uk_date_fields/engine.rb
83
42
  - lib/gov_uk_date_fields/form_builder.rb
84
43
  - lib/gov_uk_date_fields/form_date.rb
85
44
  - lib/gov_uk_date_fields/form_fields.rb
@@ -145,73 +104,61 @@ files:
145
104
  - test/dummy/test/models/director_test.rb
146
105
  - test/dummy/test/models/employee_test.rb
147
106
  - test/dummy/test/models/form_date_test.rb
107
+ - test/dummy/test/models/form_fields_test.rb
148
108
  - test/dummy/test/models/omit_error_clash_employee_test.rb
149
109
  - test/dummy/test/models/overrride_error_clash_employee_test.rb
110
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/0U/0UsuEWiHamXrda57fOozPnIGx4-K_7O66LHOP8vudb8.cache
111
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/1g/1gPDAiJOvIXxPKBVJlTZDdPGrWfe6R0-NRVpRGAYLho.cache
150
112
  - test/dummy/tmp/cache/assets/sprockets/v3.0/2u/2ufDB6YFi50dQLigiWTZjdW_0yWDhh7vBJXZ9gzCW18.cache
151
- - test/dummy/tmp/cache/assets/sprockets/v3.0/2ufDB6YFi50dQLigiWTZjdW_0yWDhh7vBJXZ9gzCW18.cache
152
113
  - test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
153
- - test/dummy/tmp/cache/assets/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
154
- - test/dummy/tmp/cache/assets/sprockets/v3.0/7AveDOdohHxuGSWFfoi9QSrdzFcwKX4Vg5sKbRr2SNU.cache
114
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/6y/6yCs4bjrjq_woX29iQp7zQKRQr4VKE00JKT4VwtkKx8.cache
115
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/7A/7AveDOdohHxuGSWFfoi9QSrdzFcwKX4Vg5sKbRr2SNU.cache
116
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/7K/7KFvL_mhH1t2sq6vqYud_KxlB7tGsJlxx5hHn2Ei2wE.cache
155
117
  - test/dummy/tmp/cache/assets/sprockets/v3.0/AX/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache
156
- - test/dummy/tmp/cache/assets/sprockets/v3.0/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache
118
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/BM/BMVVSZKB_Pf0AvMej5u0o3ejymf06-xrOyLS1A3oE_g.cache
157
119
  - test/dummy/tmp/cache/assets/sprockets/v3.0/CA/CAhJaukcOHNTyK-6wJPHvYJQ4RgpzgV7FmjbLiLaIYY.cache
158
- - test/dummy/tmp/cache/assets/sprockets/v3.0/CAhJaukcOHNTyK-6wJPHvYJQ4RgpzgV7FmjbLiLaIYY.cache
159
120
  - test/dummy/tmp/cache/assets/sprockets/v3.0/DA/DANW1IdYCMFbfzTzF2IiwZmtUnujlyy0m4bQ8GDQqpA.cache
160
- - test/dummy/tmp/cache/assets/sprockets/v3.0/DANW1IdYCMFbfzTzF2IiwZmtUnujlyy0m4bQ8GDQqpA.cache
161
- - test/dummy/tmp/cache/assets/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
121
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
162
122
  - test/dummy/tmp/cache/assets/sprockets/v3.0/DW/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache
163
- - test/dummy/tmp/cache/assets/sprockets/v3.0/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache
164
123
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache
165
- - test/dummy/tmp/cache/assets/sprockets/v3.0/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache
166
124
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ER/ERzoNUWkp75nWqcNK1v25FlB_xETKRYzcoCRsF545kU.cache
167
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ERzoNUWkp75nWqcNK1v25FlB_xETKRYzcoCRsF545kU.cache
168
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Ib/Iba6WBNFwCX5yJuWwyIroIgnaCpMU7V5k-oilkpHkIw.cache
169
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Iba6WBNFwCX5yJuWwyIroIgnaCpMU7V5k-oilkpHkIw.cache
125
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/GN/GN91G9zCPwdfU-3wUEMYllpXk6yAX-n4Wd-3o9xsoTA.cache
170
126
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Jy/JyIwYwpEPiwkoxU6_nsRA09Nwk4WwsAW74s_PhSJk1o.cache
171
- - test/dummy/tmp/cache/assets/sprockets/v3.0/JyIwYwpEPiwkoxU6_nsRA09Nwk4WwsAW74s_PhSJk1o.cache
172
- - test/dummy/tmp/cache/assets/sprockets/v3.0/NiZw8s5wXO2UWOIIJ_Ys01CuvPjtgEWjxuDM99vKmlU.cache
127
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Ni/NiZw8s5wXO2UWOIIJ_Ys01CuvPjtgEWjxuDM99vKmlU.cache
173
128
  - test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
174
- - test/dummy/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
175
- - test/dummy/tmp/cache/assets/sprockets/v3.0/OtkrSZFoXR9hhJ3TSv3sGLPQMIr-wyiSJDu-N-VCj58.cache
176
- - test/dummy/tmp/cache/assets/sprockets/v3.0/PKyATPKXmMlG9vK2VhPNMIPrLUSZ9KNrNeCtEpk_D-Q.cache
177
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Uc/UcVp7l26vtjVzG3cFV82NyPuaionh8U30L1KUYGma2Y.cache
178
- - test/dummy/tmp/cache/assets/sprockets/v3.0/UcVp7l26vtjVzG3cFV82NyPuaionh8U30L1KUYGma2Y.cache
179
- - test/dummy/tmp/cache/assets/sprockets/v3.0/V2/V2GXFQijhEkmE1Ck9IU4rk_P7hCzSldvsSH3XKtG-iA.cache
180
- - test/dummy/tmp/cache/assets/sprockets/v3.0/V2GXFQijhEkmE1Ck9IU4rk_P7hCzSldvsSH3XKtG-iA.cache
181
- - test/dummy/tmp/cache/assets/sprockets/v3.0/VDTfwqf5bZCLGry-YMdWV7ifYa4zht5okNvoJiTESM0.cache
182
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Vd/VDTfwqf5bZCLGry-YMdWV7ifYa4zht5okNvoJiTESM0.cache
129
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Ot/OtkrSZFoXR9hhJ3TSv3sGLPQMIr-wyiSJDu-N-VCj58.cache
130
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/PK/PKyATPKXmMlG9vK2VhPNMIPrLUSZ9KNrNeCtEpk_D-Q.cache
131
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/QY/QYmCF9M_-u9DeEFqK08PCml9MxMVg_JZ2L0nbJswYRE.cache
132
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Qu/QuJP8z6tdvC7pgbcL7QisCqFA3rx75OCVpPytW3DJow.cache
133
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/R8/R8LmW7GoFJJAuKZgLd-OuZszsRkKgOJMUTntIJvt3Jg.cache
134
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/S9/S9RfcyQQlKn5TKOB84kc0B5I65du_w9kalPMCUSdspY.cache
135
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/U3/U3Q26nlde4-roX1M6Slmm5ea9Plx0Hyjuq65G5C5k1M.cache
183
136
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Vd/VdP-6UbSRWYvFbdI5FVuNPh_YqpCYzsriCd-F-nOWzs.cache
184
- - test/dummy/tmp/cache/assets/sprockets/v3.0/VdP-6UbSRWYvFbdI5FVuNPh_YqpCYzsriCd-F-nOWzs.cache
185
- - test/dummy/tmp/cache/assets/sprockets/v3.0/X9/X96qjqRPsr9LVXqv_1iNRyrDIwOta9biD9aA2XiTOpU.cache
186
- - test/dummy/tmp/cache/assets/sprockets/v3.0/X96qjqRPsr9LVXqv_1iNRyrDIwOta9biD9aA2XiTOpU.cache
137
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Vq/Vqtyvk3_HRvdOe0o7tbVMz-AVOtLOmP06G7bcyny2rw.cache
138
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/X2/X2pGv50QK8En2u2IGwRAt8s1KZqXq0ys6zankgEMHkw.cache
139
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/_a/_a7iN3ijHBddAdbLJHEZb3GMkQrYU_FAlm8CV50HMvk.cache
187
140
  - test/dummy/tmp/cache/assets/sprockets/v3.0/bT/bThUha0ZAgXXZqOvFJI_866MzJFssx9VvGaNUVVsR7Q.cache
188
- - test/dummy/tmp/cache/assets/sprockets/v3.0/bThUha0ZAgXXZqOvFJI_866MzJFssx9VvGaNUVVsR7Q.cache
189
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ck/ckZo8OV4MBnaBASgCoD3_c4BjNnlpRZAV6Z_gTa7UnM.cache
190
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ckZo8OV4MBnaBASgCoD3_c4BjNnlpRZAV6Z_gTa7UnM.cache
141
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/dD/dDn_RXml7LXkXN6Qzk7vHaq5pX1ZIO_QUZNuOByzOZc.cache
142
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/dr/dr4dueB7rAgOuCtmmFpuEVM3JVheaJ6A_8B-W5y7ORs.cache
191
143
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ey/eynmzH6c_AlIz6KiJQAKQzAzP-kjaAiVZOijLhhxqBI.cache
192
- - test/dummy/tmp/cache/assets/sprockets/v3.0/eynmzH6c_AlIz6KiJQAKQzAzP-kjaAiVZOijLhhxqBI.cache
193
- - test/dummy/tmp/cache/assets/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
144
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
194
145
  - test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
195
- - test/dummy/tmp/cache/assets/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
146
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ii/ii1_QsBLPauBxab64GoAQEgxCmocXnPqJNSxb0e2SWA.cache
196
147
  - test/dummy/tmp/cache/assets/sprockets/v3.0/jB/jByKrDRdTKWTib4H-cPT8zfOtQf-vMAO3W3hFg7W_m4.cache
197
- - test/dummy/tmp/cache/assets/sprockets/v3.0/jByKrDRdTKWTib4H-cPT8zfOtQf-vMAO3W3hFg7W_m4.cache
198
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ky/kyxo4JqvRvNeJBHBrMJN7MeSEpVOaKpqK9r2cnBA06I.cache
199
- - test/dummy/tmp/cache/assets/sprockets/v3.0/kyxo4JqvRvNeJBHBrMJN7MeSEpVOaKpqK9r2cnBA06I.cache
200
148
  - test/dummy/tmp/cache/assets/sprockets/v3.0/mJ/mJONNvwqoqoNqcH413V7RiNxUsv35TCTKElPpT845JI.cache
201
- - test/dummy/tmp/cache/assets/sprockets/v3.0/mJONNvwqoqoNqcH413V7RiNxUsv35TCTKElPpT845JI.cache
202
149
  - test/dummy/tmp/cache/assets/sprockets/v3.0/mw/mwN0rbtcDznuifP2YadFRXS6phP34qmZoyTrNMei_bQ.cache
203
- - test/dummy/tmp/cache/assets/sprockets/v3.0/mwN0rbtcDznuifP2YadFRXS6phP34qmZoyTrNMei_bQ.cache
204
150
  - test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
205
- - test/dummy/tmp/cache/assets/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
206
151
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qe/qeOqVLbVObrLpWWNieUCFWcUjSI9P8hf0ZLEIbSZk-0.cache
207
- - test/dummy/tmp/cache/assets/sprockets/v3.0/qeOqVLbVObrLpWWNieUCFWcUjSI9P8hf0ZLEIbSZk-0.cache
208
152
  - test/dummy/tmp/cache/assets/sprockets/v3.0/rt/rtcJ_islohXm8x0bqaTIpW2nOttNweCIQw0qzQkEabo.cache
209
- - test/dummy/tmp/cache/assets/sprockets/v3.0/rtcJ_islohXm8x0bqaTIpW2nOttNweCIQw0qzQkEabo.cache
210
153
  - test/dummy/tmp/cache/assets/sprockets/v3.0/sQ/sQImiT0c9tubJaj4YrwzOynI7Lemwt9e970PQUXl7CE.cache
211
- - test/dummy/tmp/cache/assets/sprockets/v3.0/sQImiT0c9tubJaj4YrwzOynI7Lemwt9e970PQUXl7CE.cache
212
- - test/form_fields_test.rb
154
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/u7/u7HIXNsC7Vw71gPWHBwAg8FnAWzTT6DRWiCjt0vfqCE.cache
155
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/vl/vlFeJF_vTQvhMxxUzOoIE4IapW6BjHX28sfZB5r9OK0.cache
156
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/wc/wc-RxFdDoiWKZ8UFUsg-Ip4NMrDh_ZUNDkPK_W-fijU.cache
157
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/zm/zmKlvRxXMP-rmyvBK2X9HF08J0yuKec2zJvzXSsJrfo.cache
213
158
  - test/sample.html
214
159
  - test/test_helper.rb
160
+ - vendor/assets/javascripts/govuk_date_fields.js
161
+ - vendor/assets/stylesheets/_govuk_date_fields.scss
215
162
  homepage: https://github.com/ministryofjustice/gov_uk_date_fields
216
163
  licenses:
217
164
  - MIT
@@ -220,6 +167,7 @@ post_install_message:
220
167
  rdoc_options: []
221
168
  require_paths:
222
169
  - lib
170
+ - vendor
223
171
  required_ruby_version: !ruby/object:Gem::Requirement
224
172
  requirements:
225
173
  - - ">="
@@ -232,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
180
  version: '0'
233
181
  requirements: []
234
182
  rubyforge_project:
235
- rubygems_version: 2.4.6
183
+ rubygems_version: 2.5.1
236
184
  signing_key:
237
185
  specification_version: 4
238
186
  summary: Enable day-month-year text edit fields for form date entry
@@ -296,70 +244,56 @@ test_files:
296
244
  - test/dummy/test/models/director_test.rb
297
245
  - test/dummy/test/models/employee_test.rb
298
246
  - test/dummy/test/models/form_date_test.rb
247
+ - test/dummy/test/models/form_fields_test.rb
299
248
  - test/dummy/test/models/omit_error_clash_employee_test.rb
300
249
  - test/dummy/test/models/overrride_error_clash_employee_test.rb
250
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/0U/0UsuEWiHamXrda57fOozPnIGx4-K_7O66LHOP8vudb8.cache
251
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/1g/1gPDAiJOvIXxPKBVJlTZDdPGrWfe6R0-NRVpRGAYLho.cache
301
252
  - test/dummy/tmp/cache/assets/sprockets/v3.0/2u/2ufDB6YFi50dQLigiWTZjdW_0yWDhh7vBJXZ9gzCW18.cache
302
- - test/dummy/tmp/cache/assets/sprockets/v3.0/2ufDB6YFi50dQLigiWTZjdW_0yWDhh7vBJXZ9gzCW18.cache
303
253
  - test/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
304
- - test/dummy/tmp/cache/assets/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache
305
- - test/dummy/tmp/cache/assets/sprockets/v3.0/7AveDOdohHxuGSWFfoi9QSrdzFcwKX4Vg5sKbRr2SNU.cache
254
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/6y/6yCs4bjrjq_woX29iQp7zQKRQr4VKE00JKT4VwtkKx8.cache
255
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/7A/7AveDOdohHxuGSWFfoi9QSrdzFcwKX4Vg5sKbRr2SNU.cache
256
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/7K/7KFvL_mhH1t2sq6vqYud_KxlB7tGsJlxx5hHn2Ei2wE.cache
257
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/_a/_a7iN3ijHBddAdbLJHEZb3GMkQrYU_FAlm8CV50HMvk.cache
306
258
  - test/dummy/tmp/cache/assets/sprockets/v3.0/AX/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache
307
- - test/dummy/tmp/cache/assets/sprockets/v3.0/AX3L2fGpRF9VevxsOcMT3K8MFiRGjRX81JBxvrH7IIc.cache
259
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/BM/BMVVSZKB_Pf0AvMej5u0o3ejymf06-xrOyLS1A3oE_g.cache
308
260
  - test/dummy/tmp/cache/assets/sprockets/v3.0/bT/bThUha0ZAgXXZqOvFJI_866MzJFssx9VvGaNUVVsR7Q.cache
309
- - test/dummy/tmp/cache/assets/sprockets/v3.0/bThUha0ZAgXXZqOvFJI_866MzJFssx9VvGaNUVVsR7Q.cache
310
261
  - test/dummy/tmp/cache/assets/sprockets/v3.0/CA/CAhJaukcOHNTyK-6wJPHvYJQ4RgpzgV7FmjbLiLaIYY.cache
311
- - test/dummy/tmp/cache/assets/sprockets/v3.0/CAhJaukcOHNTyK-6wJPHvYJQ4RgpzgV7FmjbLiLaIYY.cache
312
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ck/ckZo8OV4MBnaBASgCoD3_c4BjNnlpRZAV6Z_gTa7UnM.cache
313
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ckZo8OV4MBnaBASgCoD3_c4BjNnlpRZAV6Z_gTa7UnM.cache
314
262
  - test/dummy/tmp/cache/assets/sprockets/v3.0/DA/DANW1IdYCMFbfzTzF2IiwZmtUnujlyy0m4bQ8GDQqpA.cache
315
- - test/dummy/tmp/cache/assets/sprockets/v3.0/DANW1IdYCMFbfzTzF2IiwZmtUnujlyy0m4bQ8GDQqpA.cache
263
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/dD/dDn_RXml7LXkXN6Qzk7vHaq5pX1ZIO_QUZNuOByzOZc.cache
316
264
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache
317
- - test/dummy/tmp/cache/assets/sprockets/v3.0/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache
318
- - test/dummy/tmp/cache/assets/sprockets/v3.0/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
265
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/dr/dr4dueB7rAgOuCtmmFpuEVM3JVheaJ6A_8B-W5y7ORs.cache
266
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache
319
267
  - test/dummy/tmp/cache/assets/sprockets/v3.0/DW/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache
320
- - test/dummy/tmp/cache/assets/sprockets/v3.0/DWiSprTdmJSiF4eYqRLDfLfWLyF-m0Mk3TOoLQXKKW0.cache
321
268
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ER/ERzoNUWkp75nWqcNK1v25FlB_xETKRYzcoCRsF545kU.cache
322
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ERzoNUWkp75nWqcNK1v25FlB_xETKRYzcoCRsF545kU.cache
323
269
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ey/eynmzH6c_AlIz6KiJQAKQzAzP-kjaAiVZOijLhhxqBI.cache
324
- - test/dummy/tmp/cache/assets/sprockets/v3.0/eynmzH6c_AlIz6KiJQAKQzAzP-kjaAiVZOijLhhxqBI.cache
325
- - test/dummy/tmp/cache/assets/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
270
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/GN/GN91G9zCPwdfU-3wUEMYllpXk6yAX-n4Wd-3o9xsoTA.cache
271
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/gZ/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
326
272
  - test/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
327
- - test/dummy/tmp/cache/assets/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
328
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Ib/Iba6WBNFwCX5yJuWwyIroIgnaCpMU7V5k-oilkpHkIw.cache
329
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Iba6WBNFwCX5yJuWwyIroIgnaCpMU7V5k-oilkpHkIw.cache
273
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ii/ii1_QsBLPauBxab64GoAQEgxCmocXnPqJNSxb0e2SWA.cache
330
274
  - test/dummy/tmp/cache/assets/sprockets/v3.0/jB/jByKrDRdTKWTib4H-cPT8zfOtQf-vMAO3W3hFg7W_m4.cache
331
- - test/dummy/tmp/cache/assets/sprockets/v3.0/jByKrDRdTKWTib4H-cPT8zfOtQf-vMAO3W3hFg7W_m4.cache
332
275
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Jy/JyIwYwpEPiwkoxU6_nsRA09Nwk4WwsAW74s_PhSJk1o.cache
333
- - test/dummy/tmp/cache/assets/sprockets/v3.0/JyIwYwpEPiwkoxU6_nsRA09Nwk4WwsAW74s_PhSJk1o.cache
334
- - test/dummy/tmp/cache/assets/sprockets/v3.0/ky/kyxo4JqvRvNeJBHBrMJN7MeSEpVOaKpqK9r2cnBA06I.cache
335
- - test/dummy/tmp/cache/assets/sprockets/v3.0/kyxo4JqvRvNeJBHBrMJN7MeSEpVOaKpqK9r2cnBA06I.cache
336
276
  - test/dummy/tmp/cache/assets/sprockets/v3.0/mJ/mJONNvwqoqoNqcH413V7RiNxUsv35TCTKElPpT845JI.cache
337
- - test/dummy/tmp/cache/assets/sprockets/v3.0/mJONNvwqoqoNqcH413V7RiNxUsv35TCTKElPpT845JI.cache
338
277
  - test/dummy/tmp/cache/assets/sprockets/v3.0/mw/mwN0rbtcDznuifP2YadFRXS6phP34qmZoyTrNMei_bQ.cache
339
- - test/dummy/tmp/cache/assets/sprockets/v3.0/mwN0rbtcDznuifP2YadFRXS6phP34qmZoyTrNMei_bQ.cache
340
- - test/dummy/tmp/cache/assets/sprockets/v3.0/NiZw8s5wXO2UWOIIJ_Ys01CuvPjtgEWjxuDM99vKmlU.cache
278
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Ni/NiZw8s5wXO2UWOIIJ_Ys01CuvPjtgEWjxuDM99vKmlU.cache
341
279
  - test/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
342
- - test/dummy/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
343
- - test/dummy/tmp/cache/assets/sprockets/v3.0/OtkrSZFoXR9hhJ3TSv3sGLPQMIr-wyiSJDu-N-VCj58.cache
280
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Ot/OtkrSZFoXR9hhJ3TSv3sGLPQMIr-wyiSJDu-N-VCj58.cache
344
281
  - test/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
345
- - test/dummy/tmp/cache/assets/sprockets/v3.0/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache
346
- - test/dummy/tmp/cache/assets/sprockets/v3.0/PKyATPKXmMlG9vK2VhPNMIPrLUSZ9KNrNeCtEpk_D-Q.cache
282
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/PK/PKyATPKXmMlG9vK2VhPNMIPrLUSZ9KNrNeCtEpk_D-Q.cache
347
283
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qe/qeOqVLbVObrLpWWNieUCFWcUjSI9P8hf0ZLEIbSZk-0.cache
348
- - test/dummy/tmp/cache/assets/sprockets/v3.0/qeOqVLbVObrLpWWNieUCFWcUjSI9P8hf0ZLEIbSZk-0.cache
284
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Qu/QuJP8z6tdvC7pgbcL7QisCqFA3rx75OCVpPytW3DJow.cache
285
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/QY/QYmCF9M_-u9DeEFqK08PCml9MxMVg_JZ2L0nbJswYRE.cache
286
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/R8/R8LmW7GoFJJAuKZgLd-OuZszsRkKgOJMUTntIJvt3Jg.cache
349
287
  - test/dummy/tmp/cache/assets/sprockets/v3.0/rt/rtcJ_islohXm8x0bqaTIpW2nOttNweCIQw0qzQkEabo.cache
350
- - test/dummy/tmp/cache/assets/sprockets/v3.0/rtcJ_islohXm8x0bqaTIpW2nOttNweCIQw0qzQkEabo.cache
288
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/S9/S9RfcyQQlKn5TKOB84kc0B5I65du_w9kalPMCUSdspY.cache
351
289
  - test/dummy/tmp/cache/assets/sprockets/v3.0/sQ/sQImiT0c9tubJaj4YrwzOynI7Lemwt9e970PQUXl7CE.cache
352
- - test/dummy/tmp/cache/assets/sprockets/v3.0/sQImiT0c9tubJaj4YrwzOynI7Lemwt9e970PQUXl7CE.cache
353
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Uc/UcVp7l26vtjVzG3cFV82NyPuaionh8U30L1KUYGma2Y.cache
354
- - test/dummy/tmp/cache/assets/sprockets/v3.0/UcVp7l26vtjVzG3cFV82NyPuaionh8U30L1KUYGma2Y.cache
355
- - test/dummy/tmp/cache/assets/sprockets/v3.0/V2/V2GXFQijhEkmE1Ck9IU4rk_P7hCzSldvsSH3XKtG-iA.cache
356
- - test/dummy/tmp/cache/assets/sprockets/v3.0/V2GXFQijhEkmE1Ck9IU4rk_P7hCzSldvsSH3XKtG-iA.cache
290
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/U3/U3Q26nlde4-roX1M6Slmm5ea9Plx0Hyjuq65G5C5k1M.cache
291
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/u7/u7HIXNsC7Vw71gPWHBwAg8FnAWzTT6DRWiCjt0vfqCE.cache
357
292
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Vd/VdP-6UbSRWYvFbdI5FVuNPh_YqpCYzsriCd-F-nOWzs.cache
358
- - test/dummy/tmp/cache/assets/sprockets/v3.0/Vd/VDTfwqf5bZCLGry-YMdWV7ifYa4zht5okNvoJiTESM0.cache
359
- - test/dummy/tmp/cache/assets/sprockets/v3.0/VdP-6UbSRWYvFbdI5FVuNPh_YqpCYzsriCd-F-nOWzs.cache
360
- - test/dummy/tmp/cache/assets/sprockets/v3.0/VDTfwqf5bZCLGry-YMdWV7ifYa4zht5okNvoJiTESM0.cache
361
- - test/dummy/tmp/cache/assets/sprockets/v3.0/X9/X96qjqRPsr9LVXqv_1iNRyrDIwOta9biD9aA2XiTOpU.cache
362
- - test/dummy/tmp/cache/assets/sprockets/v3.0/X96qjqRPsr9LVXqv_1iNRyrDIwOta9biD9aA2XiTOpU.cache
363
- - test/form_fields_test.rb
293
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/vl/vlFeJF_vTQvhMxxUzOoIE4IapW6BjHX28sfZB5r9OK0.cache
294
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Vq/Vqtyvk3_HRvdOe0o7tbVMz-AVOtLOmP06G7bcyny2rw.cache
295
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/wc/wc-RxFdDoiWKZ8UFUsg-Ip4NMrDh_ZUNDkPK_W-fijU.cache
296
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/X2/X2pGv50QK8En2u2IGwRAt8s1KZqXq0ys6zankgEMHkw.cache
297
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/zm/zmKlvRxXMP-rmyvBK2X9HF08J0yuKec2zJvzXSsJrfo.cache
364
298
  - test/sample.html
365
299
  - test/test_helper.rb