sentimeta 0.1.21 → 0.1.22
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/config/endpoint.yml +2 -2
- data/lib/sentimeta/version.rb +1 -1
- data/spec/rest_client_spec.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a9728aa52502080efdbde6579fea13acde0c413
|
4
|
+
data.tar.gz: 420366b15a3750408ebb3f7d9d0251c395ff88e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdee54430b928171b4e3ab4aef69c19f56b3142e94c80ae208985c2c8d6535c4f077331533a8bf8a43822fafe083c50fb8a4b6985aee148608ee9f4387dabf25
|
7
|
+
data.tar.gz: 54fb0e605321fbc5783e93836d705b0a89e2d51955fd031c29b4b24879a4450154fdcd2c397140526d29d512c4adf9229a521f9b6c2594f2d16c67d26b4d6036
|
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://staging-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://staging-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://staging-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://staging-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://staging-api.sentimeta.com/api/v1/hotels/catalog'))
|
49
49
|
.and_call_original
|
50
50
|
|
51
51
|
subject.fetch 'catalog', sphere: 'hotels'
|