s3crets 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module S3crets
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/s3crets_merge.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  class Configuratron
2
2
 
3
- attr_reader :keys, :overwrite, :files_updated
3
+ attr_reader :overwrite, :files_updated
4
4
 
5
5
  def initialize(opts={})
6
6
  if opts[:secrets_file]
@@ -22,7 +22,6 @@ class Configuratron
22
22
  end
23
23
 
24
24
  def replace_config(dir)
25
- counter = 0
26
25
  search_folder = File.expand_path(dir)
27
26
  files = Dir.glob(search_folder + "/*.json")
28
27
 
@@ -35,7 +34,7 @@ class Configuratron
35
34
  next if json_file =~ /.new./
36
35
 
37
36
  begin
38
- node_data = JSON.parse(File.read(json_file)+".")
37
+ node_data = JSON.parse(File.read(json_file))
39
38
  rescue JSON::ParserError => e
40
39
  raise RuntimeError, "JSON Parse error -> #{json_file}"
41
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3crets
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:
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: 929723293801486723
96
+ hash: -385047288439108485
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: 929723293801486723
105
+ hash: -385047288439108485
106
106
  requirements: []
107
107
  rubyforge_project:
108
108
  rubygems_version: 1.8.23