descartes 0.3.4.1 → 0.3.4.2

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: ebb5dc2d0ec9788816da8bf59d74623662ad325b
4
- data.tar.gz: 49f2b12099c6f2bb3481648db7bce7da28caf809
3
+ metadata.gz: e756fccdc6cc18002aa034727f5613b8b15d76c9
4
+ data.tar.gz: 9be102cd53d407cd313ae029667d14a5a0b7707b
5
5
  SHA512:
6
- metadata.gz: efb823d2d5bd46c4d4df342e87f22f3864480dc3d52f444a957c2cb9aa5cc35f9a9bdccba064fa6994e26d3202f9aa4fced264f621d938505a8e3a468e15568b
7
- data.tar.gz: 21f528b311ffd90f4b2d2c57222d8551a82f84bd17263126d0a9d65ca7a03272bb52cb680a21477e2fa2bf98d6718416e37eee03484c1bd1bf42a34d5db6274f
6
+ metadata.gz: 658314779e0bdf42638853001b9faab53b394c890a4e39709aefff1429fae4acbf2080a42df518bfd7e2553bc692478da9b1949f2477b3a78a14217a76d87421
7
+ data.tar.gz: 97e3f110d2f7151b75901831409a2d782c1b4c7294ec8af20327d20279bbdd24aa0bcc65d6dd786266510fbf0117fa8feb58a72d1a5aef2ebfbef59f2489089d
data/bin/descartes CHANGED
@@ -1,3 +1,4 @@
1
+ #! /usr/bin/env ruby
1
2
  ##
2
3
  # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
3
4
  # Version 2, December 2004
@@ -14,15 +15,14 @@
14
15
 
15
16
  require 'descartes'
16
17
 
17
- nickname = ARGV[0] || 'Descartes'
18
- @nickname = nickname
18
+ @@nickname = ARGV[0] || 'Descartes'
19
19
  server = ARGV[1] || 'irc.rizon.net'
20
20
  channels = ARGV[2..-1] || ['#aggvistnurummor']
21
21
  plugins = Descartes.load
22
22
 
23
23
  Cinch::Bot.new {
24
24
  configure do |c|
25
- c.nick = nickname
25
+ c.nick = @@nickname
26
26
  c.realname = 'Descartes'
27
27
  c.user = 'Descartes'
28
28
  c.server = server
@@ -16,7 +16,7 @@ class Descartes
16
16
  class Reply
17
17
  include Cinch::Plugin
18
18
 
19
- match /(.*)\?/, :use_prefix => @nickname
19
+ match /#{@@nickname}.*\?/, :use_prefix => false
20
20
 
21
21
  def execute(m)
22
22
  file = File.expand_path '../reply/replies.txt', __FILE__
@@ -14,6 +14,6 @@
14
14
 
15
15
  class Descartes
16
16
  def self.version
17
- '0.3.4.1'
17
+ '0.3.4.2'
18
18
  end
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: descartes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4.1
4
+ version: 0.3.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-03 00:00:00.000000000 Z
11
+ date: 2013-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cinch