pipejump 0.4.3 → 0.4.4
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.
@@ -122,6 +122,16 @@ module Pipejump
|
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
125
|
+
def respond_to_missing?(meth, include_private = false)
|
126
|
+
if meth.to_s[-1].chr == '=' and @attributes.has_key?(meth.to_s[0..-2])
|
127
|
+
true
|
128
|
+
elsif @attributes.has_key?(meth.to_s)
|
129
|
+
true
|
130
|
+
else
|
131
|
+
super
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
125
135
|
def klassname #:nodoc:
|
126
136
|
self.class.to_s.split('::').last.downcase
|
127
137
|
end
|
data/lib/pipejump/version.rb
CHANGED
@@ -44,6 +44,7 @@ describe Pipejump::Contact do
|
|
44
44
|
it "should correctly get and set attributes" do
|
45
45
|
["contact_id", "email", "id", "mobile", "name", "phone", 'private'].each do |key|
|
46
46
|
@contact1.attributes.keys.include?(key).should == true
|
47
|
+
@contact1.should respond_to(key.to_sym)
|
47
48
|
end
|
48
49
|
(@contact1.attributes.keys - ['organisation']).each do |attribute|
|
49
50
|
@contact1.send(attribute).should == @contact1.attributes[attribute]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pipejump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-02-19 00:00:00.000000000 Z
|
15
15
|
dependencies: []
|
16
16
|
description: Base API Ruby client
|
17
17
|
email: marcin@futuresimple.com
|