Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

got rid of gemstub and setup travis

  • Loading branch information...
commit 6c641cd48ceb1333db4cb7b1ed6c965f2fede4d5 1 parent d652363
Mark Bates authored November 12, 2012
1  .bundle/config
... ...
@@ -1 +0,0 @@
1  
---- {}
1  .rvmrc
... ...
@@ -1 +1,2 @@
  1
+# rvm use ruby-2.0.0-preview1
1 2
 rvm use 1.9.3
1  .travis.yml
@@ -4,3 +4,4 @@ rvm:
4 4
   - 1.9.3
5 5
   - jruby-19mode
6 6
   - rbx-19mode
  7
+  - ruby-head
22  .treasure_map.rb
... ...
@@ -1,22 +0,0 @@
1  
-map_for(:configatron) do |nachos|
2  
-  # nachos.watch "dir1", "dir2"
3  
-  
4  
-  test_type = "spec" # or even just "test_type = 'test' or 'example' or 'spec' ??
5  
-  
6  
-	nachos.keep_a_watchful_eye_for "app", "spec"
7  
- 
8  
-  nachos.prepare_spell_for %r%^lib/(.*)\.rb% do |match|
9  
-    ["#{test_type}/#{match[1]}_#{test_type}.rb"]
10  
-  end
11  
-  
12  
-  nachos.prepare_spell_for %r%^#{test_type}/(.*)_#{test_type}\.rb% do |match|
13  
-  p match[1]
14  
-  p match[0]
15  
-    ["#{test_type}/#{match[1]}_#{test_type}.rb"]
16  
-  end
17  
-  
18  
-  nachos.prepare_spell_for %r%^#{test_type}/#{test_type}_helper\.rb% do |spell_component|
19  
-    Dir["#{test_type}/**/*_#{test_type}.rb"]
20  
-  end
21  
-  
22  
-end
3  Gemfile
@@ -2,3 +2,6 @@ source 'https://rubygems.org'
2 2
 
3 3
 # Specify your gem's dependencies in bar.gemspec
4 4
 gemspec
  5
+
  6
+gem 'rake'
  7
+gem 'rspec'
19  Gemfile.lock
... ...
@@ -1,29 +1,13 @@
1 1
 PATH
2 2
   remote: .
3 3
   specs:
4  
-    configatron (2.9.1)
  4
+    configatron (2.9.2)
5 5
       yamler (>= 0.1.0)
6 6
 
7 7
 GEM
8 8
   remote: https://rubygems.org/
9 9
   specs:
10  
-    activesupport (3.2.2)
11  
-      i18n (~> 0.6)
12  
-      multi_json (~> 1.0)
13 10
     diff-lcs (1.1.3)
14  
-    erubis (2.7.0)
15  
-    gemstub (2.0.5)
16  
-      activesupport (>= 3.0.0)
17  
-      genosaurus
18  
-      mark_facets
19  
-      rspec (>= 2.0.0)
20  
-    genosaurus (1.2.4)
21  
-      erubis
22  
-    hashie (1.2.0)
23  
-    i18n (0.6.0)
24  
-    mark_facets (0.2.0)
25  
-      hashie
26  
-    multi_json (1.2.0)
27 11
     rake (0.9.2.2)
28 12
     rspec (2.8.0)
29 13
       rspec-core (~> 2.8.0)
@@ -40,6 +24,5 @@ PLATFORMS
40 24
 
41 25
 DEPENDENCIES
42 26
   configatron!
43  
-  gemstub
44 27
   rake
45 28
   rspec
29  Rakefile
... ...
@@ -1,26 +1,7 @@
1  
-require 'rubygems'
  1
+require 'bundler'  
  2
+Bundler::GemHelper.install_tasks
2 3
 
3  
-# Set up gems listed in the Gemfile.
4  
-ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __FILE__)
5  
-
6  
-require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
7  
-
8  
-require 'gemstub'
9  
-
10  
-require File.expand_path('../lib/configatron/version', __FILE__)
11  
-
12  
-Gemstub.test_framework = :rspec
13  
-
14  
-Gemstub.gem_spec do |s|
15  
-  s.version = Configatron::VERSION
16  
-  s.summary = "A powerful Ruby configuration system."
17  
-  s.rubyforge_project = "magrathea"
18  
-  s.add_dependency('yamler', '>=0.1.0')
19  
-  s.email = 'mark@markbates.com'
20  
-  s.homepage = 'http://www.metabates.com'
21  
-  s.files = FileList['lib/**/*.*', 'README.textile', 'LICENSE', 'bin/**/*.*']
22  
-end
23  
-
24  
-Gemstub.rdoc do |rd|
25  
-  rd.title = "Configatron"
  4
