super_stack 1.0.4 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/lib/super_stack/layer_wrapper.rb +2 -2
- data/lib/super_stack/version.rb +1 -1
- data/super_stack.gemspec +2 -2
- data/test/layer_content_type_empty.yml +2 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4011affe2a855eae151d4b41e9c1a26e3d0da125
|
4
|
+
data.tar.gz: 0b2507bca1a6613e325edfae9061131ce0e3fa56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a111e8c593c9aaecf0054426bf51ee162357b568b252334c731aff7e1bc9d870db0fd1c29791e635d02f90d4969f9c1b26c05fb1206cf05f3025c22baacd01c5
|
7
|
+
data.tar.gz: 63e499bdc80948d5ca0d47a13e79ab1d532574a62ac8579e070fd8188f57d2c96a4d27604f239ae5f96ddee76cd5e2ab92fcfa72b691dfea7a5b4cf04f1e226e
|
data/README.md
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
# SuperStack
|
2
|
-
[![Build Status](https://travis-ci.org/lbriais/super_stack.svg)](https://travis-ci.org/lbriais/super_stack)
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/super_stack.svg)](http://badge.fury.io/rb/super_stack)
|
4
2
|
|
5
3
|
The purpose of this gem is to provide a simple way to manage the merge of different
|
6
4
|
hashes (layers) according to priority and different merge policies.
|
@@ -57,7 +57,8 @@ module SuperStack
|
|
57
57
|
|
58
58
|
def <=>(other)
|
59
59
|
# For priorities, the smallest the higher
|
60
|
-
|
60
|
+
return nil unless other.respond_to? :priority
|
61
|
+
priority <=> other.priority
|
61
62
|
end
|
62
63
|
|
63
64
|
def inspect
|
@@ -92,7 +93,6 @@ module SuperStack
|
|
92
93
|
if res
|
93
94
|
self.replace Hash[res.map { |k, v| [k, v] }]
|
94
95
|
else
|
95
|
-
raise "Invalid file content for '#{file_name}'" unless raw_content.empty?
|
96
96
|
clear
|
97
97
|
end
|
98
98
|
@file_name = file_name
|
data/lib/super_stack/version.rb
CHANGED
data/super_stack.gemspec
CHANGED
@@ -7,10 +7,10 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = 'super_stack'
|
8
8
|
spec.version = SuperStack::VERSION
|
9
9
|
spec.authors = ['Laurent B.']
|
10
|
-
spec.email = ['lbnetid+
|
10
|
+
spec.email = ['lbnetid+rb@gmail.com']
|
11
11
|
spec.summary = %q{Provides a way to manage the merge of different hashes according to priority and several merge policies.}
|
12
12
|
spec.description = %q{The purpose of this gem is to provide a simple way to manage the merge of different hashes (layers) according to priority and several merge policies.}
|
13
|
-
spec.homepage = 'https://
|
13
|
+
spec.homepage = 'https://gitlab.com/lbriais/super_stack'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: super_stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurent B.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -97,7 +97,7 @@ dependencies:
|
|
97
97
|
description: The purpose of this gem is to provide a simple way to manage the merge
|
98
98
|
of different hashes (layers) according to priority and several merge policies.
|
99
99
|
email:
|
100
|
-
- lbnetid+
|
100
|
+
- lbnetid+rb@gmail.com
|
101
101
|
executables: []
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
@@ -137,7 +137,7 @@ files:
|
|
137
137
|
- test/stacked_layer_2.yml
|
138
138
|
- test/stacked_layer_3.yml
|
139
139
|
- test/stacked_layer_4.yml
|
140
|
-
homepage: https://
|
140
|
+
homepage: https://gitlab.com/lbriais/super_stack
|
141
141
|
licenses:
|
142
142
|
- MIT
|
143
143
|
metadata: {}
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.
|
160
|
+
rubygems_version: 2.2.5
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: Provides a way to manage the merge of different hashes according to priority
|