potato 0.0.7 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -132,7 +132,7 @@ module Potato
132
132
  # Debug one or more messages.
133
133
  # @param [*String] strs any number of messages to print
134
134
  def debug *strs
135
- Server.debug *strs, :damn_out
135
+ Server.debug *[strs, :damn_out]
136
136
  end
137
137
  end
138
138
  end
@@ -363,7 +363,7 @@ Type /pass yourpassword to authenticate.
363
363
  # @param [Array] strs all messages to send
364
364
  # @return [void]
365
365
  def debug *strs
366
- Server.debug *strs, :irc_out
366
+ Server.debug *[strs, :irc_out]
367
367
  end
368
368
  end
369
369
  end
@@ -12,8 +12,10 @@ module Potato
12
12
  attr_reader :opts
13
13
 
14
14
  # Write color-coded debug information if debug is enabled.
15
- def debug(*items, type)
16
- color = {:damn => 33, :irc => 35, :damn_out => 32, :irc_out => 34, :sys => 31}[type || :sys]
15
+ def debug(*items)
16
+ type = Symbol === items[-1] ? items.pop : :sys
17
+ items.flatten!
18
+ color = {:damn => 33, :irc => 35, :damn_out => 32, :irc_out => 34, :sys => 31}[type]
17
19
  colon = (type == :damn_out || type == :irc_out) ? ">>" : "<<"
18
20
  if @opts.debug
19
21
  items.each do |line|
@@ -1,4 +1,4 @@
1
1
  module Potato
2
2
  # Current version of Potato.
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.10"
4
4
  end
metadata CHANGED
@@ -1,27 +1,28 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: potato
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.7
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.0.10
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Joel Taylor
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-04-22 00:00:00.000000000 -04:00
13
- default_executable:
12
+
13
+ date: 2011-04-25 00:00:00 Z
14
14
  dependencies: []
15
- description: Potato is an IRC server that communicates with the deviantART Message
16
- Network and allows you to treat it like a regular IRC server, with support for user
17
- modes, kicks/bans, /whois-ing, etc.
18
- email:
15
+
16
+ description: Potato is an IRC server that communicates with the deviantART Message Network and allows you to treat it like a regular IRC server, with support for user modes, kicks/bans, /whois-ing, etc.
17
+ email:
19
18
  - holla@joeldt.net
20
- executables:
19
+ executables:
21
20
  - potato
22
21
  extensions: []
22
+
23
23
  extra_rdoc_files: []
24
- files:
24
+
25
+ files:
25
26
  - .gitignore
26
27
  - .yardopts
27
28
  - README.md
@@ -40,29 +41,33 @@ files:
40
41
  - lib/potato/irc/user.rb
41
42
  - lib/potato/version.rb
42
43
  - potato.gemspec
43
- has_rdoc: true
44
- homepage: ''
44
+ homepage: ""
45
45
  licenses: []
46
+
46
47
  post_install_message:
47
48
  rdoc_options: []
48
- require_paths:
49
+
50
+ require_paths:
49
51
  - lib
50
- required_ruby_version: !ruby/object:Gem::Requirement
52
+ required_ruby_version: !ruby/object:Gem::Requirement
51
53
  none: false
52
- requirements:
53
- - - ! '>='
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- required_rubygems_version: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
59
  none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
62
64
  requirements: []
65
+
63
66
  rubyforge_project: potato
64
- rubygems_version: 1.5.2
67
+ rubygems_version: 1.7.2
65
68
  signing_key:
66
69
  specification_version: 3
67
70
  summary: A dAmn <=> IRC proxy.
68
71
  test_files: []
72
+
73
+ has_rdoc: