lazier 2.6.1 → 2.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+ #
3
+ # This file is part of the lazier gem. Copyright (C) 2013 and above Shogun <shogun_panda@me.com>.
4
+ # Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
5
+ #
6
+
7
+ source "http://rubygems.org"
8
+
9
+ # Required gems
10
+ gem "json", "~> 1.7.6"
11
+ gem "actionpack", ">= 3.2.11"
12
+ gem "tzinfo", "~> 0.3.35"
13
+ gem "r18n-desktop", "~> 1.1.3"
14
+
15
+ # Testing gems
16
+ gem "rspec", "~> 2.12.0"
17
+ gem "rake", "~> 10.0.3"
@@ -4,6 +4,7 @@ rvm:
4
4
  - 2.0.0
5
5
  - jruby-19mode
6
6
  - rbx-19mode
7
- script: bundle exec rake spec:coverage
7
+ script: bundle exec rake spec
8
+ gemfile: .travis-gemfile
8
9
  notifications:
9
10
  email: false
@@ -838,7 +838,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
838
838
  </div>
839
839
 
840
840
  <div id="footer">
841
- Generated on Mon Feb 4 15:02:16 2013 by
841
+ Generated on Mon Feb 4 20:46:36 2013 by
842
842
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
843
843
  0.8.3 (ruby-1.9.3).
844
844
  </div>
@@ -288,7 +288,7 @@
288
288
  </div>
289
289
 
290
290
  <div id="footer">
291
- Generated on Mon Feb 4 15:02:16 2013 by
291
+ Generated on Mon Feb 4 20:46:37 2013 by
292
292
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
293
293
  0.8.3 (ruby-1.9.3).
294
294
  </div>
@@ -724,7 +724,7 @@
724
724
  </div>
725
725
 
726
726
  <div id="footer">
727
- Generated on Mon Feb 4 15:02:16 2013 by
727
+ Generated on Mon Feb 4 20:46:37 2013 by
728
728
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
729
729
  0.8.3 (ruby-1.9.3).
730
730
  </div>
@@ -1565,7 +1565,7 @@
1565
1565
  </div>
1566
1566
 
1567
1567
  <div id="footer">
1568
- Generated on Mon Feb 4 15:02:17 2013 by
1568
+ Generated on Mon Feb 4 20:46:37 2013 by
1569
1569
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1570
1570
  0.8.3 (ruby-1.9.3).
1571
1571
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Mon Feb 4 15:02:17 2013 by
119
+ Generated on Mon Feb 4 20:46:37 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.3 (ruby-1.9.3).
122
122
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Mon Feb 4 15:02:17 2013 by
127
+ Generated on Mon Feb 4 20:46:37 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.3 (ruby-1.9.3).
130
130
  </div>
@@ -238,7 +238,7 @@
238
238
  </div>
239
239
 
240
240
  <div id="footer">
241
- Generated on Mon Feb 4 15:02:17 2013 by
241
+ Generated on Mon Feb 4 20:46:37 2013 by
242
242
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
243
243
  0.8.3 (ruby-1.9.3).
244
244
  </div>
@@ -384,7 +384,7 @@
384
384
  </div>
385
385
 
386
386
  <div id="footer">
387
- Generated on Mon Feb 4 15:02:16 2013 by
387
+ Generated on Mon Feb 4 20:46:36 2013 by
388
388
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
389
389
  0.8.3 (ruby-1.9.3).
390
390
  </div>
@@ -405,7 +405,7 @@
405
405
  </div>
406
406
 
407
407
  <div id="footer">
408
- Generated on Mon Feb 4 15:02:16 2013 by
408
+ Generated on Mon Feb 4 20:46:36 2013 by
409
409
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
410
410
  0.8.3 (ruby-1.9.3).
411
411
  </div>
@@ -121,7 +121,7 @@
121
121
  </div>
122
122
 
123
123
  <div id="footer">
124
- Generated on Mon Feb 4 15:02:16 2013 by
124
+ Generated on Mon Feb 4 20:46:36 2013 by
125
125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
126
  0.8.3 (ruby-1.9.3).
127
127
  </div>
@@ -321,7 +321,7 @@
321
321
  </div>
322
322
 
323
323
  <div id="footer">
324
- Generated on Mon Feb 4 15:02:16 2013 by
324
+ Generated on Mon Feb 4 20:46:36 2013 by
325
325
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
326
326
  0.8.3 (ruby-1.9.3).
327
327
  </div>
@@ -1586,7 +1586,7 @@
1586
1586
  </div>
1587
1587
 
1588
1588
  <div id="footer">
1589
- Generated on Mon Feb 4 15:02:16 2013 by
1589
+ Generated on Mon Feb 4 20:46:37 2013 by
1590
1590
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1591
1591
  0.8.3 (ruby-1.9.3).
1592
1592
  </div>
@@ -216,7 +216,7 @@
216
216
  </div>
217
217
 
218
218
  <div id="footer">
219
- Generated on Mon Feb 4 15:02:16 2013 by
219
+ Generated on Mon Feb 4 20:46:37 2013 by
220
220
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
221
221
  0.8.3 (ruby-1.9.3).
222
222
  </div>
@@ -2496,7 +2496,7 @@
2496
2496
  </div>
2497
2497
 
2498
2498
  <div id="footer">
2499
- Generated on Mon Feb 4 15:02:17 2013 by
2499
+ Generated on Mon Feb 4 20:46:37 2013 by
2500
2500
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2501
2501
  0.8.3 (ruby-1.9.3).
2502
2502
  </div>
@@ -462,7 +462,7 @@
462
462
  </div>
463
463
 
464
464
  <div id="footer">