+desc "Run tests"
  5
+task :default do
  6
+  system "bundle exec rspec"
26 7
 end
70  configatron.gemspec
... ...
@@ -1,25 +1,49 @@
1 1
 # -*- encoding: utf-8 -*-
2  
-require File.expand_path('../lib/configatron/version', __FILE__)
3  
-
4  
-Gem::Specification.new do |s|
5  
-  s.name = "configatron"
6  
-  s.version = Configatron::VERSION
7  
-
8  
-  s.authors = ["markbates"]
9  
-  s.description = "configatron was developed by: markbates"
10  
-  s.email = "mark@markbates.com"
11  
-  s.extra_rdoc_files = ["LICENSE"]
12  
-
13  
-  ignored_files = File.read('.gitignore').split("\n").compact.reject(&:empty?) + ["Rakefile", "Gemfile", "configatron.gemspec"]
14  
-  test_files = Dir['spec/**/*'].reject {|f| File.directory?(f)}
15  
-  library_files = Dir['**/*'].reject{|f| File.directory?(f)}
16  
-  s.files = library_files - test_files - ignored_files
17  
-  s.homepage = "http://www.metabates.com"
18  
-  s.require_paths = ["lib"]
19  
-  s.summary = "A powerful Ruby configuration system."
20  
-
21  
-  s.add_runtime_dependency "yamler", ">= 0.1.0"
22  
-  s.add_development_dependency 'rake'
23  
-  s.add_development_dependency 'rspec'
24  
-  s.add_development_dependency 'gemstub'
  2
+lib = File.expand_path('../lib', __FILE__)
  3
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
  4
+require 'configatron/version'
  5
+
  6
+Gem::Specification.new do |gem|
  7
+  gem.name          = "configatron"
  8
+  gem.version       = Configatron::VERSION
  9
+  gem.authors       = ["Mark Bates"]
  10
+  gem.email         = ["mark@markbates.com"]
  11
+  gem.description   = %q{A powerful Ruby configuration system.}
  12
+  gem.summary       = %q{A powerful Ruby configuration system.}
  13
+  gem.homepage      = "http://www.metabates.com"
  14
+
  15
+  gem.files         = `git ls-files`.split($/)
  16
+  gem.executables   = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
  17
+  gem.test_files    = gem.files.grep(%r{^(test|spec|features)/})
  18
+  gem.require_paths = ["lib"]
  19
+
  20
+  gem.add_dependency("yamler", ">= 0.1.0")
25 21
 end
  22
+
  23
+
  24
+
  25
+# # -*- encoding: utf-8 -*-
  26
+# require File.expand_path('../lib/configatron/version', __FILE__)
  27
+
  28
+# Gem::Specification.new do |s|
  29
+#   s.name = "configatron"
  30
+#   s.version = Configatron::VERSION
  31
+
  32
+#   s.authors = ["markbates"]
  33
+#   s.description = "configatron was developed by: markbates"
  34
+#   s.email = "mark@markbates.com"
  35
+#   s.extra_rdoc_files = ["LICENSE"]
  36
+
  37
+#   ignored_files = File.read('.gitignore').split("\n").compact.reject(&:empty?) + ["Rakefile", "Gemfile", "configatron.gemspec"]
  38
+#   test_files = Dir['spec/**/*'].reject {|f| File.directory?(f)}
  39
+#   library_files = Dir['**/*'].reject{|f| File.directory?(f)}
  40
+#   s.files = library_files - test_files - ignored_files
  41
+#   s.homepage = "http://www.metabates.com"
  42
+#   s.require_paths = ["lib"]
  43
+#   s.summary = "A powerful Ruby configuration system."
  44
+
  45
+#   s.add_runtime_dependency "yamler", ">= 0.1.0"
  46
+#   s.add_development_dependency 'rake'
  47
+#   s.add_development_dependency 'rspec'
  48
+#   s.add_development_dependency 'gemstub'
  49
+# end
2  lib/configatron/version.rb
... ...
@@ -1,3 +1,3 @@
1 1
 class Configatron
2  
-  VERSION = "2.9.1"
  2
+  VERSION = "2.9.2"
3 3
 end

0 notes on commit 6c641cd

Please sign in to comment.
Something went wrong with that request. Please try again.