docapurl 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CH_README.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +7 -0
- data/lib/docapurl/browser.rb +6 -2
- data/lib/docapurl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c175e73c80948788100dfec7dab654d13cd0ab9c2f1e1f195cb27be55c858b23
|
4
|
+
data.tar.gz: e8c774fd4072aa0cd047afbc7ec7345e9f9a145717ba3c058342502cae6ff6ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aa1857f6b4309ca714ddf6eb53c36bfdde2191db93efc07d2e23df4209a507ade2d48a8e0959710dd229c560642261d2c204dad99262b57d5878cbaa9321c65
|
7
|
+
data.tar.gz: 8478697b36cc173f4efb4e02f01ea42e34d3c31300df6e1300599c19d2bf1b36dc159ed3389238780ffa46847ef9dc67c3d3b0a28802a2d15378a9f96b916835
|
data/CH_README.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -3,6 +3,13 @@
|
|
3
3
|
A tool to screenshot the webpage on terminal.
|
4
4
|
|
5
5
|
[chinese_readme 中文说明](https://github.com/jicheng1014/docapurl/blob/master/CH_README.md)
|
6
|
+
|
7
|
+
## Capture url as a Service
|
8
|
+
|
9
|
+
[https://www.urlprint.com](https://www.urlprint.com) provides the capture url service, REST API supported.
|
10
|
+
|
11
|
+
|
12
|
+
|
6
13
|
## Installation
|
7
14
|
|
8
15
|
Add this line to your application's Gemfile:
|
data/lib/docapurl/browser.rb
CHANGED
@@ -78,8 +78,12 @@ module Docapurl
|
|
78
78
|
private
|
79
79
|
|
80
80
|
def set_callback(name, options)
|
81
|
-
|
82
|
-
|
81
|
+
the_function = options.delete name
|
82
|
+
if the_function.nil?
|
83
|
+
the_function = options.delete name.to_sym
|
84
|
+
end
|
85
|
+
|
86
|
+
the_function.call(self) unless the_function.nil?
|
83
87
|
end
|
84
88
|
|
85
89
|
|
data/lib/docapurl/version.rb
CHANGED