hashslice 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES +4 -0
- data/MANIFEST +2 -1
- data/Rakefile +6 -5
- data/certs/djberg96_pub.pem +21 -0
- data/hashslice.gemspec +10 -10
- data/lib/hashslice.rb +1 -1
- data/test/test_hashslice.rb +2 -4
- metadata +66 -55
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1d0601ee24ee878f0136b8e4f61cc7e943c83418
|
4
|
+
data.tar.gz: 7b732664ccb4220cf3120a77af99b5c023472fc7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0880ef4056e627231ad5fb7bee08a169a9ed0f09e733aed724be56a95715abdcaf65be40c5e6eba9fcf4b6aef96d1792fef40d897c5a93a1f2a13be7e119de17
|
7
|
+
data.tar.gz: a64f4d6349f31ddfe980a1b4cfb2fcb30ea98e8dc454c8356d0acd9c525e34ce84c46f42dfa44ca5711965389b93ded410354f668b5e26f56aa6f5f19a8bd869
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/CHANGES
CHANGED
data/MANIFEST
CHANGED
data/Rakefile
CHANGED
@@ -5,23 +5,24 @@ require 'rake/testtask'
|
|
5
5
|
CLEAN.include("**/*.gem", "**/*.rbc")
|
6
6
|
|
7
7
|
namespace :gem do
|
8
|
-
|
9
8
|
desc 'Build the hashslice gem'
|
10
9
|
task :create => [:clean] do
|
10
|
+
require 'rubygems/package'
|
11
11
|
spec = eval(IO.read('hashslice.gemspec'))
|
12
|
-
|
12
|
+
spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
|
13
|
+
Gem::Package.build(spec, true)
|
13
14
|
end
|
14
15
|
|
15
16
|
desc "Install the hashslice library as a gem"
|
16
17
|
task :install => [:create] do
|
17
18
|
file = Dir["*.gem"].first
|
18
|
-
sh "gem install #{file}"
|
19
|
+
sh "gem install -l #{file}"
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
22
23
|
Rake::TestTask.new do |t|
|
23
|
-
|
24
|
-
|
24
|
+
t.warning = true
|
25
|
+
t.verbose = true
|
25
26
|
end
|
26
27
|
|
27
28
|
task :default => :test
|
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
3
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
4
|
+
MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
|
5
|
+
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
6
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
|
7
|
+
Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
|
8
|
+
S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
|
9
|
+
gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
|
10
|
+
FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
|
11
|
+
zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
|
12
|
+
DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
|
13
|
+
nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
|
14
|
+
bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
|
15
|
+
ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
|
16
|
+
tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
|
17
|
+
/sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
|
18
|
+
wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
|
19
|
+
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
20
|
+
tGSHgAmcLlkdGgan182qsE/4kKM=
|
21
|
+
-----END CERTIFICATE-----
|
data/hashslice.gemspec
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
|
-
gem.name
|
5
|
-
gem.version
|
6
|
-
gem.authors
|
7
|
-
gem.license
|
8
|
-
gem.email
|
9
|
-
gem.homepage
|
10
|
-
gem.summary
|
11
|
-
gem.test_file
|
12
|
-
gem.files
|
4
|
+
gem.name = 'hashslice'
|
5
|
+
gem.version = '1.1.0'
|
6
|
+
gem.authors = ['Daniel J. Berger', 'Michael Granger']
|
7
|
+
gem.license = 'Artistic 2.0'
|
8
|
+
gem.email = 'djberg96@gmail.com'
|
9
|
+
gem.homepage = 'http://github.com/djberg96/hashslice'
|
10
|
+
gem.summary = "Adds hash slicing to Ruby's Hash class"
|
11
|
+
gem.test_file = 'test/test_hashslice.rb'
|
12
|
+
gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
13
|
+
gem.cert_chain = Dir['certs/*']
|
13
14
|
|
14
|
-
gem.rubyforge_project = 'shards'
|
15
15
|
gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
|
16
16
|
|
17
17
|
gem.add_development_dependency('test-unit')
|
data/lib/hashslice.rb
CHANGED
@@ -3,7 +3,7 @@ class Hash
|
|
3
3
|
alias hset []=
|
4
4
|
|
5
5
|
# The version of the hashslice library
|
6
|
-
VERSION_HASHSLICE = '1.0
|
6
|
+
VERSION_HASHSLICE = '1.1.0'
|
7
7
|
|
8
8
|
# Retrieve a hash slice. If a single key is provided, returns a single
|
9
9
|
# value. If multiple keys are provided, an array of values is returned.
|
data/test/test_hashslice.rb
CHANGED
@@ -5,10 +5,8 @@
|
|
5
5
|
# via the 'rake test' task.
|
6
6
|
#######################################################################
|
7
7
|
require 'rubygems'
|
8
|
-
gem 'test-unit'
|
9
|
-
|
10
8
|
require 'hashslice'
|
11
|
-
require 'test
|
9
|
+
require 'test-unit'
|
12
10
|
|
13
11
|
class TC_Hashslice < Test::Unit::TestCase
|
14
12
|
def setup
|
@@ -16,7 +14,7 @@ class TC_Hashslice < Test::Unit::TestCase
|
|
16
14
|
end
|
17
15
|
|
18
16
|
def test_version
|
19
|
-
assert_equal('1.0
|
17
|
+
assert_equal('1.1.0', Hash::VERSION_HASHSLICE)
|
20
18
|
end
|
21
19
|
|
22
20
|
def test_get_slice_instance_method_basic
|
metadata
CHANGED
@@ -1,87 +1,98 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: hashslice
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 9
|
10
|
-
version: 1.0.9
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Daniel J. Berger
|
14
8
|
- Michael Granger
|
15
9
|
autorequire:
|
16
10
|
bindir: bin
|
17
|
-
cert_chain:
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
cert_chain:
|
12
|
+
- |
|
13
|
+
-----BEGIN CERTIFICATE-----
|
14
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
15
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
16
|
+
MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
|
17
|
+
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
18
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
|
19
|
+
Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
|
20
|
+
S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
|
21
|
+
gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
|
22
|
+
FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
|
23
|
+
zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
|
24
|
+
DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
|
25
|
+
nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
|
26
|
+
bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
|
27
|
+
ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
|
28
|
+
tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
|
29
|
+
/sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
|
30
|
+
wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
|
31
|
+
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
32
|
+
tGSHgAmcLlkdGgan182qsE/4kKM=
|
33
|
+
-----END CERTIFICATE-----
|
34
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
35
|
+
dependencies:
|
36
|
+
- !ruby/object:Gem::Dependency
|
22
37
|
name: test-unit
|
23
|
-
|
24
|
-
|
25
|
-
none: false
|
26
|
-
requirements:
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
27
40
|
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
33
43
|
type: :development
|
34
|
-
|
35
|
-
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
description: |2
|
51
|
+
The hashslice library adds builtin hash slicing to Ruby's Hash class.
|
52
|
+
This lets you reference, or assign to, multiple hash keys simultaneously
|
53
|
+
via the Hash#[] and Hash#[]= methods, respectively.
|
36
54
|
email: djberg96@gmail.com
|
37
55
|
executables: []
|
38
|
-
|
39
56
|
extensions: []
|
40
|
-
|
41
|
-
extra_rdoc_files:
|
57
|
+
extra_rdoc_files:
|
42
58
|
- README
|
43
59
|
- CHANGES
|
44
60
|
- MANIFEST
|
45
|
-
files:
|
61
|
+
files:
|
62
|
+
- certs
|
63
|
+
- certs/djberg96_pub.pem
|
46
64
|
- CHANGES
|
47
65
|
- hashslice.gemspec
|
66
|
+
- lib
|
48
67
|
- lib/hashslice.rb
|
49
68
|
- MANIFEST
|
50
69
|
- Rakefile
|
51
70
|
- README
|
71
|
+
- test
|
52
72
|
- test/test_hashslice.rb
|
53
|
-
homepage: http://
|
54
|
-
licenses:
|
73
|
+
homepage: http://github.com/djberg96/hashslice
|
74
|
+
licenses:
|
55
75
|
- Artistic 2.0
|
76
|
+
metadata: {}
|
56
77
|
post_install_message:
|
57
78
|
rdoc_options: []
|
58
|
-
|
59
|
-
require_paths:
|
79
|
+
require_paths:
|
60
80
|
- lib
|
61
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
-
|
63
|
-
requirements:
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
64
83
|
- - ">="
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
version: "0"
|
70
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
|
-
requirements:
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
73
88
|
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
|
76
|
-
segments:
|
77
|
-
- 0
|
78
|
-
version: "0"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
79
91
|
requirements: []
|
80
|
-
|
81
|
-
|
82
|
-
rubygems_version: 1.8.10
|
92
|
+
rubyforge_project:
|
93
|
+
rubygems_version: 2.4.8
|
83
94
|
signing_key:
|
84
|
-
specification_version:
|
95
|
+
specification_version: 4
|
85
96
|
summary: Adds hash slicing to Ruby's Hash class
|
86
|
-
test_files:
|
97
|
+
test_files:
|
87
98
|
- test/test_hashslice.rb
|
metadata.gz.sig
ADDED
Binary file
|