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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e50bf89439f62303ac004c28c0a8667703e30f4a
4
- data.tar.gz: be7c8397dce6d4079f0d98b8e06923e2b1e685c3
3
+ metadata.gz: 37ca79e3efbf4a14cf28e5f0f58185527cb4656e
4
+ data.tar.gz: 37c45de124a821e40b36b96a610de74b0f8f8f4a
5
5
  SHA512:
6
- metadata.gz: b5f53395b85e06a43ff229715046d2aa5d9875e71f5a655a7b50bc1d3da37496630ba0ec2f1b064b8219d04b11143f8fec75c3cb2a6f781593eb79b135380ca2
7
- data.tar.gz: 2d382de9ab10cc0ccfaf9e6b203b290c2a2da7602fe6dad2baa4948d5b49f30ce82625db93717e500c6155b7d6545b64cad05d939b0afc44d60f1557fea54552
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
- File.exists?(File.join("domains", domain_name))
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
@@ -3,7 +3,7 @@ module Spout
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
5
  TINY = 0
6
- BUILD = "rc3" # nil, "pre", "rc", "rc2"
6
+ BUILD = "rc4" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
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.3.0.rc3
4
+ version: 0.3.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Remo Mueller