prtscr 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -3
  3. data/lib/prtscr/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c5c49d2442534e189e5907a9edd239479ec9b6d
4
- data.tar.gz: 7d66cde279445b94f5c084e8f381b58031a84603
3
+ metadata.gz: 8a03d5ceee7e0104132394f7b8ba7a5a77706c72
4
+ data.tar.gz: cd5f63e359ab361941833926a6a4bff1d240728b
5
5
  SHA512:
6
- metadata.gz: b280d624379f28c8fdec5241c26517444ab994ba5c17c7eb783729d12ef5b9b9d2febb49744c1e124ca33e8860e5f66cad5470d5229d8282c846025d244e3ea3
7
- data.tar.gz: 7530dcf63710dedb263c1644bc7a2458fba3e4582fd825025960fcf6066fc88e450195e862b7992f25543769024de348bdc15379bdabf7c345fd91f60f85f471
6
+ metadata.gz: eacc9d8758da9ff8e30fe665f7d94201e4ae92b1995870231e955f934c4d3cb322631a8c259f63b46e27ce904537ba88d9420202b62291cda1c90a7cf1b2b060
7
+ data.tar.gz: 2ec164b1d293abd98bd8ee38d09d71ab8b9807dc61a70a02f6320ecb326f85d80cf843732255842a7c24b768ddc6b657d2d490d400b9b52f64adb77a4ed219c0
data/README.md CHANGED
@@ -23,18 +23,30 @@ Or install it yourself as:
23
23
  run the next line of code:
24
24
 
25
25
  ```ruby
26
- Prtscr.get(url: 'https://google.com',width: 1280, height: 1024, scale: 250, key: 'YOUR_KEY_HERE', secret: 'YOUR_SECRET_HERE')
26
+ Prtscr.get(url: 'https://google.com', width: 1280, height: 1024, scale: 250, key: 'YOUR_KEY_HERE', secret: 'YOUR_SECRET_HERE', format: 'jpg')
27
27
  ```
28
28
 
29
29
  And get something like:
30
30
 
31
31
  ```
32
- https://prtscr.ru/v1/1280x1024/250/jpg/1484087718/AIQACodQ/25dcf97122650b5c5282e5e7ab3539a1/https%3A%2F%2Fgoogle.com
32
+ https://prtscr.ru/v2/1280x1024/250/1484317141/AIQACodQ/be8d94e167d4e0e9c6d8e106582f0894/aHR0cHM6Ly9nb29nbGUuY29t.jpg
33
33
  ```
34
34
 
35
35
  Having previous line, you can use html img tag:
36
36
 
37
- ![Google website screenshot](https://prtscr.ru/v1/1280x1024/250/jpg/1484087718/AIQACodQ/25dcf97122650b5c5282e5e7ab3539a1/https%3A%2F%2Fgoogle.com)
37
+ ![Google website screenshot](https://prtscr.ru/v2/1280x1024/250/1484317141/AIQACodQ/be8d94e167d4e0e9c6d8e106582f0894/aHR0cHM6Ly9nb29nbGUuY29t.jpg)
38
+
39
+ ### Available options
40
+
41
+ **url**: URL Address
42
+ **width**: Browser width, px
43
+ **height**: Browser height, px
44
+ **scale**: Screenshot scale for width, px
45
+ **key**: Your Key
46
+ **secret**: Your Secret
47
+ **format**: Screenshot extension
48
+
49
+ **key** and **secret** options you can obtain at [PrtScr.ru](https://prtscr.ru/)
38
50
 
39
51
  ## Development
40
52
 
@@ -1,3 +1,3 @@
1
1
  module Prtscr
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prtscr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - vickodin