docapurl 0.2.0 → 0.2.1

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: '09f3d1efd60fb58c951848cfe37121d0956baf61b6fa16b8957e4e53ca889e40'
4
- data.tar.gz: 54037e462178301985d07781e529af9f023e50973a76b2c3897869284929bbeb
3
+ metadata.gz: c175e73c80948788100dfec7dab654d13cd0ab9c2f1e1f195cb27be55c858b23
4
+ data.tar.gz: e8c774fd4072aa0cd047afbc7ec7345e9f9a145717ba3c058342502cae6ff6ba
5
5
  SHA512:
6
- metadata.gz: 586895c140e5f365821b3899e4047b4f04c08a34ce0a60dd8d0b44517864b73639594c75c2b9573b1caf9d73bb362afd884455874c8b043c5f2557a06cc00015
7
- data.tar.gz: ae00a9feb3de17fa78e3fbf9a58f601c181eb458a4fbebaa8f5e86a0711ec9990daed4a2a4a340ae7b4cd4a588bc3917103ad07a06ea841a21e0772f48b9c879
6
+ metadata.gz: 1aa1857f6b4309ca714ddf6eb53c36bfdde2191db93efc07d2e23df4209a507ade2d48a8e0959710dd229c560642261d2c204dad99262b57d5878cbaa9321c65
7
+ data.tar.gz: 8478697b36cc173f4efb4e02f01ea42e34d3c31300df6e1300599c19d2bf1b36dc159ed3389238780ffa46847ef9dc67c3d3b0a28802a2d15378a9f96b916835
data/CH_README.md CHANGED
@@ -1,10 +1,15 @@
1
1
  # Docapurl
2
2
  一个ruby的命令行截图网页的工具
3
3
 
4
+ ## 抓取网页线上服务
5
+
6
+ [https://www.urlprint.com](https://www.urlprint.com) 提供在线抓取网页生成图片的服务, 支持 REST API 调用, 欢迎各位大佬试用
7
+
4
8
  ## 安装
5
9
 
6
10
  gem install docapurl
7
11
 
12
+
8
13
  ## 前置条件
9
14
 
10
15
  - ruby 环境
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docapurl (0.2.0)
4
+ docapurl (0.2.1)
5
5
  ferrum (~> 0.11)
6
6
  thor
7
7
 
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:
@@ -78,8 +78,12 @@ module Docapurl
78
78
  private
79
79
 
80
80
  def set_callback(name, options)
81
- the_funcion = options.delete name
82
- the_funcion.call(self) unless the_funcion.nil?
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
 
@@ -1,3 +1,3 @@
1
1
  module Docapurl
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: docapurl
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
  - atpking