rfortune 0.2.3 → 0.3.0

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.
@@ -1,5 +1,9 @@
1
1
  == Changelog
2
2
 
3
+ === 0.3.0 (2010-02-08)
4
+
5
+ * Ruby 1.9 compatibility
6
+
3
7
  === 0.2.3 (2010-01-14)
4
8
 
5
9
  * Corrected spelling in method name 'format[t]ed'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.3.0
@@ -121,15 +121,12 @@ class RFortune
121
121
 
122
122
  cookies += [ "\n%\n" ]
123
123
 
124
- cookies.to_s.sub( /^\n+/, '' )
124
+ cookies_string = ''
125
125
 
126
- end
126
+ cookies.each { |c| cookies_string += c }
127
+
128
+ return cookies_string.sub( /^\n+/, '' )
127
129
 
128
- # Depricated. I take the fact that nobody told me, the method name is
129
- # spelled wrong as permission to drop it in a near future.
130
- # Actually I just left it for this message.
131
- def formated
132
- formatted
133
130
  end
134
131
 
135
132
  # Saves the content of the jar to the file specified by argument given
@@ -68,7 +68,7 @@ class RFortuneTest < Test::Unit::TestCase
68
68
  second = RFortune.new
69
69
  second.add 'bar'
70
70
 
71
- assert_equal( "%\nfu\n%\nbar\n%\n", (first + second).formated )
71
+ assert_equal( "%\nfu\n%\nbar\n%\n", (first + second).formatted )
72
72
 
73
73
  end
74
74
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfortune
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helge Rausch
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-14 00:00:00 +01:00
12
+ date: 2010-02-08 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15