rock_config 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 1.9.2
5
+ - jruby-18mode
6
+ - jruby-19mode
7
+ - rbx-18mode
8
+ - rbx-19mode
9
+ - 1.8.7
10
+ - ree
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # RockConfig
1
+ # RockConfig [![Build Status](https://secure.travis-ci.org/mekishizufu/rock_config.png)](http://travis-ci.org/mekishizufu/rock_config) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/mekishizufu/rock_config)
2
2
 
3
3
  RockConfig is a simple convention based library for reading and accessing config files.
4
4
 
@@ -1,3 +1,3 @@
1
1
  module RockConfig
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -26,7 +26,7 @@ module RockConfig
26
26
 
27
27
  def load_yaml_from(path)
28
28
  YAML.load_file(path)
29
- rescue Psych::SyntaxError => e
29
+ rescue Exception => e
30
30
  raise ConfigLoadError, e.message
31
31
  end
32
32
  end
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ["mekishizufu@gmail.com"]
7
7
  gem.summary = %q{RockConfig allows you to use custom config files easily.}
8
8
  gem.description = %q{RockConfig allows you to use custom config files easily.}
9
- gem.homepage = ""
9
+ gem.homepage = "https://github.com/mekishizufu/rock_config"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
12
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -15,6 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = RockConfig::VERSION
17
17
 
18
+ gem.add_development_dependency "rake", "~> 0.9.2"
18
19
  gem.add_development_dependency "rspec", "~> 2.11.0"
19
20
  gem.add_development_dependency "pry", "~> 0.9.10"
20
21
  gem.add_development_dependency "pry-nav", "~> 0.2.2"
@@ -3,7 +3,7 @@ require "spec_helper"
3
3
  module RockConfig
4
4
  describe Config do
5
5
  it "accepts a hash" do
6
- hash = {foo: "bar"}
6
+ hash = {:foo => "bar"}
7
7
 
8
8
  config = Config.new(hash)
9
9
  config.raw.should eq(hash)
@@ -1,8 +1 @@
1
- development
2
- magic_number: 213
3
-
4
- test:
5
- magic_number: 214
6
-
7
- production:
8
- magic_number: 215
1
+ !@#!2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rock_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,6 +11,22 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 0.9.2
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 0.9.2
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: rspec
16
32
  requirement: !ruby/object:Gem::Requirement
@@ -68,6 +84,7 @@ extra_rdoc_files: []
68
84
  files:
69
85
  - .gitignore
70
86
  - .rspec
87
+ - .travis.yml
71
88
  - Gemfile
72
89
  - LICENSE
73
90
  - README.md
@@ -92,7 +109,7 @@ files:
92
109
  - spec/scanner_spec.rb
93
110
  - spec/spec_helper.rb
94
111
  - spec/yaml_loader_spec.rb
95
- homepage: ''
112
+ homepage: https://github.com/mekishizufu/rock_config
96
113
  licenses: []
97
114
  post_install_message:
98
115
  rdoc_options: []