rhogallery 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rhogallery (0.1.0)
4
+ rhogallery (0.1.1)
5
5
  json (~> 1.5.4)
6
6
  rest-client (~> 1.6.6)
7
7
 
@@ -67,7 +67,7 @@ class RhoGallery::Base
67
67
  if @attributes[att.to_sym]
68
68
  @attributes[att.to_sym] = arguments.to_s
69
69
  else
70
- super
70
+ @attributes.merge!({att.to_sym => arguments.to_s})
71
71
  end
72
72
  else
73
73
  att = @attributes[method_sym]
@@ -1,3 +1,3 @@
1
1
  module Rhogallery
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -65,8 +65,9 @@ describe RhoGallery::Consumer do
65
65
  @consumer.login = "the_new_login"
66
66
  @consumer.login.should == "the_new_login"
67
67
  end
68
- it "should raise an error when an set attribute doesn't exist" do
69
- lambda { @consumer.wrong_attribute = "some value" }.should raise_error
68
+ it "shouldn't raise an error when an set attribute doesn't exist, and should add it to attributes" do
69
+ @consumer.some_attribute = "some value"
70
+ @consumer.some_attribute.should == "some value"
70
71
  end
71
72
  end
72
73
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhogallery
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rhomobile
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-26 00:00:00 Z
18
+ date: 2011-10-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime