complex_config 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/VERSION +1 -1
- data/complex_config.gemspec +3 -3
- data/lib/complex_config/provider.rb +2 -2
- data/lib/complex_config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 860f5c79218ff3f9dc9c479f53522895d5eb9606
|
4
|
+
data.tar.gz: 9cc6fad757632f00543711857740c1831745ed25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
1
|
+
0.12.1
|
data/complex_config.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: complex_config 0.12.
|
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.
|
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-
|
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.
|
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.
|
124
|
+
out.write hex_key
|
125
125
|
end
|
126
126
|
end
|
127
127
|
else
|
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.
|
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-
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|