corundum 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,29 @@
1
+ # vi: set ft=ruby:
2
+ require 'optparse'
3
+ require 'corundum/configuration-store'
4
+
5
+ options = {
6
+ :write => false
7
+ }
8
+ OptionParser.new do |opti|
9
+ opti.banner = "Usage: #{$0} [options]"
10
+
11
+ opti.on "-w", "--write", "Actually write Rakefile" do |v|
12
+ options[:write] = v
13
+ end
14
+ end.parse!(ARGV)
15
+
16
+ if options[:write]
17
+ require 'rake/application'
18
+ if found = Rake::Application::DEFAULT_RAKEFILES.find{|path| File::exists?(path)}
19
+ puts "Refusing to clobber existing '#{found}' - consider using >> to append"
20
+ exit 1
21
+ else
22
+ File::open("Rakefile", "w") do |file|
23
+ file.write(Corundum.configuration_store.loaded["example-rakefile"])
24
+ end
25
+ puts "Created Rakefile"
26
+ end
27
+ else
28
+ puts Corundum.configuration_store.loaded["example-rakefile"]
29
+ end
@@ -3,6 +3,12 @@ require 'corundum/version_control'
3
3
  module Corundum
4
4
  class Git < VersionControl
5
5
  setting(:branch, nil)
6
+ setting(:build_finished_task)
7
+
8
+ def default_configuration(toolkit)
9
+ super
10
+ self.build_finished_task = toolkit.finished_files.build
11
+ end
6
12
 
7
13
  def resolve_configuration
8
14
  @branch ||= guess_branch
@@ -94,6 +100,7 @@ module Corundum
94
100
 
95
101
  task :check_in => [:push]
96
102
  end
103
+ task build_finished_task => in_namespace("is_checked_in")
97
104
  end
98
105
  end
99
106
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corundum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-26 00:00:00.000000000 Z
12
+ date: 2012-09-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: corundum
16
- requirement: &86440340 !ruby/object:Gem::Requirement
16
+ requirement: &88693090 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.0.1
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *86440340
24
+ version_requirements: *88693090
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake-rubygems
27
- requirement: &86405370 !ruby/object:Gem::Requirement
27
+ requirement: &88689260 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.2.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *86405370
35
+ version_requirements: *88689260
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rdoc
38
- requirement: &86395440 !ruby/object:Gem::Requirement
38
+ requirement: &88688590 !ruby/object:Gem::Requirement
39
39
  none: true
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *86395440
46
+ version_requirements: *88688590
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: yard
49
- requirement: &86388570 !ruby/object:Gem::Requirement
49
+ requirement: &88687910 !ruby/object:Gem::Requirement
50
50
  none: true
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *86388570
57
+ version_requirements: *88687910
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: mailfactory
60
- requirement: &86382460 !ruby/object:Gem::Requirement
60
+ requirement: &88703350 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -69,10 +69,10 @@ dependencies:
69
69
  - 0
70
70
  type: :runtime
71
71
  prerelease: false
72
- version_requirements: *86382460
72
+ version_requirements: *88703350
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: rspec
75
- requirement: &86374320 !ruby/object:Gem::Requirement
75
+ requirement: &88702960 !ruby/object:Gem::Requirement
76
76
  none: false
77
77
  requirements:
78
78
  - - ! '>='
@@ -83,10 +83,10 @@ dependencies:
83
83
  - 0
84
84
  type: :runtime
85
85
  prerelease: false
86
- version_requirements: *86374320
86
+ version_requirements: *88702960
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: simplecov
89
- requirement: &86347780 !ruby/object:Gem::Requirement
89
+ requirement: &88702330 !ruby/object:Gem::Requirement
90
90
  none: false
91
91
  requirements:
92
92
  - - ! '>='
@@ -98,13 +98,13 @@ dependencies:
98
98
  - 4
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *86347780
101
+ version_requirements: *88702330
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: bundler
104
- requirement: &86296570 !ruby/object:Gem::Requirement
104
+ requirement: &88701860 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
- - - ~>
107
+ - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
109
  version: 1.1.0
110
110
  segments:
@@ -113,10 +113,10 @@ dependencies:
113
113
  - 0
