buildar 1.4.0.3 → 1.4.0.4

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/buildar.rb +2 -2
  3. data/lib/buildar/tasks.rb +3 -3
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0.3
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
- args = rakefile ? [File.dirname(rakefile)] : []
27
- @@instance = Buildar.new(*args)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0.3
4
+ version: 1.4.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: