chef-encrypted-attributes 0.5.0 → 0.6.0.beta.1

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: 810a37dff2980969d642d2759f2ee1c09fdb1ebf
4
- data.tar.gz: 3e199cd293403bdeccb89a1e6ce0ca93913f5bf2
3
+ metadata.gz: 7495ed6ac0601f8c11838639c744fb24ba11373b
4
+ data.tar.gz: 842c73d5d0847d2ea5d97c2339d2e218f33d769d
5
5
  SHA512:
6
- metadata.gz: 62020afcc9d396f9800c8364f5e3f111dc19ac6e7fa8639c2f0737dc071e257a4355a7ceef0d5c35bbeb7807fd857573982ab76d52db5ad01a1c79265db490cd
7
- data.tar.gz: 1102b54b595fe434c360adea4367eea8ce44061c52cbea4262b87c1b6dd5e1783e859b07701ee68643a8f686fcbeb9d2a7aa1a4482fa85636c17cd125ba422d1
6
+ metadata.gz: 41412a089a4db64cbf9b0ab3b76e32fd6dd4325c757adf9348aa3f98eea573378bb39ecaf3fc0b40d830f2313739fc8a5b3145a77195fdba67c1fda0f5e4356c
7
+ data.tar.gz: d49f3afa9df11fcbb45296afcd9056f9f06db44620ac2e4a0fd8c26e87e29aff20d20020de8e92fc5d2801e732950590d29abbe6a4d154b8c915371151c40669
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This file is used to list changes made in each version of `chef-encrypted-attributes`.
4
4
 
