soup 0.9.10 → 0.9.11

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 +16 -1
  2. data/lib/soup/empty_class.rb +1 -1
  3. metadata +3 -3
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ spec = Gem::Specification.new do |s|
21
21
 
22
22
  # Change these as appropriate
23
23
  s.name = "soup"
24
- s.version = "0.9.10"
24
+ s.version = "0.9.11"
25
25
  s.summary = "A super-simple data store"
26
26
  s.author = "James Adam"
27
27
  s.email = "james@lazyatom.com"
@@ -60,6 +60,21 @@ end
60
60
 
61
61
  task :package => :gemspec
62
62
 
63
+ desc 'Release the gem to gemcutter and tag the repo'
64
+ task :release => [:gemspec, :package] do
65
+ if `git diff --cached`.empty?
66
+ if `git tag`.split("\n").include?("v#{spec.version}")
67
+ raise "Version #{spec.version} has already been released"
68
+ end
69
+ `git add #{File.expand_path("../#{spec.name}.gemspec", __FILE__)}`
70
+ `git commit -m "Released version #{spec.version}"`
71
+ `git tag v#{spec.version}`
72
+ `gem push pkg/#{spec.name}-#{spec.version}.gem`
73
+ else
74
+ raise "Unstaged changes still waiting to be committed"
75
+ end
76
+ end
77
+
63
78
  # Generate documentation
64
79
  Rake::RDocTask.new do |rd|
65
80
  rd.main = "README"
@@ -1,6 +1,6 @@
1
1
  # Based on Builder's BlankSlate object
2
2
  class Soup
3
3
  class EmptyClass
4
- instance_methods.each { |m| undef_method(m) unless m =~ /^(__|instance_eval|respond_to\?)/ }
4
+ instance_methods.each { |m| undef_method(m) unless m =~ /^(__|object_id|instance_eval|respond_to\?)/ }
5
5
  end
6
6
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 10
9
- version: 0.9.10
8
+ - 11
9
+ version: 0.9.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - James Adam
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-30 00:00:00 +02:00
17
+ date: 2010-05-31 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency