china 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +30 -0
- data/Rakefile +40 -0
- data/app/assets/javascripts/sharp_zones/application.js +15 -0
- data/app/assets/javascripts/sharp_zones/sharp_cities.js +2 -0
- data/app/assets/javascripts/sharp_zones/sharp_zones.js +2 -0
- data/app/assets/stylesheets/sharp_zones/application.css +13 -0
- data/app/assets/stylesheets/sharp_zones/sharp_cities.css +4 -0
- data/app/assets/stylesheets/sharp_zones/sharp_zones.css +4 -0
- data/app/controllers/china/application_controller.rb +4 -0
- data/app/controllers/china/sharp_cities_controller.rb +14 -0
- data/app/helpers/sharp_zones/application_helper.rb +5 -0
- data/app/helpers/sharp_zones/sharp_cities_helper.rb +4 -0
- data/app/helpers/sharp_zones/sharp_zones_helper.rb +4 -0
- data/app/inputs/simple_form.rb +20 -0
- data/app/views/layouts/sharp_zones/application.html.erb +14 -0
- data/app/views/sharp_cities/_select.html.erb +16 -0
- data/app/views/sharp_cities/_simple_form_select.html.erb +16 -0
- data/app/views/sharp_cities/index.js.erb +1 -0
- data/config/routes.rb +3 -0
- data/db/cities.json +1 -0
- data/db/city_code.rb +27104 -0
- data/db/zones.db +0 -0
- data/lib/china/engine.rb +6 -0
- data/lib/china/version.rb +3 -0
- data/lib/china/view_helpers.rb +12 -0
- data/lib/china.rb +5 -0
- data/lib/generators/china/USAGE +8 -0
- data/lib/generators/china/china_generator.rb +26 -0
- data/lib/generators/china/templates/china_city.rb +9 -0
- data/lib/generators/china/templates/create_china_cities.rb +18 -0
- data/lib/generators/china/templates/import_china_cities.rb +34 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/fixtures/sharp_zones/cities.yml +11 -0
- data/test/fixtures/sharp_zones/provinces.yml +11 -0
- data/test/fixtures/sharp_zones/zones.yml +11 -0
- data/test/functional/sharp_zones/sharp_cities_controller_test.rb +9 -0
- data/test/functional/sharp_zones/sharp_zones_controller_test.rb +9 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/sharp_zones_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- data/test/unit/helpers/sharp_zones/sharp_cities_helper_test.rb +6 -0
- data/test/unit/helpers/sharp_zones/sharp_zones_helper_test.rb +6 -0
- data/test/unit/sharp_zones/city_test.rb +9 -0
- data/test/unit/sharp_zones/province_test.rb +9 -0
- data/test/unit/sharp_zones/zone_test.rb +9 -0
- 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.