encrypt_data_bag 0.0.1 → 1.0.0

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: 581fd50260f2e855664e1b3419c608cfd4dec7e4
4
- data.tar.gz: 0cf25149d77aa69c70b4f797b4b3bc9c5bb448fb
3
+ metadata.gz: 413b98798a8cb500fbbfa811231d594e91bc3eb5
4
+ data.tar.gz: d0c6ea4d7f7a59cdec437e70a77c74c30d3dd071
5
5
  SHA512:
6
- metadata.gz: e9354b859e9c79e312d75211eaa76dbb01a113f54d59d3a6b866ee8f64de92444ce4355e5834271c44b3e1e9316b042f27d3f7b3de53e66a82dd4400a35380b3
7
- data.tar.gz: a478fe74ffd77d0972d3d80f4cc9dbfdd3fed0d3118017a31c4ecbc648c463a0bd152633565bc973fcd76039144f12db1e3862a896a9d57f225a69598028b627
6
+ metadata.gz: c327d46a71e83f0eedda9b6cc90f2c3d738f013a2330003e5c3f93840bdabfd1dcf933503f9e70c20c0b664ac7ac6d7917e988c970dbeb31bb3e1a78eec441ef
7
+ data.tar.gz: fc5f24df1ac67f5cffcc70aa977dbe4a67f2cc18099c387c449d3ca17325ffcfe98e3ba3fbba8409fc79922e706d42a76d899d0eeaba0ff36e0fc9749ed6ef92
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.2
5
+ - 1.9.3
6
+ - 2.0.0
7
+ - 2.1.0
8
+ before_install:
9
+ - gem update --system 2.1.11
10
+ - gem --version
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://secure.travis-ci.org/portertech/encrypt_data_bag.png)](https://travis-ci.org/portertech/encrypt_data_bag)
2
+
1
3
  ## Installation
2
4
 
3
5
  ```
@@ -12,7 +14,7 @@ $ encrypt_data_bag -s ~/.chef/encrypted_data_bag_secret -i plain_text_item.rb -o
12
14
 
13
15
  ## Contributing
14
16
 
15
- 1. Fork it ( http://github.com/<my-github-username>/encrypt_data_bag/fork )
17
+ 1. Fork it ( http://github.com/portertech/encrypt_data_bag/fork )
16
18
  2. Create your feature branch (`git checkout -b my-new-feature`)
17
19
  3. Commit your changes (`git commit -am 'Add some feature'`)
18
20
  4. Push to the branch (`git push origin my-new-feature`)
@@ -11,6 +11,7 @@ module EncryptDataBag
11
11
  secret = Chef::EncryptedDataBagItem.load_secret(secret_file)
12
12
  raw_item = IO.read(input_file)
13
13
  item = is_json_file?(input_file) ? JSON.parse(raw_item) : eval(raw_item)
14
+ item = Hash[item.map { |k, v| [k.to_s, v] }]
14
15
  encrypted_item = Chef::EncryptedDataBagItem.encrypt_data_bag_item(item, secret)
15
16
  File.open(output_file, "w") do |file|
16
17
  if is_json_file?(output_file)
@@ -1,3 +1,3 @@
1
1
  module EncryptDataBag
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: encrypt_data_bag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-15 00:00:00.000000000 Z
11
+ date: 2014-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
@@ -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