super_stack 1.0.4 → 1.0.7

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: 954363e463b8b8449d14b86be66fc4f3ee28b88e
4
- data.tar.gz: 4ea88d1552e30604065c0c34bc1aa4d8349d23da
3
+ metadata.gz: 4011affe2a855eae151d4b41e9c1a26e3d0da125
4
+ data.tar.gz: 0b2507bca1a6613e325edfae9061131ce0e3fa56
5
5
  SHA512:
6
- metadata.gz: 6aae83a77ac39e1fce50a864f26cd3efbd2695f8d1ebbc11ddc92b7fd7f5980eae5cd105021a82ff068eefe3542851794d5ced73be9d8e7874a10bff5680268a
7
- data.tar.gz: 670376f9ecf50d9595bfa7962e266c5d547e6ac2f26028a8231df38fb4467d6578e1a04e9280af48607a6fac66f87491b077145a6ffa2b9a24b7ebef6e53ef33
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
- self.priority <=> other.priority
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
@@ -1,3 +1,3 @@
1
1
  module SuperStack
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.7'
3
3
  end
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+gh@gmail.com']
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://github.com/lbriais/super_stack'
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")
@@ -0,0 +1,2 @@
1
+ ---
2
+ # Contents some stuff, but nothing important
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
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: 2017-04-19 00:00:00.000000000 Z
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+gh@gmail.com
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://github.com/lbriais/super_stack
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.4.5.1
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