ure 0.0.6 → 0.0.7

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/lib/ure/version.rb +1 -1
  4. data/lib/ure.rb +1 -2
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb5bb37a896ac67dd73e2e69c9836da2a3c58917
4
- data.tar.gz: f9fe526891f4922e835198fe603076c23a163d4a
3
+ metadata.gz: f2564d468cfb86fb5d089b916fb4f848f6e08365
4
+ data.tar.gz: 012018bf3ff59f6b2931997083a1ed6133efc0bb
5
5
  SHA512:
6
- metadata.gz: 0f0a755a6c0b538ec984bd7a8e88f801f9d02882f41503ac138a1868b2ee312d295ba7f3e167f839ffbe664f96e019cca684bbf6b3f5e5eaea54d05ffc9e2da3
7
- data.tar.gz: c62e15bdb9a0143732ed61e7b3be868bb2097578f0fead0d33e939d3cd88f1bd8c9e4aa8b9d519890a8195aabf322bc6969867a4d8b388dcd5c9028782fb1449
6
+ metadata.gz: d8e2fccf99d37a11d111390071b1ec933b3604ed6330cae2b34b62bdf8417139b4d03419fac4531188566175e95cd7604d6e5fae2f71ce8d5bad508253a763ba
7
+ data.tar.gz: 62e93a510b5253b021d2351411fbe9ed28b31413cc5abb0c8a00468ef59ddbdd16a970a855503ad58ccd6ba99aff3383a7e4dda0658b0be8bb499a1357807cf9
data/README.md CHANGED
@@ -74,7 +74,7 @@ Ure will try to implement as public methods whatever keys you pass in as a hash.
74
74
 
75
75
  Any methods on `Struct` that require indexing or care about the position of arguments have been depricated or changed to only care about the name of the argument passed.
76
76
 
77
- Ure's current public methods are:
77
+ Ure's current public instance methods are:
78
78
 
79
79
  `#==()` - Evaluates the fields. Returns true if the passed argument is an Ure class and they are the same members and values.
80
80
 
@@ -96,6 +96,8 @@ Ure's current public methods are:
96
96
 
97
97
  `#values_at` - Takes one or more keys as arguments, and returns an array of the corresponding values.
98
98
 
99
+ `#class` - Returns `Ure`
100
+
99
101
  ## Development
100
102
 
101
103
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
data/lib/ure/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Ure < BasicObject
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/ure.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  require "ure/version"
2
2
  class Ure < BasicObject
3
3
  include ::Enumerable
4
-
5
4
  def self.members
6
5
  @members
7
6
  end
@@ -9,7 +8,6 @@ class Ure < BasicObject
9
8
  def self.new(*members, &body)
10
9
  ::Class.new(self) do
11
10
  instance_variable_set(:@members, members)
12
- instance_variable_set(:@class, ::Ure.class)
13
11
 
14
12
  def self.new(*args, &block)
15
13
  object = allocate
@@ -44,6 +42,7 @@ class Ure < BasicObject
44
42
 
45
43
  @values = fields
46
44
  @fields = fields
45
+ @class = ::Ure
47
46
  end
48
47
 
49
48
  attr_reader :fields, :class
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clayton Flesher