baldwin 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/baldwin.gemspec CHANGED
@@ -15,7 +15,8 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Baldwin::VERSION
17
17
 
18
- gem.add_dependency 'rails', '>= 3.0.0'
19
- gem.add_dependency 'appraisal', '>= 0.4.1'
20
- gem.add_dependency 'thor', '>= 0.14.6'
18
+ gem.add_dependency 'rails', '>= 3.0.0'
19
+ gem.add_dependency 'rspec-rails', '>= 2.10.0'
20
+ gem.add_dependency 'appraisal', '>= 0.4.1'
21
+ gem.add_dependency 'thor', '>= 0.14.6'
21
22
  end
@@ -1,5 +1,6 @@
1
1
  require 'appraisal'
2
2
  require 'baldwin'
3
+ require 'rspec/core/rake_task'
3
4
 
4
5
  include Rake::DSL
5
6
 
@@ -33,3 +34,11 @@ namespace :baldwin do
33
34
  Baldwin::Installer.start
34
35
  end
35
36
  end
37
+
38
+ RSpec::Core::RakeTask.new :rspec => [ :'baldwin:env', :'baldwin:rails' ]
39
+
40
+ desc "Run specs for all supported rails versions"
41
+ task :spec => :rspec
42
+
43
+ desc "Default: Clean, install dependencies, and run specs"
44
+ task :default => [ :'baldwin:clean', :'appraisal:install', :spec ]
@@ -25,29 +25,8 @@ EOS
25
25
  EOS
26
26
  end
27
27
 
28
- def add_appraisal_rake_task
29
- # TODO figure out why this isn't in Thor 0.15 +
30
- # TODO also, ask those guys why they haven't
31
- # updated their version.rb in two years. wtf.
32
- # comment_lines 'Rakefile', /RSpec::Core::RakeTask/
33
- flag = 'RSpec::Core::RakeTask.new'
34
- gsub_file 'Rakefile', /^(\s*)([^#|\n]*#{flag})/, '\1# \2'
35
-
36
- append_to_file 'Rakefile', <<-EOS
37
- RSpec::Core::RakeTask.new :spec => [ :'baldwin:env', :'baldwin:rails' ]
38
-
39
- desc "Run specs for all supported rails versions"
40
- task :all do
41
- exec 'rake appraisal spec'
42
- end
43
-
44
- desc "Default: Clean, install dependencies, and run specs"
45
- task :default => [ :'baldwin:clean', :'appraisal:install', :all ]
46
- EOS
47
- end
48
-
49
28
  def add_baldwin_setup_to_spec_helper
50
- prepend_to_file 'spec/spec_helper.rb', <<-EOS
29
+ create_file 'spec/spec_helper.rb', <<-EOS
51
30
  require 'baldwin/setup'
52
31
  # require test dependencies *after* baldwin/setup
53
32
  EOS
@@ -1,3 +1,3 @@
1
1
  module Baldwin
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baldwin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: 3.0.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: rspec-rails
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 2.10.0
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 2.10.0
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: appraisal
32
48
  requirement: !ruby/object:Gem::Requirement