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 +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +9 -0
- data/Gemfile.lock +1 -1
- data/lib/rsyc.rb +1 -1
- data/lib/rsyc/railtie.rb +2 -2
- data/rsyc.gemspec +1 -1
- data/spec/lib/rsyc_spec.rb +4 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1af2ef9a9891fe5ed1142e4dfa678907d47b88f6
|
4
|
+
data.tar.gz: 9b7735ac4f5815d68f8f45c4ca6cf0e7b564f168
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89c3c0c0162c073fc2846fd80351f479f6e53d59f0210744ac896ea3111bef89f938a6d04812cd6b12ab7f4bb7ab2061251469c2926c3e31ef1d04480f123f44
|
7
|
+
data.tar.gz: 3eb288aefac90ff5e0b90f242ccae7ae7bac8d05d6d0f2a05dee21bc5449291548bcf2285cc81df79a663573ca2263c82137d62fa307b9315b225b663802efab
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/Gemfile.lock
CHANGED
data/lib/rsyc.rb
CHANGED
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
|
-
|
7
|
-
|
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.
|
10
|
+
s.version = "0.1.2"
|
11
11
|
|
12
12
|
s.authors = ["Black Square Media"]
|
13
13
|
s.email = "info@blacksquaremedia.com"
|
data/spec/lib/rsyc_spec.rb
CHANGED
@@ -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.
|
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-
|
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
|