mints 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pub.rb +12 -12
  3. metadata +19 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2092538b350860005ee4826457c90d29193a1e0433a66ec4a57e6871b89d2ec4
4
- data.tar.gz: 1449b810544a74c41df442362c6f32ebb0f0093cdd347c0413a527bf11b29a8a
3
+ metadata.gz: d71005d83085eec4a71aeeb68e1e83604aad1bdb2c9d6d9670e26d80833c968a
4
+ data.tar.gz: 6f469fe73f04248e1b227599d20273ea3de7f78555383b541cb18c1aec42ef03
5
5
  SHA512:
6
- metadata.gz: 3ab861e9359093bda93256401ece08d7be1c34fe50d90dc83547c4703e931f842d6deb40d9035701a02e38ebac599e21dfc9e9d453db4f9920b0aadf0f0b747d
7
- data.tar.gz: 1eccf6e965e9f5d2a48277efac3a05501ad399f387345eb0dbc58bb2678f4e126c91eca6413da61ca3fe2fad7b8be169ec34091cbccd8fbc4627cb9134493de9
6
+ metadata.gz: 1dd19261bd09205152b353ec7770a82d20bea5e13bd5a75b938d6685de21c4fce334101249ee2d2f7a91d2a626cc1b980704dfe015cb83bd510407d3fe8bf9b6
7
+ data.tar.gz: 33c6fbbfdf46ca5b1fd330a80d05ff3efceb70ebe2406b6d943e19dc3b40c31953d86a8d20d9339eea44a3a0972f1f8169034ac000256c5c5664f618e2bf21eb
data/lib/pub.rb CHANGED
@@ -30,7 +30,7 @@ module Mints
30
30
  # { "fields": "id, title, slug" }
31
31
  # { "fields[products]": "id, title, slug" }
32
32
  #
33
- # == Resource collections options
33
+ # == Resource collections options
34
34
  # * +search+ - [_String_] If present, it will search for records matching the search string. _Example:_
35
35
  # { "search": "searchstring" }
36
36
  # * +scopes+ - [_String_] If present, it will apply the specified Model's scopes. _Example:_
@@ -49,7 +49,7 @@ module Mints
49
49
  # }
50
50
  # ],
51
51
  # "operator":"or"
52
- # }
52
+ # }
53
53
  # options = { "jfilters": jfilter }
54
54
  # * +catfilters+ - [_String_] filter by categories. _Example:_
55
55
  # { "catfilters": "categoryName" }
@@ -86,7 +86,7 @@ module Mints
86
86
  def initialize(host, api_key, contact_token_id = nil, visit_id = nil, debug = false)
87
87
  @client = Mints::Client.new(host, api_key, 'public', nil, contact_token_id, visit_id, debug)
88
88
  end
89
-
89
+
90
90
  ##
91
91
  # === Register Visit.
92
92
  # Register a ghost/contact visit in Mints.Cloud.
@@ -206,7 +206,7 @@ module Mints
206
206
  # ==== Example
207
207
  # @data = @mints_pub.get_form("form_slug")
208
208
  def get_form(slug)
209
- return @client.raw("get", "/content/forms/#{slug}", nil, nil, nil, nil, true)
209
+ return @client.raw("get", "/content/forms/#{slug}", nil, nil, nil, nil, false)
210
210
  end
211
211
 
212
212
  ##
@@ -228,11 +228,11 @@ module Mints
228
228
  # @data = @mints_pub.submit_form(data)
229
229
  def submit_form(data)
230
230
  return @client.raw("post", "/content/forms/submit", nil, data_transform(data))
231
- end
231
+ end
232
232
 
233
233
  ##
234
234
  # === Get Content Instances.
235
- # Get a collection of content instances. _Note:_ Options must be specified.
235
+ # Get a collection of content instances. _Note:_ Options must be specified.
236
236
  #
237
237
  # ==== Parameters
