breadboard 1.0.0.beta.1 → 1.0.0.beta.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,4 +1,3 @@
1
1
  *.sw?
2
2
  pkg/*
3
- *.gemspec
4
3
  *.gem
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v1.0.0.beta.2
2
+ Fixed a bug caused by Rails reloading. Note: never use class name constant as a hash key. Rails reloading will screw you.
3
+
1
4
  v1.0.0.beta.1
2
5
  Cleaning up comments; ready for public consumption
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.beta.1
1
+ 1.0.0.beta.2
@@ -0,0 +1,24 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = %q{breadboard}
3
+ s.version = File.read "VERSION"
4
+
5
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
+ s.authors = ["Matt Parker"]
7
+ s.date = %q{2011-04-26}
8
+ s.description = %q{Breadboard allows you to define what services your ActiveResource derived classes connect to based on your rails environment. }
9
+ s.email = %q{moonmaster9000@gmail.com}
10
+ s.extra_rdoc_files = [
11
+ "readme.md"
12
+ ]
13
+
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+
17
+ s.homepage = %q{http://github.com/moonmaster9000/breadboard}
18
+ s.require_paths = ["lib"]
19
+ s.rubygems_version = %q{1.5.0}
20
+ s.summary = %q{Simple, environment-based service provider configuration for ActiveResource}
21
+ s.add_dependency(%q<activeresource>, ["~> 3.0"])
22
+ s.add_development_dependency(%q<cucumber>, ["~> 0.10.0"])
23
+ s.add_development_dependency(%q<rspec>, ["~> 2.4.0"])
24
+ end
@@ -33,11 +33,12 @@ module Breadboard
33
33
  end
34
34
 
35
35
  def method_missing(method_name, *args, &block)
36
- config_or_access method_name.to_s.camelize.constantize, &block
36
+ config_or_access method_name, &block
37
37
  end
38
38
 
39
39
  private
40
40
  def config_or_access(model, &block)
41
+ model = model.to_s.camelize.to_sym
41
42
  config[model] ||= Environment.new
42
43
  if block
43
44
  config[model].instance_eval &block
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breadboard
3
3
  version: !ruby/object:Gem::Version
4
- hash: 62196353
4
+ hash: 62196359
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 0
10
10
  - beta
11
- - 1
12
- version: 1.0.0.beta.1
11
+ - 2
12
+ version: 1.0.0.beta.2
13
13
  platform: ruby
14
14
  authors:
15
15
  - Matt Parker
@@ -83,6 +83,7 @@ files:
83
83
  - Gemfile.lock
84
84
  - PUBLIC_DOMAIN
85
85
  - VERSION
86
+ - breadboard.gemspec
86
87
  - features/active_resource.feature
87
88
  - features/configure.feature
88
89
  - features/reset.feature