duct_tape 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +10 -0
- data/Gemfile.lock +35 -0
- data/LICENSE +25 -0
- data/README.md +223 -0
- data/Rakefile +38 -0
- data/VERSION +1 -0
- data/duct_tape.gemspec +106 -0
- data/ext/mkrf_conf.rb +36 -0
- data/git_hooks/env_vars.sh +287 -0
- data/git_hooks/post-commit +43 -0
- data/git_hooks/post-merge +8 -0
- data/git_hooks/pre-commit +273 -0
- data/install_git_hooks +17 -0
- data/lib/algorithms/containers/heap.rb +15 -0
- data/lib/algorithms/containers/priority_queue.rb +11 -0
- data/lib/algorithms/containers.rb +1 -0
- data/lib/duct_tape/autoassociative_array.rb +110 -0
- data/lib/duct_tape.rb +10 -0
- data/lib/ext/array.rb +327 -0
- data/lib/ext/boolean.rb +3 -0
- data/lib/ext/datetime.rb +7 -0
- data/lib/ext/dir.rb +59 -0
- data/lib/ext/file.rb +40 -0
- data/lib/ext/hash.rb +83 -0
- data/lib/ext/kernel.rb +593 -0
- data/lib/ext/numeric.rb +74 -0
- data/lib/ext/object.rb +17 -0
- data/lib/ext/pathname.rb +114 -0
- data/lib/ext/range.rb +7 -0
- data/lib/ext/regexp.rb +12 -0
- data/lib/ext/string.rb +54 -0
- data/lib/ext/symbol.rb +8 -0
- data/lib/ext/time.rb +32 -0
- data/lib/ext/uri.rb +16 -0
- data/spec/algorithms/containers/heap_spec.rb +19 -0
- data/spec/algorithms/containers/priority_queue_spec.rb +19 -0
- data/spec/duct_tape/autoassociative_array_spec.rb +139 -0
- data/spec/ext/array_spec.rb +407 -0
- data/spec/ext/boolean_spec.rb +19 -0
- data/spec/ext/datetime_spec.rb +10 -0
- data/spec/ext/dir_spec.rb +46 -0
- data/spec/ext/file_spec.rb +10 -0
- data/spec/ext/hash_spec.rb +73 -0
- data/spec/ext/kernel_spec.rb +64 -0
- data/spec/ext/numeric_spec.rb +61 -0
- data/spec/ext/object_spec.rb +19 -0
- data/spec/ext/pathname_spec.rb +13 -0
- data/spec/ext/range_spec.rb +10 -0
- data/spec/ext/regexp_spec.rb +10 -0
- data/spec/ext/string_spec.rb +73 -0
- data/spec/ext/symbol_spec.rb +10 -0
- data/spec/ext/time_spec.rb +19 -0
- data/spec/ext/uri_spec.rb +28 -0
- data/spec/spec_helper.rb +7 -0
- metadata +183 -0
@@ -0,0 +1,73 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "..", "spec_helper.rb")
|
2
|
+
|
3
|
+
#
|
4
|
+
# String#uncolorize
|
5
|
+
#
|
6
|
+
describe String, "#uncolorize" do
|
7
|
+
it "remains unchanged" do
|
8
|
+
# TODO
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
#
|
13
|
+
# String#colorized?
|
14
|
+
#
|
15
|
+
describe String, "#colorized?" do
|
16
|
+
it "remains unchanged" do
|
17
|
+
# TODO
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
#
|
22
|
+
# String#word_wrap
|
23
|
+
#
|
24
|
+
describe String, "#word_wrap" do
|
25
|
+
it "remains unchanged" do
|
26
|
+
# TODO
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
#
|
31
|
+
# String#word_wrap!
|
32
|
+
#
|
33
|
+
describe String, "#word_wrap!" do
|
34
|
+
it "remains unchanged" do
|
35
|
+
# TODO
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# String#chunk
|
41
|
+
#
|
42
|
+
describe String, "#chunk" do
|
43
|
+
it "remains unchanged" do
|
44
|
+
# TODO
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
#
|
49
|
+
# String#%
|
50
|
+
#
|
51
|
+
describe String, "#%" do
|
52
|
+
it "remains unchanged" do
|
53
|
+
# TODO
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# String#to_date
|
59
|
+
#
|
60
|
+
describe String, "#to_date" do
|
61
|
+
it "remains unchanged" do
|
62
|
+
# TODO
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
#
|
67
|
+
# String#to_time
|
68
|
+
#
|
69
|
+
describe String, "#to_time" do
|
70
|
+
it "remains unchanged" do
|
71
|
+
# TODO
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "..", "spec_helper.rb")
|
2
|
+
|
3
|
+
#
|
4
|
+
# Time.duration
|
5
|
+
#
|
6
|
+
describe Time, ".duration" do
|
7
|
+
it "remains unchanged" do
|
8
|
+
# TODO
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
#
|
13
|
+
# Time#to_datetime
|
14
|
+
#
|
15
|
+
describe Time, "#to_datetime" do
|
16
|
+
it "remains unchanged" do
|
17
|
+
# TODO
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "..", "spec_helper.rb")
|
2
|
+
|
3
|
+
#
|
4
|
+
# URI::Generic#relative_path?
|
5
|
+
#
|
6
|
+
describe URI::Generic, "#relative_path?" do
|
7
|
+
it "remains unchanged" do
|
8
|
+
# TODO
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
#
|
13
|
+
# URI::Generic#absolute_path?
|
14
|
+
#
|
15
|
+
describe URI::Generic, "#absolute_path?" do
|
16
|
+
it "remains unchanged" do
|
17
|
+
# TODO
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
#
|
22
|
+
# URI::Generic#relative_scheme?
|
23
|
+
#
|
24
|
+
describe URI::Generic, "#relative_scheme?" do
|
25
|
+
it "remains unchanged" do
|
26
|
+
# TODO
|
27
|
+
end
|
28
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,183 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: duct_tape
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Tim Rodriguez
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-12-07 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: facets
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: yard
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: jeweler
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rspec
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
description: A general-purpose utility library for Ruby
|
95
|
+
email:
|
96
|
+
- tw.rodriguez@gmail.com
|
97
|
+
executables: []
|
98
|
+
extensions:
|
99
|
+
- ext/mkrf_conf.rb
|
100
|
+
extra_rdoc_files:
|
101
|
+
- LICENSE
|
102
|
+
- README.md
|
103
|
+
files:
|
104
|
+
- Gemfile
|
105
|
+
- Gemfile.lock
|
106
|
+
- LICENSE
|
107
|
+
- README.md
|
108
|
+
- Rakefile
|
109
|
+
- VERSION
|
110
|
+
- duct_tape.gemspec
|
111
|
+
- ext/mkrf_conf.rb
|
112
|
+
- git_hooks/env_vars.sh
|
113
|
+
- git_hooks/post-commit
|
114
|
+
- git_hooks/post-merge
|
115
|
+
- git_hooks/pre-commit
|
116
|
+
- install_git_hooks
|
117
|
+
- lib/algorithms/containers.rb
|
118
|
+
- lib/algorithms/containers/heap.rb
|
119
|
+
- lib/algorithms/containers/priority_queue.rb
|
120
|
+
- lib/duct_tape.rb
|
121
|
+
- lib/duct_tape/autoassociative_array.rb
|
122
|
+
- lib/ext/array.rb
|
123
|
+
- lib/ext/boolean.rb
|
124
|
+
- lib/ext/datetime.rb
|
125
|
+
- lib/ext/dir.rb
|
126
|
+
- lib/ext/file.rb
|
127
|
+
- lib/ext/hash.rb
|
128
|
+
- lib/ext/kernel.rb
|
129
|
+
- lib/ext/numeric.rb
|
130
|
+
- lib/ext/object.rb
|
131
|
+
- lib/ext/pathname.rb
|
132
|
+
- lib/ext/range.rb
|
133
|
+
- lib/ext/regexp.rb
|
134
|
+
- lib/ext/string.rb
|
135
|
+
- lib/ext/symbol.rb
|
136
|
+
- lib/ext/time.rb
|
137
|
+
- lib/ext/uri.rb
|
138
|
+
- spec/algorithms/containers/heap_spec.rb
|
139
|
+
- spec/algorithms/containers/priority_queue_spec.rb
|
140
|
+
- spec/duct_tape/autoassociative_array_spec.rb
|
141
|
+
- spec/ext/array_spec.rb
|
142
|
+
- spec/ext/boolean_spec.rb
|
143
|
+
- spec/ext/datetime_spec.rb
|
144
|
+
- spec/ext/dir_spec.rb
|
145
|
+
- spec/ext/file_spec.rb
|
146
|
+
- spec/ext/hash_spec.rb
|
147
|
+
- spec/ext/kernel_spec.rb
|
148
|
+
- spec/ext/numeric_spec.rb
|
149
|
+
- spec/ext/object_spec.rb
|
150
|
+
- spec/ext/pathname_spec.rb
|
151
|
+
- spec/ext/range_spec.rb
|
152
|
+
- spec/ext/regexp_spec.rb
|
153
|
+
- spec/ext/string_spec.rb
|
154
|
+
- spec/ext/symbol_spec.rb
|
155
|
+
- spec/ext/time_spec.rb
|
156
|
+
- spec/ext/uri_spec.rb
|
157
|
+
- spec/spec_helper.rb
|
158
|
+
homepage: http://github.com/twrodriguez/duct_tape
|
159
|
+
licenses:
|
160
|
+
- Simplified BSD
|
161
|
+
post_install_message:
|
162
|
+
rdoc_options: []
|
163
|
+
require_paths:
|
164
|
+
- lib
|
165
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
166
|
+
none: false
|
167
|
+
requirements:
|
168
|
+
- - ! '>='
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: 1.8.7
|
171
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
|
+
none: false
|
173
|
+
requirements:
|
174
|
+
- - ! '>='
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: '0'
|
177
|
+
requirements: []
|
178
|
+
rubyforge_project:
|
179
|
+
rubygems_version: 1.8.24
|
180
|
+
signing_key:
|
181
|
+
specification_version: 3
|
182
|
+
summary: A bunch of useful patches for core Ruby classes
|
183
|
+
test_files: []
|