r18n-rails-api 0.4.13 → 0.4.14

Sign up to get free protection for your applications and to get access to all the features.
data/.yardopts ADDED
@@ -0,0 +1,3 @@
1
+ --charset utf-8
2
+ -
3
+ README.rdoc
data/Gemfile.lock CHANGED
@@ -1,45 +1,38 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- r18n-rails-api (0.4.13)
4
+ r18n-rails-api (0.4.14)
5
5
  i18n
6
- r18n-core (= 0.4.13)
6
+ r18n-core (= 0.4.14)
7
7
 
8
8
  PATH
9
9
  remote: ../r18n-core/
10
10
  specs:
11
- r18n-core (0.4.13)
11
+ r18n-core (0.4.14)
12
12
 
13
13
  GEM
14
14
  remote: http://rubygems.org/
15
15
  specs:
16
- diff-lcs (1.1.2)
17
- haml (2.2.24)
18
- hanna (0.1.12)
19
- haml (~> 2.2.8)
20
- rake (~> 0.8.2)
21
- rdoc (~> 2.3.0)
22
- i18n (0.5.0)
23
- psych (1.2.0)
24
- rake (0.8.7)
25
- rcov (0.9.9)
26
- rdoc (2.3.0)
27
- rspec-core (2.5.1)
28
- rspec-expectations (2.5.0)
16
+ diff-lcs (1.1.3)
17
+ i18n (0.6.0)
18
+ psych (1.2.2)
19
+ rake (0.9.2.2)
20
+ rspec-core (2.8.0)
21
+ rspec-expectations (2.8.0)
29
22
  diff-lcs (~> 1.1.2)
30
- rspec-mocks (2.5.0)
23
+ rspec-mocks (2.8.0)
24
+ yard (0.7.4)
31
25
 
32
26
  PLATFORMS
33
27
  ruby
34
28
 
35
29
  DEPENDENCIES
36
30
  bundler (>= 1.0.10)
37
- hanna
38
31
  psych
39
32
  r18n-core!
40
33
  r18n-rails-api!
41
34
  rake (>= 0, != 0.9.0)
42
- rcov
43
35
  rspec-core
44
36
  rspec-expectations
45
37
  rspec-mocks
38
+ yard
data/Rakefile CHANGED
@@ -9,12 +9,6 @@ rescue LoadError
9
9
  puts "Bundler not available. Install it with: gem install bundler"
10
10
  end
11
11
 
12
- begin
13
- require 'hanna/rdoctask'
14
- rescue LoadError
15
- require 'rake/rdoctask'
16
- end
17
-
18
12
  PKG_NAME = 'r18n-rails-api'
19
13
  require '../r18n-core/lib/r18n-core/version'
20
14
 
@@ -22,24 +16,17 @@ require 'rspec/core/rake_task'
22
16
 
23
17
  RSpec::Core::RakeTask.new
24
18
 
25
- RSpec::Core::RakeTask.new('rcov') do |t|
26
- t.rcov = true
27
- t.ruby_opts = '-w'
28
- t.rcov_opts = ['--text-summary', '--charset UTF-8', '-x gem']
19
+ require 'yard'
20
+ YARD::Rake::YardocTask.new do |yard|
21
+ yard.options << "--title='R18n Rails API #{R18n::VERSION}'"
29
22
  end
30
23
 
31
- Rake::RDocTask.new do |rdoc|
32
- rdoc.main = 'README.rdoc'
33
- rdoc.rdoc_files.include('README.rdoc', 'LICENSE', 'lib/**/*.rb')
34
- rdoc.title = "R18n Rails #{R18n::VERSION} API Documentation"
35
- rdoc.rdoc_dir = 'doc'
36
- rdoc.options << '-c utf-8'
37
- rdoc.options << '--all'
24
+ task :clobber_doc do
25
+ rm_r 'doc' rescue nil
38
26
  end
39
-
40
27
  task :clobber_package do
41
28
  rm_r 'pkg' rescue nil
42
29
  end
43
- task :clobber => [:clobber_package]
30
+ task :clobber => [:clobber_package, :clobber_doc]
44
31
 
45
32
  task :default => :spec
@@ -28,11 +28,10 @@ Gem::Specification.new do |s|
28
28
  s.add_dependency 'r18n-core', ["= #{R18n::VERSION}"]
29
29
  s.add_dependency 'i18n'
30
30
 
31
- s.add_development_dependency "bundler", [">= 1.0.10"]
32
- s.add_development_dependency "hanna", [">= 0"]
33
- s.add_development_dependency "rake", [">= 0", "!= 0.9.0"]
34
- s.add_development_dependency "rspec-core", [">= 0"]
31
+ s.add_development_dependency "bundler", [">= 1.0.10"]
32
+ s.add_development_dependency "yard", [">= 0"]
33
+ s.add_development_dependency "rake", [">= 0", "!= 0.9.0"]
34
+ s.add_development_dependency "rspec-core", [">= 0"]
35
35
  s.add_development_dependency "rspec-expectations", [">= 0"]
36
- s.add_development_dependency "rspec-mocks", [">= 0"]
37
- s.add_development_dependency "rcov", [">= 0"]
36
+ s.add_development_dependency "rspec-mocks", [">= 0"]
38
37
  end
data/spec/backend_spec.rb CHANGED
@@ -56,11 +56,13 @@ describe R18n::Backend do
56
56
  lambda {
57
57
  I18n.backend.translate(:en, :missed)
58
58
  }.should raise_error(::I18n::MissingTranslationData)
