looky-lu 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/data/lu/states.rb +1 -1
- data/lib/generators/lookylu/state_data_generator.rb +0 -4
- data/lib/looky-lu/version.rb +1 -1
- data/spec/data/state_data_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzUxOTViODMwY2VjMzQ5OTg1NjU4MGQxMzU4NmE5ZTI1NTNlYjQzYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTIzNjdlOTJmYTE4NGNlZTE1MDE4NmNjMWVmZDY5YmZlYjE4MWNmMg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTNlMTBkODBlZjZlMGY4OGZlOTdmODI3YmI3ZDAxYWFlZjUzZjhiNmNjZDAx
|
10
|
+
MTgwOTk0MjAyZTNiYzJhMzMyYjc0MDBhZTNmZmIyM2YyN2IyZjRlYjEzYmUz
|
11
|
+
Y2ZlODFjYTZjNmM1YzQyNWExODdiNWVkMGUyZTc5YTM0NWY3ZTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjE2NDk3NjBlM2Y5NDllMzFhNjljNGY0ODFiNjEwYmE1MGRiNjk4MTA0ODJl
|
14
|
+
ZjkzODM3MTk1NmQ1NjJjZGQxZTMyYzdjNDdmMjQ5NzAyNGZjODhkOWQ3MzUy
|
15
|
+
OTg1Zjc5OTY5NGJmNjE3M2U2MDYyNTI5ZmExNjZlN2M0MjE2ODE=
|
data/lib/data/lu/states.rb
CHANGED
@@ -11,10 +11,6 @@ module Lookylu
|
|
11
11
|
the_file = 'db/seeds.rb'
|
12
12
|
to_append = "\nLookyLu::States.insert_data('#{options.country_name}', '#{object_name}')\n"
|
13
13
|
|
14
|
-
#File.open(the_file, 'a') do |file|
|
15
|
-
# file.write "\nLookyLu::States.insert_data('#{options.country_name}', '#{object_name}')\n"
|
16
|
-
#end
|
17
|
-
|
18
14
|
FileUtils.touch the_file
|
19
15
|
append_file(the_file, to_append)
|
20
16
|
|
data/lib/looky-lu/version.rb
CHANGED
@@ -16,6 +16,12 @@ describe LookyLu::States do
|
|
16
16
|
to raise_error 'Could not find object for NotThere'
|
17
17
|
end
|
18
18
|
|
19
|
+
it 'should not duplicate the data' do
|
20
|
+
State.create({name: 'Nebraska', abbreviation: 'NE'})
|
21
|
+
LookyLu::States.insert_data('united_states', 'state')
|
22
|
+
State.count.should == 51
|
23
|
+
end
|
24
|
+
|
19
25
|
end
|
20
26
|
|
21
27
|
describe 'from country' do
|