intercom 0.0.9 → 0.0.10
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/lib/intercom/version.rb
CHANGED
@@ -123,6 +123,12 @@ describe "Intercom::User" do
|
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
126
|
+
it "allows setting dates to nil without converting them to 0" do
|
127
|
+
Intercom.expects(:post).with("users", {"email" => "jo@example.com", "created_at" => nil}).returns({"email" => "jo@example.com"})
|
128
|
+
user = Intercom::User.create("email" => "jo@example.com", "created_at" => nil)
|
129
|
+
user.created_at.must_equal nil
|
130
|
+
end
|
131
|
+
|
126
132
|
it "sets/gets rw keys" do
|
127
133
|
params = {"email" => "me@example.com", :user_id => "abc123", "name" => "Bob Smith", "last_seen_ip" => "1.2.3.4", "last_seen_user_agent" => "ie6", "created_at" => Time.now}
|
128
134
|
user = Intercom::User.new(params)
|
@@ -152,4 +158,4 @@ describe "Intercom::User" do
|
|
152
158
|
Intercom::User.expects(:find).with(:user_id => "abc123")
|
153
159
|
Intercom::User.find_by_user_id("abc123")
|
154
160
|
end
|
155
|
-
end
|
161
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: intercom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
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-01-
|
14
|
+
date: 2013-01-18 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: minitest
|
@@ -135,3 +135,4 @@ test_files:
|
|
135
135
|
- spec/unit/intercom/user_spec.rb
|
136
136
|
- spec/unit/intercom_spec.rb
|
137
137
|
- spec/unit/spec_helper.rb
|
138
|
+
has_rdoc:
|