agrid-client 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.
@@ -0,0 +1,150 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api-staging.agrid.com.br/v1/cities?state=pr
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - agrid_client/0.0.3/ruby
12
+ Content-Type:
13
+ - application/json
14
+ AGRID-APP-ID:
15
+ - 938e3405
16
+ AGRID-APP-KEY:
17
+ - 67e19c9772662859347365530aaf77be
18
+ Accept:
19
+ - application/json
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - Cowboy
27
+ Date:
28
+ - Fri, 29 Apr 2016 17:03:09 GMT
29
+ Connection:
30
+ - keep-alive
31
+ X-Frame-Options:
32
+ - SAMEORIGIN
33
+ X-Xss-Protection:
34
+ - 1; mode=block
35
+ X-Content-Type-Options:
36
+ - nosniff
37
+ Content-Type:
38
+ - application/json; charset=utf-8
39
+ Etag:
40
+ - W/"8bf54cf160ceff4f738de904b7a48ca0"
41
+ Cache-Control:
42
+ - max-age=0, private, must-revalidate
43
+ X-Request-Id:
44
+ - 3a36d116-4067-4c27-82e5-6b6d41e8942d
45
+ X-Runtime:
46
+ - '0.215425'
47
+ Transfer-Encoding:
48
+ - chunked
49
+ Via:
50
+ - 1.1 vegur
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: !binary |-
54
+ W3siaWQiOiJhcHVjYXJhbmEiLCJ0aXRsZSI6IkFwdWNhcmFuYSIsInN0YXRl
55
+ Ijp7ImFjcm9ueW0iOiJQUiIsInRpdGxlIjoiUGFyYW7DoSJ9fSx7ImlkIjoi
56
+ c2FvLWpvc2UtZG9zLXBpbmhhaXMiLCJ0aXRsZSI6IlPDo28gSm9zw6kgZG9z
57
+ IFBpbmhhaXMiLCJzdGF0ZSI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IjoiTWFyZWNoYWwgQ8OibmRpZG8gUm9uZG9u
139
+ Iiwic3RhdGUiOnsiYWNyb255bSI6IlBSIiwidGl0bGUiOiJQYXJhbsOhIn19
140
+ LHsiaWQiOiJwYXJhbmFndWEiLCJ0aXRsZSI6IlBhcmFuYWd1w6EiLCJzdGF0
141
+ ZSI6eyJhY3JvbnltIjoiUFIiLCJ0aXRsZSI6IlBhcmFuw6EifX0seyJpZCI6
142
+ ImlyYXRpIiwidGl0bGUiOiJJcmF0aSIsInN0YXRlIjp7ImFjcm9ueW0iOiJQ
143
+ UiIsInRpdGxlIjoiUGFyYW7DoSJ9fSx7ImlkIjoicXVpdGFuZGluaGEiLCJ0
144
+ aXRsZSI6IlF1aXRhbmRpbmhhIiwic3RhdGUiOnsiYWNyb255bSI6IlBSIiwi
145
+ dGl0bGUiOiJQYXJhbsOhIn19XQ==
146
+ http_version: '1.1'
147
+ adapter_metadata:
148
+ effective_url: http://api-staging.agrid.com.br/v1/cities?state=pr
149
+ recorded_at: Fri, 29 Apr 2016 17:03:10 GMT
150
+ recorded_with: VCR 3.0.1
@@ -58,6 +58,7 @@ module AgridClient
58
58
  else
59
59
  data = nil
60
60
  end
61
+
61
62
  return data, response.code, response.headers
62
63
  end
63
64
 
@@ -95,8 +95,8 @@ module AgridClient
95
95
  attr_accessor :app_credentials
96
96
 
97
97
  def initialize
98
- @scheme = 'https'
99
- @host = 'api.agridxpto.website'
98
+ @scheme = 'http'
99
+ @host = 'api-staging.agrid.com.br'
100
100
  @base_path = '/v1'
101
101
  @api_key = {}
102
102
  @api_key_prefix = {}
@@ -17,13 +17,7 @@ module AgridClient
17
17
  class CityWithFullState
18
18
  include SwaggerModel
19
19
 
