zooppa_api_v3 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 430a1b73bfa135925af4e18bae421799e7fd3000
4
- data.tar.gz: a480120bb72242a58b30dde638554ce3672a3d49
3
+ metadata.gz: 6b914f28dee24250f6e4573a5cf58a364caa3e56
4
+ data.tar.gz: 86058c25f05208e4fc91dd1d4fd680ba1ecceec8
5
5
  SHA512:
6
- metadata.gz: 3f1571dcea231ded24b1e759c95a5f01f7787e01227f93a4e77d92c92f9dc1ae3e07b81ef3d9fbcc44c89b48d0af392884b80eab8d236ab66d4142ea042ae149
7
- data.tar.gz: 999e44fc12e45a7561e2692366e9c9070885af90712fdcbc11fecf3c133a3532392e4b34bf9b2d34aca6187e34d47dd7c9e04e7da56ff72008f7c198386f4b35
6
+ metadata.gz: e1f4fbeaa6c8b9ed615410158c7dc4c1b29bc2ac40775d04b8a455bca51059103f2bd7fe8a05c2b7839ac52e51237c5069d5f88dc352d9a72b730c6f8bc946cf
7
+ data.tar.gz: 7ffa318a30ba36c6a35321bb2b06c9c99ec534792729dd38bf3e483343ff25f34152d9dc35df163c91529d0d5a25abd6cb9f870f48c5fc8fe404952c0c8d64da
data/lib/zooppa_api_v3.rb CHANGED
@@ -106,6 +106,7 @@ class ZooppaApiV3
106
106
  # TODO: find a better solution for that
107
107
  def clean_up
108
108
  @filter_params = nil
109
+ @id = nil
109
110
  end
110
111
 
111
112
  # Builds the URL (adds an id of provided)
@@ -102,6 +102,10 @@ describe ZooppaApiV3 do
102
102
  context '#execute' do
103
103
  subject(:zooppa_api) { ZooppaApiV3.new }
104
104
 
105
+ before :each do
106
+ allow(zooppa_api).to receive(:decrypt_token).and_return('token')
107
+ end
108
+
105
109
  context 'Given .find(1) is called with .execute(false)' do
106
110
  it 'it calls Restclient.send with :get as method and correct url' do
107
111
  expect(RestClient).to receive(:send).with(:get, 'http://localhost:3000/api/v3/ads/1.json').and_return({}.to_json)
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "zooppa_api_v3"
8
- spec.version = '0.0.3'
8
+ spec.version = '0.0.4'
9
9
  spec.authors = ["Ulrich Soeffing"]
10
10
  spec.email = ["ulrich_soeffing@gmx.de"]
11
11
  spec.description = "Wrapper for the Zooppa api v3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zooppa_api_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ulrich Soeffing
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-11 00:00:00.000000000 Z
11
+ date: 2015-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler