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 +4 -4
- data/.github/workflows/ruby.yml +1 -3
- data/.ruby-version +1 -1
- data/Gemfile.lock +39 -34
- data/README.md +3 -1
- data/lib/htmlcsstoimage/version.rb +1 -1
- data/lib/htmlcsstoimage.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c33bcd3c7a212ce188b7016c5910a5053f801005a2eb93d367b2cc2722a98aee
|
|
4
|
+
data.tar.gz: de1d090df2591e9c37b2a60b9331b83cb700c106e971782d2bce16345086e6cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eaebdc8ab7326430a86bbca299376e94cf890ba4f7e4bceaf2b7aa7e4ef18d974ce3223defba69015dcccfaf78bc1ed2aa101069d626f36130d53b55f5633f83
|
|
7
|
+
data.tar.gz: 490e852085597ab9c65bf6c9a812853f3585a5c4c9ec0a26a0a816dba86d64e3db436249ff6bcf77d360c770828728685ca2d0a3392b8f6c3a8dade3ec092d1d
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -12,11 +12,9 @@ jobs:
|
|
|
12
12
|
runs-on: ubuntu-latest
|
|
13
13
|
|
|
14
14
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
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.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
|
|
12
|
-
public_suffix (>= 2.0.2, <
|
|
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.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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.
|
|
34
|
+
pry-byebug (3.10.1)
|
|
31
35
|
byebug (~> 11.0)
|
|
32
|
-
pry (
|
|
33
|
-
public_suffix (
|
|
34
|
-
rake (13.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
rspec-
|
|
38
|
-
rspec-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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.
|
|
44
|
-
rspec-mocks (3.
|
|
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.
|
|
47
|
-
rspec-support (3.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
webmock (3.
|
|
51
|
-
addressable (>= 2.
|
|
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.
|
|
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
|
|
data/lib/htmlcsstoimage.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
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.
|