pdfmonkey 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff117f74d9d9afa3c9085624a3187a1f88a47770be2ce9b6ef08c70ad89b8f1f
4
- data.tar.gz: eb0cace007db56e9030470cf45c9a20f6b539738be1d22903edca1e5542a66c3
3
+ metadata.gz: 981628ac067f138aaf0a098ddf561f7537b3838df84d1c7b3410583b5e66fa35
4
+ data.tar.gz: 168ab9c7819b220d2e26eac8910993d7e62db504ecdae8806d0081962f60754b
5
5
  SHA512:
6
- metadata.gz: 6a210f72119b84c43407aa8c42ccb29dd73280c159902651b4fb6f57122a4060f673d2e240f1d729c60dca8052efe62224250f8e9334de8bd5afc76cd8d8c807
7
- data.tar.gz: d146ca183867e0274b9b75be76116de40c9ef9fc985d8cf816c7196ee85f90604115c4745cb531551bc28fb23cd84c1a2a49be266c2f2d68d775de1a29233cbe
6
+ metadata.gz: 3df5b9ac944318e0e47ba81cbd6aafe865e6eb00117e8646a5ea0f0068808fb24d8f3f6145beb2f7f87d9a3223b3d760f3c7d63dc42c04a5ca7498e24777b358
7
+ data.tar.gz: 0aee89379452faa4b588c258d54d7b44fb702c14d2ed6fe2efdb478fbe8dd58b6ce5a167bb93de1704fa49c51fff656e9e68a8f3b87184106c88f207425d9259
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # Changelog
2
2
 
3
- # 0.5.0
3
+ ## HEAD
4
+
5
+ * Updating bundler to v2.2
6
+
7
+ ## 0.6.0
8
+
9
+ * Making the request `User-Agent` header configurable
10
+
11
+ ## 0.5.0
4
12
 
5
13
  * Adding `Document#filename`
6
14
  * Adding `Document.delete` and `Document#delete!`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pdfmonkey (0.5.0)
4
+ pdfmonkey (0.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -60,7 +60,7 @@ PLATFORMS
60
60
  ruby
61
61
 
62
62
  DEPENDENCIES
63
- bundler (~> 1.17)
63
+ bundler (~> 2.2)
64
64
  coveralls (~> 0.8)
65
65
  pdfmonkey!
66
66
  rake (~> 13.0)
@@ -68,4 +68,4 @@ DEPENDENCIES
68
68
  rubocop (~> 0.60.0)
69
69
 
70
70
  BUNDLED WITH
71
- 1.17.3
71
+ 2.2.30
data/README.md CHANGED
@@ -50,7 +50,7 @@ Once your App is created in the [PDFMonkey Dashboard](https://dashboard.pdfmonke
50
50
  If your want to wait for a Document’s generation before continuing with your workflow, use the `generate!` method, it will request a document generation and wait for it to succeed or fail before giving you any answer.
51
51
 
52
52
  ```ruby
53
- tempalte_id = 'b13ebd75-d290-409b-9cac-8f597ae3e785'
53
+ template_id = 'b13ebd75-d290-409b-9cac-8f597ae3e785'
54
54
  data = { name: 'John Doe' }
55
55
 
56
56
  document = Pdfmonkey::Document.generate!(template_id, data)
@@ -72,7 +72,7 @@ PDFMonkey was created with an asynchronous workflow in mind. It provides webhook
72
72
  To leverage this behavior and continue working while your Document is generated, use the `generate` method:
73
73
 
74
74
  ```ruby
75
- tempalte_id = 'b13ebd75-d290-409b-9cac-8f597ae3e785'
75
+ template_id = 'b13ebd75-d290-409b-9cac-8f597ae3e785'
76
76
  data = { name: 'John Doe' }
77
77
 
78
78
  document = Pdfmonkey::Document.generate(template_id, data)
@@ -133,7 +133,7 @@ In case of error, be it an HTTP layer error or an API error, `document.status` w
133
133
  ```ruby
134
134
  # Using an unknown template
135
135
 
136
- tempalte_id = 'unknown'
136
+ template_id = 'unknown'
137
137
  data = { name: 'John Doe' }
138
138
 
139
139
  document = Pdfmonkey::Document.generate(template_id, data)
@@ -50,7 +50,7 @@ module Pdfmonkey
50
50
  {
51
51
  'Authorization' => "Bearer #{config.private_key}",
52
52
  'Content-Type' => 'application/json',
53
- 'User-Agent' => 'Ruby'
53
+ 'User-Agent' => config.user_agent
54
54
  }
55
55
  end
56
56
 
@@ -5,11 +5,13 @@ module Pdfmonkey
5
5
  attr_accessor :host
6
6
  attr_accessor :namespace
7
7
  attr_accessor :private_key
8
+ attr_accessor :user_agent
8
9
 
9
10
  def initialize
10
11
  @host = 'https://api.pdfmonkey.io'
11
12
  @namespace = 'api/v1'
12
13
  @private_key = ENV['PDFMONKEY_PRIVATE_KEY']
14
+ @user_agent = 'Ruby'
13
15
  end
14
16
  end
15
17
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pdfmonkey
4
- VERSION = '0.5.0'
4
+ VERSION = '0.6.0'
5
5
  end
data/pdfmonkey.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.add_development_dependency 'bundler', '~> 1.17'
25
+ spec.add_development_dependency 'bundler', '~> 2.2'
26
26
  spec.add_development_dependency 'coveralls', '~> 0.8'
27
27
  spec.add_development_dependency 'rake', '~> 13.0'
28
28
  spec.add_development_dependency 'rspec', '~> 3.8'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdfmonkey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Courtois
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-16 00:00:00.000000000 Z
11
+ date: 2021-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.17'
19
+ version: '2.2'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.17'
26
+ version: '2.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coveralls
29
29
  requirement: !ruby/object:Gem::Requirement