agrid-client 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1afaef5554ded35df8283b783c46f565e7fcc83
4
- data.tar.gz: bc63eb4b43bfdbdb81107746d703490db604e72f
3
+ metadata.gz: e9ccd80165bc762c93ec768963f0d5f70e4b9eeb
4
+ data.tar.gz: 255ce7578ce580ae0578d7506f38c745f16c6490
5
5
  SHA512:
6
- metadata.gz: 5dce1047cc1e6147b140694e8d60396538a8e443ca10d53ebb4c908bb381af9d4595bce47722808611bc166392390fb28e5f690c662832057538f12061bc1a1e
7
- data.tar.gz: d7386812fddd41251cf41ba06eca44fe0df9388d9dddff3b36d277494c8498955681c8afb494b705510cae2465f94fdc09e557d43ac0e5e2a2c39250f3c3f729
6
+ metadata.gz: 126fc9458e66a70533821488a227429f95e938cf00843555553aedf075f572a304b8b96fdc3fc7241e64c5a4e3f2cdc384f7799490650560c720b29c49957087
7
+ data.tar.gz: 79a22ce2b0657adaa877e8b0ff1cbb56ab32dbd2edf013de9232a27bf7a509ceee472d8251114f27bdcaea294d60ea42c4c3acbd906a600de0ec19a239bfbef6
data/Gemfile.lock CHANGED
@@ -2,27 +2,16 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  agrid-client (0.0.1)
5
- json (~> 1.4, >= 1.4.6)
6
- typhoeus (~> 0.2, >= 0.2.1)
5
+ json (~> 1.8)
6
+ typhoeus (~> 1.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ZenTest (4.11.0)
12
- addressable (2.4.0)
13
- autotest (4.4.6)
14
- ZenTest (>= 4.4.1)
15
- autotest-fsevent (0.2.11)
16
- sys-uname
17
- autotest-growl (0.2.16)
18
- autotest-rails-pure (4.1.2)
19
- crack (0.4.3)
20
- safe_yaml (~> 1.0.0)
21
11
  diff-lcs (1.2.5)
22
12
  ethon (0.8.1)
23
13
  ffi (>= 1.3.0)
24
14
  ffi (1.9.10)
25
- hashdiff (0.3.0)
26
15
  json (1.8.3)
27
16
  rspec (3.4.0)
28
17
  rspec-core (~> 3.4.0)
@@ -37,29 +26,15 @@ GEM
37
26
  diff-lcs (>= 1.2.0, < 2.0)
38
27
  rspec-support (~> 3.4.0)
39
28
  rspec-support (3.4.1)
40
- safe_yaml (1.0.4)
41
- sys-uname (1.0.2)
42
- ffi (>= 1.0.0)
43
- typhoeus (0.8.0)
29
+ typhoeus (1.0.1)
44
30
  ethon (>= 0.8.0)
45
- vcr (2.9.3)
46
- webmock (1.24.3)
47
- addressable (>= 2.3.6)
48
- crack (>= 0.3.2)
49
- hashdiff
50
31
 
51
32
  PLATFORMS
52
33
  ruby
53
34
 
54
35
  DEPENDENCIES
55
36
  agrid-client!
56
- autotest (~> 4.4, >= 4.4.6)
57
- autotest-fsevent (~> 0.2, >= 0.2.11)
58
- autotest-growl (~> 0.2, >= 0.2.16)
59
- autotest-rails-pure (~> 4.1, >= 4.1.2)
60
- rspec (~> 3.2, >= 3.2.0)
61
- vcr (~> 2.9, >= 2.9.3)
62
- webmock (~> 1.6, >= 1.6.2)
37
+ rspec (~> 3.4)
63
38
 
64
39
  BUNDLED WITH
65
40
  1.11.2
data/agrid_client.gemspec CHANGED
@@ -14,16 +14,10 @@ Gem::Specification.new do |s|
14
14
  s.license = "MIT"
15
15
 
16
16
 
17
- s.add_runtime_dependency 'typhoeus', '~> 0.2', '>= 0.2.1'
18
- s.add_runtime_dependency 'json', '~> 1.4', '>= 1.4.6'
17
+ s.add_runtime_dependency 'typhoeus', '~> 1.0'
18
+ s.add_runtime_dependency 'json', '~> 1.8'
19
19
 
20
- s.add_development_dependency 'rspec', '~> 3.2', '>= 3.2.0'
21
- s.add_development_dependency 'vcr', '~> 2.9', '>= 2.9.3'
22
- s.add_development_dependency 'webmock', '~> 1.6', '>= 1.6.2'
23
- s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
24
- s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
25
- s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
26
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.11'
20
+ s.add_development_dependency 'rspec', '~> 3.4'
27
21
 
28
22
  s.files = `find *`.split("\n").uniq.sort.select{ |f| !f.empty? && !(f.to_s =~ /^.*\.gem$/) }
29
23
  s.test_files = `find spec/*`.split("\n")
data/lib/agrid_client.rb CHANGED
@@ -29,8 +29,8 @@ require 'agrid_client/models/data_check'
29
29
  require 'agrid_client/models/filter'
30
30
  require 'agrid_client/models/image'
31
31
  require 'agrid_client/models/filter_category'
32
- require 'agrid_client/models/inline_response_200'
33
- require 'agrid_client/models/inline_response_200_1'
32
+ require 'agrid_client/models/paginated_companies'
33
+ require 'agrid_client/models/paginated_quotes'
34
34
  require 'agrid_client/models/item'
35
35
  require 'agrid_client/models/lead'
36
36
  require 'agrid_client/models/lead_input'
@@ -1,17 +1,3 @@
1
- =begin
2
- Agrid Quotes API
3
-
4
-
5
-
6
- OpenAPI spec version: 1.0
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
-
11
- =end
12
-
13
- require "uri"
14
-
15
1
  module AgridClient
16
2
  class CitiesApi
17
3
  attr_accessor :api_client
@@ -20,7 +6,7 @@ module AgridClient
20
6
  @api_client = api_client
21
7
  end
22
8
 
23
- #
9
+ #
24
10
  # Returns all cities supported by at least one company
25
11
  # @param [Hash] opts the optional parameters
26
12
  # @option opts [String] :state State acronym to filter cities by state
@@ -30,7 +16,7 @@ module AgridClient
30
16
  return data
31
17
  end
32
18
 
33
- #
19
+ #
34
20
  # Returns all cities supported by at least one company
35
21
  # @param [Hash] opts the optional parameters
36
22
  # @option opts [String] :state State acronym to filter cities by state
@@ -39,7 +25,7 @@ module AgridClient
39
25
  if @api_client.config.debugging
40
26
  @api_client.config.logger.debug "Calling API: CitiesApi#cities_get ..."
41
27
  end
42
-
28
+
43
29
  # resource path
44
30
  local_var_path = "/cities".sub('{format}','json')
45
31
 
@@ -1,17 +1,3 @@
1
- =begin
2
- Agrid Quotes API
3
-
4
-
5
-
6
- OpenAPI spec version: 1.0
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
-
11
- =end
12
-
13
- require "uri"
14
-
15
1
  module AgridClient
16
2
  class CompaniesApi
17
3
  attr_accessor :api_client
@@ -80,17 +66,17 @@ module AgridClient
80
66
  end
81
67
 
82
68
  #
83
- # Return all cities attended by the company
69
+ # Return all company's image
84
70
  # @param id Company ID
85
71
  # @param [Hash] opts the optional parameters
86
- # @return [CityCompany]
72
+ # @return Array<Image>
87
73
  def get_images(id, opts = {})
88
74
  data, _status_code, _headers = get_images_with_http_info(id, opts)
89
75
  return data
90
76
  end
91
77
 
92
78
  #
93
- # Return all cities attended by the company
79
+ # Return all company's images
94
80
  # @param id Company ID
95
81
  # @param [Hash] opts the optional parameters
96
82
  # @return [Array<(CityCompany, Fixnum, Hash)>] CityCompany data, response status code and response headers
@@ -144,7 +130,7 @@ module AgridClient
144
130
  # @param [Hash] opts the optional parameters
145
131
  # @option opts [Integer] :offset Number to skip rows before beginning to return companies
146
132
  # @option opts [Integer] :limit Limit number of companies on response(default is 12)
147
- # @return [InlineResponse200]
133
+ # @return [PaginatedCompanies]
148
134
  def get_companies(service_id, opts = {})
149
135
  data, _status_code, _headers = get_companies_with_http_info(service_id, opts)
150
136
  return data
@@ -156,7 +142,7 @@ module AgridClient
156
142
  # @param [Hash] opts the optional parameters
157
143
  # @option opts [Integer] :offset Number to skip rows before beginning to return companies
158
144
  # @option opts [Integer] :limit Limit number of companies on response(default is 12)
159
- # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
145
+ # @return [Array<(PaginatedCompanies, Fixnum, Hash)>] PaginatedCompanies data, response status code and response headers
160
146
  def get_companies_with_http_info(service_id, opts = {})
161
147
  if @api_client.config.debugging
162
148
  @api_client.config.logger.debug "Calling API: CompaniesApi#get_companies ..."
@@ -196,7 +182,7 @@ module AgridClient
196
182
  :form_params => form_params,
197
183
  :body => post_body,
198
184
  :auth_names => auth_names,
199
- :return_type => 'InlineResponse200')
185
+ :return_type => 'PaginatedCompanies')
200
186
  if @api_client.config.debugging
201
187
  @api_client.config.logger.debug "API called: CompaniesApi#get_companies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
202
188
  end
@@ -1,17 +1,3 @@
1
- =begin
2
- Agrid Quotes API
3
-
4
-
5
-
6
- OpenAPI spec version: 1.0
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
-
11
- =end
12
-
13
- require "uri"
14
-
15
1
  module AgridClient
16
2
  class FiltersApi
17
3
  attr_accessor :api_client
@@ -20,7 +6,7 @@ module AgridClient
20
6
  @api_client = api_client
21
7
  end
22
8
 
23
- #
9
+ #
24
10
  # Returns all filters of a service.\n You can some of the query parameters in /v1/services/:service_id/quotes\n to fetch all filters and filter_categories of the set of that quotes.
25
11
  # @param service_id param to filter quotes by service
26
12
  # @param [Hash] opts the optional parameters
@@ -33,7 +19,7 @@ module AgridClient
33
19
  return data
34
20
  end
35
21
 
36
- #
22
+ #
37
23
  # Returns all filters of a service.\n You can some of the query parameters in /v1/services/:service_id/quotes\n to fetch all filters and filter_categories of the set of that quotes.
38
24
  # @param service_id param to filter quotes by service
39
25
  # @param [Hash] opts the optional parameters
@@ -45,10 +31,10 @@ module AgridClient
45
31
  if @api_client.config.debugging
46
32
  @api_client.config.logger.debug "Calling API: FiltersApi#services_service_id_filters_get ..."
47
33
  end
48
-
34
+
49
35
  # verify the required parameter 'service_id' is set
50
36
  fail "Missing the required parameter 'service_id' when calling services_service_id_filters_get" if service_id.nil?
51
-
37
+
52
38
  # resource path
53
39
  local_var_path = "/services/{service_id}/filters".sub('{format}','json').sub('{' + 'service_id' + '}', service_id.to_s)
54
40
 
@@ -1,17 +1,3 @@
1
- =begin
2
- Agrid Quotes API
3
-
4
-
5
-
6
- OpenAPI spec version: 1.0
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
-
11
- =end
12
-
13
- require "uri"
14
-
15
1
  module AgridClient
16
2
  class LeadsApi
17
3
  attr_accessor :api_client
@@ -20,8 +6,8 @@ module AgridClient
20
6
  @api_client = api_client
21
7
  end
22
8
 
23
- #
24
- # Create a new lead
9
+ #
10
+ # Create a new lead
25
11
  # @param service_id Service Id
26
12
  # @param lead Lead Id
27
13
  # @param [Hash] opts the optional parameters
@@ -31,8 +17,8 @@ module AgridClient
31
17
  return data
32
18
  end
33
19
 
34
- #
35
- # Create a new lead
20
+ #
21
+ # Create a new lead
36
22
  # @param service_id Service Id
37
23
  # @param lead Lead Id
38
24
  # @param [Hash] opts the optional parameters
@@ -41,13 +27,13 @@ module AgridClient
41
27
  if @api_client.config.debugging
42
28
  @api_client.config.logger.debug "Calling API: LeadsApi#services_service_id_leads_post ..."
43
29
  end
44
-
30
+
45
31
  # verify the required parameter 'service_id' is set
46
32
  fail "Missing the required parameter 'service_id' when calling services_service_id_leads_post" if service_id.nil?
47
-
33
+
48
34
  # verify the required parameter 'lead' is set
49
35
  fail "Missing the required parameter 'lead' when calling services_service_id_leads_post" if lead.nil?
50
-
36
+
51
37
  # resource path
52
38
  local_var_path = "/services/{service_id}/leads".sub('{format}','json').sub('{' + 'service_id' + '}', service_id.to_s)
53
39
 
@@ -1,17 +1,3 @@
1
- =begin
2
- Agrid Quotes API
3
-
4
-
5
-
6
- OpenAPI spec version: 1.0
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
-
11
- =end
12
-
13
- require "uri"
14
-
15
1
  module AgridClient
16
2
  class QuotesApi
17
3
  attr_accessor :api_client
@@ -90,7 +76,7 @@ module AgridClient
90
76
  # @option opts [Array<String>] :filter_categories Example: &lt;br&gt; filter_categories[:filter_id][]&#x3D;:filter_category_id&amp;filter_categories[:filter_id][]&#x3D;:filter_category_id &lt;br&gt;&lt;br&gt; :filter_id is the id of filter&lt;br&gt; :filter_category_id is the id of filter category
91
77
  # @option opts [Float] :min_price Param to filter quotes with price is at least equal to :min_price
92
78
  # @option opts [Float] :max_price Param to filter quotes with price is at most equal to :max_price
93
- # @return [InlineResponse2001]
79
+ # @return [PaginatedQuotes]
94
80
  def quotes_get(service_id, opts = {})
95
81
  data, _status_code, _headers = quotes_get_with_http_info(service_id, opts)
96
82
  return data
@@ -107,7 +93,7 @@ module AgridClient
107
93
  # @option opts [Array<String>] :filter_categories Example: &lt;br&gt; filter_categories[:filter_id][]&#x3D;:filter_category_id&amp;filter_categories[:filter_id][]&#x3D;:filter_category_id &lt;br&gt;&lt;br&gt; :filter_id is the id of filter&lt;br&gt; :filter_category_id is the id of filter category
108
94
  # @option opts [Float] :min_price Param to filter quotes with price is at least equal to :min_price
109
95
  # @option opts [Float] :max_price Param to filter quotes with price is at most equal to :max_price
110
- # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
96
+ # @return [Array<(PaginatedQuotes, Fixnum, Hash)>] PaginatedQuotes data, response status code and response headers
111
97
  def quotes_get_with_http_info(service_id, opts = {})
112
98
  if @api_client.config.debugging
113
99
  @api_client.config.logger.debug "Calling API: QuotesApi#quotes_get ..."
@@ -152,7 +138,7 @@ module AgridClient
152
138
  :form_params => form_params,
153
139
  :body => post_body,
154
140
  :auth_names => auth_names,
155
- :return_type => 'InlineResponse2001')
141
+ :return_type => 'PaginatedQuotes')
156
142
  if @api_client.config.debugging
157
143
  @api_client.config.logger.debug "API called: QuotesApi#quotes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
158
144
  end
@@ -1,17 +1,3 @@
1
- =begin
2
- Agrid Quotes API
3
-
4
-
5
-
6
- OpenAPI spec version: 1.0
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
-
11
- =end
12
-
13
- require "uri"
14
-
15
1
  module AgridClient
16
2
  class ServicesApi
17
3
  attr_accessor :api_client
@@ -20,7 +6,7 @@ module AgridClient
20
6
  @api_client = api_client
21
7
  end
22
8
 
23
- #
9
+ #
24
10
  # Returns all available services
25
11
  # @param [Hash] opts the optional parameters
26
12
  # @option opts [String] :city_id City ID to filter services by city
@@ -31,7 +17,7 @@ module AgridClient
31
17
  return data
32
18
  end
33
19
 
34
- #
20
+ #
35
21
  # Returns all available services
36
22
  # @param [Hash] opts the optional parameters
37
23
  # @option opts [String] :city_id City ID to filter services by city
@@ -41,7 +27,7 @@ module AgridClient
41
27
  if @api_client.config.debugging
42
28
  @api_client.config.logger.debug "Calling API: ServicesApi#services_get ..."
43
29
  end
44
-
30
+
45
31
  # resource path
46
32
  local_var_path = "/services".sub('{format}','json')
47
33
 
@@ -1,15 +1,3 @@
1
- =begin
2
- Agrid Quotes API
3
-
4
-
5
-
6
- OpenAPI spec version: 1.0
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
-
11
- =end
12
-
13
1
  require 'date'
14
2
  require 'json'
15
3
  require 'logger'
@@ -19,7 +7,6 @@ require 'uri'
19
7
 
20
8
  module AgridClient
21
9
  class ApiClient
22
- # The Configuration object holding settings to be used in the API client.
23
10
  attr_accessor :config
24
11
 
25
12
  # Defines the headers to be used in HTTP requests of all API calls by default.
@@ -31,11 +18,12 @@ module AgridClient
31
18
  # @option config [Configuration] Configuraiton for initializing the object, default to Configuration.default
32
19
  def initialize(config = Configuration.default)
33
20
  @config = config
34
- @user_agent = "Swagger-Codegen/#{VERSION}/ruby"
21
+ @user_agent = "agrid_client/#{VERSION}/ruby"
35
22
  @default_headers = {
36
23
  'Content-Type' => "application/json",
37
24
  'User-Agent' => @user_agent
38
25
  }
26
+
39
27
  if config.app_credentials
40
28
  @default_headers['AGRID-APP-ID'] = config.app_credentials[:id]
41
29
  @default_headers['AGRID-APP-KEY'] = config.app_credentials[:key]
@@ -193,7 +181,6 @@ module AgridClient
193
181
  data.each {|k, v| hash[k] = convert_to_type(v, sub_type) }
194
182
  end
195
183
  else
196
- # models, e.g. Pet
197
184
  AgridClient.const_get(return_type).new.tap do |model|
198
185
  model.build_from_hash data
199
186
  end
@@ -1,15 +1,3 @@
1
- =begin
2
- Agrid Quotes API
3
-
4
-
5
-
6
- OpenAPI spec version: 1.0
7
-
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
-
11
- =end
12
-
13
1
  require 'date'
14
2
  require_relative 'concerns/swagger_model'
15
3
 
@@ -19,7 +7,7 @@ module AgridClient
19
7
 
20
8
  # Unique id
21
9
  attr_accessor :id, :email, :name, :person_in_charge, :website, :location,
22
- :addresses, :phones, :logo, :cover, :data_checks, :rankings
10
+ :addresses, :phones, :logo, :cover, :data_checks, :rankings, :rating
23
11
 
24
12
  # Attribute mapping from ruby-style variable name to JSON key.
25
13
  def self.attribute_map
@@ -35,7 +23,8 @@ module AgridClient
35
23
  :'logo' => :'logo',
36
24
  :'cover' => :'cover',
37
25
  :'data_checks' => :'data_checks',
38
- :'rankings' => :'company_rankings'
26
+ :'rankings' => :'company_rankings',
27
+ :'rating' => :'rating'
39
28
  }
40
29
  end
41
30
 
@@ -53,7 +42,8 @@ module AgridClient
53
42
  :'logo_image' => :'String',
54
43
  :'cover_image' => :'String',
55
44
  :'data_checks' => :'Array<DataCheck>',
56
- :'rankings' => :'Array<CompanyRanking>'
45
+ :'rankings' => :'Array<CompanyRanking>',
46
+ :'rating' => 'Float'
57
47
  }
58
48
  end
59
49
 
@@ -1,4 +1,3 @@
1
- require 'pry'
2
1
  module SwaggerModel
3
2
  # @see the `==` method
4
3
  # @param [Object] Object to be compared
@@ -14,7 +14,7 @@ require 'date'
14
14
  require_relative 'concerns/swagger_model'
15
15
 
16
16
  module AgridClient
17
- class InlineResponse200
17
+ class PaginatedCompanies
18
18
  include SwaggerModel
19
19
 
20
20
  # Total of companies that attend the request
@@ -14,7 +14,7 @@ require 'date'
14
14
  require_relative 'concerns/swagger_model'
15
15
 
16
16
  module AgridClient
17
- class InlineResponse2001
17
+ class PaginatedQuotes
18
18
  include SwaggerModel
19
19
 
20
20
  # Quotes filtered using parameters
@@ -1,3 +1,3 @@
1
1
  module AgridClient
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,18 @@
1
+ require "spec_helper"
2
+
3
+ describe 'ApiClient' do
4
+ let(:subject) { AgridClient::ApiClient.new }
5
+
6
+ describe "#new" do
7
+ context "without arguments" do
8
+ it "initialize with default configuration" do
9
+ version = AgridClient::VERSION
10
+ expect(subject.default_headers).to eq({
11
+ 'Content-Type': 'application/json',
12
+ 'User-Agent': "agrid_client/#{version}/ruby"
13
+ })
14
+ end
15
+ end
16
+ end
17
+
18
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,15 +1,8 @@
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 :webmock # or :fakeweb
7
- end
8
2
 
9
3
  RSpec.configure do |config|
10
4
  config.expect_with :rspec do |expectations|
11
5
  expectations.include_chain_clauses_in_custom_matcher_descriptions = true
12
- expectations.syntax = :should
13
6
  end
14
7
 
15
8
  # rspec-mocks config goes here. You can use an alternate test double
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.1
4
+ version: 0.0.2
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-26 00:00:00.000000000 Z
11
+ date: 2016-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -16,180 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.2.1
19
+ version: '1.0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.2'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.2.1
26
+ version: '1.0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: json
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '1.4'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 1.4.6
33
+ version: '1.8'
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
38
  - - "~>"
48
39
  - !ruby/object:Gem::Version
49
- version: '1.4'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 1.4.6
40
+ version: '1.8'
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: rspec
55
43
  requirement: !ruby/object:Gem::Requirement
56
44
  requirements:
57
45
  - - "~>"
58
46
  - !ruby/object:Gem::Version
59
- version: '3.2'
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 3.2.0
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '3.2'
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: 3.2.0
73
- - !ruby/object:Gem::Dependency
74
- name: vcr
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
78
- - !ruby/object:Gem::Version
79
- version: '2.9'
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: 2.9.3
83
- type: :development
84
- prerelease: false
85
- version_requirements: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '2.9'
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 2.9.3
93
- - !ruby/object:Gem::Dependency
94
- name: webmock
95
- requirement: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '1.6'
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: 1.6.2
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '1.6'
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 1.6.2
113
- - !ruby/object:Gem::Dependency
114
- name: autotest
115
- requirement: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '4.4'
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- version: 4.4.6
123
- type: :development
124
- prerelease: false
125
- version_requirements: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '4.4'
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: 4.4.6
133
- - !ruby/object:Gem::Dependency
134
- name: autotest-rails-pure
135
- requirement: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: '4.1'
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- version: 4.1.2
143
- type: :development
144
- prerelease: false
145
- version_requirements: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - "~>"
148
- - !ruby/object:Gem::Version
149
- version: '4.1'
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: 4.1.2
153
- - !ruby/object:Gem::Dependency
154
- name: autotest-growl
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '0.2'
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- version: 0.2.16
47
+ version: '3.4'
163
48
  type: :development
164
49
  prerelease: false
165
50
  version_requirements: !ruby/object:Gem::Requirement
166
51
  requirements:
167
52
  - - "~>"
168
53
  - !ruby/object:Gem::Version
169
- version: '0.2'
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- version: 0.2.16
173
- - !ruby/object:Gem::Dependency
174
- name: autotest-fsevent
175
- requirement: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '0.2'
180
- - - ">="
181
- - !ruby/object:Gem::Version
182
- version: 0.2.11
183
- type: :development
184
- prerelease: false
185
- version_requirements: !ruby/object:Gem::Requirement
186
- requirements:
187
- - - "~>"
188
- - !ruby/object:Gem::Version
189
- version: '0.2'
190
- - - ">="
191
- - !ruby/object:Gem::Version
192
- version: 0.2.11
54
+ version: '3.4'
193
55
  description: ''
194
56
  email:
195
57
  - guilhermebmoretti@gmail.com
@@ -225,12 +87,12 @@ files:
225
87
  - lib/agrid_client/models/filter.rb
226
88
  - lib/agrid_client/models/filter_category.rb
227
89
  - lib/agrid_client/models/image.rb
228
- - lib/agrid_client/models/inline_response_200.rb
229
- - lib/agrid_client/models/inline_response_200_1.rb
230
90
  - lib/agrid_client/models/item.rb
231
91
  - lib/agrid_client/models/lead.rb
232
92
  - lib/agrid_client/models/lead_input.rb
233
93
  - lib/agrid_client/models/location.rb
94
+ - lib/agrid_client/models/paginated_companies.rb
95
+ - lib/agrid_client/models/paginated_quotes.rb
234
96
  - lib/agrid_client/models/phone.rb
235
97
  - lib/agrid_client/models/price_range.rb
236
98
  - lib/agrid_client/models/quote.rb
@@ -244,6 +106,7 @@ files:
244
106
  - spec/api/leads_api_spec.rb
245
107
  - spec/api/quotes_api_spec.rb
246
108
  - spec/api/services_api_spec.rb
109
+ - spec/api_client_spec.rb
247
110
  - spec/models/address_spec.rb
248
111
  - spec/models/category_spec.rb
249
112
  - spec/models/city_with_full_state_spec.rb
@@ -296,6 +159,7 @@ test_files:
296
159
  - spec/api/services_api_spec.rb
297
160
  - spec/api/cities_api_spec.rb
298
161
  - spec/api/filters_api_spec.rb
162
+ - spec/api_client_spec.rb
299
163
  - spec/models/address_spec.rb
300
164
  - spec/models/lead_spec.rb
301
165
  - spec/models/price_range_spec.rb