spout 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -2
- data/lib/spout/commands/deploy.rb +1 -1
- data/lib/spout/templates/test/dictionary_test.rb +7 -5
- data/lib/spout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b714b2cbb3e35b82c5dc6acde94423ead958e6f
|
4
|
+
data.tar.gz: 1bc6918aa8565d51dc49489c8b502d66e9c915ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 066a9868c637823fe5016f024a52d6ffb14df7541553f0e29329f648c164eff4caca0b4849af2538f64a41bcb39b0a4491400c3e9573d0efb3e5f7c700803e9d
|
7
|
+
data.tar.gz: 9bd04ed7f2ff8fe8c24d17cae04a60cdbc57564ed4e6901eeda59a7a181518cc41d789cf40fe7e4711b23cf1feb10d05137bfb39d5e81d38c5228af2b76eafa9
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -178,11 +178,11 @@ valid unit type
|
|
178
178
|
|
179
179
|
```ruby
|
180
180
|
class DictionaryTest < Minitest::Test
|
181
|
-
# This line includes all default Spout Dictionary tests
|
181
|
+
# This line includes all default Spout Dictionary tests.
|
182
182
|
include Spout::Tests
|
183
183
|
|
184
184
|
# This line provides access to @variables, @forms, and @domains iterators
|
185
|
-
#
|
185
|
+
# that can be used to write custom tests.
|
186
186
|
include Spout::Helpers::Iterators
|
187
187
|
|
188
188
|
VALID_UNITS = ['minutes', 'hours']
|
@@ -284,7 +284,7 @@ module Spout
|
|
284
284
|
require 'spout/commands/exporter'
|
285
285
|
Spout::Commands::Exporter.new(@version, ['--quiet'])
|
286
286
|
|
287
|
-
csv_files = Dir.glob("
|
287
|
+
csv_files = Dir.glob("exports/#{@version}/*.csv")
|
288
288
|
csv_files.each_with_index do |csv_file, index|
|
289
289
|
print "\r Dictionary Uploads: " + "#{index + 1} of #{csv_files.count}".colorize(:green)
|
290
290
|
@created_folders << 'datasets'
|
@@ -2,17 +2,19 @@
|
|
2
2
|
|
3
3
|
require 'test_helper'
|
4
4
|
|
5
|
-
# Launches default Spout tests and custom tests for specific to this dictionary
|
5
|
+
# Launches default Spout tests and custom tests for specific to this dictionary.
|
6
6
|
class DictionaryTest < Minitest::Test
|
7
|
-
# This line includes all default Spout Dictionary tests
|
7
|
+
# This line includes all default Spout Dictionary tests.
|
8
8
|
include Spout::Tests
|
9
9
|
|
10
10
|
# This line provides access to @variables, @forms, and @domains iterators
|
11
|
-
#
|
11
|
+
# that can be used to write custom tests.
|
12
12
|
include Spout::Helpers::Iterators
|
13
13
|
|
14
|
-
# Example 1: Create custom tests to show that `integer` and `numeric`
|
15
|
-
#
|
14
|
+
# Example 1: Create custom tests to show that `integer` and `numeric`
|
15
|
+
# variables have a valid unit type.
|
16
|
+
# Add your own valid units to this array.
|
17
|
+
# VALID_UNITS = ['minutes', 'hours']
|
16
18
|
# @variables.select { |v| %w(numeric integer).include?(v.type) }.each do |variable|
|
17
19
|
# define_method("test_units: #{variable.path}") do
|
18
20
|
# message = "\"#{variable.units}\"".colorize(:red) + " invalid units.\n" +
|
data/lib/spout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Remo Mueller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03
|
11
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|