spout 0.5.0.beta2 → 0.5.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/lib/spout/tests/variable_name_match.rb +13 -0
- data/lib/spout/tests.rb +2 -0
- data/lib/spout/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5043dfb4182d629954d9018ab7eb8e95bcb64222
|
4
|
+
data.tar.gz: 332f7a2c94d6ac1857d7c4d91e869a78d7b33124
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e998358735fb59f2d1aeed5ec17087e7193a2bf7932dc6eed7e1fcb695659975ca702ce3c09c54dedcdaf34050ee136bf101bc79d2eea22ec2a878273819c219
|
7
|
+
data.tar.gz: dbeea64a98572bce672acce291f6d0042f1291e2c03f5be25d0a011b7f597b2e0f705096bfeb9cac4e33f8b611c957b3c95269a89c03a413c316070dafe63395
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
module Spout
|
2
|
+
module Tests
|
3
|
+
module VariableNameMatch
|
4
|
+
|
5
|
+
Dir.glob("variables/**/*.json").each do |file|
|
6
|
+
define_method("test_variable_name_match: "+file) do
|
7
|
+
assert_equal file.gsub(/^.*\//, '').gsub('.json', '').downcase, (begin JSON.parse(File.read(file))["id"] rescue nil end)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/spout/tests.rb
CHANGED
@@ -6,6 +6,7 @@ require 'json'
|
|
6
6
|
require 'spout/tests/json_validation'
|
7
7
|
require 'spout/tests/variable_type_validation'
|
8
8
|
require 'spout/tests/variable_name_uniqueness'
|
9
|
+
require 'spout/tests/variable_name_match'
|
9
10
|
require 'spout/tests/domain_existence_validation'
|
10
11
|
require 'spout/tests/domain_format'
|
11
12
|
require 'spout/tests/domain_name_uniqueness'
|
@@ -16,6 +17,7 @@ module Spout
|
|
16
17
|
include Spout::Tests::JsonValidation
|
17
18
|
include Spout::Tests::VariableTypeValidation
|
18
19
|
include Spout::Tests::VariableNameUniqueness
|
20
|
+
include Spout::Tests::VariableNameMatch
|
19
21
|
include Spout::Tests::DomainExistenceValidation
|
20
22
|
include Spout::Tests::DomainFormat
|
21
23
|
include Spout::Tests::DomainNameUniqueness
|
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.5.0.
|
4
|
+
version: 0.5.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Remo Mueller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- lib/spout/tests/domain_specified.rb
|
110
110
|
- lib/spout/tests/json_helper.rb
|
111
111
|
- lib/spout/tests/json_validation.rb
|
112
|
+
- lib/spout/tests/variable_name_match.rb
|
112
113
|
- lib/spout/tests/variable_name_uniqueness.rb
|
113
114
|
- lib/spout/tests/variable_type_validation.rb
|
114
115
|
- lib/spout/tests.rb
|