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 +11 -2
- data/lib/spraypaint/version.rb +1 -1
- data/spraypaint.gemspec +1 -1
- metadata +1 -1
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["#{
|
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(
|
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']
|
data/lib/spraypaint/version.rb
CHANGED
data/spraypaint.gemspec
CHANGED