botolo 0.32.0 → 0.32.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/botolo.gemspec +1 -1
- data/lib/botolo/bot/engine.rb +1 -7
- data/lib/botolo/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b66a2eab80cb8c20bdc0f91db07317b19ebfd9d
|
4
|
+
data.tar.gz: b1ebbb6c120db6428c41e902e2bbf55567c73ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 172804cd5dadc0554b2e8f325420bfcc051c0aefc5f0802ca892da2a4000269305bf874c4f7f1e733a55ec3210f6af9443bbb13040ee353ea55ea7f76bc987be
|
7
|
+
data.tar.gz: a971414dcb232acd5dd1701c45ae21447756245a98e11abf40b38464d05e660974b95b6d48baae4e0feb07302270a3caebd70e3352156e8a71b8a443b8a6462e
|
data/botolo.gemspec
CHANGED
data/lib/botolo/bot/engine.rb
CHANGED
@@ -14,10 +14,9 @@ module Botolo
|
|
14
14
|
@tasks = @config['task']
|
15
15
|
@task_pids = []
|
16
16
|
|
17
|
-
behaviour = File.join(".", @config['bot']['behaviour']) unless @config['bot']['behaviour'].nil?
|
17
|
+
behaviour = File.join(".", @config['bot']['behaviour']) unless @config['bot']['behaviour'].nil?
|
18
18
|
|
19
19
|
$logger.helo "#{name} v#{version} is starting up"
|
20
|
-
|
21
20
|
$logger.log "#{@tasks.size} tasks loaded"
|
22
21
|
|
23
22
|
begin
|
@@ -30,12 +29,9 @@ module Botolo
|
|
30
29
|
$logger.log "reverting to default dummy behaviour"
|
31
30
|
@behaviour = Botolo::Bot::Behaviour.new(@config)
|
32
31
|
end
|
33
|
-
|
34
|
-
|
35
32
|
end
|
36
33
|
|
37
34
|
def calc_sleep_time(task)
|
38
|
-
|
39
35
|
s = /every (\d) (s|m|h|d|w|y)/.match task
|
40
36
|
|
41
37
|
return 300 if s.nil? # safe fallback is 5 minutes sleeping
|
@@ -56,7 +52,6 @@ module Botolo
|
|
56
52
|
start_task(task['action'], task['schedule'])
|
57
53
|
end
|
58
54
|
end
|
59
|
-
|
60
55
|
end
|
61
56
|
|
62
57
|
def infinite_loop
|
@@ -90,7 +85,6 @@ module Botolo
|
|
90
85
|
true
|
91
86
|
end
|
92
87
|
|
93
|
-
|
94
88
|
def authenticate
|
95
89
|
begin
|
96
90
|
Twitter.configure do |config|
|
data/lib/botolo/version.rb
CHANGED
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: botolo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.32.
|
4
|
+
version: 0.32.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paolo Perego
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
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: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
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: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: twitter
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
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
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: codesake-commons
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: botolo is a bot engine written in ruby
|
@@ -74,7 +74,7 @@ executables:
|
|
74
74
|
extensions: []
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
|
-
- .gitignore
|
77
|
+
- ".gitignore"
|
78
78
|
- Gemfile
|
79
79
|
- LICENSE.txt
|
80
80
|
- README.md
|
@@ -95,17 +95,17 @@ require_paths:
|
|
95
95
|
- lib
|
96
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
97
97
|
requirements:
|
98
|
-
- -
|
98
|
+
- - ">="
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- -
|
103
|
+
- - ">="
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.
|
108
|
+
rubygems_version: 2.2.1
|
109
109
|
signing_key:
|
110
110
|
specification_version: 4
|
111
111
|
summary: botolo is a bot engine written in ruby. With botolo you can focus on writing
|