cowtech-extensions 2.1.3 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/.yardopts +1 -0
- data/README.md +10 -0
- data/Rakefile +6 -3
- data/cowtech-extensions.gemspec +9 -5
- data/doc/Cowtech.html +128 -0
- data/doc/Cowtech/Extensions.html +546 -0
- data/doc/Cowtech/Extensions/Boolean.html +297 -0
- data/doc/Cowtech/Extensions/DateTime.html +787 -0
- data/doc/Cowtech/Extensions/DateTime/ClassMethods.html +1592 -0
- data/doc/Cowtech/Extensions/Exceptions.html +125 -0
- data/doc/Cowtech/Extensions/Exceptions/Dump.html +133 -0
- data/doc/Cowtech/Extensions/Hash.html +393 -0
- data/doc/Cowtech/Extensions/Math.html +130 -0
- data/doc/Cowtech/Extensions/Math/ClassMethods.html +362 -0
- data/doc/Cowtech/Extensions/Object.html +1565 -0
- data/doc/Cowtech/Extensions/Pathname.html +225 -0
- data/doc/Cowtech/Extensions/Settings.html +1249 -0
- data/doc/Cowtech/Extensions/String.html +471 -0
- data/doc/Cowtech/Extensions/TimeZone.html +1210 -0
- data/doc/Cowtech/Extensions/TimeZone/ClassMethods.html +925 -0
- data/doc/Cowtech/Extensions/Version.html +189 -0
- data/doc/_index.html +305 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +328 -0
- data/doc/file.README.html +103 -0
- data/doc/file_list.html +55 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +103 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +620 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/cowtech-extensions.rb +47 -16
- data/lib/cowtech-extensions/boolean.rb +8 -1
- data/lib/cowtech-extensions/datetime.rb +377 -71
- data/lib/cowtech-extensions/exceptions.rb +16 -0
- data/lib/cowtech-extensions/hash.rb +20 -9
- data/lib/cowtech-extensions/math.rb +15 -8
- data/lib/cowtech-extensions/object.rb +84 -27
- data/lib/cowtech-extensions/pathname.rb +10 -1
- data/lib/cowtech-extensions/settings.rb +120 -0
- data/lib/cowtech-extensions/string.rb +30 -3
- data/lib/cowtech-extensions/version.rb +11 -2
- data/spec/coverage_helper.rb +19 -0
- data/spec/cowtech-extensions/boolean_spec.rb +4 -0
- data/spec/cowtech-extensions/datetime_spec.rb +238 -79
- data/spec/cowtech-extensions/hash_spec.rb +5 -2
- data/spec/cowtech-extensions/math_spec.rb +14 -4
- data/spec/cowtech-extensions/object_spec.rb +19 -1
- data/spec/cowtech-extensions/pathname_spec.rb +5 -1
- data/spec/cowtech-extensions/settings_spec.rb +101 -0
- data/spec/cowtech-extensions/string_spec.rb +13 -0
- data/spec/cowtech-extensions_spec.rb +33 -13
- data/spec/spec_helper.rb +2 -5
- metadata +182 -97
- data/lib/cowtech-extensions/utils.rb +0 -74
@@ -13,8 +13,11 @@ describe Cowtech::Extensions::Hash do
|
|
13
13
|
rv
|
14
14
|
}
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
before(:all) do
|
17
|
+
::Cowtech::Extensions.load!
|
18
|
+
end
|
19
|
+
|
20
|
+
describe "allows access to keys using method syntax" do
|
18
21
|
it "should allow method reference for symbol key" do reference.b.should == 2 end
|
19
22
|
it "should use super for missing key" do expect {reference.c}.to raise_error(NoMethodError) end
|
20
23
|
end
|
@@ -11,21 +11,31 @@ describe Cowtech::Extensions::Math do
|
|
11
11
|
let(:second) { 2 }
|
12
12
|
let(:third) { 0 }
|
13
13
|
|
14
|
-
|
14
|
+
before(:all) do
|
15
|
+
::Cowtech::Extensions.load!
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "::min" do
|
15
19
|
it "should return the minimum argument" do
|
16
|
-
::Math.min().should be_nil
|
17
20
|
::Math.min(first).should == first
|
18
21
|
::Math.min(first, second).should == first
|
19
22
|
::Math.min([first, [second, third]]).should == third
|
20
23
|
end
|
24
|
+
|
25
|
+
it "should return nil for an empty array" do
|
26
|
+
::Math.min().should be_nil
|
27
|
+
end
|
21
28
|
end
|
22
29
|
|
23
|
-
describe "
|
30
|
+
describe "::max" do
|
24
31
|
it "should return the maximum argument" do
|
25
|
-
::Math.min().should be_nil
|
26
32
|
::Math.max(first).should == first
|
27
33
|
::Math.max(first, second).should == second
|
28
34
|
::Math.max([first, [second, third]]).should == second
|
29
35
|
end
|
36
|
+
|
37
|
+
it "should return nil for an empty array" do
|
38
|
+
::Math.max().should be_nil
|
39
|
+
end
|
30
40
|
end
|
31
41
|
end
|
@@ -7,6 +7,10 @@
|
|
7
7
|
require "spec_helper"
|
8
8
|
|
9
9
|
describe Cowtech::Extensions::Object do
|
10
|
+
before(:all) do
|
11
|
+
::Cowtech::Extensions.load!
|
12
|
+
end
|
13
|
+
|
10
14
|
describe "#normalize_number" do
|
11
15
|
it "should correctly sanitize numbers" do
|
12
16
|
123.normalize_number.should == "123"
|
@@ -187,15 +191,29 @@ describe Cowtech::Extensions::Object do
|
|
187
191
|
"yes".format_boolean.should == "YYY"
|
188
192
|
"abc".format_boolean.should == "NNN"
|
189
193
|
end
|
194
|
+
|
195
|
+
it "should support overrides" do
|
196
|
+
Cowtech::Extensions.settings.setup_boolean_names
|
197
|
+
"yes".format_boolean("TTT").should == "TTT"
|
198
|
+
"yes".format_boolean(nil, "FFF").should == "Yes"
|
199
|
+
"abc".format_boolean("TTT").should == "No"
|
200
|
+
"abc".format_boolean(nil, "FFF").should == "FFF"
|
201
|
+
end
|
190
202
|
end
|
191
203
|
|
192
204
|
describe "#debug_dump" do
|
193
205
|
it "should return the correct representation for an object" do
|
194
206
|
reference = {:a => "b"}
|
195
207
|
reference.debug_dump(:json, false).should == reference.to_json
|
208
|
+
reference.debug_dump(:pretty_json, false).should == ::JSON.pretty_generate(reference)
|
196
209
|
reference.debug_dump(:yaml, false).should == reference.to_yaml
|
197
210
|
end
|
198
211
|
|
199
|
-
it "should
|
212
|
+
it "should inspect the object if the format is not recognized" do
|
213
|
+
reference = {:a => "b"}
|
214
|
+
reference.debug_dump(:unknown, false).should == reference.inspect
|
215
|
+
end
|
216
|
+
|
217
|
+
it "should raise an exception if requested" do expect { {:a => "b"}.debug_dump }.to raise_error(::Cowtech::Extensions::Exceptions::Dump) end
|
200
218
|
end
|
201
219
|
end
|
@@ -7,7 +7,11 @@
|
|
7
7
|
require "spec_helper"
|
8
8
|
|
9
9
|
describe Cowtech::Extensions::Pathname do
|
10
|
-
let(:reference) { Pathname.new($0) }
|
10
|
+
let(:reference) { ::Pathname.new($0) }
|
11
|
+
|
12
|
+
before(:all) do
|
13
|
+
::Cowtech::Extensions.load!
|
14
|
+
end
|
11
15
|
|
12
16
|
describe "#components" do
|
13
17
|
it "should return the components of the path" do ([""] + reference.components).should == reference.to_s.split("/") end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
3
|
+
# This file is part of the cowtech-extensions gem. Copyright (C) 2011 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
|
+
require "spec_helper"
|
8
|
+
|
9
|
+
describe Cowtech::Extensions::Settings do
|
10
|
+
let(:reference) { ::Cowtech::Extensions::Settings.instance }
|
11
|
+
let(:number_reference) { 123456.654321 }
|
12
|
+
let(:date_reference) { DateTime.civil(2005, 6, 7, 8, 9, 10, DateTime.rationalize_offset(25200)) }
|
13
|
+
|
14
|
+
before(:all) do
|
15
|
+
Cowtech::Extensions.load!
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "#setup_format_number" do
|
19
|
+
it "should save format numbering options for usage" do
|
20
|
+
reference.setup_format_number(2)
|
21
|
+
number_reference.format_number.should == "123,456.65"
|
22
|
+
|
23
|
+
reference.setup_format_number(3, "A")
|
24
|
+
number_reference.format_number.should == "123,456A654"
|
25
|
+
|
26
|
+
reference.setup_format_number(4, "A", "B")
|
27
|
+
number_reference.format_number.should == "123,456A6543 B"
|
28
|
+
|
29
|
+
reference.setup_format_number(5, "A", "B", "C")
|
30
|
+
number_reference.format_number.should == "123C456A65432 B"
|
31
|
+
|
32
|
+
reference.setup_format_number
|
33
|
+
number_reference.format_number.should == "123,456.65"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
describe "#setup_boolean_names" do
|
38
|
+
it "should save names for boolean values" do
|
39
|
+
reference.setup_boolean_names("TRUE1")
|
40
|
+
[true.format_boolean, false.format_boolean].should == ["TRUE1", "No"]
|
41
|
+
|
42
|
+
reference.setup_boolean_names(nil, "FALSE1")
|
43
|
+
[true.format_boolean, false.format_boolean].should == ["Yes", "FALSE1"]
|
44
|
+
|
45
|
+
reference.setup_boolean_names("TRUE2", "FALSE2")
|
46
|
+
[true.format_boolean, false.format_boolean].should == ["TRUE2", "FALSE2"]
|
47
|
+
|
48
|
+
reference.setup_boolean_names
|
49
|
+
[true.format_boolean, false.format_boolean].should == ["Yes", "No"]
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe "#setup_date_formats" do
|
54
|
+
it "should save formats for date formatting" do
|
55
|
+
reference.setup_date_formats(nil, true)
|
56
|
+
|
57
|
+
reference.setup_date_formats({:c1 => "%Y"})
|
58
|
+
date_reference.lstrftime(:ct_date) == date_reference.strftime("%Y-%m-%d")
|
59
|
+
date_reference.lstrftime(:c1) == date_reference.year.to_s
|
60
|
+
|
61
|
+
reference.setup_date_formats({:c1 => "%Y"}, true)
|
62
|
+
date_reference.lstrftime(:ct_date).should == "ct_date"
|
63
|
+
date_reference.lstrftime(:c1).should == date_reference.year.to_s
|
64
|
+
|
65
|
+
reference.setup_date_formats()
|
66
|
+
date_reference.lstrftime(:ct_date).should == date_reference.strftime("%Y-%m-%d")
|
67
|
+
date_reference.lstrftime(:c1).should == date_reference.year.to_s
|
68
|
+
|
69
|
+
reference.setup_date_formats(nil, true)
|
70
|
+
date_reference.lstrftime(:ct_date) == date_reference.strftime("%Y-%m-d")
|
71
|
+
date_reference.lstrftime(:c1).should == "c1"
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
describe "#setup_date_names" do
|
76
|
+
it "should save names for days and months" do
|
77
|
+
reference.setup_date_names
|
78
|
+
reference.setup_date_formats({:sdn => "%B %b %A %a"})
|
79
|
+
|
80
|
+
long_months = 12.times.collect {|i| (i + 1).to_s * 2}
|
81
|
+
short_months = 12.times.collect {|i| (i + 1).to_s}
|
82
|
+
long_days = 7.times.collect {|i| (i + 1).to_s * 2}
|
83
|
+
short_days = 7.times.collect {|i| (i + 1).to_s}
|
84
|
+
|
85
|
+
reference.setup_date_names(long_months)
|
86
|
+
date_reference.lstrftime(:sdn).should == "66 Jun Tuesday Tue"
|
87
|
+
|
88
|
+
reference.setup_date_names(long_months, short_months)
|
89
|
+
date_reference.lstrftime(:sdn).should == "66 6 Tuesday Tue"
|
90
|
+
|
91
|
+
reference.setup_date_names(long_months, short_months, long_days)
|
92
|
+
date_reference.lstrftime(:sdn).should == "66 6 33 Tue"
|
93
|
+
|
94
|
+
reference.setup_date_names(long_months, short_months, long_days, short_days)
|
95
|
+
date_reference.lstrftime(:sdn).should == "66 6 33 3"
|
96
|
+
|
97
|
+
reference.setup_date_names
|
98
|
+
date_reference.lstrftime(:sdn).should == "June Jun Tuesday Tue"
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -12,6 +12,10 @@ describe Cowtech::Extensions::String do
|
|
12
12
|
let(:untitleized_reference) { "abc-òùà-èé-&gt;" }
|
13
13
|
let(:amp_reference) { "abc òùà èé >" }
|
14
14
|
|
15
|
+
before(:all) do
|
16
|
+
::Cowtech::Extensions.load!
|
17
|
+
end
|
18
|
+
|
15
19
|
describe "#remove_accents" do
|
16
20
|
it "should translate accents" do reference.remove_accents.should == translated_reference end
|
17
21
|
end
|
@@ -23,4 +27,13 @@ describe Cowtech::Extensions::String do
|
|
23
27
|
describe "#replace_ampersands" do
|
24
28
|
it "should remove HTML ampersands" do reference.replace_ampersands.should == amp_reference end
|
25
29
|
end
|
30
|
+
|
31
|
+
describe "#value" do
|
32
|
+
it "should return the string itself" do
|
33
|
+
reference.value.should == reference
|
34
|
+
translated_reference.value.should == translated_reference
|
35
|
+
untitleized_reference.value.should == untitleized_reference
|
36
|
+
amp_reference.value.should == amp_reference
|
37
|
+
end
|
38
|
+
end
|
26
39
|
end
|
@@ -1,27 +1,47 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
describe Cowtech::Extensions do
|
4
|
-
describe "
|
5
|
-
|
4
|
+
describe ".is_ruby_18?" do
|
5
|
+
it "it return true for Ruby 1.8" do
|
6
|
+
original_ruby_version = RUBY_VERSION
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
::Kernel::silence_warnings { Object.const_set("RUBY_VERSION", "1.8.7") }
|
9
|
+
::Cowtech::Extensions.is_ruby_18?.should be_true
|
10
|
+
::Kernel::silence_warnings { Object.const_set("RUBY_VERSION", original_ruby_version) }
|
10
11
|
end
|
11
12
|
|
12
|
-
it "
|
13
|
-
|
14
|
-
|
13
|
+
it "it return false otherwise" do
|
14
|
+
original_ruby_version = RUBY_VERSION
|
15
|
+
|
16
|
+
::Kernel::silence_warnings { Object.const_set("RUBY_VERSION", "1.9.3") }
|
17
|
+
::Cowtech::Extensions.is_ruby_18?.should be_false
|
18
|
+
::Kernel::silence_warnings { Object.const_set("RUBY_VERSION", original_ruby_version) }
|
15
19
|
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe ".load!" do
|
23
|
+
describe "should load all extensions by default" do
|
24
|
+
::Cowtech::Extensions.load!
|
16
25
|
|
17
|
-
|
26
|
+
it "for Boolean" do
|
27
|
+
true.should respond_to("value")
|
28
|
+
true.should respond_to("to_i")
|
29
|
+
end
|
18
30
|
|
19
|
-
|
31
|
+
it "for DateTime" do
|
32
|
+
::DateTime.should respond_to("custom_format")
|
33
|
+
::DateTime.now.should respond_to("lstrftime")
|
34
|
+
end
|
20
35
|
|
21
|
-
|
36
|
+
it "for Hash" do {:a => "b"}.should respond_to("a") end
|
22
37
|
|
23
|
-
|
38
|
+
it "for Math" do ::Math.should respond_to("min") end
|
24
39
|
|
25
|
-
|
40
|
+
it "for Object" do 0.should respond_to("debug_dump") end
|
41
|
+
|
42
|
+
it "for Pathname" do ::Pathname.new($0).should respond_to("components") end
|
43
|
+
|
44
|
+
it "for String" do "".should respond_to("remove_accents") end
|
45
|
+
end
|
26
46
|
end
|
27
47
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,175 +1,260 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cowtech-extensions
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.5.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 1
|
9
|
-
- 3
|
10
|
-
version: 2.1.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Shogun
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
date: 2012-07-19 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: json
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.7.0
|
22
|
+
type: :runtime
|
22
23
|
prerelease: false
|
23
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.7.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: actionpack
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
24
33
|
none: false
|
25
|
-
requirements:
|
34
|
+
requirements:
|
26
35
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 3
|
31
|
-
- 0
|
32
|
-
version: "3.0"
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '3.0'
|
33
38
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: tzinfo
|
37
39
|
prerelease: false
|
38
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: tzinfo
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
|
-
requirements:
|
50
|
+
requirements:
|
41
51
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
- 3
|
47
|
-
- 33
|
48
|
-
version: 0.3.33
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.3.0
|
49
54
|
type: :runtime
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: rspec
|
53
55
|
prerelease: false
|
54
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.3.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
55
65
|
none: false
|
56
|
-
requirements:
|
66
|
+
requirements:
|
57
67
|
- - ~>
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
segments:
|
61
|
-
- 2
|
62
|
-
- 11
|
63
|
-
version: "2.11"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 2.11.0
|
64
70
|
type: :development
|
65
|
-
version_requirements: *id003
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
|
-
name: rcov
|
68
71
|
prerelease: false
|
69
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
70
73
|
none: false
|
71
|
-
requirements:
|
74
|
+
requirements:
|
72
75
|
- - ~>
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 2.11.0
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: simplecov
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 0.6.0
|
80
86
|
type: :development
|
81
|
-
|
82
|
-
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.6.0
|
94
|
+
- !ruby/object:Gem::Dependency
|
83
95
|
name: pry
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 0.9.9.0
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.9.9.0
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: yard
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.8.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 0.8.0
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: redcarpet
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 2.1.0
|
134
|
+
type: :development
|
84
135
|
prerelease: false
|
85
|
-
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
137
|
none: false
|
87
|
-
requirements:
|
138
|
+
requirements:
|
88
139
|
- - ~>
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 2.1.0
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: github-markup
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ~>
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 0.7.0
|
96
150
|
type: :development
|
97
|
-
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ~>
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 0.7.0
|
98
158
|
description: Several Ruby object enhancements.
|
99
|
-
email:
|
159
|
+
email:
|
100
160
|
- shogun_panda@me.com
|
101
161
|
executables: []
|
102
|
-
|
103
162
|
extensions: []
|
104
|
-
|
105
163
|
extra_rdoc_files: []
|
106
|
-
|
107
|
-
files:
|
164
|
+
files:
|
108
165
|
- .gitignore
|
166
|
+
- .yardopts
|
109
167
|
- Gemfile
|
110
168
|
- Gemfile.lock
|
111
169
|
- README.md
|
112
170
|
- Rakefile
|
113
171
|
- cowtech-extensions.gemspec
|
172
|
+
- doc/Cowtech.html
|
173
|
+
- doc/Cowtech/Extensions.html
|
174
|
+
- doc/Cowtech/Extensions/Boolean.html
|
175
|
+
- doc/Cowtech/Extensions/DateTime.html
|
176
|
+
- doc/Cowtech/Extensions/DateTime/ClassMethods.html
|
177
|
+
- doc/Cowtech/Extensions/Exceptions.html
|
178
|
+
- doc/Cowtech/Extensions/Exceptions/Dump.html
|
179
|
+
- doc/Cowtech/Extensions/Hash.html
|
180
|
+
- doc/Cowtech/Extensions/Math.html
|
181
|
+
- doc/Cowtech/Extensions/Math/ClassMethods.html
|
182
|
+
- doc/Cowtech/Extensions/Object.html
|
183
|
+
- doc/Cowtech/Extensions/Pathname.html
|
184
|
+
- doc/Cowtech/Extensions/Settings.html
|
185
|
+
- doc/Cowtech/Extensions/String.html
|
186
|
+
- doc/Cowtech/Extensions/TimeZone.html
|
187
|
+
- doc/Cowtech/Extensions/TimeZone/ClassMethods.html
|
188
|
+
- doc/Cowtech/Extensions/Version.html
|
189
|
+
- doc/_index.html
|
190
|
+
- doc/class_list.html
|
191
|
+
- doc/css/common.css
|
192
|
+
- doc/css/full_list.css
|
193
|
+
- doc/css/style.css
|
194
|
+
- doc/file.README.html
|
195
|
+
- doc/file_list.html
|
196
|
+
- doc/frames.html
|
197
|
+
- doc/index.html
|
198
|
+
- doc/js/app.js
|
199
|
+
- doc/js/full_list.js
|
200
|
+
- doc/js/jquery.js
|
201
|
+
- doc/method_list.html
|
202
|
+
- doc/top-level-namespace.html
|
114
203
|
- lib/cowtech-extensions.rb
|
115
204
|
- lib/cowtech-extensions/boolean.rb
|
116
205
|
- lib/cowtech-extensions/datetime.rb
|
206
|
+
- lib/cowtech-extensions/exceptions.rb
|
117
207
|
- lib/cowtech-extensions/hash.rb
|
118
208
|
- lib/cowtech-extensions/math.rb
|
119
209
|
- lib/cowtech-extensions/object.rb
|
120
210
|
- lib/cowtech-extensions/pathname.rb
|
211
|
+
- lib/cowtech-extensions/settings.rb
|
121
212
|
- lib/cowtech-extensions/string.rb
|
122
|
-
- lib/cowtech-extensions/utils.rb
|
123
213
|
- lib/cowtech-extensions/version.rb
|
214
|
+
- spec/coverage_helper.rb
|
124
215
|
- spec/cowtech-extensions/boolean_spec.rb
|
125
216
|
- spec/cowtech-extensions/datetime_spec.rb
|
126
217
|
- spec/cowtech-extensions/hash_spec.rb
|
127
218
|
- spec/cowtech-extensions/math_spec.rb
|
128
219
|
- spec/cowtech-extensions/object_spec.rb
|
129
220
|
- spec/cowtech-extensions/pathname_spec.rb
|
221
|
+
- spec/cowtech-extensions/settings_spec.rb
|
130
222
|
- spec/cowtech-extensions/string_spec.rb
|
131
223
|
- spec/cowtech-extensions_spec.rb
|
132
224
|
- spec/spec_helper.rb
|
133
225
|
homepage: http://github.com/ShogunPanda/cowtech-extensions
|
134
226
|
licenses: []
|
135
|
-
|
136
227
|
post_install_message:
|
137
228
|
rdoc_options: []
|
138
|
-
|
139
|
-
require_paths:
|
229
|
+
require_paths:
|
140
230
|
- lib
|
141
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
231
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
142
232
|
none: false
|
143
|
-
requirements:
|
144
|
-
- -
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
|
147
|
-
|
148
|
-
- 0
|
149
|
-
version: "0"
|
150
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ! '>='
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '0'
|
237
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
238
|
none: false
|
152
|
-
requirements:
|
153
|
-
- -
|
154
|
-
- !ruby/object:Gem::Version
|
155
|
-
|
156
|
-
segments:
|
157
|
-
- 0
|
158
|
-
version: "0"
|
239
|
+
requirements:
|
240
|
+
- - ! '>='
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: '0'
|
159
243
|
requirements: []
|
160
|
-
|
161
244
|
rubyforge_project: cowtech-extensions
|
162
245
|
rubygems_version: 1.8.24
|
163
246
|
signing_key:
|
164
247
|
specification_version: 3
|
165
|
-
summary: Several Ruby object
|
166
|
-
test_files:
|
248
|
+
summary: Several Ruby object enhancements.
|
249
|
+
test_files:
|
250
|
+
- spec/coverage_helper.rb
|
167
251
|
- spec/cowtech-extensions/boolean_spec.rb
|
168
252
|
- spec/cowtech-extensions/datetime_spec.rb
|
169
253
|
- spec/cowtech-extensions/hash_spec.rb
|
170
254
|
- spec/cowtech-extensions/math_spec.rb
|
171
255
|
- spec/cowtech-extensions/object_spec.rb
|
172
256
|
- spec/cowtech-extensions/pathname_spec.rb
|
257
|
+
- spec/cowtech-extensions/settings_spec.rb
|
173
258
|
- spec/cowtech-extensions/string_spec.rb
|
174
259
|
- spec/cowtech-extensions_spec.rb
|
175
260
|
- spec/spec_helper.rb
|