matthewtodd-shoe 0.1.1 → 0.1.3

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 +1 -1
  2. data/lib/shoe.rb +9 -16
  3. metadata +3 -3
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
2
2
  require 'shoe'
3
3
 
4
- Shoe.tie('shoe', '0.1.1', "You probably don't want to use Shoe.") do |spec|
4
+ Shoe.tie('shoe', '0.1.3', "You probably don't want to use Shoe.") do |spec|
5
5
  spec.remove_development_dependency_on_shoe
6
6
  spec.add_runtime_dependency 'cucumber'
7
7
  spec.add_runtime_dependency 'rake'
data/lib/shoe.rb CHANGED
@@ -44,13 +44,6 @@ class Shoe
44
44
  DocManager.new(local_spec).generate_rdoc
45
45
  end
46
46
 
47
- desc 'Generate gemspec'
48
- task :gemspec do
49
- File.open("#{spec.name}.gemspec", 'w') do |f|
50
- f.write spec.to_ruby
51
- end
52
- end
53
-
54
47
  if Pathname.pwd.join('test').directory?
55
48
  Rake::TestTask.new { |task| task.pattern = 'test/*_test.rb' }
56
49
  default_depends_on(:test)
@@ -61,15 +54,15 @@ class Shoe
61
54
  default_depends_on(:features)
62
55
  end
63
56
 
64
- if system("git branch | grep '* master' > /dev/null") && system('git remote | grep origin > /dev/null')
65
- unless system("git tag | grep #{spec.version} > /dev/null")
66
- desc "Release #{spec.name}-#{spec.version}"
67
- task :release => :gemspec do
68
- sh "git commit -a -m 'Release #{spec.version}'"
69
- sh "git tag #{spec.version}"
70
- sh 'git push'
71
- sh 'git push --tags'
72
- end
57
+ if system("[[ -z `git tag -l #{spec.version}` ]] && git branch | grep -q '* master' && git remote | grep -q origin")
58
+ desc "Release #{spec.name}-#{spec.version}"
59
+ task :release do
60
+ File.open("#{spec.name}.gemspec", 'w') { |f| f.write spec.to_ruby }
61
+ sh "git add #{spec.name}.gemspec"
62
+ sh "git commit -a -m 'Release #{spec.version}'"
63
+ sh "git tag #{spec.version}"
64
+ sh 'git push'
65
+ sh 'git push --tags'
73
66
  end
74
67
  end
75
68
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: matthewtodd-shoe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Todd
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-11 00:00:00 -07:00
12
+ date: 2009-07-14 00:00:00 -07:00
13
13
  default_executable: shoe
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -52,7 +52,7 @@ rdoc_options:
52
52
  - --main
53
53
  - README.rdoc
54
54
  - --title
55
- - shoe-0.1.1
55
+ - shoe-0.1.3
56
56
  - --inline-source
57
57
  require_paths:
58
58
  - lib