465
- Generated on Mon Feb 4 15:02:16 2013 by
465
+ Generated on Mon Feb 4 20:46:37 2013 by
466
466
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
467
467
  0.8.3 (ruby-1.9.3).
468
468
  </div>
@@ -1697,7 +1697,7 @@
1697
1697
  </div>
1698
1698
 
1699
1699
  <div id="footer">
1700
- Generated on Mon Feb 4 15:02:17 2013 by
1700
+ Generated on Mon Feb 4 20:46:37 2013 by
1701
1701
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1702
1702
  0.8.3 (ruby-1.9.3).
1703
1703
  </div>
@@ -1022,7 +1022,7 @@
1022
1022
  </div>
1023
1023
 
1024
1024
  <div id="footer">
1025
- Generated on Mon Feb 4 15:02:17 2013 by
1025
+ Generated on Mon Feb 4 20:46:37 2013 by
1026
1026
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1027
1027
  0.8.3 (ruby-1.9.3).
1028
1028
  </div>
@@ -149,7 +149,7 @@
149
149
 
150
150
  </div>
151
151
  </dt>
152
- <dd><pre class="code"><span class='int'>1</span></pre></dd>
152
+ <dd><pre class="code"><span class='int'>2</span></pre></dd>
153
153
 
154
154
  <dt id="STRING-constant" class="">STRING =
155
155
  <div class="docstring">
@@ -180,7 +180,7 @@
180
180
  </div>
181
181
 
182
182
  <div id="footer">
183
- Generated on Mon Feb 4 15:02:16 2013 by
183
+ Generated on Mon Feb 4 20:46:37 2013 by
184
184
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
185
  0.8.3 (ruby-1.9.3).
186
186
  </div>
@@ -319,7 +319,7 @@
319
319
  </div>
320
320
 
321
321
  <div id="footer">
322
- Generated on Mon Feb 4 15:02:16 2013 by
322
+ Generated on Mon Feb 4 20:46:36 2013 by
323
323
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
324
324
  0.8.3 (ruby-1.9.3).
325
325
  </div>
@@ -102,7 +102,7 @@ See documentation for more informations.</p>
102
102
  </div></div>
103
103
 
104
104
  <div id="footer">
105
- Generated on Mon Feb 4 15:02:16 2013 by
105
+ Generated on Mon Feb 4 20:46:36 2013 by
106
106
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
107
107
  0.8.3 (ruby-1.9.3).
108
108
  </div>
@@ -102,7 +102,7 @@ See documentation for more informations.</p>
102
102
  </div></div>
103
103
 
104
104
  <div id="footer">
105
- Generated on Mon Feb 4 15:02:16 2013 by
105
+ Generated on Mon Feb 4 20:46:36 2013 by
106
106
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
107
107
  0.8.3 (ruby-1.9.3).
108
108
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Mon Feb 4 15:02:16 2013 by
106
+ Generated on Mon Feb 4 20:46:36 2013 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.3 (ruby-1.9.3).
109
109
  </div>
@@ -16,7 +16,7 @@ module Lazier
16
16
  MINOR = 6
17
17
 
18
18
  # The patch version.
19
- PATCH = 1
19
+ PATCH = 2
20
20
 
21
21
  # The current version of lazier.
22
22
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
@@ -14,6 +14,11 @@ describe Lazier::I18n do
14
14
  let(:object) { Container.new }
15
15
  let(:root_path) { ::File.absolute_path(::Pathname.new(::File.dirname(__FILE__)).to_s + "/../../locales/") }
16
16
 
17
+ before(:each) do
18
+ ENV["LANG"] = "en"
19
+ R18n::I18n.stub(:system_locale).and_return("en")
20
+ end
21
+
17
22
  describe "#i18n_setup" do
18
23
  it "should set the root and the path" do
19
24
  object.i18n_setup("ROOT", root_path)
@@ -42,13 +47,13 @@ describe Lazier::I18n do
42
47
  describe "#i18n_load_locale" do
43
48
  it "should set using system locale if called without arguments" do
44
49
  object.i18n_setup("lazier", root_path)
45
- R18n::I18n.should_receive(:new).with([ENV["LANG"], R18n::I18n.system_locale].compact.uniq, root_path).and_call_original
50
+ R18n::I18n.should_receive(:new).with([ENV["LANG"]].compact.uniq, root_path).and_call_original
46
51
  object.i18n = nil
47
52
  end
48
53
 
49
54
  it "should set the requested locale" do
50
55
  object.i18n_setup("lazier", root_path)
51
- R18n::I18n.should_receive(:new).with(["it", ENV["LANG"], R18n::I18n.system_locale].compact.uniq, root_path).and_call_original
56
+ R18n::I18n.should_receive(:new).with(["it", ENV["LANG"]].compact.uniq, root_path).and_call_original
52
57
  object.i18n = :it
53
58
  end
54
59
 
@@ -63,7 +68,7 @@ describe Lazier::I18n do
63
68
 
64
69
  it "should only pass valid translations" do
65
70
  object.i18n_setup("lazier", root_path)
66
- R18n::I18n.should_receive(:new).with([ENV["LANG"], R18n::I18n.system_locale].compact.uniq, root_path).and_call_original
71
+ R18n::I18n.should_receive(:new).with([ENV["LANG"]].compact.uniq, root_path).and_call_original
67
72
  object.i18n = "INVALID"
68
73
  end
69
74
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazier
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-04 00:00:00.000000000 Z
12
+ date: 2013-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -195,6 +195,7 @@ extensions: []
195
195
  extra_rdoc_files: []
196
196
  files:
197
197
  - .gitignore
198
+ - .travis-gemfile
198
199
  - .travis.yml
199
200
  - .yardopts
200
201
  - Gemfile