yaml_vault 1.0.0 → 1.0.1

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: 43855ec62bda6f5823652b290cf5d39c9922e50d
4
- data.tar.gz: beb4cc67173da42678bbd5769163d5833feb78f9
3
+ metadata.gz: 4113736dbf8ce7c2b0c505b95fbbb2ba554a9376
4
+ data.tar.gz: 84b726f8245e7e74210720aa27ed864acfb81ee1
5
5
  SHA512:
6
- metadata.gz: 057a332c09a33cab04c26c8ab41d024d358c0ba9722fd888806ebfc3e552b792773d67752f90b1dfa4948d5bddb205df316bb9ab11b7deb8b36925771eed6ee9
7
- data.tar.gz: b300224b641595bbda4fb2148046f6ca9460a09384a201bb80b81c6bb1e2cda342b17106c5f050030ba4650e9d5371c926f3ed8215fa8e2ccc30507472fa037d
6
+ metadata.gz: c27f4477a86e9d01c4f73aff041656e1b0c344f97add07b5e4643a7914c921fd0d3d788ae11f8b670a285f972b8064d3ac8231e862f685f8268982a09bfd604d
7
+ data.tar.gz: 410fe9f926db4ab5f15537ce73d670b87aeaeaba9f5013e8a030dead403e3eb746f228e2fafbbcc9431a6d1c15d84a2368cd0bd55c13cc6b4360dd7eebf7635c
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.3.0
4
- before_install: gem install bundler -v 1.11.2
3
+ - 2.3.4
4
+ - 2.4.2
5
+ before_install: gem install bundler
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # YamlVault
2
2
  [![Gem Version](https://badge.fury.io/rb/yaml_vault.svg)](https://badge.fury.io/rb/yaml_vault)
3
+ [![Build Status](https://travis-ci.org/joker1007/yaml_vault.svg?branch=master)](https://travis-ci.org/joker1007/yaml_vault)
3
4
 
4
5
  Yaml file encryption/decryption helper.
5
6
 
@@ -20,6 +20,8 @@ module YamlVault
20
20
  path << Regexp.new(s[1])
21
21
  elsif token = s.scan(/\[(\d+)\]/)
22
22
  path << s[1].to_i
23
+ elsif token = s.scan(/:([^\.]+)/)
24
+ path << s[1].to_sym
23
25
  elsif token = s.scan(/\./)
24
26
  # noop
25
27
  elsif token = s.scan(/[^\.]*/)
@@ -1,3 +1,3 @@
1
1
  module YamlVault
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -106,6 +106,8 @@ module YamlVault
106
106
  else
107
107
  if path.is_a?(Regexp)
108
108
  path.match(@path_stack[i])
109
+ elsif path.is_a?(Symbol)
110
+ path.inspect == @path_stack[i]
109
111
  else
110
112
  path == @path_stack[i]
111
113
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-29 00:00:00.000000000 Z
11
+ date: 2017-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport