freelancing-god-riddle 0.9.8.1533.3 → 0.9.8.1533.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/riddle.rb +1 -1
- data/lib/riddle/configuration/section.rb +7 -2
- metadata +2 -2
data/lib/riddle.rb
CHANGED
@@ -18,7 +18,7 @@ module Riddle #:nodoc:
|
|
18
18
|
Rev = 1533
|
19
19
|
# Release number to mark my own fixes, beyond feature parity with
|
20
20
|
# Sphinx itself.
|
21
|
-
Release =
|
21
|
+
Release = 4
|
22
22
|
|
23
23
|
String = [Major, Minor, Tiny].join('.')
|
24
24
|
GemVersion = [Major, Minor, Tiny, Rev, Release].join('.')
|
@@ -20,13 +20,18 @@ module Riddle
|
|
20
20
|
if send(setting) == ""
|
21
21
|
conf = " #{setting} = "
|
22
22
|
else
|
23
|
-
conf =
|
23
|
+
conf = setting_to_array(setting).collect { |set|
|
24
24
|
" #{setting} = #{set}"
|
25
25
|
}
|
26
26
|
end
|
27
27
|
conf.length == 0 ? nil : conf
|
28
28
|
}.flatten.compact
|
29
29
|
end
|
30
|
+
|
31
|
+
def setting_to_array(setting)
|
32
|
+
value = send(setting)
|
33
|
+
value.is_a?(Array) ? value : [value]
|
34
|
+
end
|
30
35
|
end
|
31
36
|
end
|
32
|
-
end
|
37
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freelancing-god-riddle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.8.1533.
|
4
|
+
version: 0.9.8.1533.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-01-21 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|