htmlcsstoimage-api 0.1.3 → 0.1.4

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: 939005ab5dbc481066edc4aa72e5b6118dffbf38111245ac81b5a07a5c3e7b62
4
- data.tar.gz: 90755ad2b9c749f6e95d90142ce34ed9f9e25c38da546ada1c4d9dbb50552eec
3
+ metadata.gz: c33bcd3c7a212ce188b7016c5910a5053f801005a2eb93d367b2cc2722a98aee
4
+ data.tar.gz: de1d090df2591e9c37b2a60b9331b83cb700c106e971782d2bce16345086e6cc
5
5
  SHA512:
6
- metadata.gz: 89dd9fd2ae2adaec762cbb41e3453a154764eb9437c32a750d4e0d92e4d25a4dcfe4883f7807b2af23a17a2f9a6fbdc55043853673ea2e231cb78275ea002baf
7
- data.tar.gz: 1e7c86833503da5758b89bbf5020951bad4deb031603064d27cedf6abdbe8468db078382eeea53e5994ea62529054a6affe8643160982ba85f4ae70d24658505
6
+ metadata.gz: eaebdc8ab7326430a86bbca299376e94cf890ba4f7e4bceaf2b7aa7e4ef18d974ce3223defba69015dcccfaf78bc1ed2aa101069d626f36130d53b55f5633f83
7
+ data.tar.gz: 490e852085597ab9c65bf6c9a812853f3585a5c4c9ec0a26a0a816dba86d64e3db436249ff6bcf77d360c770828728685ca2d0a3392b8f6c3a8dade3ec092d1d
@@ -12,11 +12,9 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
 
14
14
  steps:
15
- - uses: actions/checkout@v2
15
+ - uses: actions/checkout@v4
16
16
  - name: Set up Ruby
17
17
  uses: ruby/setup-ruby@v1
18
- with:
19
- ruby-version: 2.6
20
18
  - name: Install dependencies
21
19
  run: bundle install
22
20
  - name: Run tests
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.3
1
+ 3.3.5
data/Gemfile.lock CHANGED
@@ -8,47 +8,52 @@ PATH
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.7.0)
12
- public_suffix (>= 2.0.2, < 5.0)
11
+ addressable (2.8.7)
12
+ public_suffix (>= 2.0.2, < 7.0)
13
+ base64 (0.2.0)
14
+ bigdecimal (3.1.8)
13
15
  byebug (11.1.3)
14
16
  coderay (1.1.3)
15
- crack (0.4.3)
16
- safe_yaml (~> 1.0.0)
17
- diff-lcs (1.4.4)
18
- hashdiff (1.0.1)
19
- httparty (0.18.1)
20
- mime-types (~> 3.0)
17
+ crack (1.0.0)
18
+ bigdecimal
19
+ rexml
20
+ csv (3.3.0)
21
+ diff-lcs (1.5.1)
22
+ hashdiff (1.1.1)
23
+ httparty (0.22.0)
24
+ csv
25
+ mini_mime (>= 1.0.0)
21
26
  multi_xml (>= 0.5.2)
22
- method_source (1.0.0)
23
- mime-types (3.3.1)
24
- mime-types-data (~> 3.2015)
25
- mime-types-data (3.2021.0212)
26
- multi_xml (0.6.0)
27
- pry (0.13.1)
27
+ method_source (1.1.0)
28
+ mini_mime (1.1.5)
29
+ multi_xml (0.7.1)
30
+ bigdecimal (~> 3.1)
31
+ pry (0.14.2)
28
32
  coderay (~> 1.1)
29
33
  method_source (~> 1.0)
30
- pry-byebug (3.9.0)
34
+ pry-byebug (3.10.1)
31
35
  byebug (~> 11.0)
32
- pry (~> 0.13.0)
33
- public_suffix (4.0.5)
34
- rake (13.0.1)
35
- rspec (3.9.0)
36
- rspec-core (~> 3.9.0)
37
- rspec-expectations (~> 3.9.0)
38
- rspec-mocks (~> 3.9.0)
39
- rspec-core (3.9.2)
40
- rspec-support (~> 3.9.3)
41
- rspec-expectations (3.9.2)
36
+ pry (>= 0.13, < 0.15)
37
+ public_suffix (6.0.1)
38
+ rake (13.2.1)
39
+ rexml (3.3.9)
40
+ rspec (3.13.0)
41
+ rspec-core (~> 3.13.0)
42
+ rspec-expectations (~> 3.13.0)
43
+ rspec-mocks (~> 3.13.0)
44
+ rspec-core (3.13.2)
45
+ rspec-support (~> 3.13.0)
46
+ rspec-expectations (3.13.3)
42
47
  diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.9.0)
44
- rspec-mocks (3.9.1)
48
+ rspec-support (~> 3.13.0)
49
+ rspec-mocks (3.13.2)
45
50
  diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.9.0)
47
- rspec-support (3.9.3)
48
- safe_yaml (1.0.5)
49
- vcr (6.0.0)
50
- webmock (3.8.3)
51
- addressable (>= 2.3.6)
51
+ rspec-support (~> 3.13.0)
52
+ rspec-support (3.13.1)
53
+ vcr (6.3.1)
54
+ base64
55
+ webmock (3.24.0)
56
+ addressable (>= 2.8.0)
52
57
  crack (>= 0.3.2)
53
58
  hashdiff (>= 0.4.0, < 2.0.0)
54
59
 
@@ -66,4 +71,4 @@ DEPENDENCIES
66
71
  webmock
67
72
 
68
73
  BUNDLED WITH
69
- 2.1.4
74
+ 2.5.23
data/README.md CHANGED
@@ -11,7 +11,7 @@ Generate png, jpg or webp images with Ruby. Renders exactly like Google Chrome.
11
11
  Add this line to your application's Gemfile:
12
12
 
13
13
  ```ruby
14
- gem 'htmlcsstoimage-api'
14
+ gem 'htmlcsstoimage-api', require: 'htmlcsstoimage'
15
15
  ```
16
16
 
17
17
  And then execute:
@@ -27,6 +27,7 @@ Or install it yourself as:
27
27
  Create a new instance of the API client.
28
28
 
29
29
  ```ruby
30
+ require "htmlcsstoimage"
30
31
  # Retrieve your user id and api key from https://htmlcsstoimage.com/dashboard
31
32
  client = HTMLCSSToImage.new(user_id: "user-id", api_key: "api-key")
32
33
  ```
@@ -36,6 +37,7 @@ client = HTMLCSSToImage.new(user_id: "user-id", api_key: "api-key")
36
37
  Alternatively, you can set `ENV["HCTI_USER_ID"]` and `ENV["HCTI_API_KEY"]`. These will be loaded automatically.
37
38
 
38
39
  ```ruby
40
+ require "htmlcsstoimage"
39
41
  client = HTMLCSSToImage.new
40
42
  ```
41
43
 
@@ -1,3 +1,3 @@
1
1
  class HTMLCSSToImage
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -1,6 +1,7 @@
1
1
  require "htmlcsstoimage/version"
2
2
  require "httparty"
3
3
  require "addressable"
4
+ require "ostruct"
4
5
 
5
6
  class HTMLCSSToImage
6
7
  include HTTParty
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: htmlcsstoimage-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Coutermarsh
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-12-19 00:00:00.000000000 Z
12
+ date: 2024-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  requirements: []
207
- rubygems_version: 3.3.26
207
+ rubygems_version: 3.5.16
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: Ruby client for the HTML/CSS to Image API.