arspy 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/Rakefile +18 -50
  2. metadata +3 -3
data/Rakefile CHANGED
@@ -1,12 +1,13 @@
1
1
  #require 'rake/testtask'
2
2
  require 'rake/rdoctask'
3
3
  require 'rake/gempackagetask'
4
- require 'gem_versions'
5
4
  #require 'rake/contrib/sshpublisher'
5
+ gem 'gem_version', '>= 0.0.1'
6
+ require 'gem_version'
6
7
 
7
8
  spec = Gem::Specification.new do |s|
8
9
  s.name = 'arspy'
9
- s.version = GemVersions.get_version
10
+ s.version = GemVersion.next_version
10
11
  s.platform = Gem::Platform::RUBY
11
12
  s.required_ruby_version = '>= 1.8.7'
12
13
  s.description = 'Active Record Spy'
@@ -30,51 +31,13 @@ require 'spec/version'
30
31
  require 'spec/rake/spectask'
31
32
 
32
33
  desc "Run specs"
33
- namespace :spec do
34
- task :default=>:object
35
- Spec::Rake::SpecTask.new(:object) do |t|
36
- t.spec_files = FileList['spec/*_spec.rb']
37
- t.libs << 'lib' << 'spec'
38
- t.rcov = false
39
- t.spec_opts = ['--options', 'spec/spec.opts']
40
- #t.rcov_dir = 'coverage'
41
- #t.rcov_opts = ['--exclude', "kernel,load-diff-lcs\.rb,instance_exec\.rb,lib/spec.rb,lib/spec/runner.rb,^spec/*,bin/spec,examples,/gems,/Library/Ruby,\.autotest,#{ENV['GEM_HOME']}"]
42
- end
43
- =begin
44
- Spec::Rake::SpecTask.new(:sub) do |t|
45
- t.spec_files = FileList['spec/inheritance_spec.rb']
46
- t.libs << 'lib' << 'spec'
47
- t.rcov = false
48
- t.spec_opts = ['--options', 'spec/spec.opts']
49
- end
50
- Spec::Rake::SpecTask.new(:poro) do |t|
51
- t.spec_files = FileList['spec/poro_spec.rb']
52
- t.libs << 'lib' << 'spec'
53
- t.rcov = false
54
- t.spec_opts = ['--options', 'spec/spec.opts']
55
- end
56
-
57
- desc "Run ActiveRecord integration specs"
58
- Spec::Rake::SpecTask.new(:active_record) do |t|
59
- t.spec_files = FileList['spec/active_record/*_spec.rb']
60
- t.libs << 'lib' << 'spec/active_record'
61
- t.spec_opts = ['--options', 'spec/spec.opts']
62
- t.rcov = false
63
- end
64
- Spec::Rake::SpecTask.new(:forms) do |t|
65
- t.spec_files = FileList['spec/rails/spec/integrations/*_spec.rb']
66
- t.libs << 'lib' << 'spec/rails/spec'
67
- t.spec_opts = ['--options', 'spec/spec.opts']
68
- t.rcov = false
69
- end
70
- # Spec::Rake::SpecTask.new(:associations) do |t|
71
- # t.spec_files = FileList['spec/active_record/associations_spec.rb']
72
- # t.libs << 'lib' << 'spec/active_record'
73
- # t.rcov = false
74
- # end
75
- desc "Run all specs"
76
- task :all=>[:object, :active_record, :forms]
77
- =end
34
+ Spec::Rake::SpecTask.new(:spec) do |t|
35
+ t.spec_files = FileList['spec/*_spec.rb']
36
+ t.libs << 'lib' << 'spec'
37
+ t.rcov = false
38
+ t.spec_opts = ['--options', 'spec/spec.opts']
39
+ #t.rcov_dir = 'coverage'
40
+ #t.rcov_opts = ['--exclude', "kernel,load-diff-lcs\.rb,instance_exec\.rb,lib/spec.rb,lib/spec/runner.rb,^spec/*,bin/spec,examples,/gems,/Library/Ruby,\.autotest,#{ENV['GEM_HOME']}"]
78
41
  end
79
42
 
80
43
 
@@ -86,14 +49,19 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
86
49
  rdoc.options << '--line-numbers' << '--inline-source'
87
50
  rdoc.rdoc_files.include('README.rdoc', 'LICENSE', 'lib/**/*.rb')
88
51
  end
89
-
52
+
53
+ desc 'Clean the gem build'
54
+ task :clean do
55
+ File.delete('*.gem')
56
+ end
57
+
90
58
  desc 'Generate a gemspec file.'
91
59
  task :gemspec do
92
60
  File.open("#{spec.name}.gemspec", 'w') do |f|
93
61
  f.write spec.to_ruby
94
62
  end
95
- GemVersions.increment_version
96
- GemVersions.commit_and_push
63
+ GemVersion.increment_version
64
+ GemVersion.commit_and_push
97
65
  end
98
66
 
99
67
  Rake::GemPackageTask.new(spec) do |p|
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 7
9
- version: 0.0.7
8
+ - 8
9
+ version: 0.0.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jeff Patmon
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-24 00:00:00 -07:00
17
+ date: 2010-04-29 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency