Permalink
Browse files

Update for bundler compatibility

  • Loading branch information...
1 parent d6a6411 commit a90f3f991daf8ccac996834fb5ab2e81c7e069a6 @jc00ke jc00ke committed Jan 9, 2012
Showing with 51 additions and 70 deletions.
  1. +17 −1 .gitignore
  2. +2 −5 Gemfile
  3. +0 −36 Gemfile.lock
  4. +1 −0 Rakefile
  5. +31 −28 mspec.gemspec
View
@@ -1,4 +1,4 @@
-pkg/*
+pkg
*.rbc
*.iml
*.iws
@@ -9,3 +9,19 @@ pkg/*
# ctags dir
/tags
+
+*.gem
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
View
@@ -1,7 +1,4 @@
-source "http://rubygems.org"
+source 'https://rubygems.org'
+# Specify your gem's dependencies in mspec.gemspec
gemspec
-
-gem "rake", "~> 0.9"
-gem "rspec", "~> 2.8"
-gem "ruby-debug", "~> 0.10"
View
@@ -1,36 +0,0 @@
-PATH
- remote: .
- specs:
- mspec (1.5.17)
-
-GEM
- remote: http://rubygems.org/
- specs:
- columnize (0.3.4)
- diff-lcs (1.1.3)
- linecache (0.46)
- rbx-require-relative (> 0.0.4)
- rake (0.9.2.2)
- rbx-require-relative (0.0.5)
- rspec (2.8.0)
- rspec-core (~> 2.8.0)
- rspec-expectations (~> 2.8.0)
- rspec-mocks (~> 2.8.0)
- rspec-core (2.8.0)
- rspec-expectations (2.8.0)
- diff-lcs (~> 1.1.2)
- rspec-mocks (2.8.0)
- ruby-debug (0.10.4)
- columnize (>= 0.1)
- ruby-debug-base (~> 0.10.4.0)
- ruby-debug-base (0.10.4)
- linecache (>= 0.3)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- mspec!
- rake (~> 0.9)
- rspec (~> 2.8)
- ruby-debug (~> 0.10)
View
@@ -1,3 +1,4 @@
+require 'bundler/gem_tasks'
require 'bundler/setup'
require 'rspec/core/rake_task'
View
@@ -1,35 +1,38 @@
+# -*- encoding: utf-8 -*-
+$:.unshift File.expand_path('../lib', __FILE__)
require 'mspec/version'
-spec = Gem::Specification.new do |s|
- s.name = %q{mspec}
- s.version = MSpec::VERSION.to_s
+Gem::Specification.new do |gem|
+ gem.name = "mspec"
+ gem.version = MSpec::VERSION.to_s
+ gem.authors = ["Brian Ford"]
+ gem.email = ["bford@engineyard.com"]
+ gem.homepage = "http://rubyspec.org"
- s.specification_version = 2 if s.respond_to? :specification_version=
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) unless File.extname(f) == ".bat" }.compact
+ gem.files = `git ls-files`.split("\n")
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ gem.require_paths = ["lib"]
+ gem.summary = <<-EOS
+ MSpec is a specialized framework that is syntax-compatible
+ with RSpec for basic things like describe, it blocks and
+ before, after actions.
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Brian Ford"]
- s.date = %q{2010-03-13}
- s.email = %q{bford@engineyard.com}
- s.has_rdoc = true
- s.extra_rdoc_files = %w[ README LICENSE ]
- s.executables = ["mkspec", "mspec", "mspec-ci", "mspec-run", "mspec-tag"]
- s.files = Dir[ '{bin,lib,spec}/**/*.{yaml,txt,rb}', 'Rakefile', *s.extra_rdoc_files ]
- s.homepage = %q{http://rubyspec.org}
- s.rubyforge_project = 'http://rubyforge.org/projects/mspec'
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.5}
- s.summary = <<EOS
-MSpec is a specialized framework that is syntax-compatible
-with RSpec for basic things like describe, it blocks and
-before, after actions.
+ MSpec contains additional features that assist in writing
+ the RubySpecs used by multiple Ruby implementations. Also,
+ MSpec attempts to use the simplest Ruby language features
+ so that beginning Ruby implementations can run it.
+ EOS
+ gem.has_rdoc = true
+ gem.extra_rdoc_files = %w[ README LICENSE ]
+ gem.rubygems_version = %q{1.3.5}
+ gem.rubyforge_project = 'http://rubyforge.org/projects/mspec'
-MSpec contains additional features that assist in writing
-the RubySpecs used by multiple Ruby implementations. Also,
-MSpec attempts to use the simplest Ruby language features
-so that beginning Ruby implementations can run it.
-EOS
+ gem.rdoc_options << '--title' << 'MSpec Gem' <<
+ '--main' << 'README' <<
+ '--line-numbers'
- s.rdoc_options << '--title' << 'MSpec Gem' <<
- '--main' << 'README' <<
- '--line-numbers'
+ gem.add_development_dependency "rake", "~> 0.9"
+ gem.add_development_dependency "rspec", "~> 2.8"
+ gem.add_development_dependency "ruby-debug", "~> 0.10"
end

0 comments on commit a90f3f9

Please sign in to comment.