zooppa_api_v3 0.0.3 → 0.0.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.
- checksums.yaml +4 -4
- data/lib/zooppa_api_v3.rb +1 -0
- data/spec/zooppa_api_v3_spec.rb +4 -0
- data/zooppa_api_v3.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b914f28dee24250f6e4573a5cf58a364caa3e56
|
4
|
+
data.tar.gz: 86058c25f05208e4fc91dd1d4fd680ba1ecceec8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1f4fbeaa6c8b9ed615410158c7dc4c1b29bc2ac40775d04b8a455bca51059103f2bd7fe8a05c2b7839ac52e51237c5069d5f88dc352d9a72b730c6f8bc946cf
|
7
|
+
data.tar.gz: 7ffa318a30ba36c6a35321bb2b06c9c99ec534792729dd38bf3e483343ff25f34152d9dc35df163c91529d0d5a25abd6cb9f870f48c5fc8fe404952c0c8d64da
|
data/lib/zooppa_api_v3.rb
CHANGED
data/spec/zooppa_api_v3_spec.rb
CHANGED
@@ -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)
|
data/zooppa_api_v3.gemspec
CHANGED
@@ -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.
|
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.
|
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
|
+
date: 2015-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|