cinch-urbandict 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +12 -0
- data/cinch-urbandict.gemspec +4 -3
- data/lib/cinch/plugins/urbandict.rb +2 -1
- data/lib/cinch/plugins/urbandict/version.rb +1 -1
- data/spec/spec_helper.rb +4 -2
- metadata +37 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: eb9dcdf12ce886de2a8ac6ff630219a5039e710b
|
4
|
+
data.tar.gz: 1dc9d57c782c678d9507aee7e8b6ecaf77c9a977
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2a22c9be8b81ccb171e64a6be4c044bf774644092b7bc0e1d08409bf2bc3879bafbbb7f52186da2f2e6839ff4f2c0b84490a971247c15b670faa5da5e3074c9
|
7
|
+
data.tar.gz: 91438817450c8cb590c4e79e1c7e5bb25eba34d8432600a1e2766c7b5bc7733d72166c6c15eb023d3b2dd6f16883c70c286f005a1744633cb3685137f13098df
|
data/.travis.yml
CHANGED
@@ -1,8 +1,16 @@
|
|
1
1
|
language: ruby
|
2
|
+
addons:
|
3
|
+
code_climate:
|
4
|
+
repo_token: 8427e4894ac96f71edfdf334c892b27bc647dafd5a72ac7c0f366574fe67df0e
|
5
|
+
before_install:
|
6
|
+
- gem update --system
|
7
|
+
- gem update bundler
|
2
8
|
env:
|
3
9
|
global:
|
4
10
|
- "JRUBY_OPTS=-Xcext.enabled=true"
|
5
11
|
rvm:
|
12
|
+
- 2.3.0
|
13
|
+
- 2.2.0
|
6
14
|
- 2.1.0
|
7
15
|
- 2.0.0
|
8
16
|
- 1.9.3
|
@@ -15,9 +23,13 @@ rvm:
|
|
15
23
|
- ree
|
16
24
|
matrix:
|
17
25
|
allow_failures:
|
26
|
+
- rvm: 1.9.3
|
27
|
+
- rvm: 1.9.2
|
28
|
+
- rvm: 1.8.7
|
18
29
|
- rvm: 1.8.7
|
19
30
|
- rvm: ree
|
20
31
|
- rvm: jruby-18mode
|
21
32
|
- rvm: jruby-19mode
|
22
33
|
- rvm: jruby-head
|
34
|
+
- rvm: ruby-head
|
23
35
|
fast_finish: true
|
data/cinch-urbandict.gemspec
CHANGED
@@ -20,9 +20,10 @@ Gem::Specification.new do |gem|
|
|
20
20
|
|
21
21
|
gem.add_development_dependency 'rake', '~> 10'
|
22
22
|
gem.add_development_dependency 'rspec', '~> 3'
|
23
|
-
gem.add_development_dependency '
|
24
|
-
gem.add_development_dependency '
|
23
|
+
gem.add_development_dependency 'cinch-test', '~> 0.1', '>= 0.1.1'
|
24
|
+
gem.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
|
25
|
+
|
25
26
|
gem.add_dependency 'cinch', '~> 2'
|
26
|
-
gem.add_dependency 'cinch-cooldown', '~> 1.1', '>= 1.1.
|
27
|
+
gem.add_dependency 'cinch-cooldown', '~> 1.1', '>= 1.1.7'
|
27
28
|
gem.add_dependency 'cinch-toolbox', '~> 1.1'
|
28
29
|
end
|
@@ -26,7 +26,8 @@ module Cinch
|
|
26
26
|
term = URI.escape(term, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))
|
27
27
|
|
28
28
|
# Check if it's not defined.
|
29
|
-
|
29
|
+
check = Cinch::Toolbox.get_html_element(ud_url(term), '.word')
|
30
|
+
if check && check == '¯\_(ツ)_/¯'
|
30
31
|
return "Urban Dictionary ∴ #{term}: No definition available."
|
31
32
|
end
|
32
33
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,123 +1,123 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cinch-urbandict
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Haberer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '10'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: cinch-test
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.1'
|
48
|
+
- - ">="
|
46
49
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
50
|
+
version: 0.1.1
|
48
51
|
type: :development
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- - ~>
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0.1'
|
58
|
+
- - ">="
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
60
|
+
version: 0.1.1
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
62
|
+
name: codeclimate-test-reporter
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0.1'
|
62
|
-
- - ! '>='
|
65
|
+
- - "~>"
|
63
66
|
- !ruby/object:Gem::Version
|
64
|
-
version: 0.
|
67
|
+
version: '0.4'
|
65
68
|
type: :development
|
66
69
|
prerelease: false
|
67
70
|
version_requirements: !ruby/object:Gem::Requirement
|
68
71
|
requirements:
|
69
|
-
- - ~>
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '0.1'
|
72
|
-
- - ! '>='
|
72
|
+
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 0.
|
74
|
+
version: '0.4'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: cinch
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - ~>
|
79
|
+
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '2'
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - ~>
|
86
|
+
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '2'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: cinch-cooldown
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - ~>
|
93
|
+
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '1.1'
|
96
|
-
- -
|
96
|
+
- - ">="
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: 1.1.
|
98
|
+
version: 1.1.7
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
101
|
version_requirements: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- - ~>
|
103
|
+
- - "~>"
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '1.1'
|
106
|
-
- -
|
106
|
+
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: 1.1.
|
108
|
+
version: 1.1.7
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: cinch-toolbox
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
|
-
- - ~>
|
113
|
+
- - "~>"
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '1.1'
|
116
116
|
type: :runtime
|
117
117
|
prerelease: false
|
118
118
|
version_requirements: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- - ~>
|
120
|
+
- - "~>"
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '1.1'
|
123
123
|
description: Cinch Plugin to fetch definition data from Urban Dictionary
|
@@ -127,8 +127,8 @@ executables: []
|
|
127
127
|
extensions: []
|
128
128
|
extra_rdoc_files: []
|
129
129
|
files:
|
130
|
-
- .gitignore
|
131
|
-
- .travis.yml
|
130
|
+
- ".gitignore"
|
131
|
+
- ".travis.yml"
|
132
132
|
- Gemfile
|
133
133
|
- LICENSE.txt
|
134
134
|
- README.md
|
@@ -149,17 +149,17 @@ require_paths:
|
|
149
149
|
- lib
|
150
150
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- -
|
152
|
+
- - ">="
|
153
153
|
- !ruby/object:Gem::Version
|
154
154
|
version: '0'
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.4.8
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: Cinch Plugin for Urban Dictionary
|