attic 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/attic.gemspec +1 -1
- data/lib/attic/errors.rb +2 -0
- data/lib/attic.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7f9e75dae934f9f5bdc8c760837499eb758b4e4495aa01b6a5b9e0d10460394
|
4
|
+
data.tar.gz: b88385f6f1a5003557b4b8a93ab5c5c0f58133d2e3eb24646a3bee986342fcc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aebe3c2d04df2fbc548414bfbce7e8e724db7191cf05f4282bd13746cc525c1934f8c784d3f179c12876c863cf7d80fa1257834516c40e392d6e9ed87ef3fe0
|
7
|
+
data.tar.gz: ef441853c477d295f7bddc0c2b03fd1043e2ae5b185fa60f4b5dfdb31f70803983e692b2865591a380efc842568b4837f32988333755c4e134114d986bb4332d
|
data/attic.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "attic"
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.1"
|
4
4
|
s.summary = "When in doubt, store it in the attic"
|
5
5
|
s.description = "Attic: a place to hide metadata about the class or variable itself (e.g. SHA hash summaries)."
|
6
6
|
s.authors = ["Delano Mandelbaum"]
|
data/lib/attic/errors.rb
CHANGED
data/lib/attic.rb
CHANGED
@@ -100,7 +100,7 @@ require_relative "attic/instance_methods"
|
|
100
100
|
# nil.attic.object_id #=> 800
|
101
101
|
#
|
102
102
|
module Attic
|
103
|
-
VERSION =
|
103
|
+
VERSION = "1.0.1".freeze unless defined?(VERSION)
|
104
104
|
|
105
105
|
# A convenince method at the class level for including
|
106
106
|
# ConstructMethods in the given object specifically.
|
@@ -221,8 +221,8 @@ module Attic
|
|
221
221
|
# String.attic_variables # => [:timestamp]
|
222
222
|
#
|
223
223
|
def attic_variables
|
224
|
-
a = attic.instance_variable_get(
|
225
|
-
a ||= attic.instance_variable_set(
|
224
|
+
a = attic.instance_variable_get("@attic_variables")
|
225
|
+
a ||= attic.instance_variable_set("@attic_variables", [])
|
226
226
|
a
|
227
227
|
end
|
228
228
|
|
@@ -236,7 +236,7 @@ end
|
|
236
236
|
|
237
237
|
# Add some candy when we're in irb
|
238
238
|
if defined?(IRB)
|
239
|
-
require
|
239
|
+
require "irb/completion"
|
240
240
|
IRB.conf[:PROMPT][:ATTIC] = {
|
241
241
|
PROMPT_I: "attic> ",
|
242
242
|
PROMPT_S: "attic%l> ",
|