spraypaint 1.0.2 → 1.0.3

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.
data/Rakefile CHANGED
@@ -3,6 +3,8 @@ $: << File.expand_path(File.join(File.dirname(__FILE__), "lib"))
3
3
  require 'spraypaint/version'
4
4
  require 'spec/rake/spectask' rescue nil
5
5
 
6
+ SPRAYPAINT_ROOT = File.dirname(__FILE__)
7
+
6
8
  namespace :spraypaint do
7
9
  begin
8
10
  require 'jeweler'
@@ -25,7 +27,7 @@ namespace :spraypaint do
25
27
  desc "Run specs for spraypaint"
26
28
  Spec::Rake::SpecTask.new(:spec) do |t|
27
29
  t.spec_opts = ["-f n -c"]
28
- t.spec_files = FileList["#{File.dirname(__FILE__)}/test/spec/**/*_spec.rb"]
30
+ t.spec_files = FileList["#{SPRAYPAINT_ROOT}/test/spec/**/*_spec.rb"]
29
31
  end
30
32
  else
31
33
  task :spec do
@@ -35,7 +37,7 @@ namespace :spraypaint do
35
37
 
36
38
  task 'about.yml' do
37
39
  gemspec = Rake.application.jeweler_tasks.jeweler.gemspec
38
- File.open(File.join(File.dirname(__FILE__), "about.yml"), 'w+') do |f|
40
+ File.open(File.join(SPRAYPAINT_ROOT, "about.yml"), 'w+') do |f|
39
41
  YAML.dump({
40
42
  :name => gemspec.name,
41
43
  :summary => gemspec.summary,
@@ -49,6 +51,13 @@ namespace :spraypaint do
49
51
  }, f)
50
52
  end
51
53
  end
54
+
55
+ task 'tag' do
56
+ gemspec = Rake.application.jeweler_tasks.jeweler.gemspec
57
+ `cd #{SPRAYPAINT_ROOT}; git tag -a "v#{gemspec.version.to_s}" -m "Releasing spraypaint version #{gemspec.version.to_s}"`
58
+ end
59
+
60
+ task 'release' => ['spraypaint:spec', 'spraypaint:about.yml', 'spraypaint:tag', 'spraypaint:gemcutter:release']
52
61
  end
53
62
 
54
63
  task 'default' => ['spraypaint:spec', 'spraypaint:features']
@@ -2,7 +2,7 @@ module Spraypaint
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
- PATCH = 2
5
+ PATCH = 3
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{spraypaint}
8
- s.version = "1.0.2"
8
+ s.version = "1.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Ward"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spraypaint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Ward