attic 0.5.3 → 0.9.0.pre.rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rubocop.yml +28 -0
- data/Gemfile +18 -0
- data/Gemfile.lock +63 -0
- data/LICENSE.txt +7 -5
- data/README.md +149 -0
- data/Rakefile +6 -37
- data/attic.gemspec +22 -51
- data/lib/attic/class_methods.rb +66 -0
- data/lib/attic/core_ext.rb +70 -0
- data/lib/attic/errors.rb +52 -0
- data/lib/attic/instance_methods.rb +36 -0
- data/lib/attic.rb +187 -156
- data/try/30_nometaclass_tryouts.rb +43 -26
- data/try/X3_nosingleton.rb +44 -0
- metadata +85 -64
- data/CHANGES.txt +0 -48
- data/README.rdoc +0 -48
metadata
CHANGED
@@ -1,41 +1,77 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: attic
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 5
|
9
|
-
- 3
|
10
|
-
version: 0.5.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0.pre.rc2
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Delano Mandelbaum
|
14
|
-
autorequire:
|
15
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
11
|
+
date: 2024-04-03 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: 13.0.6
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 13.0.6
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.0'
|
55
|
+
description: 'Attic: a place to hide metadata about the class or variable itself (e.g.
|
56
|
+
SHA hash summaries).'
|
57
|
+
email: gems@solutious.com
|
24
58
|
executables: []
|
25
|
-
|
26
59
|
extensions: []
|
27
|
-
|
28
|
-
|
29
|
-
-
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".rubocop.yml"
|
64
|
+
- Gemfile
|
65
|
+
- Gemfile.lock
|
30
66
|
- LICENSE.txt
|
31
|
-
-
|
32
|
-
files:
|
33
|
-
- CHANGES.txt
|
34
|
-
- LICENSE.txt
|
35
|
-
- README.rdoc
|
67
|
+
- README.md
|
36
68
|
- Rakefile
|
37
69
|
- attic.gemspec
|
38
70
|
- lib/attic.rb
|
71
|
+
- lib/attic/class_methods.rb
|
72
|
+
- lib/attic/core_ext.rb
|
73
|
+
- lib/attic/errors.rb
|
74
|
+
- lib/attic/instance_methods.rb
|
39
75
|
- try/01_mixins_tryouts.rb
|
40
76
|
- try/10_attic_tryouts.rb
|
41
77
|
- try/20_accessing_tryouts.rb
|
@@ -44,43 +80,28 @@ files:
|
|
44
80
|
- try/40_explicit_accessor_tryouts.rb
|
45
81
|
- try/X1_metaclasses.rb
|
46
82
|
- try/X2_extending.rb
|
47
|
-
|
48
|
-
homepage:
|
49
|
-
licenses:
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
- A place to hide private instance variables in your Ruby objects.
|
56
|
-
- --main
|
57
|
-
- README.rdoc
|
58
|
-
require_paths:
|
83
|
+
- try/X3_nosingleton.rb
|
84
|
+
homepage: https://github.com/delano/attic
|
85
|
+
licenses:
|
86
|
+
- MIT
|
87
|
+
metadata: {}
|
88
|
+
post_install_message:
|
89
|
+
rdoc_options: []
|
90
|
+
require_paths:
|
59
91
|
- lib
|
60
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
|
62
|
-
requirements:
|
63
|
-
- - ">="
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
hash: 3
|
66
|
-
segments:
|
67
|
-
- 0
|
68
|
-
version: "0"
|
69
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
|
-
requirements:
|
92
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
72
94
|
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.6.0
|
97
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.3.1
|
78
102
|
requirements: []
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
specification_version: 3
|
84
|
-
summary: A place to hide private instance variables in your Ruby objects.
|
103
|
+
rubygems_version: 3.3.26
|
104
|
+
signing_key:
|
105
|
+
specification_version: 4
|
106
|
+
summary: When in doubt, store it in the attic
|
85
107
|
test_files: []
|
86
|
-
|
data/CHANGES.txt
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
ATTIC, CHANGES
|
2
|
-
|
3
|
-
#### 0.5.3 (2011-02-11) ###############################
|
4
|
-
|
5
|
-
* FIXED: Don't redefine Object::NOMETACLASS
|
6
|
-
* CHANGE: Updated tests to Tryouts 2
|
7
|
-
* CHANGE: Move attic/mixins content to attic.rb
|
8
|
-
|
9
|
-
|
10
|
-
#### 0.5.2 (2010-02-15) ###############################
|
11
|
-
|
12
|
-
* CHANGE: Remove hanna dependency [Diego Elio 'Flameeyes' Pettenò]
|
13
|
-
|
14
|
-
#### 0.5.0 (2009-11-29) ###############################
|
15
|
-
|
16
|
-
* FIXED: Classes can now only be extended once
|
17
|
-
* FIXED: Don't define the same attic variable more then once
|
18
|
-
* FIXED: Don't define instance_variable method for objects which
|
19
|
-
don't already have one.
|
20
|
-
* CHANGE: attic_vars method is now attic_variables
|
21
|
-
* CHANGE: Won't define accessor methods if methods with the same
|
22
|
-
name already exist.
|
23
|
-
* ADDED: all_instance_variables method (for no metaclasses)
|
24
|
-
* ADDED: Explicit attic_variable_set and attic_variable_get methods
|
25
|
-
|
26
|
-
|
27
|
-
#### 0.4.0 (2009-07-17) ###############################
|
28
|
-
|
29
|
-
* ADDED: Support for objects that don't have metaclasses:
|
30
|
-
Currently: Symbols, Fixnum
|
31
|
-
* CHANGE: Objects with no metaclass raise NoMetaClass exception.
|
32
|
-
|
33
|
-
|
34
|
-
#### 0.3.1 (2009-07-13) ###############################
|
35
|
-
|
36
|
-
CRIPES! I'd forgotten to update the gemspec.
|
37
|
-
|
38
|
-
#### 0.3 (2009-07-11) ###############################
|
39
|
-
|
40
|
-
NOTE: A complete re-write from 0.2
|
41
|
-
|
42
|
-
* FIXED: Now works on any Object except Symbol and Fixnum
|
43
|
-
* ADDED: attic_vars method
|
44
|
-
|
45
|
-
|
46
|
-
#### 0.2 (2009-07-08) ###############################
|
47
|
-
|
48
|
-
NOTE: Initial public release
|
data/README.rdoc
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
= Attic - v0.5
|
2
|
-
|
3
|
-
A place to hide private instance variables in your Ruby objects.
|
4
|
-
|
5
|
-
== Example
|
6
|
-
|
7
|
-
require 'attic'
|
8
|
-
|
9
|
-
class String
|
10
|
-
extend Attic
|
11
|
-
attic :timestamp
|
12
|
-
end
|
13
|
-
|
14
|
-
a = "anything"
|
15
|
-
a.timestamp = "1980-11-18"
|
16
|
-
a.instance_variables # => []
|
17
|
-
a.timestamp # 1980-11-18
|
18
|
-
|
19
|
-
a.attic_variables # => [:timestamp]
|
20
|
-
|
21
|
-
a.attic_variable_set :tags, [:a, :b, :c]
|
22
|
-
a.attic_variable_get :tags # [:a, :b, :c]
|
23
|
-
|
24
|
-
a.attic_variables # => [:timestamp, :tags]
|
25
|
-
|
26
|
-
== Some objects have no metaclasses
|
27
|
-
|
28
|
-
Symbol and Fixnum objects do not have metaclasses so instance variables are hidden in the object itself.
|
29
|
-
|
30
|
-
|
31
|
-
== Installation
|
32
|
-
|
33
|
-
Via Rubygems, one of:
|
34
|
-
|
35
|
-
$ gem install attic
|
36
|
-
|
37
|
-
or via download:
|
38
|
-
* attic-latest.tar.gz[http://github.com/delano/attic/tarball/latest]
|
39
|
-
* attic-latest.zip[http://github.com/delano/attic/zipball/latest]
|
40
|
-
|
41
|
-
|
42
|
-
== Credits
|
43
|
-
|
44
|
-
* Delano (@solutious.com)
|
45
|
-
|
46
|
-
== License
|
47
|
-
|
48
|
-
See: LICENSE.txt
|