complex_config 0.12.0 → 0.12.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: 185f936e61f349365b82896fab33d19d19ae5d06
4
- data.tar.gz: ed44eb14a555726bf98c67f1b55c3b810b09b9c7
3
+ metadata.gz: 860f5c79218ff3f9dc9c479f53522895d5eb9606
4
+ data.tar.gz: 9cc6fad757632f00543711857740c1831745ed25
5
5
  SHA512:
6
- metadata.gz: 7bdb5fdd4f6f8cfb22c7a566ccb7bb9150648c665b597b696fcb31a0e1d9b32a20aeb02ca42747f5e647516f64e932808a2b8ff04a06cba42a7e42a6551d010e
7
- data.tar.gz: eedadb08ce6a0b8ec49dd0530efcbb040bb111f52f81cf3e6d01bcfbda944b17ca75362750a8420e1880229feb81133f755b91473c7d5e961ddd9cb3171c448a
6
+ metadata.gz: 26c3c653a850a1de3f43d4f04ed8d5f466e1c3cc1fa738dae837715b778da2e94454617ef0b9ff74231eed03d3960062f817ebdad47a26a75fc0a350f45dbb74
7
+ data.tar.gz: e8a4606df8009be3e3140981329db9bac1bc69d8d6afca2af0d55d3f5fbae24931b702d0328417f167dc1ea24feeccaf16b6f620246428069bd7ddc9f219793c
data/README.md CHANGED
@@ -144,6 +144,8 @@ Here is the `ComplexConfig::Plugins::MONEY` plugin for example:
144
144
 
145
145
  ## Changes
146
146
 
147
+ * 2017-11-17 Release 0.12.1
148
+ Do not output newlines when writing encrypted configs, Rails don't like it.
147
149
  * 2017-11-16 Release 0.12.0
148
150
  * Supports writing of configurations (encrypted or unencrypted)
149
151
  * 2017-11-16 Release 0.11.3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.0
1
+ 0.12.1
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: complex_config 0.12.0 ruby lib
2
+ # stub: complex_config 0.12.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "complex_config".freeze
6
- s.version = "0.12.0"
6
+ s.version = "0.12.1"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Florian Frank".freeze]
11
- s.date = "2017-11-16"
11
+ s.date = "2017-11-17"
12
12
  s.description = "This library allows you to access configuration files via a simple interface".freeze
13
13
  s.email = "flori@ping.de".freeze
14
14
  s.extra_rdoc_files = ["README.md".freeze, "lib/complex_config.rb".freeze, "lib/complex_config/config.rb".freeze, "lib/complex_config/encryption.rb".freeze, "lib/complex_config/errors.rb".freeze, "lib/complex_config/plugins.rb".freeze, "lib/complex_config/plugins/enable.rb".freeze, "lib/complex_config/plugins/money.rb".freeze, "lib/complex_config/plugins/uri.rb".freeze, "lib/complex_config/provider.rb".freeze, "lib/complex_config/provider/shortcuts.rb".freeze, "lib/complex_config/proxy.rb".freeze, "lib/complex_config/railtie.rb".freeze, "lib/complex_config/rude.rb".freeze, "lib/complex_config/settings.rb".freeze, "lib/complex_config/shortcuts.rb".freeze, "lib/complex_config/version.rb".freeze]
@@ -116,12 +116,12 @@ class ComplexConfig::Provider
116
116
  key.size != 16 and raise ComplexConfig::EncryptionKeyInvalid,
117
117
  "encryption keys has to be of 16 bytes lenght"
118
118
  File.secure_write(config_pathname + '.enc') do |out|
119
- out.puts ComplexConfig::Encryption.new(key).encrypt(settings.to_yaml)
119
+ out.write ComplexConfig::Encryption.new(key).encrypt(settings.to_yaml)
120
120
  end
121
121
  hex_key = key.unpack('H*').first
122
122
  if store_key
123
123
  File.secure_write(config_pathname + '.key') do |out|
124
- out.puts hex_key
124
+ out.write hex_key
125
125
  end
126
126
  end
127
127
  else
@@ -1,6 +1,6 @@
1
1
  module ComplexConfig
2
2
  # ComplexConfig version
3
- VERSION = '0.12.0'
3
+ VERSION = '0.12.1'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: complex_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-16 00:00:00.000000000 Z
11
+ date: 2017-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar