lazier 2.6.1 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis-gemfile +17 -0
- data/.travis.yml +2 -1
- data/doc/Lazier.html +1 -1
- data/doc/Lazier/Boolean.html +1 -1
- data/doc/Lazier/DateTime.html +1 -1
- data/doc/Lazier/DateTime/ClassMethods.html +1 -1
- data/doc/Lazier/Exceptions.html +1 -1
- data/doc/Lazier/Exceptions/Dump.html +1 -1
- data/doc/Lazier/Exceptions/MissingTranslation.html +1 -1
- data/doc/Lazier/Hash.html +1 -1
- data/doc/Lazier/I18n.html +1 -1
- data/doc/Lazier/Math.html +1 -1
- data/doc/Lazier/Math/ClassMethods.html +1 -1
- data/doc/Lazier/Object.html +1 -1
- data/doc/Lazier/Pathname.html +1 -1
- data/doc/Lazier/Settings.html +1 -1
- data/doc/Lazier/String.html +1 -1
- data/doc/Lazier/TimeZone.html +1 -1
- data/doc/Lazier/TimeZone/ClassMethods.html +1 -1
- data/doc/Lazier/Version.html +2 -2
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/lazier/version.rb +1 -1
- data/spec/lazier/i18n_spec.rb +8 -3
- metadata +3 -2
data/.travis-gemfile
ADDED
@@ -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"
|
data/.travis.yml
CHANGED
data/doc/Lazier.html
CHANGED
@@ -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
|
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>
|
data/doc/Lazier/Boolean.html
CHANGED
@@ -288,7 +288,7 @@
|
|
288
288
|
</div>
|
289
289
|
|
290
290
|
<div id="footer">
|
291
|
-
Generated on Mon Feb 4
|
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>
|
data/doc/Lazier/DateTime.html
CHANGED
@@ -724,7 +724,7 @@
|
|
724
724
|
</div>
|
725
725
|
|
726
726
|
<div id="footer">
|
727
|
-
Generated on Mon Feb 4
|
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
|
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>
|
data/doc/Lazier/Exceptions.html
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on Mon Feb 4
|
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
|
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
|
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>
|
data/doc/Lazier/Hash.html
CHANGED
@@ -384,7 +384,7 @@
|
|
384
384
|
</div>
|
385
385
|
|
386
386
|
<div id="footer">
|
387
|
-
Generated on Mon Feb 4
|
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>
|
data/doc/Lazier/I18n.html
CHANGED
@@ -405,7 +405,7 @@
|
|
405
405
|
</div>
|
406
406
|
|
407
407
|
<div id="footer">
|
408
|
-
Generated on Mon Feb 4
|
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>
|
data/doc/Lazier/Math.html
CHANGED
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on Mon Feb 4
|
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
|
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>
|
data/doc/Lazier/Object.html
CHANGED
@@ -1586,7 +1586,7 @@
|
|
1586
1586
|
</div>
|
1587
1587
|
|
1588
1588
|
<div id="footer">
|
1589
|
-
Generated on Mon Feb 4
|
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>
|
data/doc/Lazier/Pathname.html
CHANGED
@@ -216,7 +216,7 @@
|
|
216
216
|
</div>
|
217
217
|
|
218
218
|
<div id="footer">
|
219
|
-
Generated on Mon Feb 4
|
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>
|
data/doc/Lazier/Settings.html
CHANGED
@@ -2496,7 +2496,7 @@
|
|
2496
2496
|
</div>
|
2497
2497
|
|
2498
2498
|
<div id="footer">
|
2499
|
-
Generated on Mon Feb 4
|
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>
|
data/doc/Lazier/String.html
CHANGED
@@ -462,7 +462,7 @@
|
|
462
462
|
</div>
|
463
463
|
|
464
464
|
<div id="footer">
|
465
|
-
Generated on Mon Feb 4
|
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>
|
data/doc/Lazier/TimeZone.html
CHANGED
@@ -1697,7 +1697,7 @@
|
|
1697
1697
|
</div>
|
1698
1698
|
|
1699
1699
|
<div id="footer">
|
1700
|
-
Generated on Mon Feb 4
|
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
|
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>
|
data/doc/Lazier/Version.html
CHANGED
@@ -149,7 +149,7 @@
|
|
149
149
|
|
150
150
|
</div>
|
151
151
|
</dt>
|
152
|
-
<dd><pre class="code"><span class='int'>
|
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
|
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>
|
data/doc/_index.html
CHANGED
@@ -319,7 +319,7 @@
|
|
319
319
|
</div>
|
320
320
|
|
321
321
|
<div id="footer">
|
322
|
-
Generated on Mon Feb 4
|
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>
|
data/doc/file.README.html
CHANGED
@@ -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
|
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>
|
data/doc/index.html
CHANGED
@@ -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
|
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
|
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>
|
data/lib/lazier/version.rb
CHANGED
data/spec/lazier/i18n_spec.rb
CHANGED
@@ -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"]
|
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"]
|
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"]
|
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.
|
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-
|
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
|