Permalink
Browse files

got rid of gemstub and setup travis

  • Loading branch information...
1 parent d652363 commit 6c641cd48ceb1333db4cb7b1ed6c965f2fede4d5 @markbates committed Nov 12, 2012
Showing with 59 additions and 89 deletions.
  1. +0 −1 .bundle/config
  2. +1 −0 .rvmrc
  3. +1 −0 .travis.yml
  4. +0 −22 .treasure_map.rb
  5. +3 −0 Gemfile
  6. +1 −18 Gemfile.lock
  7. +5 −24 Rakefile
  8. +47 −23 configatron.gemspec
  9. +1 −1 lib/configatron/version.rb
View
@@ -1 +0,0 @@
---- {}
View
@@ -1 +1,2 @@
+# rvm use ruby-2.0.0-preview1
rvm use 1.9.3
View
@@ -4,3 +4,4 @@ rvm:
- 1.9.3
- jruby-19mode
- rbx-19mode
+ - ruby-head
View
@@ -1,22 +0,0 @@
-map_for(:configatron) do |nachos|
- # nachos.watch "dir1", "dir2"
-
- test_type = "spec" # or even just "test_type = 'test' or 'example' or 'spec' ??
-
- nachos.keep_a_watchful_eye_for "app", "spec"
-
- nachos.prepare_spell_for %r%^lib/(.*)\.rb% do |match|
- ["#{test_type}/#{match[1]}_#{test_type}.rb"]
- end
-
- nachos.prepare_spell_for %r%^#{test_type}/(.*)_#{test_type}\.rb% do |match|
- p match[1]
- p match[0]
- ["#{test_type}/#{match[1]}_#{test_type}.rb"]
- end
-
- nachos.prepare_spell_for %r%^#{test_type}/#{test_type}_helper\.rb% do |spell_component|
- Dir["#{test_type}/**/*_#{test_type}.rb"]
- end
-
-end
View
@@ -2,3 +2,6 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in bar.gemspec
gemspec
+
+gem 'rake'
+gem 'rspec'
View
@@ -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)
@@ -40,6 +24,5 @@ PLATFORMS
DEPENDENCIES
configatron!
- gemstub
rake
rspec
View
@@ -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
View
@@ -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
@@ -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.