spout 0.3.0.rc3 → 0.3.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/lib/spout/tests/domain_existence_validation.rb +1 -1
- data/lib/spout/tests/domain_name_uniqueness.rb +1 -1
- data/lib/spout/tests/variable_name_uniqueness.rb +1 -1
- data/lib/spout/tests/variable_type_validation.rb +1 -1
- 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: 37ca79e3efbf4a14cf28e5f0f58185527cb4656e
|
4
|
+
data.tar.gz: 37c45de124a821e40b36b96a610de74b0f8f8f4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5af91eb56ffc2c34602cbb9a1cf10a34ea493437df4d50e1a88e06b471b793a5973180faf8c4fab71c3ae69116127952dd44db94c7f984b0f778e3d4ebfe52b9
|
7
|
+
data.tar.gz: 61e7f8de57f5e738a41091b50b13d4b4166d920534d0f89a455c374b4efd9ab4dc6d652a17d951fe19cf698a7a1d90b4cce0377f78ca64ad54b5e89d58a52f93
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
- Tests now include check for variable and domain name uniqueness across folders
|
7
7
|
- `include Spout::Tests::VariableNameUniqueness`
|
8
8
|
- `include Spout::Tests::DomainNameUniqueness`
|
9
|
+
- Tests now allow `datetime` as a valid variable type
|
9
10
|
- Exports will now create a folder based on the version specified in the `VERSION` file located in the root of the data dictionary
|
10
11
|
- If a version is specified, `spout export 1.0.1` then the command line version is used
|
11
12
|
- If no version is specified, and no `VERSION` file exists, then the default `1.0.0` is used
|
@@ -13,6 +14,9 @@
|
|
13
14
|
- Spout can now create a new Spout project in a folder that was cloned from a Git repository
|
14
15
|
- Use of Ruby 2.0.0-p247 is now recommended
|
15
16
|
|
17
|
+
### Bug Fix
|
18
|
+
- `DomainExistenceValidation` tests are now case-insensitive
|
19
|
+
|
16
20
|
## 0.2.0 (June 26, 2013)
|
17
21
|
|
18
22
|
### Enhancements
|
data/README.md
CHANGED
@@ -52,6 +52,7 @@ Other columns that will be interpreted include:
|
|
52
52
|
- `text`
|
53
53
|
- `date`
|
54
54
|
- `time`
|
55
|
+
- `datetime`
|
55
56
|
- `file`
|
56
57
|
|
57
58
|
`domain`: The name of the domain that is associated with the variable. Typically, only variable of type `choices` have domains. These domains then reside in `domains` folder.
|
@@ -5,7 +5,7 @@ module Spout
|
|
5
5
|
def assert_domain_existence(item, msg = nil)
|
6
6
|
result = begin
|
7
7
|
domain_name = JSON.parse(File.read(item))["domain"]+".json"
|
8
|
-
|
8
|
+
Dir.glob(File.join("domains", domain_name), File::FNM_CASEFOLD).size > 0
|
9
9
|
rescue JSON::ParserError
|
10
10
|
false
|
11
11
|
end
|
@@ -2,7 +2,7 @@ module Spout
|
|
2
2
|
module Tests
|
3
3
|
module DomainNameUniqueness
|
4
4
|
def test_domain_name_uniqueness
|
5
|
-
files = Dir.glob("domains/**/*.json").collect{|file| file.split('/').last }
|
5
|
+
files = Dir.glob("domains/**/*.json").collect{|file| file.split('/').last.downcase }
|
6
6
|
assert_equal [], files.select{ |f| files.count(f) > 1 }.uniq
|
7
7
|
end
|
8
8
|
end
|
@@ -2,7 +2,7 @@ module Spout
|
|
2
2
|
module Tests
|
3
3
|
module VariableNameUniqueness
|
4
4
|
def test_variable_name_uniqueness
|
5
|
-
files = Dir.glob("variables/**/*.json").collect{|file| file.split('/').last }
|
5
|
+
files = Dir.glob("variables/**/*.json").collect{|file| file.split('/').last.downcase }
|
6
6
|
assert_equal [], files.select{ |f| files.count(f) > 1 }.uniq
|
7
7
|
end
|
8
8
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Spout
|
2
2
|
module Tests
|
3
3
|
module VariableTypeValidation
|
4
|
-
VALID_VARIABLE_TYPES = ['identifier', 'choices', 'integer', 'numeric', 'string', 'text', 'date', 'time', 'file'].sort
|
4
|
+
VALID_VARIABLE_TYPES = ['identifier', 'choices', 'integer', 'numeric', 'string', 'text', 'date', 'time', 'file', 'datetime'].sort
|
5
5
|
|
6
6
|
def assert_variable_type(item, msg = nil)
|
7
7
|
full_message = build_message(msg, "? invalid variable type. Valid types: #{VALID_VARIABLE_TYPES.join(', ')}", item)
|
data/lib/spout/version.rb
CHANGED