5
+ ## 0.6.0.beta.1 (2015-05-01)
6
+
7
+ * Conditional gem dependency installation within a gemspec ([issue #2](https://github.com/onddo/chef-encrypted-attributes/pull/2), thanks [@chhsiung](https://github.com/chhsiung) for the help).
8
+
5
9
  ## 0.5.0 (2015-04-03)
6
10
 
7
11
  * `#load_from_node` raises an exception if no ecnrypted attribute is found.
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  [![Gem Version](http://img.shields.io/gem/v/chef-encrypted-attributes.svg?style=flat)](http://badge.fury.io/rb/chef-encrypted-attributes)
3
3
  [![Dependency Status](http://img.shields.io/gemnasium/onddo/chef-encrypted-attributes.svg?style=flat)](https://gemnasium.com/onddo/chef-encrypted-attributes)
4
4
  [![Code Climate](http://img.shields.io/codeclimate/github/onddo/chef-encrypted-attributes.svg?style=flat)](https://codeclimate.com/github/onddo/chef-encrypted-attributes)
5
- [![Build Status](http://img.shields.io/travis/onddo/chef-encrypted-attributes.svg?style=flat)](https://travis-ci.org/onddo/chef-encrypted-attributes)
5
+ [![Build Status](http://img.shields.io/travis/onddo/chef-encrypted-attributes/0.6.0.beta.1.svg?style=flat)](https://travis-ci.org/onddo/chef-encrypted-attributes)
6
6
  [![Coverage Status](http://img.shields.io/coveralls/onddo/chef-encrypted-attributes.svg?style=flat)](https://coveralls.io/r/onddo/chef-encrypted-attributes?branch=master)
7
7
  [![Inline docs](http://inch-ci.org/github/onddo/chef-encrypted-attributes.svg?branch=master&style=flat)](http://inch-ci.org/github/onddo/chef-encrypted-attributes)
8
8
 
data/ext/mkrf_conf.rb ADDED
@@ -0,0 +1,52 @@
1
+ # encoding: UTF-8
2
+ #
3
+ # Author:: Xabier de Zuazo (<xabier@onddo.com>)
4
+ # Copyright:: Copyright (c) 2015 Onddo Labs, SL. (www.onddo.com)
5
+ # License:: Apache License, Version 2.0
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+
20
+ # Conditional gem dependency installation within a gemspec.
21
+ #
22
+ # Based on:
23
+ # * http://www.programmersparadox.com/2012/05/21
24
+ # /gemspec-loading-dependent-gems-based-on-the-users-system/
25
+ # * https://www.tiredpixel.com/2014/01/05
26
+ # /curses-conditional-ruby-gem-installation-within-a-gemspec/
27
+
28
+ require 'rubygems/dependency_installer'
29
+
30
+ di = Gem::DependencyInstaller.new
31
+
32
+ begin
33
+ if RUBY_VERSION < '1.9.3'
34
+ puts "Installing mixlib-shellout < 1.6.1 because Ruby #{RUBY_VERSION}"
35
+ di.install 'mixlib-shellout', '< 1.6.1'
36
+ end
37
+ if RUBY_VERSION < '2'
38
+ puts "Installing highline < 1.7 because Ruby #{RUBY_VERSION}"
39
+ s.add_dependency 'highline', '< 1.7'
40
+ puts "Installing ohai < 8 because Ruby #{RUBY_VERSION}"
41
+ s.add_dependency 'ohai', '< 8'
42
+ end
43
+ rescue => e
44
+ warn "#{$PROGRAM_NAME}: #{e}"
45
+ exit!
46
+ end
47
+
48
+ puts 'Writing fake Rakefile'
49
+ # Write fake Rakefile for rake since Makefile isn't used
50
+ File.open(File.join(File.dirname(__FILE__), 'Rakefile'), 'w') do |f|
51
+ f.write("task :default\n")
52
+ end
@@ -97,7 +97,7 @@ class Chef
97
97
  #
98
98
  # ```ruby
99
99
  # ftp_pass = Chef::EncryptedAttribute.load(
100
- # node['myapp']['ftp_password'], { :partial_search => false }
100
+ # node['myapp']['ftp_password'], :partial_search => false
101
101
  # )
102
102
  # ```
103
103
  #
@@ -1,7 +1,7 @@
1
1
  # encoding: UTF-8
2
2
  #
3
3
  # Author:: Xabier de Zuazo (<xabier@onddo.com>)
4
- # Copyright:: Copyright (c) 2014 Onddo Labs, SL. (www.onddo.com)
4
+ # Copyright:: Copyright (c) 2014-2015 Onddo Labs, SL. (www.onddo.com)
5
5
  # License:: Apache License, Version 2.0
6
6
  #
7
7
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -20,6 +20,6 @@
20
20
  class Chef
21
21
  class EncryptedAttribute
22
22
  # `chef-encrypted-attributes` gem version.
23
- VERSION = '0.5.0'
23
+ VERSION = '0.6.0.beta.1'
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-encrypted-attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Onddo Labs, SL.
@@ -30,7 +30,7 @@ cert_chain:
30
30
  cYe8PqNEkky7ugvF4zU3sB6TW+96XasuwDv1uJmyr35LF15U6Cs83+osMbAKJTmG
31
31
  /vqKzw==
32
32
  -----END CERTIFICATE-----
33
- date: 2015-04-03 00:00:00.000000000 Z
33
+ date: 2015-05-01 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: ffi-yajl
@@ -201,7 +201,8 @@ dependencies:
201
201
  description: Chef plugin to add Node encrypted attributes support using client keys
202
202
  email: team@onddo.com
203
203
  executables: []
204
- extensions: []
204
+ extensions:
205
+ - ext/mkrf_conf.rb
205
206
  extra_rdoc_files: []
206
207
  files:
207
208
  - ".yardopts"
@@ -213,6 +214,7 @@ files:
213
214
  - Rakefile
214
215
  - TESTING.md
215
216
  - TODO.md
217
+ - ext/mkrf_conf.rb
216
218
  - lib/chef-encrypted-attributes.rb
217
219
  - lib/chef/encrypted_attribute.rb
218
220
  - lib/chef/encrypted_attribute/api.rb
@@ -259,9 +261,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
259
261
  version: 1.9.2
260
262
  required_rubygems_version: !ruby/object:Gem::Requirement
261
263
  requirements:
262
- - - ">="
264
+ - - ">"
263
265
  - !ruby/object:Gem::Version
264
- version: '0'
266
+ version: 1.3.1
265
267
  requirements: []
266
268
  rubyforge_project:
267
269
  rubygems_version: 2.2.2
@@ -272,4 +274,3 @@ test_files:
272
274
  - spec/spec_helper.rb
273
275
  - spec/integration_helper.rb
274
276
  - spec/benchmark_helper.rb
275
- has_rdoc:
metadata.gz.sig CHANGED
Binary file