value_object_struct 0.6.0 → 0.6.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -60,6 +60,8 @@ module ValueObjectStruct
60
60
 
61
61
  private #{attributes.map {|attr| ":" + attr.to_s + "=" }.join(", ")}
62
62
 
63
+ undef_method :to_a
64
+
63
65
  RUBY
64
66
  end
65
67
  end
@@ -98,6 +98,10 @@ describe ValueObjectStruct do
98
98
  instance.attribute(:foo).should == "bar"
99
99
  end
100
100
 
101
+ it "does not provide #to_a" do
102
+ instance.should_not respond_to(:to_a)
103
+ end
104
+
101
105
  end
102
106
 
103
107
  context "given an instance without initialized attributes" do
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "value_object_struct"
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Riley Lynch"]
12
- s.date = "2013-03-13"
12
+ s.date = "2013-03-14"
13
13
  s.description = "Immutable value objects using Ruby Structs"
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: value_object_struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-13 00:00:00.000000000 Z
12
+ date: 2013-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  segments:
94
94
  - 0
95
- hash: -311494150749971462
95
+ hash: -2489092315619876712
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements: