union 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +0 -0
- data/CHANGES +5 -0
- data/MANIFEST +1 -0
- data/README +1 -1
- data/Rakefile +3 -6
- data/certs/djberg96_pub.pem +21 -0
- data/lib/union.rb +1 -1
- data/test/test_union.rb +10 -10
- data/union.gemspec +10 -9
- metadata +33 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d006b95fe7f76f5606a4aef86b30453c07a2300
|
4
|
+
data.tar.gz: ec6250deb9f589eabaf7a4e2599f386b562f499f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0a0966b549527018ce1d206d76892ba3a17c432b289cbe58c7b2303aef81e7f7fca15f3f6d4c1b50d927cc8ac512fef2a5c7a40e865bfaabd28198e080c3a9e
|
7
|
+
data.tar.gz: ba3a20e033f070b36a457197de9febd487100ea8f9212dd7c4e2d18799b7086e405ca4c902572193a1dc31b29e44d4b604bc5f401541da959fb7fbc28a8633af
|
checksums.yaml.gz.sig
ADDED
data.tar.gz.sig
ADDED
Binary file
|
data/CHANGES
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 1.0.5 - 5-Dec-2015
|
2
|
+
* This gem is now signed.
|
3
|
+
* Updated gemspec, adding a cert_chain and fixing the home page.
|
4
|
+
* The gem related tasks now assume Rubygems 2.x.
|
5
|
+
|
1
6
|
== 1.0.4 - 8-Oct-2014
|
2
7
|
* Updated Rakefile for Rubygems 2.x.
|
3
8
|
* Updated README and gemspec, removed Rubyforge references.
|
data/MANIFEST
CHANGED
data/README
CHANGED
data/Rakefile
CHANGED
@@ -7,13 +7,10 @@ CLEAN.include("**/*.gem", "**/*.rbc", "**/*.rbx")
|
|
7
7
|
namespace :gem do
|
8
8
|
desc 'Build the union gem'
|
9
9
|
task :create => [:clean] do
|
10
|
+
require 'rubygems/package'
|
10
11
|
spec = eval(IO.read('union.gemspec'))
|
11
|
-
|
12
|
-
|
13
|
-
else
|
14
|
-
require 'rubygems/package'
|
15
|
-
Gem::Package.build(spec)
|
16
|
-
end
|
12
|
+
spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
|
13
|
+
Gem::Package.build(spec, true)
|
17
14
|
end
|
18
15
|
|
19
16
|
task :install => [:create] do
|
@@ -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/lib/union.rb
CHANGED
data/test/test_union.rb
CHANGED
@@ -6,20 +6,20 @@ class TC_Union < Test::Unit::TestCase
|
|
6
6
|
Union.new('Human', :name, :age, :height) unless defined? Union::Human
|
7
7
|
@union = Union::Human.new
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
def test_union_version
|
11
|
-
assert_equal('1.0.
|
11
|
+
assert_equal('1.0.5', Union::VERSION)
|
12
12
|
end
|
13
|
-
|
14
|
-
def test_union_constructor
|
13
|
+
|
14
|
+
def test_union_constructor
|
15
15
|
assert_raise(ArgumentError){ Union::Human.new('Matz') }
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
def test_union_attribute_assignment_basic
|
19
19
|
assert_nothing_raised{ @union.name = 'Daniel' }
|
20
20
|
assert_equal('Daniel', @union.name)
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
def test_union_attribute_assignment_by_method_name
|
24
24
|
assert_nothing_raised{ @union.name = 'Daniel' }
|
25
25
|
assert_nothing_raised{ @union.age = 38 }
|
@@ -27,7 +27,7 @@ class TC_Union < Test::Unit::TestCase
|
|
27
27
|
assert_nil(@union.height)
|
28
28
|
assert_equal(38, @union.age)
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
def test_union_attribute_assignment_by_string_ref
|
32
32
|
assert_nothing_raised{ @union['name'] = 'Daniel' }
|
33
33
|
assert_nothing_raised{ @union['age'] = 38 }
|
@@ -35,15 +35,15 @@ class TC_Union < Test::Unit::TestCase
|
|
35
35
|
assert_nil(@union['height'])
|
36
36
|
assert_equal(38, @union['age'])
|
37
37
|
end
|
38
|
-
|
38
|
+
|
39
39
|
def test_union_attribute_assignment_by_symbol_ref
|
40
40
|
assert_nothing_raised{ @union[:name] = 'Daniel' }
|
41
41
|
assert_nothing_raised{ @union[:age] = 38 }
|
42
42
|
assert_nil(@union[:name])
|
43
43
|
assert_nil(@union[:height])
|
44
44
|
assert_equal(38, @union[:age])
|
45
|
-
end
|
46
|
-
|
45
|
+
end
|
46
|
+
|
47
47
|
def teardown
|
48
48
|
@union = nil
|
49
49
|
end
|
data/union.gemspec
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
|
-
gem.name
|
5
|
-
gem.version
|
6
|
-
gem.author
|
7
|
-
gem.license
|
8
|
-
gem.email
|
9
|
-
gem.homepage
|
10
|
-
gem.summary
|
11
|
-
gem.test_file
|
12
|
-
gem.files
|
4
|
+
gem.name = 'union'
|
5
|
+
gem.version = '1.0.5'
|
6
|
+
gem.author = 'Daniel J. Berger'
|
7
|
+
gem.license = 'Artistic 2.0'
|
8
|
+
gem.email = 'djberg96@gmail.com'
|
9
|
+
gem.homepage = 'https://github.com/djberg96/union'
|
10
|
+
gem.summary = 'A struct-like C union for Ruby'
|
11
|
+
gem.test_file = 'test/test_union.rb'
|
12
|
+
gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
|
13
|
+
gem.cert_chain = Dir['certs/*']
|
13
14
|
|
14
15
|
gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
|
15
16
|
gem.add_development_dependency('rake')
|
metadata
CHANGED
@@ -1,14 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: union
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAhkamJl
|
14
|
+
cmc5NjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
15
|
+
MB4XDTE1MDkwMjIwNDkxOFoXDTE2MDkwMTIwNDkxOFowPzERMA8GA1UEAwwIZGpi
|
16
|
+
ZXJnOTYxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
17
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyTkvXqRp6hLs9eoJOS
|
18
|
+
Hmi8kRYbq9Vkf15/hMxJpotYMgJVHHWrmDcC5Dye2PbnXjTkKf266Zw0PtT9h+lI
|
19
|
+
S3ts9HO+vaCFSMwFFZmnWJSpQ3CNw2RcHxjWkk9yF7imEM8Kz9ojhiDXzBetdV6M
|
20
|
+
gr0lV/alUr7TNVBDngbXEfTWscyXh1qd7xZ4EcOdsDktCe5G45N/o3662tPQvJsi
|
21
|
+
FOF0CM/KuBsa/HL1/eoEmF4B3EKIRfTHrQ3hu20Kv3RJ88QM4ec2+0dd97uX693O
|
22
|
+
zv6981fyEg+aXLkxrkViM/tz2qR2ZE0jPhHTREPYeMEgptRkTmWSKAuLVWrJEfgl
|
23
|
+
DtkCAwEAAaN3MHUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEwe
|
24
|
+
nn6bfJADmuIDiMSOzedOrL+xMB0GA1UdEQQWMBSBEmRqYmVyZzk2QGdtYWlsLmNv
|
25
|
+
bTAdBgNVHRIEFjAUgRJkamJlcmc5NkBnbWFpbC5jb20wDQYJKoZIhvcNAQEFBQAD
|
26
|
+
ggEBAHmNOCWoDVD75zHFueY0viwGDVP1BNGFC+yXcb7u2GlK+nEMCORqzURbYPf7
|
27
|
+
tL+/hzmePIRz7i30UM//64GI1NLv9jl7nIwjhPpXpf7/lu2I9hOTsvwSumb5UiKC
|
28
|
+
/sqBxI3sfj9pr79Wpv4MuikX1XPik7Ncb7NPsJPw06Lvyc3Hkg5X2XpPtLtS+Gr2
|
29
|
+
wKJnmzb5rIPS1cmsqv0M9LPWflzfwoZ/SpnmhagP+g05p8bRNKjZSA2iImM/GyYZ
|
30
|
+
EJYzxdPOrx2n6NYR3Hk+vHP0U7UBSveI6+qx+ndQYaeyCn+GRX2PKS9h66YF/Q1V
|
31
|
+
tGSHgAmcLlkdGgan182qsE/4kKM=
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2015-12-06 00:00:00.000000000 Z
|
12
34
|
dependencies:
|
13
35
|
- !ruby/object:Gem::Dependency
|
14
36
|
name: rake
|
@@ -37,14 +59,18 @@ extra_rdoc_files:
|
|
37
59
|
- CHANGES
|
38
60
|
- MANIFEST
|
39
61
|
files:
|
62
|
+
- certs
|
63
|
+
- certs/djberg96_pub.pem
|
40
64
|
- CHANGES
|
65
|
+
- lib
|
66
|
+
- lib/union.rb
|
41
67
|
- MANIFEST
|
42
|
-
- README
|
43
68
|
- Rakefile
|
44
|
-
-
|
69
|
+
- README
|
70
|
+
- test
|
45
71
|
- test/test_union.rb
|
46
72
|
- union.gemspec
|
47
|
-
homepage: https://github.com/djberg96/
|
73
|
+
homepage: https://github.com/djberg96/union
|
48
74
|
licenses:
|
49
75
|
- Artistic 2.0
|
50
76
|
metadata: {}
|
@@ -64,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
90
|
version: '0'
|
65
91
|
requirements: []
|
66
92
|
rubyforge_project:
|
67
|
-
rubygems_version: 2.
|
93
|
+
rubygems_version: 2.4.5
|
68
94
|
signing_key:
|
69
95
|
specification_version: 4
|
70
96
|
summary: A struct-like C union for Ruby
|
metadata.gz.sig
ADDED
Binary file
|