fattr 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -0
- data/lib/fattr.rb +4 -4
- metadata +20 -39
data/Rakefile
CHANGED
@@ -210,6 +210,9 @@ task :release => [:clean, :gemspec, :gem] do
|
|
210
210
|
cmd = "rubyforge login && rubyforge add_release #{ This.rubyforge_project } #{ This.lib } #{ This.version } #{ This.pkgdir }/#{ This.gem }"
|
211
211
|
puts cmd
|
212
212
|
system cmd
|
213
|
+
cmd = "gem push #{ This.pkgdir }/#{ This.gem }"
|
214
|
+
puts cmd
|
215
|
+
system cmd
|
213
216
|
end
|
214
217
|
|
215
218
|
|
data/lib/fattr.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fattr
|
2
|
-
Fattr::Version = '2.2.
|
2
|
+
Fattr::Version = '2.2.1' unless Fattr.const_defined?(:Version)
|
3
3
|
def self.version() Fattr::Version end
|
4
4
|
|
5
5
|
class List < ::Array
|
@@ -150,21 +150,21 @@ module Fattr
|
|
150
150
|
compile[code]
|
151
151
|
|
152
152
|
fattrs << name
|
153
|
-
returned[name] = initializer
|
153
|
+
returned[name] = initializer
|
154
154
|
end
|
155
155
|
|
156
156
|
returned
|
157
157
|
else
|
158
158
|
begin
|
159
159
|
__fattr_list__
|
160
|
-
rescue NameError
|
160
|
+
rescue NameError, TypeError
|
161
161
|
singleton_class =
|
162
162
|
class << self
|
163
163
|
self
|
164
164
|
end
|
165
165
|
klass = self
|
166
166
|
singleton_class.module_eval do
|
167
|
-
fattr_list = List.new
|
167
|
+
fattr_list = List.new
|
168
168
|
define_method('fattr_list'){ klass == self ? fattr_list : raise(NameError) }
|
169
169
|
alias_method '__fattr_list__', 'fattr_list'
|
170
170
|
end
|
metadata
CHANGED
@@ -1,32 +1,22 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: fattr
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 2
|
7
|
-
- 2
|
8
|
-
- 0
|
9
|
-
version: 2.2.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.1
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Ara T. Howard
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2010-11-08 00:00:00 -07:00
|
18
|
-
default_executable:
|
12
|
+
date: 2012-01-30 00:00:00.000000000 Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
|
-
description: "description: fattr kicks the ass"
|
14
|
+
description: ! 'description: fattr kicks the ass'
|
22
15
|
email: ara.t.howard@gmail.com
|
23
16
|
executables: []
|
24
|
-
|
25
17
|
extensions: []
|
26
|
-
|
27
18
|
extra_rdoc_files: []
|
28
|
-
|
29
|
-
files:
|
19
|
+
files:
|
30
20
|
- lib/fattr.rb
|
31
21
|
- LICENSE
|
32
22
|
- Rakefile
|
@@ -41,37 +31,28 @@ files:
|
|
41
31
|
- samples/g.rb
|
42
32
|
- samples/h.rb
|
43
33
|
- test/fattr_test.rb
|
44
|
-
has_rdoc: true
|
45
34
|
homepage: http://github.com/ahoward/fattr/tree/master
|
46
35
|
licenses: []
|
47
|
-
|
48
36
|
post_install_message:
|
49
37
|
rdoc_options: []
|
50
|
-
|
51
|
-
require_paths:
|
38
|
+
require_paths:
|
52
39
|
- lib
|
53
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
54
41
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
|
60
|
-
version: "0"
|
61
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
47
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
|
67
|
-
- 0
|
68
|
-
version: "0"
|
48
|
+
requirements:
|
49
|
+
- - ! '>='
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
69
52
|
requirements: []
|
70
|
-
|
71
53
|
rubyforge_project: codeforpeople
|
72
|
-
rubygems_version: 1.
|
54
|
+
rubygems_version: 1.8.11
|
73
55
|
signing_key:
|
74
56
|
specification_version: 3
|
75
57
|
summary: fattr
|
76
58
|
test_files: []
|
77
|
-
|