persey 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a197cddff1bf86a95882b1e4b660567231d373f1
4
- data.tar.gz: 59991233039e755972297e0f1a6236a07423c158
3
+ metadata.gz: 6b7209ea08456dff0fb3f481b0900c9801024a19
4
+ data.tar.gz: b9671ecffb2a4921a6586dd1ec3323ada3f36015
5
5
  SHA512:
6
- metadata.gz: 50ad4f17a8e692de2019aa7cd409892f7ee5d434643605dab9efca89c08b61f6ae76be84548143a163c0c0e5f18a247b5c228af7becae3ca6bd934b7ccffadb6
7
- data.tar.gz: 31384243cb7765b28400fe5e96952143fd2d3d1a372e46a9ea268d4bd7eb92ae8ef79a8930a52882c870c1b92552fdb3350ebbd4b00abe97148a56723844cd82
6
+ metadata.gz: c7cad9a5e90e3d527887c46538baa19f1a5909be44c67d8945dd43cc5cf486c62d5b425c7d8f7a63eb524deacfcc05af67ae08596a3bc7bd4742b367c39ae113
7
+ data.tar.gz: 81d4d3fc045d54e7707b07d4da5195003799e2d8f357239d0773a8d5b2f2fa178b4e8cd755cee74805802b2cc22398a14a2915199698ec1dca8e6c3f6c05191a
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1.0
5
+ - jruby
6
+ script: "bundle exec rake test"
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
- # Persey
1
+ # Persey [![Build Status](https://travis-ci.org/zzet/persey.png?branch=master)](https://travis-ci.org/zzet/persey) [![Gem Version](https://badge.fury.io/rb/persey.png)](http://badge.fury.io/rb/persey) [![Dependency Status](https://gemnasium.com/zzet/persey.png)](https://gemnasium.com/zzet/persey) [![Code Climate](https://codeclimate.com/github/zzet/persey.png)](https://codeclimate.com/github/zzet/persey)
2
+
2
3
 
3
4
  ## Summary
4
5
 
5
- Perseus help you easily manage the configuration, depending on the environment.
6
+ Persey help you easily manage the configuration, depending on the environment.
6
7
  The main objective is to provide opportunities to reuse the
7
8
  configuration provided by the project, as the default configuration.
8
9
 
data/lib/persey.rb CHANGED
@@ -7,9 +7,10 @@ require "persey/adapters/yaml"
7
7
  module Persey
8
8
  class << self
9
9
  def init(environment, &block)
10
+ e = environment.is_a?(Symbol) ? environment : environment.to_sym
10
11
  configs = Inspector.analize(&block)
11
- defaults = Loader.load(configs, environment)
12
- @config = Builder.build(environment, defaults, &block)
12
+ defaults = Loader.load(configs, e)
13
+ @config = Builder.build(e, defaults, &block)
13
14
  end
14
15
 
15
16
  def config
@@ -8,7 +8,7 @@ module Persey
8
8
  end
9
9
 
10
10
  def initialize(environment, defaults, block)
11
- @current_env = environment.to_sym
11
+ @current_env = environment
12
12
  @config = defaults
13
13
  @envs = {}
14
14
  instance_eval(&block)
@@ -1,3 +1,3 @@
1
1
  module Persey
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: persey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Kumanyaev
@@ -61,6 +61,7 @@ extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
63
  - .gitignore
64
+ - .travis.yml
64
65
  - Gemfile
65
66
  - LICENSE.txt
66
67
  - README.md