buildar 1.4.0.3 → 1.4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/buildar.rb +2 -2
- data/lib/buildar/tasks.rb +3 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.0.
|
1
|
+
1.4.0.4
|
data/lib/buildar.rb
CHANGED
@@ -23,8 +23,8 @@ class Buildar
|
|
23
23
|
#
|
24
24
|
def self.conf(rakefile = nil)
|
25
25
|
unless defined?(@@instance)
|
26
|
-
|
27
|
-
@@instance = Buildar.new
|
26
|
+
root = rakefile ? File.expand_path('..', rakefile) : nil
|
27
|
+
@@instance = Buildar.new root
|
28
28
|
end
|
29
29
|
yield @@instance if block_given?
|
30
30
|
end
|
data/lib/buildar/tasks.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'buildar'
|
2
|
-
require 'rubygems/package_task'
|
3
2
|
|
4
3
|
# shortcut to Buildar's data from the project rakefile
|
5
4
|
#
|
@@ -33,6 +32,7 @@ end
|
|
33
32
|
task :gem_package => [:test, :bump_build] do
|
34
33
|
# definine the task at runtime, rather than requiretime
|
35
34
|
# so that the gemspec will reflect any version bumping since requiretime
|
35
|
+
require 'rubygems/package_task'
|
36
36
|
Gem::PackageTask.new(proj.gemspec).define
|
37
37
|
Rake::Task["package"].invoke
|
38
38
|
end
|
@@ -131,11 +131,11 @@ task :buildar do
|
|
131
131
|
Project: #{proj.name} #{proj.version}
|
132
132
|
Root: #{proj.root}
|
133
133
|
Use gemspec file: #{proj.use_gemspec_file}
|
134
|
+
Gemspec source: #{proj.gemspec_location}
|
134
135
|
Use version file: #{proj.use_version_file}
|
136
|
+
Version source: #{proj.version_location}
|
135
137
|
Use git: #{proj.use_git}
|
136
138
|
Publish: #{proj.publish.keys}
|
137
|
-
Gemspec source: #{proj.gemspec_location}
|
138
|
-
Version source: #{proj.version_location}
|
139
139
|
# using Buildar #{Buildar.version}
|
140
140
|
EOF
|
141
141
|
puts
|