final 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: db9d405e492365ffcfbddb948a4fe57279f155be
4
+ data.tar.gz: fe09146e242204e13bf2d1f27e8ff3cda1d3cacc
5
+ SHA512:
6
+ metadata.gz: 5ed4bdce5008219ef68232a66e7801be4f24903a13b6154be4bc35e53381e05c3513bffc1a6dedb3fee7e694da99cb113767fa1caea41d51566cca05a1809d7a
7
+ data.tar.gz: ba9e7f30a8a76c0d18fe4627d55b7d9cd16da9925b7283b298ec607e4e36004b7849442c32301db544339b14c51630c90d08648343f68db99c17a8c41d4d5155
data/CHANGES CHANGED
@@ -1,2 +1,6 @@
1
+ == 0.1.1 - 8-Oct-2014
2
+ * Updated gemspec, removed references to RubyForge, etc.
3
+ * Updated Rakefile for Rubygems 2.x.
4
+
1
5
  == 0.1.0 - 8-Apr-2011
2
6
  * Initial release
data/README CHANGED
@@ -50,7 +50,7 @@
50
50
  Artistic 2.0
51
51
 
52
52
  = Copyright
53
- (C) 2003-2011 Daniel J. Berger
53
+ (C) 2003-2014 Daniel J. Berger
54
54
  All Rights Reserved.`
55
55
 
56
56
  = Warranty
data/Rakefile CHANGED
@@ -8,13 +8,18 @@ namespace :gem do
8
8
  desc 'Build the final gem'
9
9
  task :create => [:clean] do
10
10
  spec = eval(IO.read('final.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
  desc "Install the final gem"
15
20
  task :install => [:create] do
16
21
  file = Dir["*.gem"].first
17
- sh "gem install #{file}"
22
+ sh "gem install -l #{file}"
18
23
  end
19
24
  end
20
25
 
@@ -2,17 +2,15 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'final'
5
- gem.version = '0.1.0'
5
+ gem.version = '0.1.1'
6
6
  gem.license = 'Artistic 2.0'
7
7
  gem.author = 'Daniel J. Berger'
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 = "An implementation of 'final' for Ruby"
11
11
  gem.test_files = Dir['test/test*']
12
- gem.has_rdoc = true
13
12
  gem.files = Dir['**/*'].reject{ |f| f.include?('git') }
14
13
 
15
- gem.rubyforge_project = 'shards'
16
14
  gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
17
15
 
18
16
  gem.description = <<-EOF
@@ -20,5 +18,6 @@ Gem::Specification.new do |gem|
20
18
  prevents your class from being subclassed or having its methods redefined.
21
19
  EOF
22
20
 
21
+ gem.add_development_dependency('rake')
23
22
  gem.add_development_dependency('test-unit', '>= 2.2.0')
24
23
  end
@@ -6,7 +6,7 @@ module Final
6
6
  class Error < RuntimeError; end
7
7
 
8
8
  # The version of the final library.
9
- VERSION = '0.1.0'
9
+ VERSION = '0.1.1'
10
10
 
11
11
  def self.included(mod)
12
12
  # Store already defined methods.
@@ -19,7 +19,7 @@ module Final
19
19
 
20
20
  # Prevent subclassing, except implicity subclassing from Object.
21
21
  def mod.inherited(sub)
22
- raise Error, "cannot subclass final class #{self}" unless self == Object
22
+ raise Error, "cannot subclass #{self}" unless self == Object
23
23
  end
24
24
 
25
25
  # Prevent methods from being redefined.
@@ -19,7 +19,7 @@ class TC_Final < Test::Unit::TestCase
19
19
  end
20
20
 
21
21
  test "version constant returns expected version number" do
22
- assert_equal('0.1.0', Final::VERSION)
22
+ assert_equal('0.1.1', Final::VERSION)
23
23
  end
24
24
 
25
25
  test "final class cannot be subclassed" do
metadata CHANGED
@@ -1,90 +1,84 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: final
3
- version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 0
10
- version: 0.1.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
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-04-09 00:00:00 -06:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: test-unit
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
23
21
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
27
24
  - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 2
32
- - 2
33
- - 0
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: test-unit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
34
33
  version: 2.2.0
35
34
  type: :development
36
- version_requirements: *id001
37
- description: " The final library enables you to declare your classes as final. This\n prevents your class from being subclassed or having its methods redefined.\n"
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 2.2.0
41
+ description: |2
42
+ The final library enables you to declare your classes as final. This
43
+ prevents your class from being subclassed or having its methods redefined.
38
44
  email: djberg96@gmail.com
39
45
  executables: []
40
-
41
46
  extensions: []
42
-
43
- extra_rdoc_files:
47
+ extra_rdoc_files:
44
48
  - README
45
49
  - CHANGES
46
50
  - MANIFEST
47
- files:
51
+ files:
48
52
  - CHANGES
49
- - final.gemspec
50
- - lib/final.rb
51
53
  - MANIFEST
52
- - Rakefile
53
54
  - README
55
+ - Rakefile
56
+ - final.gemspec
57
+ - lib/final.rb
54
58
  - test/test_final.rb
55
- has_rdoc: true
56
- homepage: http://www.rubyforge.org/projects/shards
57
- licenses:
59
+ homepage: https://github.com/djberg96/final
60
+ licenses:
58
61
  - Artistic 2.0
62
+ metadata: {}
59
63
  post_install_message:
60
64
  rdoc_options: []
61
-
62
- require_paths:
65
+ require_paths:
63
66
  - lib
64
- required_ruby_version: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
67
69
  - - ">="
68
- - !ruby/object:Gem::Version
69
- hash: 3
70
- segments:
71
- - 0
72
- version: "0"
73
- required_rubygems_version: !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
76
74
  - - ">="
77
- - !ruby/object:Gem::Version
78
- hash: 3
79
- segments:
80
- - 0
81
- version: "0"
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
82
77
  requirements: []
83
-
84
- rubyforge_project: shards
85
- rubygems_version: 1.3.7
78
+ rubyforge_project:
79
+ rubygems_version: 2.2.2
86
80
  signing_key:
87
- specification_version: 3
81
+ specification_version: 4
88
82
  summary: An implementation of 'final' for Ruby
89
- test_files:
83
+ test_files:
90
84
  - test/test_final.rb