20
- # Unique Id
21
- attr_accessor :id
22
-
23
- # City name
24
- attr_accessor :title
25
-
26
- attr_accessor :state
20
+ attr_accessor :id, :title, :state
27
21
 
28
22
  # Attribute mapping from ruby-style variable name to JSON key.
29
23
  def self.attribute_map
@@ -52,17 +46,16 @@ module AgridClient
52
46
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
53
47
 
54
48
  if attributes[:'id']
55
- self.id = attributes[:'id']
49
+ @id = attributes[:'id']
56
50
  end
57
51
  if attributes[:'title']
58
- self.title = attributes[:'title']
52
+ @title = attributes[:'title']
59
53
  end
60
54
  if attributes[:'state']
61
- self.state = attributes[:'state']
55
+ @state = attributes[:'state']
62
56
  end
63
57
  end
64
58
 
65
- # Checks equality by comparing each attribute.
66
59
  # @param [Object] Object to be compared
67
60
  def ==(o)
68
61
  return true if self.equal?(o)
@@ -39,8 +39,8 @@ module AgridClient
39
39
  :'location' => :'Location',
40
40
  :'addresses' => :'Array<Address>',
41
41
  :'phones' => :'Array<Phone>',
42
- :'logo_image' => :'String',
43
- :'cover_image' => :'String',
42
+ :'logo' => :'String',
43
+ :'cover' => :'String',
44
44
  :'data_checks' => :'Array<DataCheck>',
45
45
  :'rankings' => :'Array<CompanyRanking>',
46
46
  :'rating' => 'Float'
@@ -1,3 +1,3 @@
1
1
  module AgridClient
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -0,0 +1,31 @@
1
+ require "spec_helper"
2
+
3
+ describe 'CitiesApi' do
4
+ let(:subject) { AgridClient::CitiesApi.new(api_client) }
5
+
6
+ describe "#cities_get" do
7
+ context "without parameters" do
8
+ it "return all cities" do
9
+ response = []
10
+ VCR.use_cassette('cities', record: :new_episodes) do
11
+ response = subject.cities_get
12
+ end
13
+ type_array = response.map(&:class).uniq
14
+
15
+ expect(response).to be_an(Array)
16
+ expect(type_array).to eq([AgridClient::CityWithFullState])
17
+ end
18
+ end
19
+
20
+ context "with state param" do
21
+ it "return " do
22
+ response = []
23
+ VCR.use_cassette('cities_with_query') do
24
+ response = subject.cities_get(state: 'pr')
25
+ end
26
+ states = response.map { |r| r.state.acronym }.uniq
27
+ expect(states).to eq(['PR'])
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,5 @@
1
+ require "spec_helper"
2
+
3
+ describe 'ServicesApi' do
4
+ let(:subject) { AgridClient::ServicesApi.new(AgridClient::ApiClient.new) }
5
+ end
@@ -15,8 +15,44 @@ describe 'ApiClient' do
15
15
  end
16
16
 
17
17
  context "with configuration argument" do
18
+ let(:configuration) { AgridClient::Configuration.new { |c| c.host = 'http://test.com' } }
19
+ let(:subject) { AgridClient::ApiClient.new(configuration) }
18
20
  it "initialize with configuration received" do
19
-
21
+ expect(subject.config.host).to eq('test.com')
22
+ end
23
+ end
24
+ end
25
+
26
+ describe "#call_api" do
27
+ it 'make a call to API' do
28
+ VCR.use_cassette('services') do
29
+ response = subject.call_api('GET','services')
30
+ expect(response).to be_an(Array)
31
+ end
32
+ end
33
+
34
+ context "with options" do
35
+ it "make a call to API with options" do
36
+ subject.call_api('GET','services',
37
+ header_params: {'A-HEADER': 'olar'},
38
+ query_params: {key: 'value'})
39
+ expect(a_get('services').with(
40
+ headers: {'A-HEADER': 'olar'},
41
+ query: {key: 'value'})).to have_been_made
42
+ end
43
+ end
44
+
45
+ context "with return type" do
46
+ context "valid primitive type" do
47
+ before(:each) do
48
+ stub_get('services').to_return(body: '[1,2,3]',
49
+ headers: {'Content-Type': 'application/json'})
50
+ end
51
+
52
+ it "return deserialized response" do
53
+ expect(subject.call_api('GET', 'services',
54
+ {return_type: 'Array<Integer>'})[0]).to eq([1,2,3])
55
+ end
20
56
  end
