final 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGES +4 -0
- data/README +1 -1
- data/Rakefile +7 -2
- data/final.gemspec +3 -4
- data/lib/final.rb +2 -2
- data/test/test_final.rb +1 -1
- metadata +54 -60
checksums.yaml
ADDED
@@ -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
data/README
CHANGED
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::
|
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
|
|
data/final.gemspec
CHANGED
@@ -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.
|
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 = '
|
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
|
data/lib/final.rb
CHANGED
@@ -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.
|
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
|
22
|
+
raise Error, "cannot subclass #{self}" unless self == Object
|
23
23
|
end
|
24
24
|
|
25
25
|
# Prevent methods from being redefined.
|
data/test/test_final.rb
CHANGED
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
|
-
|
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
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
-
|
25
|
-
|
26
|
-
requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
27
24
|
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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
|
-
|
37
|
-
|
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
|
-
|
56
|
-
|
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
|
-
|
66
|
-
requirements:
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
67
69
|
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
|
71
|
-
|
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
|
-
|
79
|
-
segments:
|
80
|
-
- 0
|
81
|
-
version: "0"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
82
77
|
requirements: []
|
83
|
-
|
84
|
-
|
85
|
-
rubygems_version: 1.3.7
|
78
|
+
rubyforge_project:
|
79
|
+
rubygems_version: 2.2.2
|
86
80
|
signing_key:
|
87
|
-
specification_version:
|
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
|