belongs_to_city 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -49,12 +49,17 @@ p. *--include-seed* will create a rake task to seed your City based database usi
49
49
  |*country_id*|*name*|*abbr*|*short*|*short2*|
50
50
  |1|Nuevo Leon|N.L.|NL|NLE|
51
51
  |1|Jalisco|Jal.|JA|JAL|
52
+ |2|Texal|TX|||
53
+ |2|Florida|FL|||
52
54
 
53
55
  *cities.csv*
54
56
 
55
57
  |*state_id*|*name*|*city_name*|
56
58
  |1|Monterey|Monterrey|
57
59
  |2|Guadalajara|Guadalajara|
60
+ |3|Houston||
61
+ |4|Miami||
62
+
58
63
 
59
64
  p. All that matters is that the header is present in the csv files, the order can change if you wish.
60
65
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.7.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{belongs_to_city}
8
- s.version = "0.6.0"
8
+ s.version = "0.7.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Adrian Cuadros"]
@@ -21,7 +21,7 @@ class BelongsToCityGenerator < Rails::Generator::Base
21
21
  end
22
22
  if @args.empty? or @args.include?('controller')
23
23
  m.template "controllers/cities_controller.rb", "app/controllers/cities_controller.rb"
24
- m.route_resource(:cities)
24
+ m.route_resources(:cities)
25
25
  end
26
26
 
27
27
  if options[:jq_autocomplete]
@@ -36,9 +36,6 @@ class BelongsToCityGenerator < Rails::Generator::Base
36
36
  m.file "cities.csv", "db/csv/cities.csv"
37
37
  m.file 'belongs_to_city_tasks.rake', 'lib/tasks/belongs_to_city_tasks.rake'
38
38
  end
39
-
40
- include_in_environment
41
-
42
39
  end
43
40
  end
44
41
 
@@ -1,2 +1,5 @@
1
1
  state_id,name,city_name
2
- 1,Monterrey,Monterrey
2
+ 1,Monterrey,Monterrey
3
+ 2,Guadalajara,Guadalajara
4
+ 3,Houston,
5
+ 4,Miami,
@@ -1,2 +1,3 @@
1
1
  name
2
- Mexico
2
+ Mexico
3
+ USA
@@ -1,2 +1,5 @@
1
1
  country_id,name,abbr,short,short2
2
- 1,Nuevo Leon,NLE,NL,Nle.
2
+ 1,Nuevo Leon,Nle.,NLE,NL
3
+ 1,Jalisco,Jal.,JAL,JA
4
+ 2,Texas,TX,,
5
+ 2,Florida,FL,,
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 6
7
+ - 7
8
8
  - 0
9
- version: 0.6.0
9
+ version: 0.7.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Adrian Cuadros