corundum 0.0.6 → 0.0.7
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/README.md +56 -0
- data/doc/Specifications +1 -1
- data/doc/coverage/index.html +2451 -1997
- data/lib/corundum.rb +20 -29
- data/lib/corundum/browser-task.rb +21 -0
- data/lib/corundum/email.rb +11 -9
- data/lib/corundum/gem_building.rb +6 -3
- data/lib/corundum/gemcutter.rb +14 -10
- data/lib/corundum/gemspec_sanity.rb +11 -5
- data/lib/corundum/github-pages.rb +147 -0
- data/lib/corundum/rspec.rb +68 -82
- data/lib/corundum/rubyforge.rb +4 -10
- data/lib/corundum/simplecov.rb +41 -29
- data/lib/corundum/tasklib.rb +3 -53
- data/lib/corundum/tasklibs.rb +2 -0
- data/lib/corundum/version_control.rb +7 -7
- data/lib/corundum/version_control/git.rb +23 -29
- data/lib/corundum/version_control/monotone.rb +7 -15
- data/lib/corundum/yardoc.rb +36 -15
- data/spec/smoking_spec.rb +0 -2
- data/spec_help/file-sandbox.rb +10 -10
- metadata +39 -26
- data/doc/README +0 -2
- data/lib/corundum/configurable.rb +0 -54
- data/spec/bogus_spec.rb +0 -3
data/spec_help/file-sandbox.rb
CHANGED
@@ -34,7 +34,7 @@ module FileSandbox
|
|
34
34
|
end
|
35
35
|
|
36
36
|
attr_reader :sandbox
|
37
|
-
|
37
|
+
|
38
38
|
def in_sandbox(&block)
|
39
39
|
raise "I expected to create a sandbox as you passed in a block to me" if !block_given?
|
40
40
|
|
@@ -84,7 +84,7 @@ module FileSandbox
|
|
84
84
|
clean_up
|
85
85
|
FileUtils.mkdir_p @root
|
86
86
|
end
|
87
|
-
|
87
|
+
|
88
88
|
def [](name)
|
89
89
|
SandboxFile.new(File.join(@root, name), name)
|
90
90
|
end
|
@@ -102,17 +102,17 @@ module FileSandbox
|
|
102
102
|
file.content = (options.delete(:with_content) || options.delete(:with_contents) || '')
|
103
103
|
end
|
104
104
|
end
|
105
|
-
|
105
|
+
|
106
106
|
raise "unexpected keys '#{options.keys.join(', ')}'" unless options.empty?
|
107
|
-
|
107
|
+
|
108
108
|
dir || file
|
109
109
|
end
|
110
|
-
|
110
|
+
|
111
111
|
def remove(options)
|
112
112
|
name = File.join(@root, options[:file])
|
113
113
|
FileUtils.remove_file name
|
114
114
|
end
|
115
|
-
|
115
|
+
|
116
116
|
def clean_up
|
117
117
|
FileUtils.rm_rf @root
|
118
118
|
if File.exists? @root
|
@@ -124,7 +124,7 @@ module FileSandbox
|
|
124
124
|
|
125
125
|
class SandboxFile
|
126
126
|
attr_reader :path
|
127
|
-
|
127
|
+
|
128
128
|
def initialize(path, sandbox_path)
|
129
129
|
@path = path
|
130
130
|
@sandbox_path = sandbox_path
|
@@ -141,12 +141,12 @@ module FileSandbox
|
|
141
141
|
def content
|
142
142
|
File.read path
|
143
143
|
end
|
144
|
-
|
144
|
+
|
145
145
|
def content=(content)
|
146
146
|
FileUtils.mkdir_p File.dirname(@path)
|
147
147
|
File.open(@path, "w") {|f| f << content}
|
148
148
|
end
|
149
|
-
|
149
|
+
|
150
150
|
def binary_content=(content)
|
151
151
|
FileUtils.mkdir_p File.dirname(@path)
|
152
152
|
File.open(@path, "wb") {|f| f << content}
|
@@ -159,6 +159,6 @@ module FileSandbox
|
|
159
159
|
alias exists? exist?
|
160
160
|
alias contents content
|
161
161
|
alias contents= content=
|
162
|
-
alias binary_contents= binary_content=
|
162
|
+
alias binary_contents= binary_content=
|
163
163
|
end
|
164
164
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: corundum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Judson Lester
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2012-01-31 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: corundum
|
@@ -35,7 +35,7 @@ dependencies:
|
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: *id002
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
38
|
+
name: rdoc
|
39
39
|
requirement: &id003 !ruby/object:Gem::Requirement
|
40
40
|
none: true
|
41
41
|
requirements:
|
@@ -46,8 +46,19 @@ dependencies:
|
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: *id003
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
49
|
+
name: yard
|
50
50
|
requirement: &id004 !ruby/object:Gem::Requirement
|
51
|
+
none: true
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: "0"
|
56
|
+
type: :runtime
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: mailfactory
|
61
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
51
62
|
none: false
|
52
63
|
requirements:
|
53
64
|
- - ~>
|
@@ -59,10 +70,10 @@ dependencies:
|
|
59
70
|
version: 1.4.0
|
60
71
|
type: :runtime
|
61
72
|
prerelease: false
|
62
|
-
version_requirements: *
|
73
|
+
version_requirements: *id005
|
63
74
|
- !ruby/object:Gem::Dependency
|
64
75
|
name: rspec
|
65
|
-
requirement: &
|
76
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
66
77
|
none: false
|
67
78
|
requirements:
|
68
79
|
- - ">="
|
@@ -73,10 +84,10 @@ dependencies:
|
|
73
84
|
version: "2.0"
|
74
85
|
type: :runtime
|
75
86
|
prerelease: false
|
76
|
-
version_requirements: *
|
87
|
+
version_requirements: *id006
|
77
88
|
- !ruby/object:Gem::Dependency
|
78
89
|
name: simplecov
|
79
|
-
requirement: &
|
90
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
80
91
|
none: false
|
81
92
|
requirements:
|
82
93
|
- - ">="
|
@@ -84,10 +95,10 @@ dependencies:
|
|
84
95
|
version: 0.5.4
|
85
96
|
type: :runtime
|
86
97
|
prerelease: false
|
87
|
-
version_requirements: *
|
98
|
+
version_requirements: *id007
|
88
99
|
- !ruby/object:Gem::Dependency
|
89
100
|
name: bundler
|
90
|
-
requirement: &
|
101
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
91
102
|
none: false
|
92
103
|
requirements:
|
93
104
|
- - ~>
|
@@ -99,10 +110,10 @@ dependencies:
|
|
99
110
|
version: 1.0.0
|
100
111
|
type: :runtime
|
101
112
|
prerelease: false
|
102
|
-
version_requirements: *
|
113
|
+
version_requirements: *id008
|
103
114
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
105
|
-
requirement: &
|
115
|
+
name: nokogiri
|
116
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
106
117
|
none: true
|
107
118
|
requirements:
|
108
119
|
- - ">="
|
@@ -110,18 +121,21 @@ dependencies:
|
|
110
121
|
version: "0"
|
111
122
|
type: :runtime
|
112
123
|
prerelease: false
|
113
|
-
version_requirements: *
|
124
|
+
version_requirements: *id009
|
114
125
|
- !ruby/object:Gem::Dependency
|
115
|
-
name:
|
116
|
-
requirement: &
|
117
|
-
none:
|
126
|
+
name: mattock
|
127
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
118
129
|
requirements:
|
119
130
|
- - ">="
|
120
131
|
- !ruby/object:Gem::Version
|
121
|
-
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
- 1
|
135
|
+
version: "0.1"
|
122
136
|
type: :runtime
|
123
137
|
prerelease: false
|
124
|
-
version_requirements: *
|
138
|
+
version_requirements: *id010
|
125
139
|
description: " A Corundum is a synthetic gemstone - including synthetic rubies. Ergo: a tool for synthesizing gems.\n"
|
126
140
|
email:
|
127
141
|
- nyarly@gmail.com
|
@@ -130,7 +144,6 @@ executables: []
|
|
130
144
|
extensions: []
|
131
145
|
|
132
146
|
extra_rdoc_files:
|
133
|
-
- doc/README
|
134
147
|
- doc/Specifications
|
135
148
|
- doc/coverage/index.html
|
136
149
|
- doc/coverage/assets/0.5.3/highlight.css
|
@@ -183,7 +196,8 @@ extra_rdoc_files:
|
|
183
196
|
- doc/coverage/assets/0.5.3/loading.gif
|
184
197
|
- doc/coverage/assets/0.5.3/jquery-1.6.2.min.js
|
185
198
|
files:
|
186
|
-
- lib/corundum/
|
199
|
+
- lib/corundum/browser-task.rb
|
200
|
+
- lib/corundum/github-pages.rb
|
187
201
|
- lib/corundum/rspec.rb
|
188
202
|
- lib/corundum/email.rb
|
189
203
|
- lib/corundum/gemspec_sanity.rb
|
@@ -198,14 +212,13 @@ files:
|
|
198
212
|
- lib/corundum/version_control/monotone.rb
|
199
213
|
- lib/corundum/version_control/git.rb
|
200
214
|
- lib/corundum.rb
|
201
|
-
-
|
202
|
-
- doc/Specifications
|
215
|
+
- README.md
|
203
216
|
- spec/smoking_spec.rb
|
204
|
-
- spec/bogus_spec.rb
|
205
217
|
- spec_help/spec_helper.rb
|
206
218
|
- spec_help/gem_test_suite.rb
|
207
219
|
- spec_help/ungemmer.rb
|
208
220
|
- spec_help/file-sandbox.rb
|
221
|
+
- doc/Specifications
|
209
222
|
- doc/coverage/index.html
|
210
223
|
- doc/coverage/assets/0.5.3/highlight.css
|
211
224
|
- doc/coverage/assets/0.5.3/favicon_yellow.png
|
@@ -265,7 +278,7 @@ rdoc_options:
|
|
265
278
|
- --main
|
266
279
|
- doc/README
|
267
280
|
- --title
|
268
|
-
- corundum-0.0.
|
281
|
+
- corundum-0.0.7 RDoc
|
269
282
|
require_paths:
|
270
283
|
- lib/
|
271
284
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -273,7 +286,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
273
286
|
requirements:
|
274
287
|
- - ">="
|
275
288
|
- !ruby/object:Gem::Version
|
276
|
-
hash: -
|
289
|
+
hash: -719336563
|
277
290
|
segments:
|
278
291
|
- 0
|
279
292
|
version: "0"
|
data/doc/README
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
module Corundum
|
4
|
-
module Configurable
|
5
|
-
def local_attrs
|
6
|
-
@local_attrs ||=
|
7
|
-
begin
|
8
|
-
mod = Module.new
|
9
|
-
extend mod
|
10
|
-
mod
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
def local_attrs=(mod)
|
15
|
-
extend mod
|
16
|
-
@local_attrs = mod
|
17
|
-
end
|
18
|
-
|
19
|
-
def setting(name, default_value = nil)
|
20
|
-
local_attrs.instance_eval do
|
21
|
-
attr_accessor(name)
|
22
|
-
end
|
23
|
-
instance_variable_set("@#{name}", default_value)
|
24
|
-
end
|
25
|
-
|
26
|
-
def dup
|
27
|
-
result = super
|
28
|
-
result.extend Configurable
|
29
|
-
result.local_attrs = @local_attrs
|
30
|
-
result
|
31
|
-
end
|
32
|
-
|
33
|
-
def settings(hash)
|
34
|
-
hash.each_pair do |name, value|
|
35
|
-
setting(name, value)
|
36
|
-
end
|
37
|
-
return self
|
38
|
-
end
|
39
|
-
|
40
|
-
def nested(hash=nil)
|
41
|
-
obj = Object.new
|
42
|
-
obj.extend Configurable
|
43
|
-
obj.settings(hash || {})
|
44
|
-
return obj
|
45
|
-
end
|
46
|
-
|
47
|
-
def nil_fields(*names)
|
48
|
-
names.each do |name|
|
49
|
-
setting(name, nil)
|
50
|
-
end
|
51
|
-
return self
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
data/spec/bogus_spec.rb
DELETED