union 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d0fa512ff0097ef9d96fd7475a98311ad6943e91
4
+ data.tar.gz: b3c5c1e54acf8ff4efde469cc6f6af2202efdba6
5
+ SHA512:
6
+ metadata.gz: 130d97e620fd552b063cda2b3a0ff94e1f24225e2e7de81720abb68cf1ae76210df8f07026f89735e0ba94f3c44be40947df381f07e9a7064d499ff900c9bc23
7
+ data.tar.gz: b1a7044ededd95eaf4a1238781ea854d320256fb70b13016a176437c0c66145c9f7bfa7b4cd598adad27a7544b0b42345af79d1998a83b7b91de450bfab1aa25
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.0.4 - 8-Oct-2014
2
+ * Updated Rakefile for Rubygems 2.x.
3
+ * Updated README and gemspec, removed Rubyforge references.
4
+
1
5
  == 1.0.3 - 22-Sep-2011
2
6
  * Refactored the Rakefile. Removed the old install task, added
3
7
  a default task, and reorganized the gem related tasks.
data/MANIFEST CHANGED
@@ -2,6 +2,6 @@
2
2
  * MANIFEST
3
3
  * README
4
4
  * Rakefile
5
- * facade.gemspec
5
+ * union.gemspec
6
6
  * lib/union.rb
7
7
  * test/test_union.rb
data/README CHANGED
@@ -16,12 +16,15 @@
16
16
 
17
17
  = Known issues or bugs
18
18
  None that I'm aware of. Please report any bugs you find on the project
19
- page at http://www.rubyforge.org/projects/shards or on the github
20
- project page at https://github.com/djberg96/union.
19
+ page at on the github project page at https://github.com/djberg96/union.
21
20
 
22
21
  = License
23
22
  Artistic 2.0
24
23
 
24
+ = Copyright
25
+ (C) 2003-2014 Daniel J. Berger
26
+ All Rights Reserved.
27
+
25
28
  = Warranty
26
29
  This package is provided "as is" and without any express or
27
30
  implied warranties, including, without limitation, the implied
data/Rakefile CHANGED
@@ -2,18 +2,23 @@ require 'rake'
2
2
  require 'rake/clean'
3
3
  require 'rake/testtask'
4
4
 
5
- CLEAN.include("**/*.gem", "**/*.rbc")
5
+ CLEAN.include("**/*.gem", "**/*.rbc", "**/*.rbx")
6
6
 
7
7
  namespace :gem do
8
8
  desc 'Build the union gem'
9
- task :create do
9
+ task :create => [:clean] do
10
10
  spec = eval(IO.read('union.gemspec'))
11
- Gem::Builder.new(spec).build
11
+ if Gem::VERSION.to_f < 2.0
12
+ Gem::Builder.new(spec).build
13
+ else
14
+ require 'rubygems/package'
15
+ Gem::Package.build(spec)
16
+ end
12
17
  end
13
18
 
14
19
  task :install => [:create] do
15
20
  file = Dir["*.gem"].first
16
- sh "gem install #{file}"
21
+ sh "gem install -l #{file}"
17
22
  end
18
23
  end
19
24
 
data/lib/union.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  #
4
4
  class Union < Struct
5
5
  # The version of the union library
6
- VERSION = '1.0.3'
6
+ VERSION = '1.0.4'
7
7
 
8
8
  # Creates and returns a new Union. Unlike Struct::Class.new, this does not
9
9
  # take any arguments. You must assign attributes individually.
data/test/test_union.rb CHANGED
@@ -8,7 +8,7 @@ class TC_Union < Test::Unit::TestCase
8
8
  end
9
9
 
10
10
  def test_union_version
11
- assert_equal('1.0.3', Union::VERSION)
11
+ assert_equal('1.0.4', Union::VERSION)
12
12
  end
13
13
 
14
14
  def test_union_constructor
data/union.gemspec CHANGED
@@ -2,16 +2,17 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'union'
5
- gem.version = '1.0.3'
5
+ gem.version = '1.0.4'
6
6
  gem.author = 'Daniel J. Berger'
7
7
  gem.license = 'Artistic 2.0'
8
8
  gem.email = 'djberg96@gmail.com'
9
- gem.homepage = 'http://www.rubyforge.org/projects/shards'
9
+ gem.homepage = 'https://github.com/djberg96/final'
10
10
  gem.summary = 'A struct-like C union for Ruby'
11
11
  gem.test_file = 'test/test_union.rb'
12
12
  gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
13
13
 
14
14
  gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
15
+ gem.add_development_dependency('rake')
15
16
 
16
17
  gem.description = <<-EOF
17
18
  The union library provides an analog to a C/C++ union for Ruby.
metadata CHANGED
@@ -1,73 +1,72 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: union
3
- version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 3
10
- version: 1.0.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.4
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Daniel J. Berger
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-09-23 00:00:00 Z
19
- dependencies: []
20
-
21
- description: " The union library provides an analog to a C/C++ union for Ruby.\n In this implementation a union is a kind of struct where multiple\n members may be defined, but only one member ever contains a non-nil\n value at any given time.\n"
11
+ date: 2014-10-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: |2
28
+ The union library provides an analog to a C/C++ union for Ruby.
29
+ In this implementation a union is a kind of struct where multiple
30
+ members may be defined, but only one member ever contains a non-nil
31
+ value at any given time.
22
32
  email: djberg96@gmail.com
23
33
  executables: []
24
-
25
34
  extensions: []
26
-
27
- extra_rdoc_files:
35
+ extra_rdoc_files:
28
36
  - README
29
37
  - CHANGES
30
38
  - MANIFEST
31
- files:
39
+ files:
32
40
  - CHANGES
33
- - lib/union.rb
34
41
  - MANIFEST
35
- - Rakefile
36
42
  - README
43
+ - Rakefile
44
+ - lib/union.rb
37
45
  - test/test_union.rb
38
46
  - union.gemspec
39
- homepage: http://www.rubyforge.org/projects/shards
40
- licenses:
47
+ homepage: https://github.com/djberg96/final
48
+ licenses:
41
49
  - Artistic 2.0
50
+ metadata: {}
42
51
  post_install_message:
43
52
  rdoc_options: []
44
-
45
- require_paths:
53
+ require_paths:
46
54
  - lib
47
- required_ruby_version: !ruby/object:Gem::Requirement
48
- none: false
49
- requirements:
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ requirements:
50
57
  - - ">="
51
- - !ruby/object:Gem::Version
52
- hash: 3
53
- segments:
54
- - 0
55
- version: "0"
56
- required_rubygems_version: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
+ requirements:
59
62
  - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 0
64
- version: "0"
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
65
  requirements: []
66
-
67
66
  rubyforge_project:
68
- rubygems_version: 1.8.10
67
+ rubygems_version: 2.2.2
69
68
  signing_key:
70
- specification_version: 3
69
+ specification_version: 4
71
70
  summary: A struct-like C union for Ruby
72
- test_files:
71
+ test_files:
73
72
  - test/test_union.rb