sharp_zones 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +51 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/javascripts/sharp_zones/application.js +15 -0
  5. data/app/assets/javascripts/sharp_zones/sharp_cities.js +2 -0
  6. data/app/assets/javascripts/sharp_zones/sharp_zones.js +2 -0
  7. data/app/assets/stylesheets/sharp_zones/application.css +13 -0
  8. data/app/assets/stylesheets/sharp_zones/sharp_cities.css +4 -0
  9. data/app/assets/stylesheets/sharp_zones/sharp_zones.css +4 -0
  10. data/app/controllers/sharp_zones/application_controller.rb +4 -0
  11. data/app/controllers/sharp_zones/sharp_cities_controller.rb +14 -0
  12. data/app/controllers/sharp_zones/sharp_zones_controller.rb +6 -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 +7 -0
  21. data/config/routes.rb +4 -0
  22. data/db/migrate/20130418094005_create_sharp_zones.rb +28 -0
  23. data/db/zones.db +0 -0
  24. data/lib/generators/sharp_zones/USAGE +8 -0
  25. data/lib/generators/sharp_zones/sharp_zones_generator.rb +15 -0
  26. data/lib/generators/sharp_zones/templates/city.rb +2 -0
  27. data/lib/generators/sharp_zones/templates/migration.rb +28 -0
  28. data/lib/generators/sharp_zones/templates/province.rb +2 -0
  29. data/lib/generators/sharp_zones/templates/zone.rb +2 -0
  30. data/lib/sharp_zones/engine.rb +6 -0
  31. data/lib/sharp_zones/version.rb +3 -0
  32. data/lib/sharp_zones/view_helpers.rb +12 -0
  33. data/lib/sharp_zones.rb +5 -0
  34. data/lib/tasks/sharp_zones_tasks.rake +32 -0
  35. data/test/dummy/README.rdoc +261 -0
  36. data/test/dummy/Rakefile +7 -0
  37. data/test/dummy/app/assets/javascripts/application.js +15 -0
  38. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  39. data/test/dummy/app/controllers/application_controller.rb +3 -0
  40. data/test/dummy/app/helpers/application_helper.rb +2 -0
  41. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  42. data/test/dummy/config/application.rb +59 -0
  43. data/test/dummy/config/boot.rb +10 -0
  44. data/test/dummy/config/database.yml +25 -0
  45. data/test/dummy/config/environment.rb +5 -0
  46. data/test/dummy/config/environments/development.rb +37 -0
  47. data/test/dummy/config/environments/production.rb +67 -0
  48. data/test/dummy/config/environments/test.rb +37 -0
  49. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  50. data/test/dummy/config/initializers/inflections.rb +15 -0
  51. data/test/dummy/config/initializers/mime_types.rb +5 -0
  52. data/test/dummy/config/initializers/secret_token.rb +7 -0
  53. data/test/dummy/config/initializers/session_store.rb +8 -0
  54. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  55. data/test/dummy/config/locales/en.yml +5 -0
  56. data/test/dummy/config/routes.rb +4 -0
  57. data/test/dummy/config.ru +4 -0
  58. data/test/dummy/public/404.html +26 -0
  59. data/test/dummy/public/422.html +26 -0
  60. data/test/dummy/public/500.html +25 -0
  61. data/test/dummy/public/favicon.ico +0 -0
  62. data/test/dummy/script/rails +6 -0
  63. data/test/fixtures/sharp_zones/cities.yml +11 -0
  64. data/test/fixtures/sharp_zones/provinces.yml +11 -0
  65. data/test/fixtures/sharp_zones/zones.yml +11 -0
  66. data/test/functional/sharp_zones/sharp_cities_controller_test.rb +9 -0
  67. data/test/functional/sharp_zones/sharp_zones_controller_test.rb +9 -0
  68. data/test/integration/navigation_test.rb +10 -0
  69. data/test/sharp_zones_test.rb +7 -0
  70. data/test/test_helper.rb +15 -0
  71. data/test/unit/helpers/sharp_zones/sharp_cities_helper_test.rb +6 -0
  72. data/test/unit/helpers/sharp_zones/sharp_zones_helper_test.rb +6 -0
  73. data/test/unit/sharp_zones/city_test.rb +9 -0
  74. data/test/unit/sharp_zones/province_test.rb +9 -0
  75. data/test/unit/sharp_zones/zone_test.rb +9 -0
  76. metadata +195 -0
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module SharpZones
4
+ class CityTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module SharpZones
4
+ class ProvinceTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module SharpZones
4
+ class ZoneTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,195 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sharp_zones
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Sharp
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-05-04 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &70140336984800 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>'
20
+ - !ruby/object:Gem::Version
21
+ version: 3.0.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70140336984800
25
+ - !ruby/object:Gem::Dependency
26
+ name: sequel
27
+ requirement: &70140336984380 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70140336984380
36
+ - !ruby/object:Gem::Dependency
37
+ name: sqlite3
38
+ requirement: &70140336983920 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70140336983920
47
+ description: 省份、城市、地区内置区域数据库导入
48
+ email:
49
+ - liu19850701@gmail.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - app/assets/javascripts/sharp_zones/application.js
55
+ - app/assets/javascripts/sharp_zones/sharp_cities.js
56
+ - app/assets/javascripts/sharp_zones/sharp_zones.js
57
+ - app/assets/stylesheets/sharp_zones/application.css
58
+ - app/assets/stylesheets/sharp_zones/sharp_cities.css
59
+ - app/assets/stylesheets/sharp_zones/sharp_zones.css
60
+ - app/controllers/sharp_zones/application_controller.rb
61
+ - app/controllers/sharp_zones/sharp_cities_controller.rb
62
+ - app/controllers/sharp_zones/sharp_zones_controller.rb
63
+ - app/helpers/sharp_zones/application_helper.rb
64
+ - app/helpers/sharp_zones/sharp_cities_helper.rb
65
+ - app/helpers/sharp_zones/sharp_zones_helper.rb
66
+ - app/inputs/simple_form.rb
67
+ - app/views/layouts/sharp_zones/application.html.erb
68
+ - app/views/sharp_cities/_select.html.erb
69
+ - app/views/sharp_cities/_simple_form_select.html.erb
70
+ - app/views/sharp_cities/index.js.erb
71
+ - config/routes.rb
72
+ - db/migrate/20130418094005_create_sharp_zones.rb
73
+ - db/zones.db
74
+ - lib/generators/sharp_zones/sharp_zones_generator.rb
75
+ - lib/generators/sharp_zones/templates/city.rb
76
+ - lib/generators/sharp_zones/templates/migration.rb
77
+ - lib/generators/sharp_zones/templates/province.rb
78
+ - lib/generators/sharp_zones/templates/zone.rb
79
+ - lib/generators/sharp_zones/USAGE
80
+ - lib/sharp_zones/engine.rb
81
+ - lib/sharp_zones/version.rb
82
+ - lib/sharp_zones/view_helpers.rb
83
+ - lib/sharp_zones.rb
84
+ - lib/tasks/sharp_zones_tasks.rake
85
+ - MIT-LICENSE
86
+ - Rakefile
87
+ - README.md
88
+ - test/dummy/app/assets/javascripts/application.js
89
+ - test/dummy/app/assets/stylesheets/application.css
90
+ - test/dummy/app/controllers/application_controller.rb
91
+ - test/dummy/app/helpers/application_helper.rb
92
+ - test/dummy/app/views/layouts/application.html.erb
93
+ - test/dummy/config/application.rb
94
+ - test/dummy/config/boot.rb
95
+ - test/dummy/config/database.yml
96
+ - test/dummy/config/environment.rb
97
+ - test/dummy/config/environments/development.rb
98
+ - test/dummy/config/environments/production.rb
99
+ - test/dummy/config/environments/test.rb
100
+ - test/dummy/config/initializers/backtrace_silencers.rb
101
+ - test/dummy/config/initializers/inflections.rb
102
+ - test/dummy/config/initializers/mime_types.rb
103
+ - test/dummy/config/initializers/secret_token.rb
104
+ - test/dummy/config/initializers/session_store.rb
105
+ - test/dummy/config/initializers/wrap_parameters.rb
106
+ - test/dummy/config/locales/en.yml
107
+ - test/dummy/config/routes.rb
108
+ - test/dummy/config.ru
109
+ - test/dummy/public/404.html
110
+ - test/dummy/public/422.html
111
+ - test/dummy/public/500.html
112
+ - test/dummy/public/favicon.ico
113
+ - test/dummy/Rakefile
114
+ - test/dummy/README.rdoc
115
+ - test/dummy/script/rails
116
+ - test/fixtures/sharp_zones/cities.yml
117
+ - test/fixtures/sharp_zones/provinces.yml
118
+ - test/fixtures/sharp_zones/zones.yml
119
+ - test/functional/sharp_zones/sharp_cities_controller_test.rb
120
+ - test/functional/sharp_zones/sharp_zones_controller_test.rb
121
+ - test/integration/navigation_test.rb
122
+ - test/sharp_zones_test.rb
123
+ - test/test_helper.rb
124
+ - test/unit/helpers/sharp_zones/sharp_cities_helper_test.rb
125
+ - test/unit/helpers/sharp_zones/sharp_zones_helper_test.rb
126
+ - test/unit/sharp_zones/city_test.rb
127
+ - test/unit/sharp_zones/province_test.rb
128
+ - test/unit/sharp_zones/zone_test.rb
129
+ homepage: https://github.com/SharpV/sharp_zones
130
+ licenses: []
131
+ post_install_message:
132
+ rdoc_options: []
133
+ require_paths:
134
+ - lib
135
+ required_ruby_version: !ruby/object:Gem::Requirement
136
+ none: false
137
+ requirements:
138
+ - - ! '>='
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
+ none: false
143
+ requirements:
144
+ - - ! '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ requirements: []
148
+ rubyforge_project:
149
+ rubygems_version: 1.8.15
150
+ signing_key:
151
+ specification_version: 3
152
+ summary: 省份、城市、地区内置区域数据库导入
153
+ test_files:
154
+ - test/dummy/app/assets/javascripts/application.js
155
+ - test/dummy/app/assets/stylesheets/application.css
156
+ - test/dummy/app/controllers/application_controller.rb
157
+ - test/dummy/app/helpers/application_helper.rb
158
+ - test/dummy/app/views/layouts/application.html.erb
159
+ - test/dummy/config/application.rb
160
+ - test/dummy/config/boot.rb
161
+ - test/dummy/config/database.yml
162
+ - test/dummy/config/environment.rb
163
+ - test/dummy/config/environments/development.rb
164
+ - test/dummy/config/environments/production.rb
165
+ - test/dummy/config/environments/test.rb
166
+ - test/dummy/config/initializers/backtrace_silencers.rb
167
+ - test/dummy/config/initializers/inflections.rb
168
+ - test/dummy/config/initializers/mime_types.rb
169
+ - test/dummy/config/initializers/secret_token.rb
170
+ - test/dummy/config/initializers/session_store.rb
171
+ - test/dummy/config/initializers/wrap_parameters.rb
172
+ - test/dummy/config/locales/en.yml
173
+ - test/dummy/config/routes.rb
174
+ - test/dummy/config.ru
175
+ - test/dummy/public/404.html
176
+ - test/dummy/public/422.html
177
+ - test/dummy/public/500.html
178
+ - test/dummy/public/favicon.ico
179
+ - test/dummy/Rakefile
180
+ - test/dummy/README.rdoc
181
+ - test/dummy/script/rails
182
+ - test/fixtures/sharp_zones/cities.yml
183
+ - test/fixtures/sharp_zones/provinces.yml
184
+ - test/fixtures/sharp_zones/zones.yml
185
+ - test/functional/sharp_zones/sharp_cities_controller_test.rb
186
+ - test/functional/sharp_zones/sharp_zones_controller_test.rb
187
+ - test/integration/navigation_test.rb
188
+ - test/sharp_zones_test.rb
189
+ - test/test_helper.rb
190
+ - test/unit/helpers/sharp_zones/sharp_cities_helper_test.rb
191
+ - test/unit/helpers/sharp_zones/sharp_zones_helper_test.rb
192
+ - test/unit/sharp_zones/city_test.rb
193
+ - test/unit/sharp_zones/province_test.rb
194
+ - test/unit/sharp_zones/zone_test.rb
195
+ has_rdoc: