i18n-spec 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4db4ea848150650c8ab2acfcd637ff9ec2f7800a
4
+ data.tar.gz: fcd43373549929204be671cbe1d0f3f8e77be2e5
5
+ SHA512:
6
+ metadata.gz: ecf55f0e0fd6adf77c9c038d34e48c622a025a271f3d8a2d9d3b908f84142d498fba5af3acbf0027fea49aea340e7dd3e0820b22f22f31e5603f315cf61029fc
7
+ data.tar.gz: f6efd5e0e036faafd2ded6639d6f2e69f7ffa56b7133790758ab483147c8f07168acf550d6ecf709d9b3cfb452bc902a76111ee3a81a940f97142f53ea1f20c6
data/Gemfile CHANGED
@@ -1,11 +1,11 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gem "iso"
4
4
 
5
5
  group :development do
6
6
  gem "rspec", ">= 2.4.0"
7
- gem "bundler", "~> 1.1.3"
8
- gem "jeweler", "~> 1.6.4"
7
+ gem "bundler"
8
+ gem "jeweler"
9
9
  gem "rdoc"
10
10
  gem "rcov", ">= 0" if RUBY_VERSION < '1.9'
11
11
  end
@@ -1,17 +1,52 @@
1
1
  GEM
2
- remote: http://rubygems.org/
2
+ remote: https://rubygems.org/
3
3
  specs:
4
+ addressable (2.3.5)
5
+ builder (3.2.2)
6
+ descendants_tracker (0.0.3)
4
7
  diff-lcs (1.1.3)
5
- git (1.2.5)
8
+ faraday (0.9.0)
9
+ multipart-post (>= 1.2, < 3)
10
+ git (1.2.6)
11
+ github_api (0.11.2)
12
+ addressable (~> 2.3)
13
+ descendants_tracker (~> 0.0.1)
14
+ faraday (~> 0.8, < 0.10)
15
+ hashie (>= 1.2)
16
+ multi_json (>= 1.7.5, < 2.0)
17
+ nokogiri (~> 1.6.0)
18
+ oauth2
19
+ hashie (2.0.5)
20
+ highline (1.6.20)
6
21
  i18n (0.6.1)
7
22
  iso (0.0.5)
8
23
  i18n
9
- jeweler (1.6.4)
10
- bundler (~> 1.0)
24
+ jeweler (2.0.1)
25
+ builder
26
+ bundler (>= 1.0)
11
27
  git (>= 1.2.5)
28
+ github_api
29
+ highline (>= 1.6.15)
30
+ nokogiri (>= 1.5.10)
12
31
  rake
32
+ rdoc
13
33
  json (1.6.6)
14
- rake (0.9.2.2)
34
+ jwt (0.1.11)
35
+ multi_json (>= 1.5)
36
+ mini_portile (0.5.2)
37
+ multi_json (1.8.4)
38
+ multi_xml (0.5.5)
39
+ multipart-post (2.0.0)
40
+ nokogiri (1.6.1)
41
+ mini_portile (~> 0.5.0)
42
+ oauth2 (0.9.3)
43
+ faraday (>= 0.8, < 0.10)
44
+ jwt (~> 0.1.8)
45
+ multi_json (~> 1.3)
46
+ multi_xml (~> 0.5)
47
+ rack (~> 1.2)
48
+ rack (1.5.2)
49
+ rake (10.1.1)
15
50
  rdoc (3.12)
16
51
  json (~> 1.4)
17
52
  rspec (2.9.0)
@@ -27,8 +62,8 @@ PLATFORMS
27
62
  ruby
28
63
 
29
64
  DEPENDENCIES
30
- bundler (~> 1.1.3)
65
+ bundler
31
66
  iso
32
- jeweler (~> 1.6.4)
67
+ jeweler
33
68
  rdoc
34
69
  rspec (>= 2.4.0)
data/README.md CHANGED
@@ -26,7 +26,7 @@ All of these tests can be ran in one line with a shared example :
26
26
 
27
27
  Even better, you can run all of these tests for every file in a directory like so :
28
28
 
29
- Dir.glob('config/locale/*.yml') do |locale_file|
29
+ Dir.glob('config/locales/*.yml') do |locale_file|
30
30
  describe "a locale file" do
31
31
  it_behaves_like 'a valid locale file', locale_file
32
32
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -2,16 +2,17 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: i18n-spec 0.4.1 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
- s.name = %q{i18n-spec}
8
- s.version = "0.4.0"
8
+ s.name = "i18n-spec"
9
+ s.version = "0.4.1"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Christopher Dell}]
12
- s.date = %q{2013-04-04}
13
- s.description = %q{Includes a number of rspec matchers to make specing your locale files easy peasy.}
14
- s.email = %q{chris@tigrish.com}
12
+ s.authors = ["Christopher Dell"]
13
+ s.date = "2014-02-16"
14
+ s.description = "Includes a number of rspec matchers to make specing your locale files easy peasy."
15
+ s.email = "chris@tigrish.com"
15
16
  s.extra_rdoc_files = [
16
17
  "LICENSE.txt",
17
18
  "README.md"
@@ -54,33 +55,33 @@ Gem::Specification.new do |s|
54
55
  "spec/lib/i18n-spec/models/locale_file_spec.rb",
55
56
  "spec/spec_helper.rb"
56
57
  ]