59
- I18n.t(:missed).should == 'translation missing: en.missed'
59
+ lambda {
60
+ I18n.t(:missed)
61
+ }.should raise_error(::I18n::MissingTranslationData)
60
62
  end
61
63
 
62
64
  it "should reload translations" do
63
- I18n.t(:other).should == 'translation missing: en.other'
65
+ lambda { I18n.t(:other) }.should raise_error(::I18n::MissingTranslationData)
64
66
  I18n.load_path << OTHER
65
67
  I18n.reload!
66
68
  I18n.t(:other).should == 'Other'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r18n-rails-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 13
10
- version: 0.4.13
9
+ - 14
10
+ version: 0.4.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrey "A.I." Sitnik
@@ -15,28 +15,27 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-10 00:00:00 Z
18
+ date: 2012-01-25 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime
22
22
  name: r18n-core
23
- prerelease: false
24
23
  version_requirements: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
27
26
  - - "="
28
27
  - !ruby/object:Gem::Version
29
- hash: 21
28
+ hash: 19
30
29
  segments:
31
30
  - 0
32
31
  - 4
33
- - 13
34
- version: 0.4.13
32
+ - 14
33
+ version: 0.4.14
34
+ prerelease: false
35
35
  requirement: *id001
36
36
  - !ruby/object:Gem::Dependency
37
37
  type: :runtime
38
38
  name: i18n
39
- prerelease: false
40
39
  version_requirements: &id002 !ruby/object:Gem::Requirement
41
40
  none: false
42
41
  requirements:
@@ -46,11 +45,11 @@ dependencies:
46
45
  segments:
47
46
  - 0
48
47
  version: "0"
48
+ prerelease: false
49
49
  requirement: *id002
50
50
  - !ruby/object:Gem::Dependency
51
51
  type: :development
52
52
  name: bundler
53
- prerelease: false
54
53
  version_requirements: &id003 !ruby/object:Gem::Requirement
55
54
  none: false
56
55
  requirements:
@@ -62,11 +61,11 @@ dependencies:
62
61
  - 0
63
62
  - 10
64
63
  version: 1.0.10
64
+ prerelease: false
65
65
  requirement: *id003
66
66
  - !ruby/object:Gem::Dependency
67
67
  type: :development
68
- name: hanna
69
- prerelease: false
68
+ name: yard
70
69
  version_requirements: &id004 !ruby/object:Gem::Requirement
71
70
  none: false
72
71
  requirements:
@@ -76,11 +75,11 @@ dependencies:
76
75
  segments:
77
76
  - 0
78
77
  version: "0"
78
+ prerelease: false
79
79
  requirement: *id004
80
80
  - !ruby/object:Gem::Dependency
81
81
  type: :development
82
82
  name: rake
83
- prerelease: false
84
83
  version_requirements: &id005 !ruby/object:Gem::Requirement
85
84
  none: false
86
85
  requirements:
@@ -98,11 +97,11 @@ dependencies:
98
97
  - 9
99
98
  - 0
100
99
  version: 0.9.0
100
+ prerelease: false
101
101
  requirement: *id005
102
102
  - !ruby/object:Gem::Dependency
103
103
  type: :development
104
104
  name: rspec-core
105
- prerelease: false
106
105
  version_requirements: &id006 !ruby/object:Gem::Requirement
107
106
  none: false
108
107
  requirements:
@@ -112,11 +111,11 @@ dependencies:
112
111
  segments:
113
112
  - 0
114
113
  version: "0"
114
+ prerelease: false
115
115
  requirement: *id006
116
116
  - !ruby/object:Gem::Dependency
117
117
  type: :development
118
118
  name: rspec-expectations
119
- prerelease: false
120
119
  version_requirements: &id007 !ruby/object:Gem::Requirement
121
120
  none: false
122
121
  requirements:
@@ -126,11 +125,11 @@ dependencies:
126
125
  segments:
127
126
  - 0
128
127
  version: "0"
128
+ prerelease: false
129
129
  requirement: *id007
130
130
  - !ruby/object:Gem::Dependency
131
131
  type: :development
132
132
  name: rspec-mocks
133
- prerelease: false
134
133
  version_requirements: &id008 !ruby/object:Gem::Requirement
135
134
  none: false
136
135
  requirements:
@@ -140,21 +139,8 @@ dependencies:
140
139
  segments:
141
140
  - 0
142
141
  version: "0"
143
- requirement: *id008
144
- - !ruby/object:Gem::Dependency
145
- type: :development
146
- name: rcov
147
142
  prerelease: false
148
- version_requirements: &id009 !ruby/object:Gem::Requirement
149
- none: false
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- hash: 3
154
- segments:
155
- - 0
156
- version: "0"
157
- requirement: *id009
143
+ requirement: *id008
158
144
  description: " R18n backend for Rails I18n and R18n filters and loader to support Rails\n translation format.\n R18n has nice Ruby-style syntax, filters, flexible locales, custom loaders,\n translation support for any classes, time and number localization, several\n user language support, agnostic core package with out-of-box support for\n Rails, Sinatra, Merb and desktop applications.\n"
159
145
  email: andrey@sitnik.ru
160
146
  executables: []
@@ -166,6 +152,7 @@ extra_rdoc_files:
166
152
  - LICENSE
167
153
  files:
168
154
  - .rspec
155
+ - .yardopts
169
156
  - Gemfile
170
157
  - Gemfile.lock
171
158
  - LICENSE
@@ -221,3 +208,4 @@ specification_version: 3
221
208
  summary: Rails I18n compatibility for R18n
222
209
  test_files: []
223
210
 
211
+ has_rdoc: