cogbot 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bdef8f54fe5bd401f51906179611fa781e55dbf3
4
- data.tar.gz: 8bf296fe4dd37731a8a00fafc159cdf77ef9d310
3
+ metadata.gz: 45b36ec75628b8d6451b79f414caeb384aa7394f
4
+ data.tar.gz: abf5c1aab387f0add1b6a0c2a0909e6306f4a05b
5
5
  SHA512:
6
- metadata.gz: fdca4e6047d2c6441e295474209979245ebdb9795ee5ca9cfc19c1e69f0b984d4598f792a32b538a0ef763a009da59ab7837ec2f4ed759e66d5fb1676dedf389
7
- data.tar.gz: 731aa319b66985956ce4be21af0014cf5ff3f707520ededbcae07126ebff926f5ae882985cb007c8bbb98f02da0311a4ada1f54b694dc8c12775bd7f1bbc815b
6
+ metadata.gz: f7f100e36a42d658c2da03db9be0846032959774e59f2b06df11e4bf24fb9101775c2b5be71df95459176f1b4dffb9e7172c2ba2c8d19eafb9ba25bea9284814
7
+ data.tar.gz: 19f4dcc9b8095f85481849f04c5cee5d1a08fd1dda6b50db43c3a4b028c697e285c2c0529e5a2ebbcd151eb15c53c8072ea11e65bc9376c2f87ae3256e87a3d1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Cogbot Changelog
2
2
  ===================
3
3
 
4
+ ### v0.1.12 - 2017-04-01
5
+ - add a plugin for dynip
6
+ - bundle update for security alert on libxml2
7
+
4
8
  ### v0.1.11 - 2016-07-04
5
9
  - fixed update dependencies (nokogiri security update)
6
10
 
data/Gemfile.lock CHANGED
@@ -1,74 +1,74 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cogbot (0.1.11)
5
- cinch (= 2.3.2)
6
- daemons (~> 1.2.3)
7
- eventmachine (~> 1.2.0.1)
4
+ cogbot (0.1.12)
5
+ cinch (= 2.3.3)
6
+ daemons (~> 1.2.4)
7
+ eventmachine (~> 1.2.3)
8
8
  eventmachine_httpserver (~> 0.2.1)
9
- fortune_gem (~> 0.0.8)
10
- json (~> 1.8.3)
11
- nokogiri (~> 1.6.8)
12
- thor (~> 0.19.1)
13
- twitter (~> 5.16.0)
14
- yajl-ruby (~> 1.2.1)
9
+ fortune_gem (~> 0.0.9)
10
+ json (~> 2.0.3)
11
+ nokogiri (~> 1.7.1)
12
+ thor (~> 0.19.4)
13
+ twitter (~> 6.1.0)
14
+ yajl-ruby (~> 1.3.0)
15
15
 
16
16
  GEM
17
17
  remote: https://rubygems.org/
18
18
  specs:
19
- addressable (2.4.0)
19
+ addressable (2.5.1)
20
+ public_suffix (~> 2.0, >= 2.0.2)
20
21
  awesome_print (1.7.0)
21
22
  buftok (0.2.0)
22
- cinch (2.3.2)
23
+ cinch (2.3.3)
23
24
  coderay (1.1.1)
24
- daemons (1.2.3)
25
+ daemons (1.2.4)
25
26
  docile (1.1.5)
26
- domain_name (0.5.20160615)
27
+ domain_name (0.5.20170223)
27
28
  unf (>= 0.0.5, < 1.0.0)
28
- equalizer (0.0.10)
29
- eventmachine (1.2.0.1)
29
+ equalizer (0.0.11)
30
+ eventmachine (1.2.3)
30
31
  eventmachine_httpserver (0.2.1)
31
- faraday (0.9.2)
32
+ faraday (0.11.0)
32
33
  multipart-post (>= 1.2, < 3)
33
- flog (4.4.0)
34
+ flog (4.6.1)
34
35
  path_expander (~> 1.0)
35
36
  ruby_parser (~> 3.1, > 3.1.0)
36
- sexp_processor (~> 4.4)
37
- fortune_gem (0.0.8)
38
- http (1.0.4)
37
+ sexp_processor (~> 4.8)
38
+ fortune_gem (0.0.9)
39
+ http (2.2.1)
39
40
  addressable (~> 2.3)
40
41
  http-cookie (~> 1.0)
41
42
  http-form_data (~> 1.0.1)
42
43
  http_parser.rb (~> 0.6.0)
43
- http-cookie (1.0.2)
44
+ http-cookie (1.0.3)
44
45
  domain_name (~> 0.5)
45
46
  http-form_data (1.0.1)
46
47
  http_parser.rb (0.6.0)
47
- json (1.8.3)
48
+ json (2.0.3)
48
49
  memoizable (0.4.2)
49
50
  thread_safe (~> 0.3, >= 0.3.1)
50
51
  method_source (0.8.2)
51
52
  mini_portile2 (2.1.0)
52
- minitest (5.9.0)
53
- minitest-ci (3.0.3)
54
- minitest (~> 5.0, >= 5.0.6)
53
+ minitest (5.10.1)
54
+ minitest-ci (3.2.0)
55
+ minitest (>= 5.0.6)
55
56
  multipart-post (2.0.0)
56
57
  naught (1.1.0)
57
- nokogiri (1.6.8)
58
+ nokogiri (1.7.1)
58
59
  mini_portile2 (~> 2.1.0)
59
- pkg-config (~> 1.1.7)
60
- path_expander (1.0.0)
61
- pkg-config (1.1.7)
62
- pry (0.10.3)
60
+ path_expander (1.0.1)
61
+ pry (0.10.4)
63
62
  coderay (~> 1.1.0)
64
63
  method_source (~> 0.8.1)
65
64
  slop (~> 3.4)
66
- rake (11.2.2)
67
- ruby_parser (3.8.2)
65
+ public_suffix (2.0.5)
66
+ rake (12.0.0)
67
+ ruby_parser (3.8.4)
68
68
  sexp_processor (~> 4.1)
69
- sexp_processor (4.7.0)
69
+ sexp_processor (4.8.0)
70
70
  simple_oauth (0.3.1)
71
- simplecov (0.12.0)
71
+ simplecov (0.14.1)
72
72
  docile (~> 1.1.0)
73
73
  json (>= 1.8, < 3)
74
74
  simplecov-html (~> 0.10.0)
@@ -76,23 +76,22 @@ GEM
76
76
  simplecov-rcov (0.2.3)
77
77
  simplecov (>= 0.4.1)
78
78
  slop (3.6.0)
79
- thor (0.19.1)
80
- thread_safe (0.3.5)
81
- twitter (5.16.0)
82
- addressable (~> 2.3)
79
+ thor (0.19.4)
80
+ thread_safe (0.3.6)
81
+ twitter (6.1.0)
82
+ addressable (~> 2.5)
83
83
  buftok (~> 0.2.0)
84
- equalizer (= 0.0.10)
85
- faraday (~> 0.9.0)
86
- http (~> 1.0)
84
+ equalizer (= 0.0.11)
85
+ faraday (~> 0.11.0)
86
+ http (~> 2.1)
87
87
  http_parser.rb (~> 0.6.0)
88
- json (~> 1.8)
89
- memoizable (~> 0.4.0)
90
- naught (~> 1.0)
91
- simple_oauth (~> 0.3.0)
88
+ memoizable (~> 0.4.2)
89
+ naught (~> 1.1)
90
+ simple_oauth (~> 0.3.1)
92
91
  unf (0.1.4)
93
92
  unf_ext
94
93
  unf_ext (0.0.7.2)
95
- yajl-ruby (1.2.1)
94
+ yajl-ruby (1.3.0)
96
95
 
97
96
  PLATFORMS
98
97
  ruby
@@ -109,4 +108,4 @@ DEPENDENCIES
109
108
  simplecov-rcov
110
109
 
111
110
  BUNDLED WITH
112
- 1.11.2
111
+ 1.14.3
data/PLUGINS.md CHANGED
@@ -52,6 +52,9 @@ tweet .t search <term>
52
52
  urban .u <term>
53
53
  finds the definition of <term> according to the Urban Dictionary
54
54
 
55
+ ip .ip
56
+ gets the ip of the server where the bot runs
57
+
55
58
 
56
59
  Listeners Action
57
60
  -------------- --------------------------------------------------------------
data/cogbot.gemspec CHANGED
@@ -15,17 +15,17 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = File.read(File.expand_path('../CHANGELOG.md', __FILE__))[/([0-9]+\.[0-9]+\.[0-9]+)/]
17
17
 
18
- gem.add_dependency 'cinch', '2.3.2'
19
- gem.add_dependency "thor", '~> 0.19.1'
20
- gem.add_dependency "eventmachine", '~> 1.2.0.1'
18
+ gem.add_dependency 'cinch', '2.3.3'
19
+ gem.add_dependency "thor", '~> 0.19.4'
20
+ gem.add_dependency "eventmachine", '~> 1.2.3'
21
21
  gem.add_dependency "eventmachine_httpserver", '~> 0.2.1'
22
- gem.add_dependency 'nokogiri', '~> 1.6.8'
23
- gem.add_dependency "daemons", '~> 1.2.3'
22
+ gem.add_dependency 'nokogiri', '~> 1.7.1'
23
+ gem.add_dependency "daemons", '~> 1.2.4'
24
24
 
25
- gem.add_dependency 'twitter', '~> 5.16.0' # twitter plugin
26
- gem.add_dependency 'json', '~> 1.8.3' # stackoverflow plugin
27
- gem.add_dependency 'yajl-ruby', '~> 1.2.1' # rubygems plugin
28
- gem.add_dependency 'fortune_gem', '~> 0.0.8' # fortune plugin
25
+ gem.add_dependency 'twitter', '~> 6.1.0' # twitter plugin
26
+ gem.add_dependency 'json', '~> 2.0.3' # stackoverflow plugin
27
+ gem.add_dependency 'yajl-ruby', '~> 1.3.0' # rubygems plugin
28
+ gem.add_dependency 'fortune_gem', '~> 0.0.9' # fortune plugin
29
29
 
30
30
  gem.add_development_dependency 'awesome_print'
31
31
  gem.add_development_dependency 'rake'
@@ -46,3 +46,5 @@ rss:
46
46
  replace: "https://"
47
47
  announce:
48
48
  - "#cogbot-rss"
49
+ ip:
50
+ url: http://example.com/my-ip.php
data/notes.md ADDED
@@ -0,0 +1,13 @@
1
+ Some other plugins for cinch
2
+ -------------------------------
3
+
4
+ - https://github.com/ayonix/cinch-plugins/tree/master/lib/cinch/plugins
5
+ - https://github.com/Quintus/cinch-plugins/tree/master/plugins
6
+ - https://github.com/bhaberer/cinch-twitterstatus
7
+ - https://github.com/bhaberer/cinch-notes
8
+ - https://github.com/achiu/cinch-github
9
+
10
+ Extra tools for testing
11
+ --------------------------
12
+
13
+ - https://github.com/jneen/cinch-test
data/plugins/ip.rb ADDED
@@ -0,0 +1,32 @@
1
+ require 'open-uri'
2
+
3
+ module Cinch
4
+ module Plugins
5
+ class Ip
6
+ include Cinch::Plugin
7
+
8
+ match /ip$/
9
+
10
+ set :plugin_name, 'ip'
11
+ set :help, <<EOT
12
+ returns the ip grabbed from an url
13
+ EOT
14
+
15
+ def getip()
16
+ ip = open(@bot.config.options['cogconf']['ip']['url']).read
17
+ ip == "Error" ? nil : ip
18
+ rescue OpenURI::HTTPError
19
+ nil
20
+ end
21
+
22
+ def new(bot)
23
+ @bot = bot
24
+ end
25
+
26
+ def execute(m)
27
+ m.reply("Server ip is " + getip())
28
+ end
29
+
30
+ end
31
+ end
32
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cogbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - mose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-03 00:00:00.000000000 Z
11
+ date: 2017-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cinch
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.3.2
19
+ version: 2.3.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.3.2
26
+ version: 2.3.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.19.1
33
+ version: 0.19.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.19.1
40
+ version: 0.19.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: eventmachine
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.2.0.1
47
+ version: 1.2.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.2.0.1
54
+ version: 1.2.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: eventmachine_httpserver
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,84 +72,84 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.6.8
75
+ version: 1.7.1
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.6.8
82
+ version: 1.7.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: daemons
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.2.3
89
+ version: 1.2.4
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.2.3
96
+ version: 1.2.4
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: twitter
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 5.16.0
103
+ version: 6.1.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 5.16.0
110
+ version: 6.1.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: json
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.8.3
117
+ version: 2.0.3
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.8.3
124
+ version: 2.0.3
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: yajl-ruby
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 1.2.1
131
+ version: 1.3.0
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 1.2.1
138
+ version: 1.3.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: fortune_gem
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.0.8
145
+ version: 0.0.9
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.0.8
152
+ version: 0.0.9
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: awesome_print
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -286,11 +286,13 @@ files:
286
286
  - lib/cogbot/server.rb
287
287
  - lib/cogbot/setup.rb
288
288
  - lib/cogbot/utils.rb
289
+ - notes.md
289
290
  - plugins/dice.rb
290
291
  - plugins/exec.rb
291
292
  - plugins/fortune.rb
292
293
  - plugins/gitlistener.rb
293
294
  - plugins/google.rb
295
+ - plugins/ip.rb
294
296
  - plugins/manager.rb
295
297
  - plugins/redmine.rb
296
298
  - plugins/rss.rb