21
57
  end
22
58
  end
@@ -0,0 +1 @@
1
+ [{"id":"belem-pa","title":"Belém","state":{"acronym":"PA","title":"Pará"}},{"id":"sapucaia","title":"Sapucaia","state":{"acronym":"PA","title":"Pará"}},{"id":"abaetetuba","title":"Abaetetuba","state":{"acronym":"PA","title":"Pará"}}]
File without changes
@@ -1,4 +1,10 @@
1
1
  require 'agrid_client'
2
+ require 'vcr'
3
+
4
+ VCR.configure do |config|
5
+ config.cassette_library_dir = "fixtures/vcr_cassettes"
6
+ config.hook_into :typhoeus
7
+ end
2
8
 
3
9
  RSpec.configure do |config|
4
10
  config.expect_with :rspec do |expectations|
@@ -14,3 +20,38 @@ RSpec.configure do |config|
14
20
  mocks.verify_partial_doubles = true
15
21
  end
16
22
  end
23
+
24
+ def api_client
25
+ conf = AgridClient::Configuration.new do |c|
26
+ c.app_credentials = {id: '938e3405', key: '67e19c9772662859347365530aaf77be'}
27
+ end
28
+ AgridClient::ApiClient.new(conf)
29
+ end
30
+
31
+ def api_url(url)
32
+ url =~ /^http/ ? url : 'http://api-staging.agrid.com.br/v1/' + url
33
+ end
34
+
35
+ def a_get(url)
36
+ a_request(:get, api_url(url))
37
+ end
38
+
39
+ def a_post(url)
40
+ a_request(:post, api_url(url))
41
+ end
42
+
43
+ def stub_get(url)
44
+ stub_request(:get, api_url(url))
45
+ end
46
+
47
+ def stub_post(url)
48
+ stub_request(:post, api_url(url))
49
+ end
50
+
51
+ def fixture_path
52
+ File.expand_path('../fixtures', __FILE__)
53
+ end
54
+
55
+ def fixture(file)
56
+ File.new(fixture_path + '/' + file)
57
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agrid-client
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
  - Guilherme B. Moretti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-27 00:00:00.000000000 Z
11
+ date: 2016-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -52,6 +52,48 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.4'
55
+ - !ruby/object:Gem::Dependency
56
+ name: vcr
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: webmock
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
55
97
  description: ''
56
98
  email:
57
99
  - guilhermebmoretti@gmail.com
@@ -63,6 +105,8 @@ files:
63
105
  - Gemfile.lock
64
106
  - README.md
65
107
  - agrid_client.gemspec
108
+ - fixtures/vcr_cassettes/cities.yml
109
+ - fixtures/vcr_cassettes/cities_with_query.yml
66
110
  - lib/agrid_client.rb
67
111
  - lib/agrid_client/api/cities_api.rb
68
112
  - lib/agrid_client/api/companies_api.rb
@@ -100,7 +144,11 @@ files:
100
144
  - lib/agrid_client/models/service.rb
101
145
  - lib/agrid_client/models/state.rb
102
146
  - lib/agrid_client/version.rb
147
+ - spec/api/cities_api_spec.rb
148
+ - spec/api/services_api_spec.rb
103
149
  - spec/api_client_spec.rb
150
+ - spec/fixtures/cities.json
151
+ - spec/fixtures/services.json
104
152
  - spec/spec_helper.rb
105
153
  homepage: http://agrid.com.br
106
154
  licenses:
@@ -127,5 +175,9 @@ signing_key:
127
175
  specification_version: 4
128
176
  summary: Ruby client for Agrid's prices API
129
177
  test_files:
178
+ - spec/api/services_api_spec.rb
179
+ - spec/api/cities_api_spec.rb
130
180
  - spec/api_client_spec.rb
181
+ - spec/fixtures/services.json
182
+ - spec/fixtures/cities.json
131
183
  - spec/spec_helper.rb