geopolitical 0.9.9 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/geopolitical/geopolitical_controller.rb +1 -1
- data/app/serializers/city_serializer.rb +4 -0
- data/app/serializers/nation_serializer.rb +4 -0
- data/app/serializers/region_serializer.rb +4 -0
- data/lib/geopolitical/version.rb +1 -1
- data/spec/models/city_spec.rb +2 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f6cc6258963cfd63edcf81ea7ef8dd848fe79dd
|
4
|
+
data.tar.gz: a7c6580e0eee0054f9a4cf28d49127ba6a49443a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8099e04d0852f1411d1c5c1183179ba1d2752af428db53c118a0e25583d8645b316cc7301257233228d7695c3ffda1ac3372fc30250ba5d98fbb3672e1679b65
|
7
|
+
data.tar.gz: bc39717d1d8afb01c844408114b9d06d16b43cabca2d47fd1fd9f9062f7933533b03e615ee434705232f61d076e7016deb9dccf5d7388ee45fbd06a65c047463
|
data/lib/geopolitical/version.rb
CHANGED
data/spec/models/city_spec.rb
CHANGED
@@ -17,7 +17,8 @@ describe City, type: :model do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
it 'should append region abbr if it\'s a dup' do
|
20
|
-
sp
|
20
|
+
sp = Region.make(abbr: 'SP')
|
21
|
+
mg = Region.make(abbr: 'MG')
|
21
22
|
city1 = City.create(name: 'Patópolis', souls: 100_000, region: sp)
|
22
23
|
expect(city1.slug).to eq('patopolis')
|
23
24
|
city2 = City.create(name: 'Patópolis', souls: 100_000, region: mg)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geopolitical
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcos Piccinini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|
@@ -69,6 +69,9 @@ files:
|
|
69
69
|
- app/models/hood.rb
|
70
70
|
- app/models/nation.rb
|
71
71
|
- app/models/region.rb
|
72
|
+
- app/serializers/city_serializer.rb
|
73
|
+
- app/serializers/nation_serializer.rb
|
74
|
+
- app/serializers/region_serializer.rb
|
72
75
|
- app/views/geopolitical/cities/_city.html.haml
|
73
76
|
- app/views/geopolitical/cities/_form.html.haml
|
74
77
|
- app/views/geopolitical/cities/index.html.haml
|