jasmine-sauce 0.2.0.alpha3 → 0.2.0.alpha4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +28 -2
  2. data/lib/sauce/jasmine/config.rb +1 -1
  3. metadata +3 -3
data/Rakefile CHANGED
@@ -13,7 +13,33 @@ task :build do
13
13
  system "gem build jasmine-sauce.gemspec"
14
14
  end
15
15
 
16
- desc 'Push gem to rubygems.org'
17
- task :push => :build do
16
+ desc 'Release gem to rubygems.org'
17
+ task :release => :build do
18
18
  system "gem push `ls *.gem | sort | tail -n 1`"
19
19
  end
20
+
21
+ desc 'tag current version'
22
+ task :tag do
23
+ version = nil
24
+ File.open("jasmine-sauce.gemspec").each do |line|
25
+ if line =~ /s.version = "(.*)"/
26
+ version = $1
27
+ end
28
+ end
29
+
30
+ if version.nil?
31
+ raise "Couldn't find version"
32
+ end
33
+
34
+ system "git tag v#{version}"
35
+ end
36
+
37
+ desc 'push to github'
38
+ task :push do
39
+ system "git push origin master --tags"
40
+ end
41
+
42
+ desc 'everything'
43
+ task :everything => [:tag, :release, :push]
44
+
45
+ task :default => :everything
@@ -12,7 +12,7 @@ module Sauce
12
12
  end
13
13
 
14
14
  def quiet_tunnel?
15
- true
15
+ ENV['DEBUG'] != "true"
16
16
  end
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-sauce
3
3
  version: !ruby/object:Gem::Version
4
- hash: -3702664326
4
+ hash: -3702664332
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 0
10
10
  - alpha
11
- - 3
12
- version: 0.2.0.alpha3
11
+ - 4
12
+ version: 0.2.0.alpha4
13
13
  platform: ruby
14
14
  authors:
15
15
  - Eric Allen