cinch-toolbox 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +21 -1
- data/cinch-toolbox.gemspec +0 -1
- data/lib/cinch/toolbox.rb +3 -1
- data/lib/cinch/toolbox/version.rb +1 -1
- metadata +5 -36
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: 74b989f4db81f01c47d4299fe198d9be4c846936
|
4
|
+
data.tar.gz: 2a248bccde80d1a50f2bce9375937f7bf031f711
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1d80772822326e613ec8c225813f5e55370a164904ba04fabcd0dcf1c2b0fb009877dc3a134c3c6f014076e14cd09c85da643bef40adf346aa1e31ce88fb3340
|
7
|
+
data.tar.gz: 91721aaff6e505cffc115b01ff739e3a5ec76d7245de9b8548e3a6f0ad20591607ecf2f23d8bc17f7c1b9806bbb9c2c2319ca30d764e83b2ac2e47151df76a5e
|
data/.travis.yml
CHANGED
@@ -1,4 +1,24 @@
|
|
1
1
|
language: ruby
|
2
|
+
env:
|
3
|
+
global:
|
4
|
+
- "JRUBY_OPTS=-Xcext.enabled=true"
|
2
5
|
rvm:
|
3
|
-
- 1.
|
6
|
+
- 2.1.0
|
7
|
+
- 2.0.0
|
4
8
|
- 1.9.3
|
9
|
+
- 1.9.2
|
10
|
+
- 1.8.7
|
11
|
+
- jruby-18mode
|
12
|
+
- jruby-19mode
|
13
|
+
- rbx
|
14
|
+
- ruby-head
|
15
|
+
- jruby-head
|
16
|
+
- ree
|
17
|
+
matrix:
|
18
|
+
allow_failures:
|
19
|
+
- rvm: 1.8.7
|
20
|
+
- rvm: ree
|
21
|
+
- rvm: jruby-18mode
|
22
|
+
- rvm: jruby-19mode
|
23
|
+
- rvm: jruby-head
|
24
|
+
fast_finish: true
|
data/cinch-toolbox.gemspec
CHANGED
data/lib/cinch/toolbox.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
require 'cinch/toolbox/version'
|
3
3
|
require 'open-uri'
|
4
|
-
require 'patron'
|
5
4
|
require 'nokogiri'
|
6
5
|
require 'net/http'
|
7
6
|
require 'uri'
|
@@ -66,6 +65,9 @@ module Cinch
|
|
66
65
|
uri = URI.parse("http://is.gd/create.php?format=simple&url=#{url}")
|
67
66
|
shortened = Net::HTTP.get(uri)
|
68
67
|
shortened if shortened.match(%r(https?://is.gd/))
|
68
|
+
rescue Errno::ETIMEDOUT
|
69
|
+
# if the URL shortener is down, handle it.
|
70
|
+
url
|
69
71
|
end
|
70
72
|
|
71
73
|
# Expand a previously shortened URL via the configured shortener
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cinch-toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Brian Haberer
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-07-15 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rspec
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ! '>='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: coveralls
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ! '>='
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ! '>='
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: fakeweb
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: cinch-test
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ! '>='
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ! '>='
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -94,7 +83,6 @@ dependencies:
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: nokogiri
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - ~>
|
100
88
|
- !ruby/object:Gem::Version
|
@@ -102,27 +90,10 @@ dependencies:
|
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - ~>
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: 1.6.0
|
110
|
-
- !ruby/object:Gem::Dependency
|
111
|
-
name: patron
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ~>
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 0.4.18
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ~>
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: 0.4.18
|
126
97
|
description: A gem of various methods used in many of my plugins. If you need the
|
127
98
|
namespace, let me know.
|
128
99
|
email:
|
@@ -145,29 +116,27 @@ files:
|
|
145
116
|
homepage: https://github.com/bhaberer/cinch-toolbox
|
146
117
|
licenses:
|
147
118
|
- MIT
|
119
|
+
metadata: {}
|
148
120
|
post_install_message:
|
149
121
|
rdoc_options: []
|
150
122
|
require_paths:
|
151
123
|
- lib
|
152
124
|
required_ruby_version: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
125
|
requirements:
|
155
126
|
- - ! '>='
|
156
127
|
- !ruby/object:Gem::Version
|
157
128
|
version: '0'
|
158
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
-
none: false
|
160
130
|
requirements:
|
161
131
|
- - ! '>='
|
162
132
|
- !ruby/object:Gem::Version
|
163
133
|
version: '0'
|
164
134
|
requirements: []
|
165
135
|
rubyforge_project:
|
166
|
-
rubygems_version:
|
136
|
+
rubygems_version: 2.2.2
|
167
137
|
signing_key:
|
168
|
-
specification_version:
|
138
|
+
specification_version: 4
|
169
139
|
summary: Common methods used in Cinch Plugins.
|
170
140
|
test_files:
|
171
141
|
- spec/cinch-toolbox_spec.rb
|
172
142
|
- spec/spec_helper.rb
|
173
|
-
has_rdoc:
|