Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move version into its own file.

  • Loading branch information...
commit 617784b5bb1cc453248290f567beb1d62f4ac1d8 1 parent 8797dd8
@gabebw gabebw authored
View
1  Gemfile
@@ -1,2 +1,3 @@
source :rubygems
+
gemspec
View
4 Rakefile
@@ -1,6 +1,5 @@
-require 'rubygems'
require 'bundler/setup'
-require "bundler/gem_tasks"
+require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
@@ -15,4 +14,3 @@ end
desc "Default: run the rspec examples and cucumber scenarios"
task :default => [:spec, :cucumber]
-
View
28 appraisal.gemspec
@@ -1,24 +1,26 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "appraisal/version"
+
Gem::Specification.new do |s|
s.name = %q{appraisal}
- s.version = '0.4.0'
+ s.version = Appraisal::VERSION.dup
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Joe Ferris"]
+ s.email = %q{jferris@thoughtbot.com}
+ s.homepage = "http://github.com/thoughtbot/appraisal"
s.summary = %q{Find out what your Ruby gems are worth}
s.description = %q{Appraisal integrates with bundler and rake to test your library against different versions of dependencies in repeatable scenarios called "appraisals."}
- s.files = Dir['[A-Z]*', 'lib/**/*.rb', 'features/**/*']
- s.require_path = 'lib'
- s.test_files = Dir['features/**/*']
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
- s.authors = ["Joe Ferris"]
- s.email = %q{jferris@thoughtbot.com}
- s.homepage = "http://github.com/thoughtbot/appraisal"
+ s.add_runtime_dependency('rake')
+ s.add_runtime_dependency('bundler')
s.add_development_dependency('cucumber', '~> 1.0')
s.add_development_dependency('rspec', '~> 2.6')
s.add_development_dependency('aruba', '~> 0.4.2')
-
- s.add_runtime_dependency('rake')
- s.add_runtime_dependency('bundler')
-
- s.platform = Gem::Platform::RUBY
- s.rubygems_version = %q{1.2.0}
end
View
1  lib/appraisal.rb
@@ -1,3 +1,4 @@
+require 'appraisal/version'
require 'appraisal/task'
Appraisal::Task.new
View
3  lib/appraisal/version.rb
@@ -0,0 +1,3 @@
+module Appraisal
+ VERSION = '0.4.0'.freeze
+end
Please sign in to comment.
Something went wrong with that request. Please try again.