spout 0.10.0.beta1 → 0.10.0.beta2
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/CHANGELOG.md +3 -0
- data/lib/spout/tests/variable_display_name_length.rb +13 -0
- data/lib/spout/tests.rb +2 -0
- data/lib/spout/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 576ed6dafb25a7cac3d41903b706e53369a21a16
|
4
|
+
data.tar.gz: ea0b29fb9b520374ffcd6971da21a0cad5677751
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c04feea6e21057e705a05775cddee9067e101eb4ee2af73b52eb38ff0c405146e720121fa659b59f8adb0b037482d7112dc9098390600f9550a98cc1080ebf4
|
7
|
+
data.tar.gz: 4f1894cc7e8115144a914c7c5cddff7d7c3a8ef50120362b1079b10ce565023cf8198b23a62e87c92f37267703ca0573de7e70547f8d2251994f59c01c8733ea
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,9 @@
|
|
4
4
|
- **Import Command**
|
5
5
|
- `spout import` now changes variables with all caps `display_name` to use title case instead
|
6
6
|
- Display names that use mixed case are unaffected
|
7
|
+
- **Testing Changes**
|
8
|
+
- Tests now include checks to assure that variable display_name fields don't exceed 255 length requirement
|
9
|
+
- `include Spout::Tests::VariableDisplayNameLength`
|
7
10
|
|
8
11
|
## 0.9.1 (October 14, 2014)
|
9
12
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Spout
|
2
|
+
module Tests
|
3
|
+
module VariableDisplayNameLength
|
4
|
+
|
5
|
+
Dir.glob("variables/**/*.json").each do |file|
|
6
|
+
define_method("test_variable_display_name_length: "+file) do
|
7
|
+
assert_operator 255, :>=, (begin JSON.parse(File.read(file))["display_name"].size rescue 0 end)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/spout/tests.rb
CHANGED
@@ -68,6 +68,7 @@ require 'spout/tests/json_validation'
|
|
68
68
|
require 'spout/tests/variable_type_validation'
|
69
69
|
require 'spout/tests/variable_name_uniqueness'
|
70
70
|
require 'spout/tests/variable_name_match'
|
71
|
+
require 'spout/tests/variable_display_name_length'
|
71
72
|
require 'spout/tests/domain_existence_validation'
|
72
73
|
require 'spout/tests/domain_format'
|
73
74
|
require 'spout/tests/domain_name_uniqueness'
|
@@ -84,6 +85,7 @@ module Spout
|
|
84
85
|
include Spout::Tests::VariableTypeValidation
|
85
86
|
include Spout::Tests::VariableNameUniqueness
|
86
87
|
include Spout::Tests::VariableNameMatch
|
88
|
+
include Spout::Tests::VariableDisplayNameLength
|
87
89
|
include Spout::Tests::DomainExistenceValidation
|
88
90
|
include Spout::Tests::DomainFormat
|
89
91
|
include Spout::Tests::DomainNameUniqueness
|
data/lib/spout/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.0.
|
4
|
+
version: 0.10.0.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Remo Mueller
|
@@ -159,6 +159,7 @@ files:
|
|
159
159
|
- lib/spout/tests/form_name_uniqueness.rb
|
160
160
|
- lib/spout/tests/json_helper.rb
|
161
161
|
- lib/spout/tests/json_validation.rb
|
162
|
+
- lib/spout/tests/variable_display_name_length.rb
|
162
163
|
- lib/spout/tests/variable_name_match.rb
|
163
164
|
- lib/spout/tests/variable_name_uniqueness.rb
|
164
165
|
- lib/spout/tests/variable_type_validation.rb
|