rails-settings-ui 0.5.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -1
  3. data/app/controllers/rails_settings_ui/settings_controller.rb +15 -6
  4. data/app/helpers/rails_settings_ui/settings_helper.rb +1 -1
  5. data/app/views/layouts/rails_settings_ui/application.html.erb +26 -0
  6. data/app/views/rails_settings_ui/settings/index.html.erb +45 -0
  7. data/config/locales/en.yml +4 -2
  8. data/config/locales/ru.yml +4 -0
  9. data/config/locales/zh-CN.yml +4 -2
  10. data/config/locales/zh-TW.yml +4 -2
  11. data/lib/rails-settings-ui.rb +2 -1
  12. data/lib/rails-settings-ui/engine.rb +0 -2
  13. data/lib/rails-settings-ui/settings_form_coercible.rb +91 -0
  14. data/lib/rails-settings-ui/settings_form_validator.rb +62 -0
  15. data/lib/rails-settings-ui/version.rb +1 -1
  16. data/spec/dummy/app/models/settings.rb +3 -0
  17. data/spec/dummy/config/application.rb +1 -1
  18. data/spec/dummy/config/environments/production.rb +1 -1
  19. data/spec/dummy/config/environments/test.rb +3 -1
  20. data/spec/dummy/config/locales/en.yml +6 -1
  21. data/spec/dummy/log/test.log +27323 -0
  22. data/spec/dummy/tmp/cache/5B0/540/settings%3Amode +1 -0
  23. data/spec/dummy/tmp/cache/612/400/settings%3Aangle +1 -0
  24. data/spec/dummy/tmp/cache/62A/7E0/settings%3Alimit +1 -0
  25. data/spec/dummy/tmp/cache/62C/9C0/settings%3Atimer +1 -0
  26. data/spec/dummy/tmp/cache/63C/E80/settings%3Astyle +3 -0
  27. data/spec/dummy/tmp/cache/702/EF0/settings%3Acompany +1 -1
  28. data/spec/dummy/tmp/cache/8AF/EF0/settings%3Adescription +1 -0
  29. data/spec/dummy/tmp/cache/902/3E0/settings%3Aproject_name +2 -0
  30. data/spec/dummy/tmp/cache/A05/190/settings%3Aproject_status +1 -0
  31. data/spec/dummy/tmp/cache/A36/6E0/settings%3Acheck_something +1 -0
  32. data/spec/dummy/tmp/cache/AE1/750/rails_settings_cached%3Amode +1 -0
  33. data/spec/dummy/tmp/cache/B43/920/rails_settings_cached%3Aangle +1 -0
  34. data/spec/dummy/tmp/cache/B5B/D00/rails_settings_cached%3Alimit +1 -0
  35. data/spec/dummy/tmp/cache/B5D/EE0/rails_settings_cached%3Atimer +1 -0
  36. data/spec/dummy/tmp/cache/B6D/3A0/rails_settings_cached%3Astyle +3 -0
  37. data/spec/dummy/tmp/cache/DE0/670/rails_settings_cached%3Adescription +1 -0
  38. data/spec/dummy/tmp/cache/E33/F60/rails_settings_cached%3Aproject_name +2 -0
  39. data/spec/dummy/tmp/cache/F36/330/rails_settings_cached%3Aproject_status +1 -0
  40. data/spec/dummy/tmp/cache/F67/B90/rails_settings_cached%3Acheck_something +1 -0
  41. data/spec/dummy/tmp/capybara/capybara-201604072218331731576536.html +110 -0
  42. data/spec/dummy/tmp/capybara/capybara-201604081032444980849427.html +110 -0
  43. data/spec/dummy/tmp/capybara/capybara-201604081033515090839056.html +110 -0
  44. data/spec/dummy/tmp/capybara/capybara-201604081035235018036538.html +110 -0
  45. data/spec/dummy/tmp/capybara/capybara-201604081035456240700789.html +110 -0
  46. data/spec/dummy/tmp/capybara/capybara-201604171939409580658412.html +167 -0
  47. data/spec/dummy/tmp/capybara/capybara-201604172001578955442533.html +167 -0
  48. data/spec/dummy/tmp/capybara/capybara-201604172002367777806457.html +167 -0
  49. data/spec/dummy/tmp/capybara/capybara-201604172004318143886680.html +167 -0
  50. data/spec/dummy/tmp/capybara/capybara-201604172005177937139040.html +167 -0
  51. data/spec/dummy/tmp/capybara/capybara-201604172053441599257667.html +167 -0
  52. data/spec/dummy/tmp/capybara/capybara-20160417205725250944476.html +167 -0
  53. data/spec/dummy/tmp/capybara/capybara-201604172057331132801259.html +167 -0
  54. data/spec/dummy/tmp/capybara/capybara-201604172118071632087268.html +167 -0
  55. data/spec/dummy/tmp/capybara/capybara-201604172127076718204966.html +168 -0
  56. data/spec/dummy/tmp/capybara/capybara-20160417213155185601243.html +168 -0
  57. data/spec/dummy/tmp/capybara/capybara-201604172132268322962171.html +168 -0
  58. data/spec/dummy/tmp/capybara/capybara-201604172134068049534551.html +168 -0
  59. data/spec/dummy/tmp/capybara/capybara-201604172134532268725182.html +168 -0
  60. data/spec/dummy/tmp/capybara/capybara-20160417213510406143193.html +168 -0
  61. data/spec/dummy/tmp/capybara/capybara-201604172137188286690681.html +168 -0
  62. data/spec/dummy/tmp/capybara/capybara-20160417214102473521215.html +167 -0
  63. data/spec/dummy/tmp/capybara/capybara-201604172142356828149817.html +167 -0
  64. data/spec/dummy/tmp/capybara/capybara-201604172224448946017859.html +168 -0
  65. data/spec/dummy/tmp/capybara/capybara-201604180843098131092841.html +168 -0
  66. data/spec/dummy/tmp/capybara/capybara-201604180904356085374829.html +167 -0
  67. data/spec/dummy/tmp/capybara/capybara-201604181000253189634139.html +167 -0
  68. data/spec/dummy/tmp/capybara/capybara-201604182056589084036047.html +167 -0
  69. data/spec/features/settings_spec.rb +103 -24
  70. data/spec/lib/rails-settings-ui/settings_form_coercible_spec.rb +139 -0
  71. data/spec/lib/rails-settings-ui/settings_form_validator_spec.rb +96 -0
  72. data/spec/spec_helper.rb +1 -0
  73. metadata +146 -36
  74. data/app/views/layouts/rails_settings_ui/application.html.haml +0 -16
  75. data/app/views/rails_settings_ui/settings/index.html.haml +0 -25
  76. data/lib/rails-settings-ui/type_converter.rb +0 -60
  77. data/lib/rails-settings-ui/value_types/array.rb +0 -19
  78. data/lib/rails-settings-ui/value_types/base.rb +0 -30
  79. data/lib/rails-settings-ui/value_types/boolean.rb +0 -16
  80. data/lib/rails-settings-ui/value_types/duration.rb +0 -17
  81. data/lib/rails-settings-ui/value_types/fixnum.rb +0 -17
  82. data/lib/rails-settings-ui/value_types/float.rb +0 -17
  83. data/lib/rails-settings-ui/value_types/hash.rb +0 -19
  84. data/lib/rails-settings-ui/value_types/string.rb +0 -11
  85. data/lib/rails-settings-ui/value_types/symbol.rb +0 -11
  86. data/spec/lib/rails-settings-ui/type_converter_spec.rb +0 -33
  87. data/spec/lib/rails-settings-ui/value_types/array_spec.rb +0 -21
  88. data/spec/lib/rails-settings-ui/value_types/base_spec.rb +0 -23
  89. data/spec/lib/rails-settings-ui/value_types/boolean_spec.rb +0 -10
  90. data/spec/lib/rails-settings-ui/value_types/duration_spec.rb +0 -19
  91. data/spec/lib/rails-settings-ui/value_types/fixnum_spec.rb +0 -17
  92. data/spec/lib/rails-settings-ui/value_types/float_spec.rb +0 -17
  93. data/spec/lib/rails-settings-ui/value_types/hash_spec.rb +0 -26
  94. data/spec/lib/rails-settings-ui/value_types/string_spec.rb +0 -10
  95. data/spec/lib/rails-settings-ui/value_types/symbol_spec.rb +0 -10

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.