tkellem 0.8.10 → 0.8.11
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +13 -0
- data/lib/tkellem/bouncer.rb +4 -4
- data/lib/tkellem/tkellem_bot.rb +2 -1
- data/lib/tkellem/version.rb +1 -1
- data/resources/bot_command_descriptions.yml +1 -1
- metadata +81 -94
data/README.md
CHANGED
@@ -40,6 +40,19 @@ Note that all config and log files are stored in ~/.tkellem of the user
|
|
40
40
|
you run `tkellem start` as. You also need to run `tkellem admin` as this
|
41
41
|
same user, in order to have access to the admin console.
|
42
42
|
|
43
|
+
## Devices
|
44
|
+
|
45
|
+
Each user can connect with multiple devices. Devices are specified in your
|
46
|
+
login by appending `:<device-name>` to your login. Example:
|
47
|
+
|
48
|
+
login: <my-name>@freenode:work-machine
|
49
|
+
|
50
|
+
If there is no `:<device-name>` appended to your login, tkellem just uses a
|
51
|
+
default device.
|
52
|
+
|
53
|
+
Using multiple devices simply marks separate points in the backlog so you
|
54
|
+
get only the relevant backlog on a per-device basis.
|
55
|
+
|
43
56
|
## Upgrading
|
44
57
|
|
45
58
|
Upgrading is as simple as:
|
data/lib/tkellem/bouncer.rb
CHANGED
@@ -111,12 +111,12 @@ class Bouncer
|
|
111
111
|
ready! if msg.command == "376" # end of MOTD
|
112
112
|
false
|
113
113
|
when 'JOIN'
|
114
|
-
debug "#{msg.target_user} joined #{msg.args.
|
115
|
-
@rooms << msg.args.
|
114
|
+
debug "#{msg.target_user} joined #{msg.args.first}"
|
115
|
+
@rooms << msg.args.first if msg.target_user == @nick
|
116
116
|
true
|
117
117
|
when 'PART'
|
118
|
-
debug "#{msg.target_user} left #{msg.args.
|
119
|
-
@rooms.delete(msg.args.
|
118
|
+
debug "#{msg.target_user} left #{msg.args.first}"
|
119
|
+
@rooms.delete(msg.args.first) if msg.target_user == @nick
|
120
120
|
true
|
121
121
|
when 'PING'
|
122
122
|
send_msg("PONG tkellem!tkellem :#{msg.args.last}")
|
data/lib/tkellem/tkellem_bot.rb
CHANGED
@@ -389,7 +389,8 @@ class TkellemBot
|
|
389
389
|
unless target
|
390
390
|
create_public = (self.class.admin_user?(user) && opts['public'])
|
391
391
|
raise(Command::ArgumentError, "Only public networks can be created without a user") unless create_public || user
|
392
|
-
|
392
|
+
admin_or_user_networks = self.class.admin_user?(user) || Setting.get('allow_user_networks') == 'true'
|
393
|
+
raise(Command::ArgumentError, "Creating user networks has been disabled by the admins") unless admin_or_user_networks
|
393
394
|
target = Network.create(:name => opts['network'], :user => (create_public ? nil : user))
|
394
395
|
unless create_public
|
395
396
|
NetworkUser.create(:user => user, :network => target)
|
data/lib/tkellem/version.rb
CHANGED
metadata
CHANGED
@@ -1,109 +1,104 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkellem
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.11
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 8
|
9
|
-
- 10
|
10
|
-
version: 0.8.10
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Brian Palmer
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-01-23 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: eventmachine
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 59
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
- 12
|
32
|
-
- 10
|
20
|
+
- !ruby/object:Gem::Version
|
33
21
|
version: 0.12.10
|
34
22
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: activerecord
|
38
23
|
prerelease: false
|
39
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.12.10
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: activerecord
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
40
33
|
none: false
|
41
|
-
requirements:
|
34
|
+
requirements:
|
42
35
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
hash: 7
|
45
|
-
segments:
|
46
|
-
- 3
|
47
|
-
- 0
|
48
|
-
- 0
|
36
|
+
- !ruby/object:Gem::Version
|
49
37
|
version: 3.0.0
|
50
38
|
type: :runtime
|
51
|
-
version_requirements: *id002
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
name: sqlite3
|
54
39
|
prerelease: false
|
55
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 3.0.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: sqlite3
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
56
49
|
none: false
|
57
|
-
requirements:
|
50
|
+
requirements:
|
58
51
|
- - ~>
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
hash: 29
|
61
|
-
segments:
|
62
|
-
- 1
|
63
|
-
- 3
|
64
|
-
- 3
|
52
|
+
- !ruby/object:Gem::Version
|
65
53
|
version: 1.3.3
|
66
54
|
type: :runtime
|
67
|
-
version_requirements: *id003
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
|
-
name: rspec
|
70
55
|
prerelease: false
|
71
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.3.3
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
72
65
|
none: false
|
73
|
-
requirements:
|
66
|
+
requirements:
|
74
67
|
- - ~>
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
77
|
-
segments:
|
78
|
-
- 2
|
79
|
-
- 5
|
80
|
-
version: "2.5"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '2.5'
|
81
70
|
type: :development
|
82
|
-
version_requirements: *id004
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rcov
|
85
71
|
prerelease: false
|
86
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
87
73
|
none: false
|
88
|
-
requirements:
|
89
|
-
- -
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '2.5'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rcov
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
95
86
|
type: :development
|
96
|
-
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
97
94
|
description:
|
98
|
-
email:
|
95
|
+
email:
|
99
96
|
- brian@codekitchen.net
|
100
|
-
executables:
|
97
|
+
executables:
|
101
98
|
- tkellem
|
102
99
|
extensions: []
|
103
|
-
|
104
100
|
extra_rdoc_files: []
|
105
|
-
|
106
|
-
files:
|
101
|
+
files:
|
107
102
|
- .gitignore
|
108
103
|
- Gemfile
|
109
104
|
- LICENSE
|
@@ -153,39 +148,31 @@ files:
|
|
153
148
|
- tkellem.gemspec
|
154
149
|
homepage: http://github.com/codekitchen/tkellem
|
155
150
|
licenses: []
|
156
|
-
|
157
151
|
post_install_message:
|
158
152
|
rdoc_options: []
|
159
|
-
|
160
|
-
require_paths:
|
153
|
+
require_paths:
|
161
154
|
- lib
|
162
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
163
156
|
none: false
|
164
|
-
requirements:
|
165
|
-
- -
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
|
168
|
-
|
169
|
-
- 0
|
170
|
-
version: "0"
|
171
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ! '>='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
162
|
none: false
|
173
|
-
requirements:
|
174
|
-
- -
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
|
177
|
-
segments:
|
178
|
-
- 0
|
179
|
-
version: "0"
|
163
|
+
requirements:
|
164
|
+
- - ! '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
180
167
|
requirements: []
|
181
|
-
|
182
168
|
rubyforge_project:
|
183
|
-
rubygems_version: 1.8.
|
169
|
+
rubygems_version: 1.8.23
|
184
170
|
signing_key:
|
185
171
|
specification_version: 3
|
186
172
|
summary: IRC bouncer with multi-client support
|
187
|
-
test_files:
|
173
|
+
test_files:
|
188
174
|
- spec/bouncer_connection_spec.rb
|
189
175
|
- spec/irc_message_spec.rb
|
190
176
|
- spec/irc_server_spec.rb
|
191
177
|
- spec/spec_helper.rb
|
178
|
+
has_rdoc:
|