rsyc 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 288017edc2b1dfedb6ef4c081f722f25ba3555e5
4
- data.tar.gz: 27870a746683d9371f35fa80a840bd81eccd4fc3
3
+ metadata.gz: 1af2ef9a9891fe5ed1142e4dfa678907d47b88f6
4
+ data.tar.gz: 9b7735ac4f5815d68f8f45c4ca6cf0e7b564f168
5
5
  SHA512:
6
- metadata.gz: d3d62916b805c874c2363eb7c6afb13aee6918425fb6387821811e688931f834831aa7c554167c785ea0df74754d87b758b048b2db807161a5868fcde0ffc36f
7
- data.tar.gz: 6c4241931571015dd9d8bd26001e8fd82b96cfca614ff7b7aa34cd1547afdada57131fa01e49c09458720ccf3d950b096b18308ca6ae4f20442e58e51e09b61d
6
+ metadata.gz: 89c3c0c0162c073fc2846fd80351f479f6e53d59f0210744ac896ea3111bef89f938a6d04812cd6b12ab7f4bb7ab2061251469c2926c3e31ef1d04480f123f44
7
+ data.tar.gz: 3eb288aefac90ff5e0b90f242ccae7ae7bac8d05d6d0f2a05dee21bc5449291548bcf2285cc81df79a663573ca2263c82137d62fa307b9315b225b663802efab
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  doc/
2
2
  .yardoc/
3
+ pkg/
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ script:
3
+ - bundle exec rake spec:coveralls
4
+ rvm:
5
+ - 2.1.1
6
+ - 2.0.0
7
+ - 1.9.3
8
+ - jruby-19mode
9
+ - jruby-head
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsyc (0.1.0)
4
+ rsyc (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/rsyc.rb CHANGED
@@ -32,7 +32,7 @@ module Rsyc
32
32
  key?(name.to_s) ? fetch(name) : super
33
33
  end
34
34
 
35
- def respond_to_missing?(*)
35
+ def respond_to_missing?(name, *)
36
36
  key?(name.to_s) || super
37
37
  end
38
38
 
data/lib/rsyc/railtie.rb CHANGED
@@ -3,8 +3,8 @@ require "rsyc"
3
3
 
4
4
  module Rsyc
5
5
  class Railtie < Rails::Railtie
6
- initializer "rsyc.init" do
7
- Rails.application.config.app = Rsyc.new Rails.root.join('config', 'app.yml'), Rails.env
6
+ config.before_configuration do
7
+ config.app = Rsyc.new Rails.root.join('config', 'app.yml'), Rails.env
8
8
  end
9
9
  end
10
10
  end
data/rsyc.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.name = File.basename(__FILE__, '.gemspec')
8
8
  s.summary = "Rsyc"
9
9
  s.description = "A simple YAML configuration builder and accessor"
10
- s.version = "0.1.0"
10
+ s.version = "0.1.2"
11
11
 
12
12
  s.authors = ["Black Square Media"]
13
13
  s.email = "info@blacksquaremedia.com"
@@ -30,6 +30,8 @@ describe Rsyc::Config do
30
30
  subject.simple.should == "value"
31
31
  subject[:simple].should == "value"
32
32
  subject["simple"].should == "value"
33
+ subject.respond_to?(:simple).should be_true
34
+ subject.respond_to?("simple").should be_true
33
35
 
34
36
  -> { subject.missing }.should raise_error(NoMethodError)
35
37
  subject[:missing].should be_nil
@@ -43,6 +45,8 @@ describe Rsyc::Config do
43
45
  -> { subject.nested.missing }.should raise_error(NoMethodError)
44
46
  subject.nested[:missing].should be_nil
45
47
  subject.nested["missing"].should be_nil
48
+ subject.respond_to?(:missing).should be_false
49
+ subject.respond_to?("missing").should be_false
46
50
  end
47
51
 
48
52
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsyc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Black Square Media
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-25 00:00:00.000000000 Z
11
+ date: 2014-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -87,6 +87,7 @@ extensions: []
87
87
  extra_rdoc_files: []
88
88
  files:
89
89
  - ".gitignore"
90
+ - ".travis.yml"
90
91
  - Gemfile
91
92
  - Gemfile.lock
92
93
  - README.md