corundum 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,10 +26,10 @@ module Corundum
26
26
  ),
27
27
  :package_dir => "pkg",
28
28
  :files => nested(:code => nil, :test => nil, :docs => nil),
29
- :file_lists => nested(:code => nil,
30
- :test => nil,
31
- :docs => nil,
32
- :project => nil,
29
+ :file_lists => nested(:code => FileList['lib/**/*.rb'],
30
+ :test => FileList['test/**/*.rb','spec/**/*.rb','features/**/*.rb'],
31
+ :docs => FileList['doc/**/*.rb'],
32
+ :project => FileList['Rakefile'],
33
33
  :all => nil),
34
34
  :rubyforge => nested().nil_fields(:group_id, :package_id,
35
35
  :release_name, :home_page, :project_page),
@@ -56,10 +56,7 @@ module Corundum
56
56
  @files.test ||= gemspec.files.grep(%r{^spec/})
57
57
  @files.docs ||= gemspec.files.grep(%r{^doc/})
58
58
 
59
- @file_lists.code ||= FileList['lib/**/*.rb']
60
- @file_lists.test ||= FileList['test/**/*.rb','spec/**/*.rb','features/**/*.rb']
61
- @file_lists.docs ||= FileList['doc/**/*.rb']
62
- @file_lists.project ||= FileList['Rakefile', gemspec_path]
59
+ @file_lists.project << gemspec_path
63
60
  @file_lists.all ||=
64
61
  file_lists.code +
65
62
  file_lists.test +
@@ -22,7 +22,7 @@ module Corundum
22
22
  setting(:threshold, 80)
23
23
  setting(:groups, {})
24
24
  setting(:code_files, toolkit.files.code)
25
- setting(:all_files, toolkit.file_lists.code + toolkit.file_lists.test)
25
+ setting(:all_files, toolkit.file_lists.project + toolkit.file_lists.code + toolkit.file_lists.test)
26
26
  end
27
27
 
28
28
  def resolve_configuration
@@ -30,7 +30,7 @@ module Corundum
30
30
 
31
31
  def guess_branch
32
32
  puts "Guessing branch - configure Git > branch"
33
- branch = git_command("branch").grep(/^\*/).sub(/\*\s*/,"").chomp
33
+ branch = git_command("branch").grep(/^\*/).first.sub(/\*\s*/,"").chomp
34
34
  puts " Guessed: #{branch}"
35
35
  return branch
36
36
  end
@@ -31,6 +31,7 @@ module Corundum
31
31
  scanner = StringScanner.new(string)
32
32
  scanner.scan(/\s*/m)
33
33
  until scanner.eos? do
34
+
34
35
  symbol = scanner.scan(/[a-z_]*/)
35
36
  scanner.scan(/\s*/)
36
37
  value = ""
@@ -87,6 +88,8 @@ module Corundum
87
88
  certs["branch"].first
88
89
  end
89
90
 
91
+
92
+
90
93
  def stanzas(first_item, items)
91
94
  stanzas = []
92
95
  current_stanza = {}
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
5
+ version: 0.0.6
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-13 00:00:00 Z
13
+ date: 2011-12-30 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: corundum
@@ -265,7 +265,7 @@ rdoc_options:
265
265
  - --main
266
266
  - doc/README
267
267
  - --title
268
- - corundum-0.0.5 RDoc
268
+ - corundum-0.0.6 RDoc
269
269
  require_paths:
270
270
  - lib/
271
271
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -273,7 +273,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
273
273
  requirements:
274
274
  - - ">="
275
275
  - !ruby/object:Gem::Version
276
- hash: 4506387
276
+ hash: -208429649
277
277
  segments:
278
278
  - 0
279
279
  version: "0"