mints 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pub.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57e9b1a288e9458592721e05c9f5ffcd4a54162f9d89624260eca3c0a881c8c9
|
4
|
+
data.tar.gz: 9e95bc1ae4b48b2d819fd418446a0feae7a621c0fff47fc51504d8d2c827cf19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2404e77a1f9f9dc8bd763c45ca9bbda31182768e41bb18edb9c69ec1a5087591cf85c14ca37379dff0c56437b4de035ae4feabc083e082a2174c28667cc49ea7
|
7
|
+
data.tar.gz: 8e075f031ecdf7244dc36ed230152b185a549724a8a151de4507d55ddf30736f5719cb50637a9236b41d5e8a9f42d982fc071ab171b6899dd2b6adc4eb9cde15
|
data/lib/pub.rb
CHANGED
@@ -42,8 +42,8 @@ module Mints
|
|
42
42
|
# * +contact_token+ - [String] Cookie 'mints_contact_id' value (mints_contact_token)
|
43
43
|
# ==== Return
|
44
44
|
# Returns a Client object
|
45
|
-
def initialize(host, api_key, contact_token = nil, debug = false)
|
46
|
-
@client = Mints::Client.new(host, api_key, contact_token, debug)
|
45
|
+
def initialize(host, api_key, contact_token = nil, debug = false)
|
46
|
+
@client = Mints::Client.new(host, api_key, 'public', contact_token, debug)
|
47
47
|
end
|
48
48
|
|
49
49
|
##
|
@@ -178,7 +178,7 @@ module Mints
|
|
178
178
|
# ==== Parameters
|
179
179
|
# * +data+ - [Hash] Data to be submited
|
180
180
|
def submit_form(data)
|
181
|
-
return @client.raw("post", "/forms/
|
181
|
+
return @client.raw("post", "/content/forms/submit", nil, data)
|
182
182
|
end
|
183
183
|
|
184
184
|
##
|