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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6168306613bb2d06e0f3aa0120cb19816dacbc3
4
- data.tar.gz: 7f3774c9ba5e107d35d327d6f362c21575569531
3
+ metadata.gz: bf698f74f813268cf21427474b4200a35c06f4a3
4
+ data.tar.gz: beeb1b8646ebd250f563ba786a6bc6cbc06d6e6a
5
5
  SHA512:
6
- metadata.gz: 4729be7f7803f539917049ef1e3d36207cfd06eaa726182e31c0c934a9f2b794f10f2c3a50a202283169a0af9620ae0d152e3deb566604db2d5c1576fd9182d1
7
- data.tar.gz: 4c6230cd901ace42e406da2474df0a03937138780215bcc82e9dbd942e17d70e93986d329ad923051a1dcbe6cf199835743ad201b2b8191ae5665a473549d933
6
+ metadata.gz: b35802a495948856e711dee3d5fa19464574dc9926f7c017575315b422a790120f4b1a40db3a60a30a84fc9d1af19eb44b213135180ac70ecc4ea10e6e811325
7
+ data.tar.gz: 3193d7ffde424aaed2de5a35c0782bcc155ed1426900dfb1885e41a533c5dbf632a6e09d67fe457ef02091e16444a02de3935e86a59e023a6a670b9ee9002bfd
data/config/endpoint.yml CHANGED
@@ -2,7 +2,7 @@ production:
2
2
  url: 'http://127.0.0.1/api/v1'
3
3
 
4
4
  staging:
5
- url: 'http://178.63.216.136/api/v1'
5
+ url: 'http://stagig-api.sentimeta.com/api/v1'
6
6
 
7
7
  test:
8
- url: 'http://178.63.216.136/api/v1'
8
+ url: 'http://stagig-api.sentimeta.com/api/v1'
@@ -1,3 +1,3 @@
1
1
  module Sentimeta
2
- VERSION = "0.1.20"
2
+ VERSION = "0.1.21"
3
3
  end
@@ -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://178.63.216.136/api/v1/spheres'
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://178.63.216.136/api/v1/movies/attributes/actors'
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://178.63.216.136/api/v1/hotels/prices/booking'
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://178.63.216.136/api/v1/hotels/prices/booking/12345'
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://178.63.216.136/api/v1/hotels/catalog'))
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.20
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-19 00:00:00.000000000 Z
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.2.2
159
+ rubygems_version: 2.4.3
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Sentimeta API client