238
238
  # options:: (Hash) -- List of {Resource collection Options}[#class-Mints::Pub-label-Resource+collections+options+] shown above can be used as parameter.
@@ -249,7 +249,7 @@ module Mints
249
249
  # "sort": "-id"
250
250
  # }
251
251
  # @data = @mints_pub.get_content_instances(options)
252
- def get_content_instances(options)
252
+ def get_content_instances(options)
253
253
  return @client.raw("get", "/content/content-instances", options)
254
254
  end
255
255
 
@@ -287,7 +287,7 @@ module Mints
287
287
  # ==== Example
288
288
  # @data = @mints_pub.get_content_page("test-page")
289
289
  def get_content_page(slug)
290
- return @client.raw("get", "/content/content-pages/#{slug}", nil, nil, nil, nil, true)
290
+ return @client.raw("get", "/content/content-pages/#{slug}", nil, nil, nil, nil, false)
291
291
  end
292
292
 
293
293
  ### V1/ECOMMERCE ###
@@ -313,7 +313,7 @@ module Mints
313
313
  def get_locations(options = nil, use_post = true)
314
314
  return get_query_results("/ecommerce/locations", options, use_post)
315
315
  end
316
-
316
+
317
317
  ##
318
318
  # === Get Products.
319
319
  # Get a collection of products.
@@ -444,7 +444,7 @@ module Mints
444
444
  def get_tag(slug, options = nil)
445
445
  return @client.raw("get", "/config/tags/#{slug}", options)
446
446
  end
447
-
447
+
448
448
  ##
449
449
  # === Get Taxonomies.
450
450
  # Get a collection of taxonomies.
@@ -458,13 +458,13 @@ module Mints
458
458
  #
459
459
  # ==== Second Example
460
460
  # options = {
461
- # "fields": "id, title"
461
+ # "fields": "id, title"
462
462
  # }
463
463
  # @data = @mints_pub.get_taxonomies(options)
464
464
  #
465
465
  # ==== Third Example
466
466
  # options = {
467
- # "fields": "id, title"
467
+ # "fields": "id, title"
468
468
  # }
469
469
  # @data = @mints_pub.get_taxonomies(options, false)
470
470
  def get_taxonomies(options = nil, use_post = true)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mints
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.22
4
+ version: 0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Gomez Garcia, Omar Mora, Luis Payan, Oscar Castillo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-13 00:00:00.000000000 Z
11
+ date: 2022-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -28,80 +28,80 @@ dependencies:
28
28
  name: httparty
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.18.0
34
- - - "~>"
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: 0.18.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ">="
41
+ - - "~>"
42
42
  - !ruby/object:Gem::Version
43
43
  version: 0.18.0
44
- - - "~>"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: 0.18.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: redis
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
51
+ - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: 4.2.2
54
- - - "~>"
54
+ - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: 4.2.2
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
61
+ - - "~>"
62
62
  - !ruby/object:Gem::Version
63
63
  version: 4.2.2
64
- - - "~>"
64
+ - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: 4.2.2
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: addressable
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
71
+ - - "~>"
72
72
  - !ruby/object:Gem::Version
73
73
  version: 2.7.0
74
- - - "~>"
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: 2.7.0
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: 2.7.0
84
- - - "~>"
84
+ - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: 2.7.0
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: rails-reverse-proxy
89
89
  requirement: !ruby/object:Gem::Requirement
90
90
  requirements:
91
- - - ">="
91
+ - - "~>"
92
92
  - !ruby/object:Gem::Version
93
93
  version: 0.9.1
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.9.1
97
97
  type: :runtime
98
98
  prerelease: false
99
99
  version_requirements: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: 0.9.1
104
- - - "~>"
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
106
  version: 0.9.1
107
107
  description:
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0'
212
212
  requirements: []
213
- rubygems_version: 3.0.3.1
213
+ rubygems_version: 3.1.6
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: MINTS gem allows to connect your Rails App to MINTS.CLOUD