sentimeta 0.1.20 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/endpoint.yml +2 -2
- data/lib/sentimeta/version.rb +1 -1
- data/spec/rest_client_spec.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf698f74f813268cf21427474b4200a35c06f4a3
|
4
|
+
data.tar.gz: beeb1b8646ebd250f563ba786a6bc6cbc06d6e6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b35802a495948856e711dee3d5fa19464574dc9926f7c017575315b422a790120f4b1a40db3a60a30a84fc9d1af19eb44b213135180ac70ecc4ea10e6e811325
|
7
|
+
data.tar.gz: 3193d7ffde424aaed2de5a35c0782bcc155ed1426900dfb1885e41a533c5dbf632a6e09d67fe457ef02091e16444a02de3935e86a59e023a6a670b9ee9002bfd
|
data/config/endpoint.yml
CHANGED
data/lib/sentimeta/version.rb
CHANGED
data/spec/rest_client_spec.rb
CHANGED
@@ -12,25 +12,25 @@ describe Sentimeta::RestClient, :vcr do
|
|
12
12
|
it 'works without options' do
|
13
13
|
expect(
|
14
14
|
subject.generate_uri(:spheres)
|
15
|
-
).to eq 'http://
|
15
|
+
).to eq 'http://stagig-api.sentimeta.com/api/v1/spheres'
|
16
16
|
end
|
17
17
|
|
18
18
|
it 'generate right uri for attributes' do
|
19
19
|
expect(
|
20
20
|
subject.generate_uri(:attributes, filter: 'actors', sphere: 'movies')
|
21
|
-
).to eq 'http://
|
21
|
+
).to eq 'http://stagig-api.sentimeta.com/api/v1/movies/attributes/actors'
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'generate right uri for prices' do
|
25
25
|
expect(
|
26
26
|
subject.generate_uri(:prices, provider: 'booking', sphere: 'hotels')
|
27
|
-
).to eq 'http://
|
27
|
+
).to eq 'http://stagig-api.sentimeta.com/api/v1/hotels/prices/booking'
|
28
28
|
end
|
29
29
|
|
30
30
|
it 'puts id at the end of URI' do
|
31
31
|
expect(
|
32
32
|
subject.generate_uri(:prices, id: 12345, provider: 'booking', sphere: 'hotels')
|
33
|
-
).to eq 'http://
|
33
|
+
).to eq 'http://stagig-api.sentimeta.com/api/v1/hotels/prices/booking/12345'
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
@@ -45,7 +45,7 @@ describe Sentimeta::RestClient, :vcr do
|
|
45
45
|
|
46
46
|
it 'sends right request' do
|
47
47
|
expect(::RestClient::Request).to receive(:execute)
|
48
|
-
.with(hash_including(url: 'http://
|
48
|
+
.with(hash_including(url: 'http://stagig-api.sentimeta.com/api/v1/hotels/catalog'))
|
49
49
|
.and_call_original
|
50
50
|
|
51
51
|
subject.fetch 'catalog', sphere: 'hotels'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sentimeta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Shpakov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.
|
159
|
+
rubygems_version: 2.4.3
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: Sentimeta API client
|