china 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +30 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/javascripts/sharp_zones/application.js +15 -0
  6. data/app/assets/javascripts/sharp_zones/sharp_cities.js +2 -0
  7. data/app/assets/javascripts/sharp_zones/sharp_zones.js +2 -0
  8. data/app/assets/stylesheets/sharp_zones/application.css +13 -0
  9. data/app/assets/stylesheets/sharp_zones/sharp_cities.css +4 -0
  10. data/app/assets/stylesheets/sharp_zones/sharp_zones.css +4 -0
  11. data/app/controllers/china/application_controller.rb +4 -0
  12. data/app/controllers/china/sharp_cities_controller.rb +14 -0
  13. data/app/helpers/sharp_zones/application_helper.rb +5 -0
  14. data/app/helpers/sharp_zones/sharp_cities_helper.rb +4 -0
  15. data/app/helpers/sharp_zones/sharp_zones_helper.rb +4 -0
  16. data/app/inputs/simple_form.rb +20 -0
  17. data/app/views/layouts/sharp_zones/application.html.erb +14 -0
  18. data/app/views/sharp_cities/_select.html.erb +16 -0
  19. data/app/views/sharp_cities/_simple_form_select.html.erb +16 -0
  20. data/app/views/sharp_cities/index.js.erb +1 -0
  21. data/config/routes.rb +3 -0
  22. data/db/cities.json +1 -0
  23. data/db/city_code.rb +27104 -0
  24. data/db/zones.db +0 -0
  25. data/lib/china/engine.rb +6 -0
  26. data/lib/china/version.rb +3 -0
  27. data/lib/china/view_helpers.rb +12 -0
  28. data/lib/china.rb +5 -0
  29. data/lib/generators/china/USAGE +8 -0
  30. data/lib/generators/china/china_generator.rb +26 -0
  31. data/lib/generators/china/templates/china_city.rb +9 -0
  32. data/lib/generators/china/templates/create_china_cities.rb +18 -0
  33. data/lib/generators/china/templates/import_china_cities.rb +34 -0
  34. data/test/dummy/README.rdoc +261 -0
  35. data/test/dummy/Rakefile +7 -0
  36. data/test/dummy/app/assets/javascripts/application.js +15 -0
  37. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  38. data/test/dummy/app/controllers/application_controller.rb +3 -0
  39. data/test/dummy/app/helpers/application_helper.rb +2 -0
  40. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  41. data/test/dummy/config/application.rb +59 -0
  42. data/test/dummy/config/boot.rb +10 -0
  43. data/test/dummy/config/database.yml +25 -0
  44. data/test/dummy/config/environment.rb +5 -0
  45. data/test/dummy/config/environments/development.rb +37 -0
  46. data/test/dummy/config/environments/production.rb +67 -0
  47. data/test/dummy/config/environments/test.rb +37 -0
  48. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  49. data/test/dummy/config/initializers/inflections.rb +15 -0
  50. data/test/dummy/config/initializers/mime_types.rb +5 -0
  51. data/test/dummy/config/initializers/secret_token.rb +7 -0
  52. data/test/dummy/config/initializers/session_store.rb +8 -0
  53. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  54. data/test/dummy/config/locales/en.yml +5 -0
  55. data/test/dummy/config/routes.rb +4 -0
  56. data/test/dummy/config.ru +4 -0
  57. data/test/dummy/public/404.html +26 -0
  58. data/test/dummy/public/422.html +26 -0
  59. data/test/dummy/public/500.html +25 -0
  60. data/test/dummy/public/favicon.ico +0 -0
  61. data/test/dummy/script/rails +6 -0
  62. data/test/fixtures/sharp_zones/cities.yml +11 -0
  63. data/test/fixtures/sharp_zones/provinces.yml +11 -0
  64. data/test/fixtures/sharp_zones/zones.yml +11 -0
  65. data/test/functional/sharp_zones/sharp_cities_controller_test.rb +9 -0
  66. data/test/functional/sharp_zones/sharp_zones_controller_test.rb +9 -0
  67. data/test/integration/navigation_test.rb +10 -0
  68. data/test/sharp_zones_test.rb +7 -0
  69. data/test/test_helper.rb +15 -0
  70. data/test/unit/helpers/sharp_zones/sharp_cities_helper_test.rb +6 -0
  71. data/test/unit/helpers/sharp_zones/sharp_zones_helper_test.rb +6 -0
  72. data/test/unit/sharp_zones/city_test.rb +9 -0
  73. data/test/unit/sharp_zones/province_test.rb +9 -0
  74. data/test/unit/sharp_zones/zone_test.rb +9 -0
  75. metadata +186 -0

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.