57
- s.homepage = %q{http://github.com/tigrish/i18n-spec}
58
- s.licenses = [%q{MIT}]
59
- s.require_paths = [%q{lib}]
60
- s.rubygems_version = %q{1.8.6}
61
- s.summary = %q{Matchers for specing locale files}
58
+ s.homepage = "http://github.com/tigrish/i18n-spec"
59
+ s.licenses = ["MIT"]
60
+ s.require_paths = ["lib"]
61
+ s.rubygems_version = "2.1.11"
62
+ s.summary = "Matchers for specing locale files"
62
63
 
63
64
  if s.respond_to? :specification_version then
64
- s.specification_version = 3
65
+ s.specification_version = 4
65
66
 
66
67
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
67
68
  s.add_runtime_dependency(%q<iso>, [">= 0"])
68
69
  s.add_development_dependency(%q<rspec>, [">= 2.4.0"])
69
- s.add_development_dependency(%q<bundler>, ["~> 1.1.3"])
70
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
70
+ s.add_development_dependency(%q<bundler>, [">= 0"])
71
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
71
72
  s.add_development_dependency(%q<rdoc>, [">= 0"])
72
73
  else
73
74
  s.add_dependency(%q<iso>, [">= 0"])
74
75
  s.add_dependency(%q<rspec>, [">= 2.4.0"])
75
- s.add_dependency(%q<bundler>, ["~> 1.1.3"])
76
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
76
+ s.add_dependency(%q<bundler>, [">= 0"])
77
+ s.add_dependency(%q<jeweler>, [">= 0"])
77
78
  s.add_dependency(%q<rdoc>, [">= 0"])
78
79
  end
79
80
  else
80
81
  s.add_dependency(%q<iso>, [">= 0"])
81
82
  s.add_dependency(%q<rspec>, [">= 2.4.0"])
82
- s.add_dependency(%q<bundler>, ["~> 1.1.3"])
83
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
83
+ s.add_dependency(%q<bundler>, [">= 0"])
84
+ s.add_dependency(%q<jeweler>, [">= 0"])
84
85
  s.add_dependency(%q<rdoc>, [">= 0"])
85
86
  end
86
87
  end
@@ -1,3 +1,5 @@
1
+ require 'rspec'
2
+
1
3
  RSpec::Matchers.define :be_named_like_top_level_namespace do
2
4
  match do |actual|
3
5
  locale_file = I18nSpec::LocaleFile.new(actual)
@@ -65,10 +65,16 @@ module I18nSpec
65
65
  end
66
66
 
67
67
  def is_parseable?
68
+ if RUBY_VERSION < "1.9.3"
69
+ yaml_parse_exception = YAML::ParseError
70
+ else
71
+ yaml_parse_exception = YAML::SyntaxError
72
+ end
73
+
68
74
  begin
69
75
  yaml_load_content
70
76
  true
71
- rescue YAML::ParseError => e
77
+ rescue yaml_parse_exception => e
72
78
  @errors[:unparseable] = e.to_s
73
79
  false
74
80
  rescue ArgumentError => e
metadata CHANGED
@@ -1,71 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
5
- prerelease:
4
+ version: 0.4.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Christopher Dell
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-04 00:00:00.000000000 Z
11
+ date: 2014-02-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: iso
16
- requirement: &70305615844620 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70305615844620
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rspec
27
- requirement: &70305615866480 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: 2.4.0
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *70305615866480
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.4.0
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: bundler
38
- requirement: &70305615863160 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ~>
45
+ - - '>='
42
46
  - !ruby/object:Gem::Version
43
- version: 1.1.3
47
+ version: '0'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *70305615863160
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: jeweler
49
- requirement: &70305615876160 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ~>
59
+ - - '>='
53
60
  - !ruby/object:Gem::Version
54
- version: 1.6.4
61
+ version: '0'
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *70305615876160
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: rdoc
60
- requirement: &70305615873580 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
- - - ! '>='
73
+ - - '>='
64
74
  - !ruby/object:Gem::Version
65
75
  version: '0'
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *70305615873580
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: Includes a number of rspec matchers to make specing your locale files
70
84
  easy peasy.
71
85
  email: chris@tigrish.com
@@ -114,29 +128,25 @@ files:
114
128
  homepage: http://github.com/tigrish/i18n-spec
115
129
  licenses:
116
130
  - MIT
131
+ metadata: {}
117
132
  post_install_message:
118
133
  rdoc_options: []
119
134
  require_paths:
120
135
  - lib
121
136
  required_ruby_version: !ruby/object:Gem::Requirement
122
- none: false
123
137
  requirements:
124
- - - ! '>='
138
+ - - '>='
125
139
  - !ruby/object:Gem::Version
126
140
  version: '0'
127
- segments:
128
- - 0
129
- hash: -2304795733638561601
130
141
  required_rubygems_version: !ruby/object:Gem::Requirement
131
- none: false
132
142
  requirements:
133
- - - ! '>='
143
+ - - '>='
134
144
  - !ruby/object:Gem::Version
135
145
  version: '0'
136
146
  requirements: []
137
147
  rubyforge_project:
138
- rubygems_version: 1.8.6
148
+ rubygems_version: 2.1.11
139
149
  signing_key:
140
- specification_version: 3
150
+ specification_version: 4
141
151
  summary: Matchers for specing locale files
142
152
  test_files: []