og_pilot_ruby 0.3.1 → 0.4.0

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
  SHA256:
3
- metadata.gz: 9624035f48941775c8b1e55637f9d20e6c65a10ffdcfe983ab47ef2ae53dae5d
4
- data.tar.gz: 4889190ff785ff95df863f3e320fa17c04f08e1ae2f9772ffa405922440ec58f
3
+ metadata.gz: 5c13264ba768430bb4aba5a662b4957fe73c01a87ac5ba953897b35335686ab3
4
+ data.tar.gz: 699f6f44f60db4eb9afb36a1eb17e6be4d3c80d8acabe0868140be522866d700
5
5
  SHA512:
6
- metadata.gz: 8e43e439eea7e9a8684c77cbc591a94dabc41b40b4096b8ea06eba2a8a73cb680868f362360ede49242285e94902b0258439bf40c47ae5ca91206098c74eb6b6
7
- data.tar.gz: 5b966815886946cf1af21c2028a1e9a0721a8c820df34557e8bdd047fc457fe7650b8b4848a5438ecf56dbb8cb0653519bdcf6b8a2999800ab29e9f4f2071a99
6
+ metadata.gz: dd5ab6d159c8a38f0e1d89742e0112bdc258f3b16f1a770ac5427d0524a1082db68b92658b8be5666f43642092dbfb2a19b5e655b913c1ab29900c41bd229288
7
+ data.tar.gz: fdf1e6bb75fef728a3422f6ce47326744c8b8052ec53723df1cfe19a32ba6b140b433096f3f55858ed13a1b28bd69471e81db0da6b725410084f8dc09766f363
data/README.md CHANGED
@@ -41,7 +41,7 @@ bin/rails og_pilot_ruby:install
41
41
 
42
42
  ## Usage
43
43
 
44
- Generate an image URL (follows the redirect returned by OG Pilot). In Rails, you can skip the `require`:
44
+ Generate an image URL (the client sends a signed `POST` request, then follows the redirect returned by OG Pilot). In Rails, you can skip the `require`:
45
45
 
46
46
  ```ruby
47
47
  require "og_pilot_ruby"
@@ -87,7 +87,7 @@ image_url = OgPilotRuby.create_blog_post_image(
87
87
 
88
88
  ## Parameters
89
89
 
90
- All parameters are embedded in the signed JWT payload; the only query param is `token`.
90
+ The client sends `POST /api/v1/images` requests. All parameters are embedded in the signed JWT payload; the only query param is `token`.
91
91
  The gem handles `iss` (domain) and `sub` (API key prefix) automatically.
92
92
 
93
93
  ### Core parameters
@@ -43,7 +43,7 @@ module OgPilotRuby
43
43
  http.open_timeout = config.open_timeout if config.open_timeout
44
44
  http.read_timeout = config.read_timeout if config.read_timeout
45
45
 
46
- request = Net::HTTP::Get.new(uri)
46
+ request = Net::HTTP::Post.new(uri)
47
47
  request["Accept"] = "application/json" if json
48
48
  headers.each { |key, value| request[key] = value }
49
49
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OgPilotRuby
4
- VERSION = "0.3.1"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: og_pilot_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunergos IT LLC