fantasy-irc 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: da37c0461973d9e69c05e9dd39c27cb26e675941
4
+ data.tar.gz: 4fa00ba9e4bc62ffbe6055b12832ffdf92b7c5f0
5
+ SHA512:
6
+ metadata.gz: 3edacc72950c8514a255bbe0adf9b1fbea9f1bf2534930e57f0bec0462fb7ee92f9ac97142c45810fa5c0c4bca6964e5395b18622660c26fba8f19ed3eaf7f1e
7
+ data.tar.gz: 3bce90ef3f2f3fbaea2bec99382ac16798d092fad6288d1b3fa5ec44baae3335468802ba75e32c12a1c728b4df731a9f1d125ffcee042a7582285bf4c4ca9249
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.files = `git ls-files`.split("\n")
9
9
  s.name = "fantasy-irc"
10
10
  s.require_paths = ['lib']
11
- s.version = "0.2.2"
11
+ s.version = "0.2.3"
12
12
 
13
13
  s.rubyforge_project = s.name
14
14
  s.add_runtime_dependency "array-unique", "~> 1.1.1"
@@ -80,6 +80,16 @@ module Fantasy
80
80
  self.say "\001ACTION #{message}\001"
81
81
  end
82
82
 
83
+ # sets a topic in the room
84
+ def topic message
85
+ if @joined == false then
86
+ raise "Tried to set topic in a room (#{name}) we're not in."
87
+ end
88
+
89
+ @connection.send('TOPIC '+@name+' :'+message)
90
+ return self
91
+ end
92
+
83
93
  def to_s
84
94
  "#{@name}"
85
95
  end
@@ -31,7 +31,7 @@ plugin.handle(/^host$/i) do |data, args|
31
31
  next data[:room].say "host needs more arguments"
32
32
  end
33
33
 
34
- if args[0].match(/^a-z0-9\.-/i)
34
+ if args[0].match(/[^a-z0-9\.-]/i)
35
35
  next data[:room].say "invalid characters in argument"
36
36
  end
37
37
 
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fantasy-irc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
5
- prerelease:
4
+ version: 0.2.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jens Becker
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-07 00:00:00.000000000 Z
11
+ date: 2013-10-28 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: array-unique
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: :runtime
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
@@ -59,26 +56,25 @@ files:
59
56
  - spec/spec_helper.rb
60
57
  homepage: http://v2px.github.com/fantasy-irc
61
58
  licenses: []
59
+ metadata: {}
62
60
  post_install_message:
63
61
  rdoc_options: []
64
62
  require_paths:
65
63
  - lib
66
64
  required_ruby_version: !ruby/object:Gem::Requirement
67
- none: false
68
65
  requirements:
69
- - - ! '>='
66
+ - - '>='
70
67
  - !ruby/object:Gem::Version
71
68
  version: '0'
72
69
  required_rubygems_version: !ruby/object:Gem::Requirement
73
- none: false
74
70
  requirements:
75
- - - ! '>='
71
+ - - '>='
76
72
  - !ruby/object:Gem::Version
77
73
  version: '0'
78
74
  requirements: []
79
75
  rubyforge_project: fantasy-irc
80
- rubygems_version: 1.8.23
76
+ rubygems_version: 2.0.3
81
77
  signing_key:
82
- specification_version: 3
78
+ specification_version: 4
83
79
  summary: A modular, event-driven IRC client/bot Ruby gem with plugin support
84
80
  test_files: []