activity_consumer 0.5.1 → 0.5.2

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.
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://user:secret@inoxio-cim.dev/activities.json?since=2013-06-12T20:00:00%2002:00
5
+ uri: http://user:secret@inoxio-cim.dev/activities.json?since=2013-06-12T20:00:00.000000%200200
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,7 +10,7 @@ module ActivityConsumer
10
10
  RemoteMyTestActivity.create(timestamp: Time.parse('2013-09-25T12:00:00+0200'), action: 'create', payload: {})
11
11
  RemoteMyTestActivity.create(timestamp: Time.parse('2013-09-24T14:00:00+0200'), action: 'create', payload: {})
12
12
 
13
- expect(ActivityConsumer::RemoteActivity.latest_timestamp).to eq(Time.parse('2013-09-25T12:00:00+02:00').iso8601)
13
+ expect(ActivityConsumer::RemoteActivity.latest_timestamp).to eq('2013-09-25T12:00:00.000000+0200')
14
14
  end
15
15
 
16
16
  it "has a short type" do
@@ -108,7 +108,7 @@ module ActivityConsumer
108
108
 
109
109
  it "uses a correctly formatted query parameter to get a delta" do
110
110
  RemoteFooActivity.create(timestamp: Time.parse('2013-09-25T12:00:00+0200'), action: 'create')
111
- expect(client.send(:request_params)).to eq('?since=2013-09-25T12:00:00+02:00')
111
+ expect(client.send(:request_params)).to eq('?since=2013-09-25T12:00:00.000000+0200')
112
112
  end
113
113
 
114
114
  it "fallsback to full import if there is no activity yet" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activity_consumer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Mangner