html_to_pdf_conversion 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: e031314814996568fb05ed348df391ef26a9a715
4
- data.tar.gz: 0fd3f52fb05cf4970dab1832283a45730af63992
3
+ metadata.gz: ce7ca2406bf947a20244c2fc372ab12d0e7ecc4c
4
+ data.tar.gz: aa4402a955a0578d76025cd4cf7c01c221c3c3ff
5
5
  SHA512:
6
- metadata.gz: 4566cd282e29129870b8e81aef20a098686d2a47973ff28e7b5821229fdf363ed35f63e9e0725b4b6522afe043cefd570a73f17bf0eea3ca0be9bb8b5b82f0ee
7
- data.tar.gz: 29018032cec1fb56ae836b39524d42aee0d93c2b382bedf3e24f0473877a8b1148c9d62aa080dcaa475290344b98602efda3d334d778af38065c4b7719a15d73
6
+ metadata.gz: d641a9ad69c4173dcb7987d62d79e908af726754fe2c5d388d0b06ec534dfa8016d288d27f45b3bd74897cd3896a8f77d312c41b793d70a54570892b7839cf33
7
+ data.tar.gz: 7a07a07385b87714cc9ec37d5f53373c5ad30663026d82403a724d8279465354d85cdc56882d7d1d23619898c8b70cbddf8c4e165cfedbf6fef59c4983dea582
@@ -0,0 +1,7 @@
1
+ require 'html_to_pdf_conversion'
2
+ require 'dotenv'
3
+
4
+ Dotenv.load
5
+
6
+ @client = PDFlayer::Client.new(ENV['ACCESS_KEY'], ENV['SECRET_KEY'])
7
+ response = @client.convert('http://apilayer.net', { export: File.join('tmp', SecureRandom.uuid() +'.pdf') })
@@ -4,18 +4,19 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'html_to_pdf_conversion/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "html_to_pdf_conversion"
8
- spec.version = PDFlayer::VERSION
9
- spec.authors = ["Peter Andreas Moelgaard"]
10
- spec.email = ["github@petermolgaard.com"]
7
+ spec.name = "html_to_pdf_conversion"
8
+ spec.version = PDFlayer::VERSION
9
+ spec.authors = ["Peter Andreas Moelgaard"]
10
+ spec.email = ["github@petermolgaard.com"]
11
+ spec.homepage = "https://github.com/pmoelgaard/html_to_pdf_conversion"
11
12
 
12
- spec.summary = "html_to_pdf_conversion"
13
- spec.description = "html_to_pdf_conversion"
14
- spec.license = "MIT"
13
+ spec.summary = "html_to_pdf_conversion"
14
+ spec.description = "html_to_pdf_conversion"
15
+ spec.license = "MIT"
15
16
 
16
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
- spec.bindir = "exe"
18
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
20
  spec.require_paths = ["lib"]
20
21
 
21
22
  spec.add_runtime_dependency "httparty"
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="gem" name="Ruby Gem">
5
+ <configuration>
6
+ <option name="GEM_APP_ROOT_PATH" value="" />
7
+ <option name="GEM_APP_TEST_PATH" value="" />
8
+ <option name="GEM_APP_LIB_PATH" value="" />
9
+ </configuration>
10
+ </facet>
11
+ </component>
12
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
13
+ <exclude-output />
14
+ <content url="file://$MODULE_DIR$" />
15
+ <orderEntry type="inheritedJdk" />
16
+ <orderEntry type="sourceFolder" forTests="false" />
17
+ <orderEntry type="library" scope="PROVIDED" name="bump (v0.5.3, ruby-2.0.0-p645) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.11.2, ruby-2.0.0-p645) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, ruby-2.0.0-p645) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="dotenv (v2.1.0, ruby-2.0.0-p645) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="httparty (v0.13.7, ruby-2.0.0-p645) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="json (v1.8.3, ruby-2.0.0-p645) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="multi_xml (v0.5.5, ruby-2.0.0-p645) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, ruby-2.0.0-p645) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.4.0, ruby-2.0.0-p645) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.4.2, ruby-2.0.0-p645) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.4.0, ruby-2.0.0-p645) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.4.1, ruby-2.0.0-p645) [gem]" level="application" />
29
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.4.1, ruby-2.0.0-p645) [gem]" level="application" />
30
+ </component>
31
+ </module>
@@ -1,3 +1,3 @@
1
1
  module PDFlayer
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_to_pdf_conversion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Andreas Moelgaard
@@ -110,10 +110,12 @@ files:
110
110
  - Rakefile
111
111
  - bin/console
112
112
  - bin/setup
113
+ - example/example.rb
113
114
  - html_to_pdf_conversion.gemspec
115
+ - html_to_pdf_conversion.iml
114
116
  - lib/html_to_pdf_conversion.rb
115
117
  - lib/html_to_pdf_conversion/version.rb
116
- homepage:
118
+ homepage: https://github.com/pmoelgaard/html_to_pdf_conversion
117
119
  licenses:
118
120
  - MIT
119
121
  metadata: {}