facebook-stub 0.0.1.16 → 0.0.1.17

Sign up to get free protection for your applications and to get access to all the features.
data/bin/facebook-stub.js CHANGED
@@ -277,6 +277,7 @@
277
277
  } else if (/\//.test(path) && method == 'post') { // / for batch api updates
278
278
  var result = [];
279
279
  for(var i=0; i<params.batch.length; i++) {
280
+ var batchItem = params.batch[i];
280
281
  result.push(
281
282
  {
282
283
  "code":200,
@@ -300,7 +301,7 @@
300
301
  "name":"Pragma",
301
302
  "value":"no-cache"
302
303
  }],
303
- "body":"{\n \"id\": \""+randomPostId()+"\"\n}"
304
+ "body":"{\n \"id\": \"" + batchItem.relative_url.match("/(.*)/feed")[1] +'_'+randomPostId()+"\"\n}"
304
305
  }
305
306
  );
306
307
  }
@@ -277,6 +277,7 @@
277
277
  } else if (/\//.test(path) && method == 'post') { // / for batch api updates
278
278
  var result = [];
279
279
  for(var i=0; i<params.batch.length; i++) {
280
+ var batchItem = params.batch[i];
280
281
  result.push(
281
282
  {
282
283
  "code":200,
@@ -300,7 +301,7 @@
300
301
  "name":"Pragma",
301
302
  "value":"no-cache"
302
303
  }],
303
- "body":"{\n \"id\": \""+randomPostId()+"\"\n}"
304
+ "body":"{\n \"id\": \"" + batchItem.relative_url.match("/(.*)/feed")[1] +'_'+randomPostId()+"\"\n}"
304
305
  }
305
306
  );
306
307
  }
@@ -1,3 +1,3 @@
1
1
  module FacebookStub
2
- VERSION = "0.0.1.16"
2
+ VERSION = "0.0.1.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebook-stub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.16
4
+ version: 0.0.1.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -205,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
205
  version: '0'
206
206
  segments:
207
207
  - 0
208
- hash: -2620439283717056094
208
+ hash: 1547191697879294636
209
209
  required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  none: false
211
211
  requirements:
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  segments:
216
216
  - 0
217
- hash: -2620439283717056094
217
+ hash: 1547191697879294636
218
218
  requirements: []
219
219
  rubyforge_project: facebook-stub
220
220
  rubygems_version: 1.8.21