yaml-validator 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +3 -3
- data/lib/helpers.rb +1 -1
- data/lib/yaml-validator/version.rb +1 -1
- data/spec/fixtures/numbered_keys/en.yml +2 -0
- data/spec/fixtures/numbered_keys/he.yml +2 -0
- data/spec/yaml-validator_spec.rb +9 -0
- metadata +17 -27
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 52b11bc6fc2895275cbaa9b598991cb46e6141e1
|
4
|
+
data.tar.gz: db3eeee113be83b523e616fea3d5d5613be28d6d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 91d4c5b1aa9fc563ea41e7a3f55d2b871c01af8bf5afa11acc70d56aac3f7c6f9f91f41b75db14c79389b6917563f7f56c140088376f11affe4122b6f0a28a4c
|
7
|
+
data.tar.gz: 23a18a9b2148c99decda38733b7d74763e098d7955b70c5dde3dc47815ff5aeba2b4e861c51896514cf84606ea7f4a10a88dafa5054742fe58e1f615a0d8ab69
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
yaml-validator (0.1.
|
4
|
+
yaml-validator (0.1.3)
|
5
5
|
colorize
|
6
6
|
rake
|
7
7
|
rspec
|
@@ -11,7 +11,7 @@ GEM
|
|
11
11
|
specs:
|
12
12
|
colorize (0.5.8)
|
13
13
|
diff-lcs (1.1.3)
|
14
|
-
rake (10.0.
|
14
|
+
rake (10.0.4)
|
15
15
|
rspec (2.12.0)
|
16
16
|
rspec-core (~> 2.12.0)
|
17
17
|
rspec-expectations (~> 2.12.0)
|
@@ -19,7 +19,7 @@ GEM
|
|
19
19
|
rspec-core (2.12.2)
|
20
20
|
rspec-expectations (2.12.1)
|
21
21
|
diff-lcs (~> 1.1.3)
|
22
|
-
rspec-mocks (2.12.
|
22
|
+
rspec-mocks (2.12.0)
|
23
23
|
|
24
24
|
PLATFORMS
|
25
25
|
ruby
|
data/lib/helpers.rb
CHANGED
data/spec/yaml-validator_spec.rb
CHANGED
@@ -15,6 +15,15 @@ describe YamlValidator do
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
+
describe "numbered keys scenario" do
|
19
|
+
it "returns no errors" do
|
20
|
+
validator = YamlValidator.new('spec/fixtures/numbered_keys')
|
21
|
+
errors = validator.validate()
|
22
|
+
errors.should be_empty
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
18
27
|
describe "wrong_variables scenario" do
|
19
28
|
it "returns two errors" do
|
20
29
|
validator = YamlValidator.new('spec/fixtures/wrong_variables')
|
metadata
CHANGED
@@ -1,62 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaml-validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- David Elentok
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-04-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rspec
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: colorize
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
description: YAML locales validator
|
@@ -86,6 +79,8 @@ files:
|
|
86
79
|
- spec/fixtures/invalid_yml/invalid.yml
|
87
80
|
- spec/fixtures/missing_translations/en.yml
|
88
81
|
- spec/fixtures/missing_translations/he.yml
|
82
|
+
- spec/fixtures/numbered_keys/en.yml
|
83
|
+
- spec/fixtures/numbered_keys/he.yml
|
89
84
|
- spec/fixtures/weird_pluralizations/en.yml
|
90
85
|
- spec/fixtures/weird_pluralizations/ru.yml
|
91
86
|
- spec/fixtures/wrong_root/en.yml
|
@@ -97,33 +92,26 @@ files:
|
|
97
92
|
- yaml-validator.gemspec
|
98
93
|
homepage: http://github.com/wazeHQ/yaml-validator
|
99
94
|
licenses: []
|
95
|
+
metadata: {}
|
100
96
|
post_install_message:
|
101
97
|
rdoc_options: []
|
102
98
|
require_paths:
|
103
99
|
- lib
|
104
100
|
required_ruby_version: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
101
|
requirements:
|
107
|
-
- -
|
102
|
+
- - '>='
|
108
103
|
- !ruby/object:Gem::Version
|
109
104
|
version: '0'
|
110
|
-
segments:
|
111
|
-
- 0
|
112
|
-
hash: -1836755832709183753
|
113
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
106
|
requirements:
|
116
|
-
- -
|
107
|
+
- - '>='
|
117
108
|
- !ruby/object:Gem::Version
|
118
109
|
version: '0'
|
119
|
-
segments:
|
120
|
-
- 0
|
121
|
-
hash: -1836755832709183753
|
122
110
|
requirements: []
|
123
111
|
rubyforge_project:
|
124
|
-
rubygems_version:
|
112
|
+
rubygems_version: 2.0.0
|
125
113
|
signing_key:
|
126
|
-
specification_version:
|
114
|
+
specification_version: 4
|
127
115
|
summary: Validates .yml locale files for Ruby on Rails projects
|
128
116
|
test_files:
|
129
117
|
- spec/fixtures/inconsistent_types/en.yml
|
@@ -132,6 +120,8 @@ test_files:
|
|
132
120
|
- spec/fixtures/invalid_yml/invalid.yml
|
133
121
|
- spec/fixtures/missing_translations/en.yml
|
134
122
|
- spec/fixtures/missing_translations/he.yml
|
123
|
+
- spec/fixtures/numbered_keys/en.yml
|
124
|
+
- spec/fixtures/numbered_keys/he.yml
|
135
125
|
- spec/fixtures/weird_pluralizations/en.yml
|
136
126
|
- spec/fixtures/weird_pluralizations/ru.yml
|
137
127
|
- spec/fixtures/wrong_root/en.yml
|