buildar 1.1.0.2 → 1.2.0.1

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 +15 -10
  3. data/rakefile.rb +6 -6
  4. metadata +4 -6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0.2
1
+ 1.2.0.1
data/lib/buildar.rb CHANGED
@@ -1,16 +1,22 @@
1
1
  # Buildar is effectively a hand-rolled singleton. Yes, a NIH miserable excuse
2
2
  # for a global.
3
3
  # Look, we want to be able to call Buildar.conf in the project rakefile, but
4
- # we need that data accessible here and inside lib/buildar/raketasks.
5
- # So we need a global. But if we use a class-based singleton, it's namespaced.
4
+ # we need that data accessible here and inside lib/buildar/tasks.
5
+ # So we need a "global".
6
+ # But if we use a class-based singleton, it's namespaced.
6
7
  # And it can't be set to nil, for example.
7
8
  #
8
9
  class Buildar
10
+ def self.version
11
+ vpath = File.join(File.dirname(__FILE__), '..', 'VERSION')
12
+ File.read(vpath).chomp
13
+ end
14
+
9
15
  # Call this from the rakefile, like:
10
- # Buildar.conf(__FILE__) do |b|
11
- # b.name = 'foo'
12
- # # ...
13
- # end
16
+ # Buildar.conf(__FILE__) do |b|
17
+ # b.name = 'foo'
18
+ # # ...
19
+ # end
14
20
  #
15
21
  def self.conf(rakefile = nil)
16
22
  unless defined?(@@instance)
@@ -62,12 +68,11 @@ class Buildar
62
68
  @version_filename = 'VERSION'
63
69
  @use_manifest_file = false
64
70
  @manifest_filename = 'MANIFEST.txt'
65
- @use_git = true
66
- @publish = { rubygems: true }
71
+ @use_git = false
72
+ @publish = { rubygems: false }
67
73
  end
68
74
 
69
- # previously, we did this in initialize
70
- # now, give conf a chance to fix things up before calling self.version etc.
75
+ # created on demand and kept up to date
71
76
  #
72
77
  def gemspec
73
78
  @gemspec ||= Gem::Specification.new
data/rakefile.rb CHANGED
@@ -6,16 +6,16 @@ Buildar.conf(__FILE__) do |b|
6
6
  b.version_filename = 'VERSION'
7
7
  b.use_manifest_file = true
8
8
  b.manifest_filename = 'MANIFEST.txt'
9
- b.gemspec.name = 'buildar'
10
- b.gemspec.summary = 'Buildar crept inside your rakefile and scratched upon the tasking post'
11
- b.gemspec.description = <<EOF
12
- Buildar helps automate the release process with versioning, building, packaging, and publishing. Optional git integration.
13
- EOF
9
+ b.use_git = true
10
+ b.publish[:rubygems] = true
11
+ b.gemspec.name = 'buildar'
12
+ b.gemspec.summary = 'Buildar crept inside your rakefile and scratched upon the tasking post'
14
13
  b.gemspec.author = 'Rick Hull'
15
14
  b.gemspec.homepage = 'https://github.com/rickhull/buildar'
16
15
  b.gemspec.license = 'MIT'
17
16
  b.gemspec.has_rdoc = true
18
- b.gemspec.add_runtime_dependency "rake", ">= 5" # guess?
17
+ b.gemspec.description = 'Buildar helps automate the release process with versioning, building, packaging, and publishing. Optional git integration.'
18
+ b.gemspec.add_runtime_dependency "rake", ">= 8" # guess?
19
19
  b.gemspec.add_development_dependency "buildar", "~> 1.0"
20
20
  end
21
21
 
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.1.0.2
4
+ version: 1.2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: '5'
21
+ version: '8'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: '5'
29
+ version: '8'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: buildar
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -43,10 +43,8 @@ dependencies:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
45
  version: '1.0'
46
- description: ! 'Buildar helps automate the release process with versioning, building,
46
+ description: Buildar helps automate the release process with versioning, building,
47
47
  packaging, and publishing. Optional git integration.
48
-
49
- '
50
48
  email:
51
49
  executables: []
52
50
  extensions: []