structure 0.12.0 → 0.12.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,3 @@
1
- require 'structure'
2
-
3
1
  unless Object.const_defined?(:JSON) and ::JSON.const_defined?(:JSON_LOADED) and
4
2
  ::JSON::JSON_LOADED
5
3
  require 'json'
@@ -2,7 +2,7 @@ require 'yaml'
2
2
 
3
3
  class Structure
4
4
 
5
- # An enumurable static structure, sourced from a yaml file.
5
+ # An enumerable static structure, sourced from a yaml file.
6
6
  module Static
7
7
  def self.included(base)
8
8
  base.key(:id, Integer)
@@ -1,3 +1,3 @@
1
1
  class Structure
2
- VERSION = '0.12.0'
2
+ VERSION = '0.12.1'
3
3
  end
data/lib/structure.rb CHANGED
@@ -12,7 +12,6 @@ class Structure
12
12
  TYPES = [Array, Boolean, Float, Hash, Integer, String, Structure]
13
13
 
14
14
  class << self
15
-
16
15
  # A shortcut to define an attribute that represents an array of other
17
16
  # objects, possibly structures.
18
17
  def embeds_many(name)
@@ -145,10 +144,10 @@ class Structure
145
144
 
146
145
  private
147
146
 
148
- def initialize_attributes
149
- @attributes = {}
150
- self.class.default_attributes.each do |key, value|
151
- @attributes[key] = value.is_a?(Array) ? value.dup : value
152
- end
147
+ def initialize_attributes
148
+ @attributes = {}
149
+ self.class.default_attributes.each do |key, value|
150
+ @attributes[key] = value.is_a?(Array) ? value.dup : value
153
151
  end
152
+ end
154
153
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 12
8
- - 0
9
- version: 0.12.0
8
+ - 1
9
+ version: 0.12.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paper Cavalier