114
114
  type: :runtime
115
115
  prerelease: false
116
- version_requirements: *86296570
116
+ version_requirements: *88701860
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: nokogiri
119
- requirement: &86294020 !ruby/object:Gem::Requirement
119
+ requirement: &88701490 !ruby/object:Gem::Requirement
120
120
  none: true
121
121
  requirements:
122
122
  - - ! '>='
@@ -124,25 +124,21 @@ dependencies:
124
124
  version: '0'
125
125
  type: :runtime
126
126
  prerelease: false
127
- version_requirements: *86294020
127
+ version_requirements: *88701490
128
128
  - !ruby/object:Gem::Dependency
129
129
  name: mattock
130
- requirement: &86278350 !ruby/object:Gem::Requirement
130
+ requirement: &88700960 !ruby/object:Gem::Requirement
131
131
  none: false
132
132
  requirements:
133
133
  - - ! '>='
134
134
  - !ruby/object:Gem::Version
135
- version: 0.2.11
136
- segments:
137
- - 0
138
- - 2
139
- - 11
135
+ version: 0.2.13
140
136
  type: :runtime
141
137
  prerelease: false
142
- version_requirements: *86278350
138
+ version_requirements: *88700960
143
139
  - !ruby/object:Gem::Dependency
144
140
  name: sass
145
- requirement: &86247560 !ruby/object:Gem::Requirement
141
+ requirement: &88700580 !ruby/object:Gem::Requirement
146
142
  none: false
147
143
  requirements:
148
144
  - - ! '>='
@@ -153,18 +149,22 @@ dependencies:
153
149
  - 1
154
150
  type: :runtime
155
151
  prerelease: false
156
- version_requirements: *86247560
152
+ version_requirements: *88700580
157
153
  - !ruby/object:Gem::Dependency
158
154
  name: compass
159
- requirement: &86239310 !ruby/object:Gem::Requirement
155
+ requirement: &88700200 !ruby/object:Gem::Requirement
160
156
  none: false
161
157
  requirements:
162
158
  - - ! '>='
163
159
  - !ruby/object:Gem::Version
164
160
  version: 0.12.1
161
+ segments:
162
+ - 0
163
+ - 12
164
+ - 1
165
165
  type: :runtime
166
166
  prerelease: false
167
- version_requirements: *86239310
167
+ version_requirements: *88700200
168
168
  description: ! " A corundum is a synthetic gemstone - including synthetic rubies.
169
169
  \ Ergo: a tool for synthesizing gems.\n\n Corundum starts with the outlook that
170
170
  gemspecs are relatively easy to work with, and that the opinion of the RubyGems
@@ -178,7 +178,8 @@ description: ! " A corundum is a synthetic gemstone - including synthetic rubie
178
178
  documentation.\n"
179
179
  email:
180
180
  - nyarly@gmail.com
181
- executables: []
181
+ executables:
182
+ - corundum-rakefile
182
183
  extensions: []
183
184
  extra_rdoc_files:
184
185
  - doc/README
@@ -234,6 +235,7 @@ extra_rdoc_files:
234
235
  - doc/coverage/assets/0.5.3/loading.gif
235
236
  - doc/coverage/assets/0.5.3/jquery-1.6.2.min.js
236
237
  files:
238
+ - bin/corundum-rakefile
237
239
  - lib/corundum.rb
238
240
  - lib/corundum/configuration-store.rb
239
241
  - lib/corundum/core.rb
@@ -324,10 +326,10 @@ files:
324
326
  homepage: http://nyarly.github.com/corundum/
325
327
  licenses:
326
328
  - MIT
327
- post_install_message: Another tidy package brought to you by Judson
329
+ post_install_message:
328
330
  rdoc_options:
329
331
  - --title
330
- - corundum-0.0.18 RDoc
332
+ - corundum-0.0.19 RDoc
331
333
  require_paths:
332
334
  - lib/
333
335
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -338,7 +340,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
338
340
  version: '0'
339
341
  segments:
340
342
  - 0
341
- hash: -919018579
343
+ hash: -308799359
342
344
  required_rubygems_version: !ruby/object:Gem::Requirement
343
345
  none: false
344
346
  requirements: