ripple 0.8.0.beta → 0.8.0.beta2
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/Rakefile +2 -2
- data/lib/ripple/attribute_methods.rb +1 -0
- data/spec/ripple/attribute_methods_spec.rb +5 -0
- metadata +7 -9
data/Rakefile
CHANGED
@@ -13,8 +13,8 @@ gemspec = Gem::Specification.new do |gem|
|
|
13
13
|
gem.authors = ["Sean Cribbs"]
|
14
14
|
gem.add_development_dependency "rspec", "~>2.0.0.beta.18"
|
15
15
|
gem.add_dependency "riak-client", version
|
16
|
-
gem.add_dependency "activesupport", "3.0.0
|
17
|
-
gem.add_dependency "activemodel", "3.0.0
|
16
|
+
gem.add_dependency "activesupport", "3.0.0"
|
17
|
+
gem.add_dependency "activemodel", "3.0.0"
|
18
18
|
|
19
19
|
files = FileList["**/*"]
|
20
20
|
files.exclude /\.DS_Store/
|
@@ -17,6 +17,7 @@ module Ripple
|
|
17
17
|
# Makes ActiveRecord-like attribute accessors based on your
|
18
18
|
# {Document}'s properties.
|
19
19
|
module AttributeMethods
|
20
|
+
include Translation
|
20
21
|
extend ActiveSupport::Concern
|
21
22
|
extend ActiveSupport::Autoload
|
22
23
|
include ActiveModel::AttributeMethods
|
@@ -171,4 +171,9 @@ describe Ripple::AttributeMethods do
|
|
171
171
|
@widget = Widget.new { |w| w.key = 'some-key' }
|
172
172
|
@widget.key.should == 'some-key'
|
173
173
|
end
|
174
|
+
|
175
|
+
it "should raise an argument error when assigning a non hash to attributes" do
|
176
|
+
@widget = Widget.new
|
177
|
+
lambda { @widget.attributes = nil }.should raise_error(ArgumentError)
|
178
|
+
end
|
174
179
|
end
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 8
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.8.0.
|
9
|
+
- beta2
|
10
|
+
version: 0.8.0.beta2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sean Cribbs
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-29 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -47,8 +47,8 @@ dependencies:
|
|
47
47
|
- 0
|
48
48
|
- 8
|
49
49
|
- 0
|
50
|
-
-
|
51
|
-
version: 0.8.0.
|
50
|
+
- beta2
|
51
|
+
version: 0.8.0.beta2
|
52
52
|
type: :runtime
|
53
53
|
version_requirements: *id002
|
54
54
|
- !ruby/object:Gem::Dependency
|
@@ -63,8 +63,7 @@ dependencies:
|
|
63
63
|
- 3
|
64
64
|
- 0
|
65
65
|
- 0
|
66
|
-
|
67
|
-
version: 3.0.0.rc2
|
66
|
+
version: 3.0.0
|
68
67
|
type: :runtime
|
69
68
|
version_requirements: *id003
|
70
69
|
- !ruby/object:Gem::Dependency
|
@@ -79,8 +78,7 @@ dependencies:
|
|
79
78
|
- 3
|
80
79
|
- 0
|
81
80
|
- 0
|
82
|
-
|
83
|
-
version: 3.0.0.rc2
|
81
|
+
version: 3.0.0
|
84
82
|
type: :runtime
|
85
83
|
version_requirements: *id004
|
86
84
|
description: ripple is an object-mapper library for Riak, the distributed database by Basho. It uses ActiveModel to provide an experience that integrates well with Rails 3 applications.
|