Navigation Menu

Skip to content

Commit

Permalink
got rid of gemstub and setup travis
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Nov 12, 2012
1 parent d652363 commit 6c641cd
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 89 deletions.
1 change: 0 additions & 1 deletion .bundle/config

This file was deleted.

1 change: 1 addition & 0 deletions .rvmrc
@@ -1 +1,2 @@
# rvm use ruby-2.0.0-preview1
rvm use 1.9.3
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -4,3 +4,4 @@ rvm:
- 1.9.3
- jruby-19mode
- rbx-19mode
- ruby-head
22 changes: 0 additions & 22 deletions .treasure_map.rb

This file was deleted.

3 changes: 3 additions & 0 deletions Gemfile
Expand Up @@ -2,3 +2,6 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in bar.gemspec
gemspec

gem 'rake'
gem 'rspec'
19 changes: 1 addition & 18 deletions Gemfile.lock
@@ -1,29 +1,13 @@
PATH
remote: .
specs:
configatron (2.9.1)
configatron (2.9.2)
yamler (>= 0.1.0)

GEM
remote: https://rubygems.org/
specs:
activesupport (3.2.2)
i18n (~> 0.6)
multi_json (~> 1.0)
diff-lcs (1.1.3)
erubis (2.7.0)
gemstub (2.0.5)
activesupport (>= 3.0.0)
genosaurus
mark_facets
rspec (>= 2.0.0)
genosaurus (1.2.4)
erubis
hashie (1.2.0)
i18n (0.6.0)
mark_facets (0.2.0)
hashie
multi_json (1.2.0)
rake (0.9.2.2)
rspec (2.8.0)
rspec-core (~> 2.8.0)
Expand All @@ -40,6 +24,5 @@ PLATFORMS

DEPENDENCIES
configatron!
gemstub
rake
rspec
29 changes: 5 additions & 24 deletions Rakefile
@@ -1,26 +1,7 @@
require 'rubygems'
require 'bundler'
Bundler::GemHelper.install_tasks

# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __FILE__)

require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])

require 'gemstub'

require File.expand_path('../lib/configatron/version', __FILE__)

Gemstub.test_framework = :rspec

Gemstub.gem_spec do |s|
s.version = Configatron::VERSION
s.summary = "A powerful Ruby configuration system."
s.rubyforge_project = "magrathea"
s.add_dependency('yamler', '>=0.1.0')
s.email = 'mark@markbates.com'
s.homepage = 'http://www.metabates.com'
s.files = FileList['lib/**/*.*', 'README.textile', 'LICENSE', 'bin/**/*.*']
end

Gemstub.rdoc do |rd|
rd.title = "Configatron"
desc "Run tests"
task :default do
system "bundle exec rspec"
end
70 changes: 47 additions & 23 deletions configatron.gemspec
@@ -1,25 +1,49 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/configatron/version', __FILE__)

Gem::Specification.new do |s|
s.name = "configatron"
s.version = Configatron::VERSION

s.authors = ["markbates"]
s.description = "configatron was developed by: markbates"
s.email = "mark@markbates.com"
s.extra_rdoc_files = ["LICENSE"]

ignored_files = File.read('.gitignore').split("\n").compact.reject(&:empty?) + ["Rakefile", "Gemfile", "configatron.gemspec"]
test_files = Dir['spec/**/*'].reject {|f| File.directory?(f)}
library_files = Dir['**/*'].reject{|f| File.directory?(f)}
s.files = library_files - test_files - ignored_files
s.homepage = "http://www.metabates.com"
s.require_paths = ["lib"]
s.summary = "A powerful Ruby configuration system."

s.add_runtime_dependency "yamler", ">= 0.1.0"
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec'
s.add_development_dependency 'gemstub'
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'configatron/version'

Gem::Specification.new do |gem|
gem.name = "configatron"
gem.version = Configatron::VERSION
gem.authors = ["Mark Bates"]
gem.email = ["mark@markbates.com"]
gem.description = %q{A powerful Ruby configuration system.}
gem.summary = %q{A powerful Ruby configuration system.}
gem.homepage = "http://www.metabates.com"

gem.files = `git ls-files`.split($/)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]

gem.add_dependency("yamler", ">= 0.1.0")
end



# # -*- encoding: utf-8 -*-
# require File.expand_path('../lib/configatron/version', __FILE__)

# Gem::Specification.new do |s|
# s.name = "configatron"
# s.version = Configatron::VERSION

# s.authors = ["markbates"]
# s.description = "configatron was developed by: markbates"
# s.email = "mark@markbates.com"
# s.extra_rdoc_files = ["LICENSE"]

# ignored_files = File.read('.gitignore').split("\n").compact.reject(&:empty?) + ["Rakefile", "Gemfile", "configatron.gemspec"]
# test_files = Dir['spec/**/*'].reject {|f| File.directory?(f)}
# library_files = Dir['**/*'].reject{|f| File.directory?(f)}
# s.files = library_files - test_files - ignored_files
# s.homepage = "http://www.metabates.com"
# s.require_paths = ["lib"]
# s.summary = "A powerful Ruby configuration system."

# s.add_runtime_dependency "yamler", ">= 0.1.0"
# s.add_development_dependency 'rake'
# s.add_development_dependency 'rspec'
# s.add_development_dependency 'gemstub'
# end
2 changes: 1 addition & 1 deletion lib/configatron/version.rb
@@ -1,3 +1,3 @@
class Configatron
VERSION = "2.9.1"
VERSION = "2.9.2"
end

0 comments on commit 6c641cd

Please sign in to comment.