corundum 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,27 +7,27 @@ module Corundum
7
7
  :documentation
8
8
  end
9
9
 
10
- def default_configuration(namespace, toolkit_config)
11
- @configuration.gemspec = toolkit_config.gemspec
12
- @configuration.doc_dir = "rubydoc"
13
- @configuration.files = OpenStruct.new(:code => [], :docs => [])
10
+ def default_configuration(toolkit)
11
+ setting(:gemspec, toolkit.gemspec)
12
+ setting(:doc_dir, "rubydoc")
13
+ setting(:files, nested(:code => [], :docs => []))
14
14
  end
15
15
 
16
16
  def define
17
- directory @configuration.doc_dir
17
+ directory doc_dir
18
18
 
19
19
  in_namespace do
20
20
  YARD::Rake::YardocTask.new(:docs) do |rd|
21
- rd.options += @configuration.gemspec.rdoc_options
22
- rd.options += ["--output-dir", @configuration.doc_dir]
23
- rd.files += @configuration.files.code
24
- rd.files += @configuration.files.docs
25
- rd.files += @configuration.gemspec.extra_rdoc_files
21
+ rd.options += gemspec.rdoc_options
22
+ rd.options += ["--output-dir", doc_dir]
23
+ rd.files += files.code
24
+ rd.files += files.docs
25
+ rd.files += gemspec.extra_rdoc_files
26
26
  end
27
27
  end
28
28
 
29
29
  desc "Generate documentation based on code using YARD"
30
- task @configuration.namespace => in_namespace("docs")
30
+ task root_task => in_namespace("docs")
31
31
  end
32
32
  end
33
33
  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.1
5
+ version: 0.0.2
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: 2011-12-08 00:00:00 Z
13
+ date: 2011-12-09 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: corundum
@@ -183,6 +183,7 @@ extra_rdoc_files:
183
183
  - doc/coverage/assets/0.5.3/loading.gif
184
184
  - doc/coverage/assets/0.5.3/jquery-1.6.2.min.js
185
185
  files:
186
+ - lib/corundum/configurable.rb
186
187
  - lib/corundum/rspec.rb
187
188
  - lib/corundum/email.rb
188
189
  - lib/corundum/gemspec_sanity.rb
@@ -263,7 +264,7 @@ rdoc_options:
263
264
  - --main
264
265
  - doc/README
265
266
  - --title
266
- - corundum-0.0.1 RDoc
267
+ - corundum-0.0.2 RDoc
267
268
  require_paths:
268
269
  - lib/
269
270
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -271,7 +272,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
271
272
  requirements:
272
273
  - - ">="
273
274
  - !ruby/object:Gem::Version
274
- hash: 1032716925
275
+ hash: -725107619
275
276
  segments:
276
277
  - 0
277
278
  version: "0"