attic 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba2c5122967296a766b52ac046951567c4daf3845596533f297936bb094155d4
4
- data.tar.gz: ad4d86d50d03b6b48c8f05f5cf06c27ed2df348a2adf7ef3b038b4efed3c9337
3
+ metadata.gz: f7f9e75dae934f9f5bdc8c760837499eb758b4e4495aa01b6a5b9e0d10460394
4
+ data.tar.gz: b88385f6f1a5003557b4b8a93ab5c5c0f58133d2e3eb24646a3bee986342fcc7
5
5
  SHA512:
6
- metadata.gz: d884ee454dd855cb09315b995c0705bbc4c327dc5ea397589e3b8e6143ed54d7cfb36bf01f62ba99404a62243523a1ee4c35c3d95ca53b319a5acbecab64d9b5
7
- data.tar.gz: 6e2391ebb5e6ff55b1c27c475bacadbb9c67f5d1e770b79e762dfdf2cb9bc8a4c982b370cacb2ca2436d9f291101eef733a2af11b9727436f51415876f8af33f
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.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
@@ -1,6 +1,8 @@
1
1
 
2
2
  # Attic: A special place to store instance variables.
3
3
 
4
+ require "set"
5
+
4
6
  class NoMetaClass < RuntimeError
5
7
  end
6
8
 
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 = '1.0.0'.freeze unless defined?(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('@attic_variables')
225
- a ||= attic.instance_variable_set('@attic_variables', [])
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 'irb/completion'
239
+ require "irb/completion"
240
240
  IRB.conf[:PROMPT][:ATTIC] = {
241
241
  PROMPT_I: "attic> ",
242
242
  PROMPT_S: "attic%l> ",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum