hubspot-api-client 3.3.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/lib/hubspot-api-client.rb +61 -0
  4. data/lib/hubspot/codegen/cms/audit-logs/api/default_api.rb +106 -0
  5. data/lib/hubspot/codegen/cms/audit-logs/api_client.rb +422 -0
  6. data/lib/hubspot/codegen/cms/audit-logs/api_error.rb +61 -0
  7. data/lib/hubspot/codegen/cms/audit-logs/configuration.rb +258 -0
  8. data/lib/hubspot/codegen/cms/audit-logs/models/collection_response_public_audit_log.rb +226 -0
  9. data/lib/hubspot/codegen/cms/audit-logs/models/error.rb +292 -0
  10. data/lib/hubspot/codegen/cms/audit-logs/models/error_detail.rb +258 -0
  11. data/lib/hubspot/codegen/cms/audit-logs/models/next_page.rb +224 -0
  12. data/lib/hubspot/codegen/cms/audit-logs/models/paging.rb +210 -0
  13. data/lib/hubspot/codegen/cms/audit-logs/models/public_audit_log.rb +352 -0
  14. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +183 -0
  15. data/lib/hubspot/codegen/cms/domains/api_client.rb +422 -0
  16. data/lib/hubspot/codegen/cms/domains/api_error.rb +61 -0
  17. data/lib/hubspot/codegen/cms/domains/configuration.rb +258 -0
  18. data/lib/hubspot/codegen/cms/domains/models/collection_response_with_total_domain.rb +240 -0
  19. data/lib/hubspot/codegen/cms/domains/models/domain.rb +1091 -0
  20. data/lib/hubspot/codegen/cms/domains/models/domain_cdn_config.rb +497 -0
  21. data/lib/hubspot/codegen/cms/domains/models/domain_setup_info.rb +231 -0
  22. data/lib/hubspot/codegen/cms/domains/models/error.rb +292 -0
  23. data/lib/hubspot/codegen/cms/domains/models/error_detail.rb +258 -0
  24. data/lib/hubspot/codegen/cms/domains/models/next_page.rb +224 -0
  25. data/lib/hubspot/codegen/cms/domains/models/paging.rb +210 -0
  26. data/lib/hubspot/codegen/cms/performance/api/default_api.rb +186 -0
  27. data/lib/hubspot/codegen/cms/performance/api_client.rb +422 -0
  28. data/lib/hubspot/codegen/cms/performance/api_error.rb +61 -0
  29. data/lib/hubspot/codegen/cms/performance/configuration.rb +258 -0
  30. data/lib/hubspot/codegen/cms/performance/models/error.rb +292 -0
  31. data/lib/hubspot/codegen/cms/performance/models/error_detail.rb +258 -0
  32. data/lib/hubspot/codegen/cms/performance/models/performance_view.rb +528 -0
  33. data/lib/hubspot/codegen/cms/performance/models/public_performance_response.rb +332 -0
  34. data/lib/hubspot/codegen/cms/site-search/api/default_api.rb +225 -0
  35. data/lib/hubspot/codegen/cms/site-search/api_client.rb +422 -0
  36. data/lib/hubspot/codegen/cms/site-search/api_error.rb +61 -0
  37. data/lib/hubspot/codegen/cms/site-search/configuration.rb +258 -0
  38. data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +427 -0
  39. data/lib/hubspot/codegen/cms/site-search/models/error.rb +292 -0
  40. data/lib/hubspot/codegen/cms/site-search/models/error_detail.rb +258 -0
  41. data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +279 -0
  42. data/lib/hubspot/codegen/cms/site-search/models/public_search_results.rb +282 -0
  43. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +257 -0
  44. data/lib/hubspot/codegen/cms/url-redirects/api/redirects_api.rb +368 -0
  45. data/lib/hubspot/codegen/cms/url-redirects/api_client.rb +422 -0
  46. data/lib/hubspot/codegen/cms/url-redirects/api_error.rb +61 -0
  47. data/lib/hubspot/codegen/cms/url-redirects/configuration.rb +258 -0
  48. data/lib/hubspot/codegen/cms/url-redirects/models/collection_response_with_total_url_mapping.rb +242 -0
  49. data/lib/hubspot/codegen/cms/url-redirects/models/error.rb +292 -0
  50. data/lib/hubspot/codegen/cms/url-redirects/models/error_detail.rb +258 -0
  51. data/lib/hubspot/codegen/cms/url-redirects/models/next_page.rb +224 -0
  52. data/lib/hubspot/codegen/cms/url-redirects/models/paging.rb +210 -0
  53. data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping.rb +596 -0
  54. data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping_create_request_body.rb +306 -0
  55. data/lib/hubspot/version.rb +1 -1
  56. data/sample-apps/search-result-paging-app/.env.template +4 -0
  57. data/sample-apps/search-result-paging-app/.gitignore +35 -0
  58. data/sample-apps/search-result-paging-app/.rspec +1 -0
  59. data/sample-apps/search-result-paging-app/.ruby-version +1 -0
  60. data/sample-apps/search-result-paging-app/Dockerfile +22 -0
  61. data/sample-apps/search-result-paging-app/Gemfile +35 -0
  62. data/sample-apps/search-result-paging-app/Gemfile.lock +279 -0
  63. data/sample-apps/search-result-paging-app/README.md +0 -0
  64. data/sample-apps/search-result-paging-app/Rakefile +6 -0
  65. data/sample-apps/search-result-paging-app/app/assets/config/manifest.js +3 -0
  66. data/sample-apps/search-result-paging-app/app/assets/images/.keep +0 -0
  67. data/sample-apps/search-result-paging-app/app/assets/javascripts/application.js +25 -0
  68. data/sample-apps/search-result-paging-app/app/assets/javascripts/cable.js +13 -0
  69. data/sample-apps/search-result-paging-app/app/assets/javascripts/channels/.keep +0 -0
  70. data/sample-apps/search-result-paging-app/app/assets/stylesheets/application.css +77 -0
  71. data/sample-apps/search-result-paging-app/app/controllers/application_controller.rb +12 -0
  72. data/sample-apps/search-result-paging-app/app/controllers/concerns/.keep +0 -0
  73. data/sample-apps/search-result-paging-app/app/controllers/concerns/exception_handler.rb +12 -0
  74. data/sample-apps/search-result-paging-app/app/controllers/home_controller.rb +14 -0
  75. data/sample-apps/search-result-paging-app/app/controllers/oauth/authorization_controller.rb +19 -0
  76. data/sample-apps/search-result-paging-app/app/helpers/application_helper.rb +2 -0
  77. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/authorize.rb +17 -0
  78. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/get_authorization_uri.rb +35 -0
  79. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/tokens/base.rb +21 -0
  80. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/tokens/generate.rb +28 -0
  81. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/authorization/tokens/refresh.rb +35 -0
  82. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/contacts/get_page.rb +26 -0
  83. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/contacts/search.rb +35 -0
  84. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/create.rb +23 -0
  85. data/sample-apps/search-result-paging-app/app/lib/services/hubspot/properties/destroy.rb +16 -0
  86. data/sample-apps/search-result-paging-app/app/models/application_record.rb +3 -0
  87. data/sample-apps/search-result-paging-app/app/models/concerns/.keep +0 -0
  88. data/sample-apps/search-result-paging-app/app/views/home/index.html.erb +13 -0
  89. data/sample-apps/search-result-paging-app/app/views/layouts/application.html.erb +23 -0
  90. data/sample-apps/search-result-paging-app/app/views/oauth/authorization/login.html.erb +15 -0
  91. data/sample-apps/search-result-paging-app/app/views/shared/_header.html.erb +18 -0
  92. data/sample-apps/search-result-paging-app/bin/bundle +3 -0
  93. data/sample-apps/search-result-paging-app/bin/rails +9 -0
  94. data/sample-apps/search-result-paging-app/bin/rake +9 -0
  95. data/sample-apps/search-result-paging-app/bin/setup +36 -0
  96. data/sample-apps/search-result-paging-app/bin/spring +17 -0
  97. data/sample-apps/search-result-paging-app/bin/update +31 -0
  98. data/sample-apps/search-result-paging-app/bin/yarn +11 -0
  99. data/sample-apps/search-result-paging-app/config.ru +5 -0
  100. data/sample-apps/search-result-paging-app/config/application.rb +19 -0
  101. data/sample-apps/search-result-paging-app/config/boot.rb +3 -0
  102. data/sample-apps/search-result-paging-app/config/cable.yml +10 -0
  103. data/sample-apps/search-result-paging-app/config/database.yml +25 -0
  104. data/sample-apps/search-result-paging-app/config/environment.rb +5 -0
  105. data/sample-apps/search-result-paging-app/config/environments/development.rb +61 -0
  106. data/sample-apps/search-result-paging-app/config/environments/production.rb +94 -0
  107. data/sample-apps/search-result-paging-app/config/environments/test.rb +46 -0
  108. data/sample-apps/search-result-paging-app/config/initializers/assets.rb +14 -0
  109. data/sample-apps/search-result-paging-app/config/initializers/filter_parameter_logging.rb +4 -0
  110. data/sample-apps/search-result-paging-app/config/initializers/hubspot-api-client.rb +3 -0
  111. data/sample-apps/search-result-paging-app/config/initializers/mime_types.rb +1 -0
  112. data/sample-apps/search-result-paging-app/config/initializers/wrap_parameters.rb +14 -0
  113. data/sample-apps/search-result-paging-app/config/locales/en.yml +33 -0
  114. data/sample-apps/search-result-paging-app/config/puma.rb +34 -0
  115. data/sample-apps/search-result-paging-app/config/routes.rb +7 -0
  116. data/sample-apps/search-result-paging-app/config/spring.rb +6 -0
  117. data/sample-apps/search-result-paging-app/db/seeds.rb +7 -0
  118. data/sample-apps/search-result-paging-app/docker-compose.yml +11 -0
  119. data/sample-apps/search-result-paging-app/docker-entrypoint.sh +8 -0
  120. data/sample-apps/search-result-paging-app/lib/assets/.keep +0 -0
  121. data/sample-apps/search-result-paging-app/lib/tasks/.keep +0 -0
  122. data/sample-apps/search-result-paging-app/lib/tasks/search_contacts.rake +36 -0
  123. data/sample-apps/search-result-paging-app/log/.keep +0 -0
  124. data/sample-apps/search-result-paging-app/package.json +5 -0
  125. data/sample-apps/search-result-paging-app/public/404.html +67 -0
  126. data/sample-apps/search-result-paging-app/public/422.html +67 -0
  127. data/sample-apps/search-result-paging-app/public/500.html +66 -0
  128. data/sample-apps/search-result-paging-app/public/apple-touch-icon-precomposed.png +0 -0
  129. data/sample-apps/search-result-paging-app/public/apple-touch-icon.png +0 -0
  130. data/sample-apps/search-result-paging-app/public/favicon.ico +0 -0
  131. data/sample-apps/search-result-paging-app/public/robots.txt +1 -0
  132. data/sample-apps/search-result-paging-app/tmp/.keep +0 -0
  133. metadata +309 -2
@@ -0,0 +1,306 @@
1
+ =begin
2
+ #URL redirects
3
+
4
+ #URL redirect operations
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Hubspot
16
+ module Cms
17
+ module UrlRedirects
18
+ class UrlMappingCreateRequestBody
19
+ attr_accessor :route_prefix
20
+
21
+ attr_accessor :destination
22
+
23
+ attr_accessor :redirect_style
24
+
25
+ attr_accessor :precedence
26
+
27
+ attr_accessor :is_only_after_not_found
28
+
29
+ attr_accessor :is_match_full_url
30
+
31
+ attr_accessor :is_match_query_string
32
+
33
+ attr_accessor :is_pattern
34
+
35
+ attr_accessor :is_trailing_slash_optional
36
+
37
+ attr_accessor :is_protocol_agnostic
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'route_prefix' => :'routePrefix',
43
+ :'destination' => :'destination',
44
+ :'redirect_style' => :'redirectStyle',
45
+ :'precedence' => :'precedence',
46
+ :'is_only_after_not_found' => :'isOnlyAfterNotFound',
47
+ :'is_match_full_url' => :'isMatchFullUrl',
48
+ :'is_match_query_string' => :'isMatchQueryString',
49
+ :'is_pattern' => :'isPattern',
50
+ :'is_trailing_slash_optional' => :'isTrailingSlashOptional',
51
+ :'is_protocol_agnostic' => :'isProtocolAgnostic'
52
+ }
53
+ end
54
+
55
+ # Attribute type mapping.
56
+ def self.openapi_types
57
+ {
58
+ :'route_prefix' => :'String',
59
+ :'destination' => :'String',
60
+ :'redirect_style' => :'Integer',
61
+ :'precedence' => :'Integer',
62
+ :'is_only_after_not_found' => :'Boolean',
63
+ :'is_match_full_url' => :'Boolean',
64
+ :'is_match_query_string' => :'Boolean',
65
+ :'is_pattern' => :'Boolean',
66
+ :'is_trailing_slash_optional' => :'Boolean',
67
+ :'is_protocol_agnostic' => :'Boolean'
68
+ }
69
+ end
70
+
71
+ # List of attributes with nullable: true
72
+ def self.openapi_nullable
73
+ Set.new([
74
+ ])
75
+ end
76
+
77
+ # Initializes the object
78
+ # @param [Hash] attributes Model attributes in the form of hash
79
+ def initialize(attributes = {})
80
+ if (!attributes.is_a?(Hash))
81
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Cms::UrlRedirects::UrlMappingCreateRequestBody` initialize method"
82
+ end
83
+
84
+ # check to see if the attribute exists and convert string to symbol for hash key
85
+ attributes = attributes.each_with_object({}) { |(k, v), h|
86
+ if (!self.class.attribute_map.key?(k.to_sym))
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Cms::UrlRedirects::UrlMappingCreateRequestBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
88
+ end
89
+ h[k.to_sym] = v
90
+ }
91
+
92
+ if attributes.key?(:'route_prefix')
93
+ self.route_prefix = attributes[:'route_prefix']
94
+ end
95
+
96
+ if attributes.key?(:'destination')
97
+ self.destination = attributes[:'destination']
98
+ end
99
+
100
+ if attributes.key?(:'redirect_style')
101
+ self.redirect_style = attributes[:'redirect_style']
102
+ end
103
+
104
+ if attributes.key?(:'precedence')
105
+ self.precedence = attributes[:'precedence']
106
+ end
107
+
108
+ if attributes.key?(:'is_only_after_not_found')
109
+ self.is_only_after_not_found = attributes[:'is_only_after_not_found']
110
+ end
111
+
112
+ if attributes.key?(:'is_match_full_url')
113
+ self.is_match_full_url = attributes[:'is_match_full_url']
114
+ end
115
+
116
+ if attributes.key?(:'is_match_query_string')
117
+ self.is_match_query_string = attributes[:'is_match_query_string']
118
+ end
119
+
120
+ if attributes.key?(:'is_pattern')
121
+ self.is_pattern = attributes[:'is_pattern']
122
+ end
123
+
124
+ if attributes.key?(:'is_trailing_slash_optional')
125
+ self.is_trailing_slash_optional = attributes[:'is_trailing_slash_optional']
126
+ end
127
+
128
+ if attributes.key?(:'is_protocol_agnostic')
129
+ self.is_protocol_agnostic = attributes[:'is_protocol_agnostic']
130
+ end
131
+ end
132
+
133
+ # Show invalid properties with the reasons. Usually used together with valid?
134
+ # @return Array for valid properties with the reasons
135
+ def list_invalid_properties
136
+ invalid_properties = Array.new
137
+ if @route_prefix.nil?
138
+ invalid_properties.push('invalid value for "route_prefix", route_prefix cannot be nil.')
139
+ end
140
+
141
+ if @destination.nil?
142
+ invalid_properties.push('invalid value for "destination", destination cannot be nil.')
143
+ end
144
+
145
+ if @redirect_style.nil?
146
+ invalid_properties.push('invalid value for "redirect_style", redirect_style cannot be nil.')
147
+ end
148
+
149
+ invalid_properties
150
+ end
151
+
152
+ # Check to see if the all the properties in the model are valid
153
+ # @return true if the model is valid
154
+ def valid?
155
+ return false if @route_prefix.nil?
156
+ return false if @destination.nil?
157
+ return false if @redirect_style.nil?
158
+ true
159
+ end
160
+
161
+ # Checks equality by comparing each attribute.
162
+ # @param [Object] Object to be compared
163
+ def ==(o)
164
+ return true if self.equal?(o)
165
+ self.class == o.class &&
166
+ route_prefix == o.route_prefix &&
167
+ destination == o.destination &&
168
+ redirect_style == o.redirect_style &&
169
+ precedence == o.precedence &&
170
+ is_only_after_not_found == o.is_only_after_not_found &&
171
+ is_match_full_url == o.is_match_full_url &&
172
+ is_match_query_string == o.is_match_query_string &&
173
+ is_pattern == o.is_pattern &&
174
+ is_trailing_slash_optional == o.is_trailing_slash_optional &&
175
+ is_protocol_agnostic == o.is_protocol_agnostic
176
+ end
177
+
178
+ # @see the `==` method
179
+ # @param [Object] Object to be compared
180
+ def eql?(o)
181
+ self == o
182
+ end
183
+
184
+ # Calculates hash code according to all attributes.
185
+ # @return [Integer] Hash code
186
+ def hash
187
+ [route_prefix, destination, redirect_style, precedence, is_only_after_not_found, is_match_full_url, is_match_query_string, is_pattern, is_trailing_slash_optional, is_protocol_agnostic].hash
188
+ end
189
+
190
+ # Builds the object from hash
191
+ # @param [Hash] attributes Model attributes in the form of hash
192
+ # @return [Object] Returns the model itself
193
+ def self.build_from_hash(attributes)
194
+ new.build_from_hash(attributes)
195
+ end
196
+
197
+ # Builds the object from hash
198
+ # @param [Hash] attributes Model attributes in the form of hash
199
+ # @return [Object] Returns the model itself
200
+ def build_from_hash(attributes)
201
+ return nil unless attributes.is_a?(Hash)
202
+ self.class.openapi_types.each_pair do |key, type|
203
+ if type =~ /\AArray<(.*)>/i
204
+ # check to ensure the input is an array given that the attribute
205
+ # is documented as an array but the input is not
206
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
207
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
208
+ end
209
+ elsif !attributes[self.class.attribute_map[key]].nil?
210
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
211
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
212
+ end
213
+
214
+ self
215
+ end
216
+
217
+ # Deserializes the data based on type
218
+ # @param string type Data type
219
+ # @param string value Value to be deserialized
220
+ # @return [Object] Deserialized data
221
+ def _deserialize(type, value)
222
+ case type.to_sym
223
+ when :DateTime
224
+ DateTime.parse(value)
225
+ when :Date
226
+ Date.parse(value)
227
+ when :String
228
+ value.to_s
229
+ when :Integer
230
+ value.to_i
231
+ when :Float
232
+ value.to_f
233
+ when :Boolean
234
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
235
+ true
236
+ else
237
+ false
238
+ end
239
+ when :Object
240
+ # generic object (usually a Hash), return directly
241
+ value
242
+ when /\AArray<(?<inner_type>.+)>\z/
243
+ inner_type = Regexp.last_match[:inner_type]
244
+ value.map { |v| _deserialize(inner_type, v) }
245
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
246
+ k_type = Regexp.last_match[:k_type]
247
+ v_type = Regexp.last_match[:v_type]
248
+ {}.tap do |hash|
249
+ value.each do |k, v|
250
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
251
+ end
252
+ end
253
+ else # model
254
+ Hubspot::Cms::UrlRedirects.const_get(type).build_from_hash(value)
255
+ end
256
+ end
257
+
258
+ # Returns the string representation of the object
259
+ # @return [String] String presentation of the object
260
+ def to_s
261
+ to_hash.to_s
262
+ end
263
+
264
+ # to_body is an alias to to_hash (backward compatibility)
265
+ # @return [Hash] Returns the object in the form of hash
266
+ def to_body
267
+ to_hash
268
+ end
269
+
270
+ # Returns the object in the form of hash
271
+ # @return [Hash] Returns the object in the form of hash
272
+ def to_hash
273
+ hash = {}
274
+ self.class.attribute_map.each_pair do |attr, param|
275
+ value = self.send(attr)
276
+ if value.nil?
277
+ is_nullable = self.class.openapi_nullable.include?(attr)
278
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
279
+ end
280
+
281
+ hash[param] = _to_hash(value)
282
+ end
283
+ hash
284
+ end
285
+
286
+ # Outputs non-array value in the form of hash
287
+ # For object, use to_hash. Otherwise, just return the value
288
+ # @param [Object] value Any valid value
289
+ # @return [Hash] Returns the value in the form of hash
290
+ def _to_hash(value)
291
+ if value.is_a?(Array)
292
+ value.compact.map { |v| _to_hash(v) }
293
+ elsif value.is_a?(Hash)
294
+ {}.tap do |hash|
295
+ value.each { |k, v| hash[k] = _to_hash(v) }
296
+ end
297
+ elsif value.respond_to? :to_hash
298
+ value.to_hash
299
+ else
300
+ value
301
+ end
302
+ end
303
+ end
304
+ end
305
+ end
306
+ end
@@ -1,3 +1,3 @@
1
1
  module Hubspot
2
- VERSION = '3.3.0'
2
+ VERSION = '4.0.0'
3
3
  end
@@ -0,0 +1,4 @@
1
+ HUBSPOT_CLIENT_ID=
2
+ HUBSPOT_CLIENT_SECRET=
3
+ SEARCH_QUERY=mail
4
+ SEARCH_BATCH_SIZE=100
@@ -0,0 +1,35 @@
1
+ # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Ignore bundler config.
8
+ /.bundle
9
+
10
+ # Ignore the default SQLite database.
11
+ /db/*.sqlite3
12
+ /db/*.sqlite3-journal
13
+
14
+ # Ignore all logfiles and tempfiles.
15
+ /log/*
16
+ /tmp/*
17
+ !/log/.keep
18
+ !/tmp/.keep
19
+
20
+ # Ignore uploaded files in development
21
+ /storage/*
22
+ !/storage/.keep
23
+
24
+ /node_modules
25
+ /yarn-error.log
26
+
27
+ /public/assets
28
+ .byebug_history
29
+
30
+ # Ignore master key for decrypting credentials and more.
31
+ /config/master.key
32
+
33
+ .rubocop.yml
34
+ .env
35
+ .env.test
@@ -0,0 +1 @@
1
+ --require spec_helper
@@ -0,0 +1,22 @@
1
+ FROM ruby:2.6.3
2
+ RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
3
+ RUN mkdir /hubspot-api-client
4
+
5
+ COPY ./lib /hubspot-api-client/lib
6
+ COPY ./sample-apps /hubspot-api-client/sample-apps
7
+ COPY ./spec /hubspot-api-client/spec
8
+ COPY ./Gemfile /hubspot-api-client/Gemfile
9
+ COPY ./Gemfile.lock /hubspot-api-client/Gemfile.lock
10
+ COPY ./hubspot-api-client.gemspec /hubspot-api-client/hubspot-api-client.gemspec
11
+
12
+ WORKDIR /hubspot-api-client/sample-apps/search-result-paging-app
13
+ RUN bundle install
14
+
15
+ # Add a script to be executed every time the container starts.
16
+ COPY ./sample-apps/search-result-paging-app/docker-entrypoint.sh /usr/bin/
17
+ RUN chmod +x /usr/bin/docker-entrypoint.sh
18
+ ENTRYPOINT ["docker-entrypoint.sh"]
19
+ EXPOSE 3000
20
+
21
+ # Start the main process.
22
+ CMD ["rails", "server", "-b", "0.0.0.0"]
@@ -0,0 +1,35 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
+
4
+ ruby '2.6.3'
5
+
6
+ gem 'rails', '~> 5.2.3'
7
+ gem 'sqlite3'
8
+ gem 'puma', '~> 4.3'
9
+ gem 'sass-rails', '~> 5.0'
10
+ gem 'uglifier', '>= 1.3.0'
11
+ gem 'jbuilder', '~> 2.5'
12
+ gem 'jquery-rails'
13
+ gem 'jquery-ui-rails'
14
+ gem 'clipboard-rails'
15
+
16
+ gem 'hubspot-api-client', path: '../../'
17
+
18
+ group :development, :test do
19
+ gem 'dotenv-rails', require: 'dotenv/rails-now'
20
+ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
21
+ gem 'rspec-rails', '~> 3.5'
22
+ gem 'capybara'
23
+ gem 'capybara-mechanize', '~> 1.11'
24
+ gem 'selenium-webdriver', '3.4.3'
25
+ gem 'geckodriver-helper'
26
+ gem 'pry'
27
+ gem 'pry-byebug'
28
+ end
29
+
30
+ group :development do
31
+ gem 'web-console', '>= 3.3.0'
32
+ gem 'listen', '>= 3.0.5', '< 3.2'
33
+ end
34
+
35
+ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
@@ -0,0 +1,279 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ hubspot-api-client (3.3.0)
5
+ faraday (>= 0.14.0)
6
+ json (~> 2.1, >= 2.1.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (5.2.3)
12
+ actionpack (= 5.2.3)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailer (5.2.3)
16
+ actionpack (= 5.2.3)
17
+ actionview (= 5.2.3)
18
+ activejob (= 5.2.3)
19
+ mail (~> 2.5, >= 2.5.4)
20
+ rails-dom-testing (~> 2.0)
21
+ actionpack (5.2.3)
22
+ actionview (= 5.2.3)
23
+ activesupport (= 5.2.3)
24
+ rack (~> 2.0)
25
+ rack-test (>= 0.6.3)
26
+ rails-dom-testing (~> 2.0)
27
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
+ actionview (5.2.3)
29
+ activesupport (= 5.2.3)
30
+ builder (~> 3.1)
31
+ erubi (~> 1.4)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.2.3)
35
+ activesupport (= 5.2.3)
36
+ globalid (>= 0.3.6)
37
+ activemodel (5.2.3)
38
+ activesupport (= 5.2.3)
39
+ activerecord (5.2.3)
40
+ activemodel (= 5.2.3)
41
+ activesupport (= 5.2.3)
42
+ arel (>= 9.0)
43
+ activestorage (5.2.3)
44
+ actionpack (= 5.2.3)
45
+ activerecord (= 5.2.3)
46
+ marcel (~> 0.3.1)
47
+ activesupport (5.2.3)
48
+ concurrent-ruby (~> 1.0, >= 1.0.2)
49
+ i18n (>= 0.7, < 2)
50
+ minitest (~> 5.1)
51
+ tzinfo (~> 1.1)
52
+ addressable (2.7.0)
53
+ public_suffix (>= 2.0.2, < 5.0)
54
+ archive-zip (0.12.0)
55
+ io-like (~> 0.3.0)
56
+ arel (9.0.0)
57
+ bindex (0.8.1)
58
+ builder (3.2.3)
59
+ byebug (11.0.1)
60
+ capybara (3.29.0)
61
+ addressable
62
+ mini_mime (>= 0.1.3)
63
+ nokogiri (~> 1.8)
64
+ rack (>= 1.6.0)
65
+ rack-test (>= 0.6.3)
66
+ regexp_parser (~> 1.5)
67
+ xpath (~> 3.2)
68
+ capybara-mechanize (1.11.0)
69
+ capybara (>= 2.4.4, < 4)
70
+ mechanize (~> 2.7.0)
71
+ childprocess (0.9.0)
72
+ ffi (~> 1.0, >= 1.0.11)
73
+ clipboard-rails (1.7.1)
74
+ coderay (1.1.2)
75
+ concurrent-ruby (1.1.5)
76
+ connection_pool (2.2.2)
77
+ crass (1.0.5)
78
+ diff-lcs (1.3)
79
+ domain_name (0.5.20190701)
80
+ unf (>= 0.0.5, < 1.0.0)
81
+ dotenv (2.7.5)
82
+ dotenv-rails (2.7.5)
83
+ dotenv (= 2.7.5)
84
+ railties (>= 3.2, < 6.1)
85
+ erubi (1.9.0)
86
+ execjs (2.7.0)
87
+ faraday (1.0.1)
88
+ multipart-post (>= 1.2, < 3)
89
+ ffi (1.11.1)
90
+ geckodriver-helper (0.24.0)
91
+ archive-zip (~> 0.7)
92
+ globalid (0.4.2)
93
+ activesupport (>= 4.2.0)
94
+ http-cookie (1.0.3)
95
+ domain_name (~> 0.5)
96
+ i18n (1.7.0)
97
+ concurrent-ruby (~> 1.0)
98
+ io-like (0.3.0)
99
+ jbuilder (2.9.1)
100
+ activesupport (>= 4.2.0)
101
+ jquery-rails (4.4.0)
102
+ rails-dom-testing (>= 1, < 3)
103
+ railties (>= 4.2.0)
104
+ thor (>= 0.14, < 2.0)
105
+ jquery-ui-rails (6.0.1)
106
+ railties (>= 3.2.16)
107
+ json (2.3.0)
108
+ listen (3.1.5)
109
+ rb-fsevent (~> 0.9, >= 0.9.4)
110
+ rb-inotify (~> 0.9, >= 0.9.7)
111
+ ruby_dep (~> 1.2)
112
+ loofah (2.3.1)
113
+ crass (~> 1.0.2)
114
+ nokogiri (>= 1.5.9)
115
+ mail (2.7.1)
116
+ mini_mime (>= 0.1.1)
117
+ marcel (0.3.3)
118
+ mimemagic (~> 0.3.2)
119
+ mechanize (2.7.6)
120
+ domain_name (~> 0.5, >= 0.5.1)
121
+ http-cookie (~> 1.0)
122
+ mime-types (>= 1.17.2)
123
+ net-http-digest_auth (~> 1.1, >= 1.1.1)
124
+ net-http-persistent (>= 2.5.2)
125
+ nokogiri (~> 1.6)
126
+ ntlm-http (~> 0.1, >= 0.1.1)
127
+ webrobots (>= 0.0.9, < 0.2)
128
+ method_source (0.9.2)
129
+ mime-types (3.3)
130
+ mime-types-data (~> 3.2015)
131
+ mime-types-data (3.2019.1009)
132
+ mimemagic (0.3.3)
133
+ mini_mime (1.0.2)
134
+ mini_portile2 (2.4.0)
135
+ minitest (5.13.0)
136
+ multipart-post (2.1.1)
137
+ net-http-digest_auth (1.4.1)
138
+ net-http-persistent (3.1.0)
139
+ connection_pool (~> 2.2)
140
+ nio4r (2.5.2)
141
+ nokogiri (1.10.5)
142
+ mini_portile2 (~> 2.4.0)
143
+ ntlm-http (0.1.1)
144
+ pry (0.12.2)
145
+ coderay (~> 1.1.0)
146
+ method_source (~> 0.9.0)
147
+ pry-byebug (3.7.0)
148
+ byebug (~> 11.0)
149
+ pry (~> 0.10)
150
+ public_suffix (4.0.1)
151
+ puma (4.3.1)
152
+ nio4r (~> 2.0)
153
+ rack (2.2.2)
154
+ rack-test (1.1.0)
155
+ rack (>= 1.0, < 3)
156
+ rails (5.2.3)
157
+ actioncable (= 5.2.3)
158
+ actionmailer (= 5.2.3)
159
+ actionpack (= 5.2.3)
160
+ actionview (= 5.2.3)
161
+ activejob (= 5.2.3)
162
+ activemodel (= 5.2.3)
163
+ activerecord (= 5.2.3)
164
+ activestorage (= 5.2.3)
165
+ activesupport (= 5.2.3)
166
+ bundler (>= 1.3.0)
167
+ railties (= 5.2.3)
168
+ sprockets-rails (>= 2.0.0)
169
+ rails-dom-testing (2.0.3)
170
+ activesupport (>= 4.2.0)
171
+ nokogiri (>= 1.6)
172
+ rails-html-sanitizer (1.3.0)
173
+ loofah (~> 2.3)
174
+ railties (5.2.3)
175
+ actionpack (= 5.2.3)
176
+ activesupport (= 5.2.3)
177
+ method_source
178
+ rake (>= 0.8.7)
179
+ thor (>= 0.19.0, < 2.0)
180
+ rake (13.0.0)
181
+ rb-fsevent (0.10.3)
182
+ rb-inotify (0.10.0)
183
+ ffi (~> 1.0)
184
+ regexp_parser (1.6.0)
185
+ rspec-core (3.9.0)
186
+ rspec-support (~> 3.9.0)
187
+ rspec-expectations (3.9.0)
188
+ diff-lcs (>= 1.2.0, < 2.0)
189
+ rspec-support (~> 3.9.0)
190
+ rspec-mocks (3.9.0)
191
+ diff-lcs (>= 1.2.0, < 2.0)
192
+ rspec-support (~> 3.9.0)
193
+ rspec-rails (3.9.0)
194
+ actionpack (>= 3.0)
195
+ activesupport (>= 3.0)
196
+ railties (>= 3.0)
197
+ rspec-core (~> 3.9.0)
198
+ rspec-expectations (~> 3.9.0)
199
+ rspec-mocks (~> 3.9.0)
200
+ rspec-support (~> 3.9.0)
201
+ rspec-support (3.9.0)
202
+ ruby_dep (1.5.0)
203
+ rubyzip (1.3.0)
204
+ sass (3.7.4)
205
+ sass-listen (~> 4.0.0)
206
+ sass-listen (4.0.0)
207
+ rb-fsevent (~> 0.9, >= 0.9.4)
208
+ rb-inotify (~> 0.9, >= 0.9.7)
209
+ sass-rails (5.1.0)
210
+ railties (>= 5.2.0)
211
+ sass (~> 3.1)
212
+ sprockets (>= 2.8, < 4.0)
213
+ sprockets-rails (>= 2.0, < 4.0)
214
+ tilt (>= 1.1, < 3)
215
+ selenium-webdriver (3.4.3)
216
+ childprocess (~> 0.5)
217
+ rubyzip (~> 1.0)
218
+ sprockets (3.7.2)
219
+ concurrent-ruby (~> 1.0)
220
+ rack (> 1, < 3)
221
+ sprockets-rails (3.2.1)
222
+ actionpack (>= 4.0)
223
+ activesupport (>= 4.0)
224
+ sprockets (>= 3.0.0)
225
+ sqlite3 (1.4.1)
226
+ thor (0.20.3)
227
+ thread_safe (0.3.6)
228
+ tilt (2.0.10)
229
+ tzinfo (1.2.5)
230
+ thread_safe (~> 0.1)
231
+ uglifier (4.2.0)
232
+ execjs (>= 0.3.0, < 3)
233
+ unf (0.1.4)
234
+ unf_ext
235
+ unf_ext (0.0.7.6)
236
+ web-console (3.7.0)
237
+ actionview (>= 5.0)
238
+ activemodel (>= 5.0)
239
+ bindex (>= 0.4.0)
240
+ railties (>= 5.0)
241
+ webrobots (0.1.2)
242
+ websocket-driver (0.7.1)
243
+ websocket-extensions (>= 0.1.0)
244
+ websocket-extensions (0.1.4)
245
+ xpath (3.2.0)
246
+ nokogiri (~> 1.8)
247
+
248
+ PLATFORMS
249
+ ruby
250
+
251
+ DEPENDENCIES
252
+ byebug
253
+ capybara
254
+ capybara-mechanize (~> 1.11)
255
+ clipboard-rails
256
+ dotenv-rails
257
+ geckodriver-helper
258
+ hubspot-api-client!
259
+ jbuilder (~> 2.5)
260
+ jquery-rails
261
+ jquery-ui-rails
262
+ listen (>= 3.0.5, < 3.2)
263
+ pry
264
+ pry-byebug
265
+ puma (~> 4.3)
266
+ rails (~> 5.2.3)
267
+ rspec-rails (~> 3.5)
268
+ sass-rails (~> 5.0)
269
+ selenium-webdriver (= 3.4.3)
270
+ sqlite3
271
+ tzinfo-data
272
+ uglifier (>= 1.3.0)
273
+ web-console (>= 3.3.0)
274
+
275
+ RUBY VERSION
276
+ ruby 2.6.3p62
277
+
278
+ BUNDLED WITH
279
+ 1.17.3