spout 0.1.0.rc4 → 0.1.0.rc5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/spout/actions.rb +1 -1
- data/lib/spout/tasks/engine.rake +2 -2
- data/lib/spout/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b04fd8296276c57cd273d55e56167745933ef6b4
|
4
|
+
data.tar.gz: b50eeddbfe57c6592fb2932d7aec4824470d0879
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 910d28fb9890d03513a4db761b759b02e1fa806789fbfdc2099d24e154ffd8bc74a85124f3967911c1892e0c7ff6f791d397b29129070004d833bf042881b5db
|
7
|
+
data.tar.gz: f9caf4d259699c2ebfee3ef520bbb8ddf020ef2ca99e042a546389c527d7d1ea2c6583ba3372251b2db9b71fac2b19724a08bf044715223a5535608c629bf2a1
|
data/lib/spout/actions.rb
CHANGED
@@ -89,7 +89,7 @@ EOT
|
|
89
89
|
directory 'test'
|
90
90
|
copy_file 'test/dictionary_test.rb'
|
91
91
|
copy_file 'test/test_helper.rb'
|
92
|
-
puts " run".colorize( :green ) + " bundle install".colorize( :
|
92
|
+
puts " run".colorize( :green ) + " bundle install".colorize( :light_cyan )
|
93
93
|
Dir.chdir(@full_path)
|
94
94
|
system "bundle install"
|
95
95
|
end
|
data/lib/spout/tasks/engine.rake
CHANGED
@@ -51,14 +51,14 @@ namespace :dd do
|
|
51
51
|
|
52
52
|
desc 'Initialize JSON repository from a CSV file: CSV=datadictionary.csv'
|
53
53
|
task :import do
|
54
|
-
additional_csv_info = "\n\nFor additional information on specifying CSV column headers before import see:\n\n " + "https://github.com/sleepepi/spout#generate-a-new-repository-from-an-existing-csv-file".colorize( :
|
54
|
+
additional_csv_info = "\n\nFor additional information on specifying CSV column headers before import see:\n\n " + "https://github.com/sleepepi/spout#generate-a-new-repository-from-an-existing-csv-file".colorize( :light_cyan ) + "\n\n"
|
55
55
|
|
56
56
|
puts ENV['CSV'].inspect
|
57
57
|
if File.exists?(ENV['CSV'].to_s)
|
58
58
|
CSV.parse( File.open(ENV['CSV'].to_s, 'r:iso-8859-1:utf-8'){|f| f.read}, headers: true ) do |line|
|
59
59
|
row = line.to_hash
|
60
60
|
if not row.keys.include?('id')
|
61
|
-
puts "\nMissing column header `id` in data dictionary.".colorize( :red ) + additional_csv_info
|
61
|
+
puts "\nMissing column header `".colorize( :red ) + "id".colorize( :light_cyan ) + "` in data dictionary.".colorize( :red ) + additional_csv_info
|
62
62
|
exit(1)
|
63
63
|
end
|
64
64
|
next if row['id'] == ''
|
data/lib/spout/version.rb
CHANGED