sunflower 0.5 → 0.5.1
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.
- data/README +1 -1
- data/lib/sunflower/core.rb +4 -4
- metadata +2 -2
data/README
CHANGED
data/lib/sunflower/core.rb
CHANGED
|
@@ -17,7 +17,7 @@ require 'cgi'
|
|
|
17
17
|
#
|
|
18
18
|
# You can use multiple Sunflowers at once, to work on multiple wikis.
|
|
19
19
|
class Sunflower
|
|
20
|
-
VERSION = '0.5'
|
|
20
|
+
VERSION = '0.5.1'
|
|
21
21
|
|
|
22
22
|
INVALID_CHARS = %w(# < > [ ] | { })
|
|
23
23
|
INVALID_CHARS_REGEX = Regexp.union *INVALID_CHARS
|
|
@@ -553,7 +553,7 @@ end
|
|
|
553
553
|
class SunflowerError < StandardError # :nodoc:
|
|
554
554
|
%w[== backtrace exception inspect message set_backtrace to_s].each do |meth|
|
|
555
555
|
define_method meth.to_sym do |*a, &b|
|
|
556
|
-
if self.class ==
|
|
556
|
+
if self.class == SunflowerError and !@warned
|
|
557
557
|
warn "warning: toplevel SunflowerError class has been renamed to Sunflower::Error, this alias will be removed in v0.6"
|
|
558
558
|
@warned = true
|
|
559
559
|
end
|
|
@@ -564,11 +564,11 @@ class SunflowerError < StandardError # :nodoc:
|
|
|
564
564
|
|
|
565
565
|
class << self
|
|
566
566
|
def new *a
|
|
567
|
-
warn "warning: toplevel SunflowerError class has been renamed to Sunflower::Error, this alias will be removed in v0.6"
|
|
567
|
+
warn "warning: toplevel SunflowerError class has been renamed to Sunflower::Error, this alias will be removed in v0.6" if self == SunflowerError
|
|
568
568
|
super
|
|
569
569
|
end
|
|
570
570
|
def exception *a
|
|
571
|
-
warn "warning: toplevel SunflowerError class has been renamed to Sunflower::Error, this alias will be removed in v0.6"
|
|
571
|
+
warn "warning: toplevel SunflowerError class has been renamed to Sunflower::Error, this alias will be removed in v0.6" if self == SunflowerError
|
|
572
572
|
super
|
|
573
573
|
end
|
|
574
574
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sunflower
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-08-
|
|
12
|
+
date: 2012-08-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: json
|