caboodle 0.2.20 → 0.2.21
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/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.21
|
data/lib/caboodle/kit.rb
CHANGED
@@ -99,9 +99,9 @@ module Caboodle
|
|
99
99
|
#todo proper slugify
|
100
100
|
slug = display.downcase.gsub(" ","-").gsub("'","")
|
101
101
|
path = "/#{slug}" unless path
|
102
|
-
puts "set /#{slug} - menu items: #{Settings.menu_items.inspect}"
|
103
102
|
path = "/" if Site.home_kit == self.to_s.gsub("Caboodle::","") && !Settings.menu_items.include?("/")
|
104
103
|
Caboodle::MenuItems << {:display=>display, :link=>path, :kit=>self}
|
104
|
+
|
105
105
|
if block
|
106
106
|
self.get path, &block
|
107
107
|
else
|
@@ -110,6 +110,11 @@ module Caboodle
|
|
110
110
|
haml :#{slug.gsub("-","_")}
|
111
111
|
end"
|
112
112
|
end
|
113
|
+
|
114
|
+
eval "before do
|
115
|
+
@title = '#{display}'
|
116
|
+
end"
|
117
|
+
|
113
118
|
Settings.menu_items ||= []
|
114
119
|
Settings.menu_items << path
|
115
120
|
end
|
@@ -118,7 +123,6 @@ module Caboodle
|
|
118
123
|
if keys.class == Array
|
119
124
|
keys.each do |k|
|
120
125
|
self.required_settings << k
|
121
|
-
puts "self.set #{k}, #{Caboodle::Site[k]}"
|
122
126
|
self.set k.to_s.to_sym, Caboodle::Site[k].to_s
|
123
127
|
end
|
124
128
|
else
|
@@ -248,7 +252,6 @@ module Caboodle
|
|
248
252
|
if Caboodle::Site[r].blank?
|
249
253
|
ask_user r
|
250
254
|
end
|
251
|
-
puts self
|
252
255
|
self.set r.to_s.to_sym, Caboodle::Site[r].to_s
|
253
256
|
end
|
254
257
|
optional_settings.each do |r|
|
@@ -267,7 +270,6 @@ module Caboodle
|
|
267
270
|
|
268
271
|
def dump_config
|
269
272
|
begin
|
270
|
-
puts "Dump config to: #{config_path}"
|
271
273
|
p = config_path
|
272
274
|
d = Caboodle::Site.clone
|
273
275
|
e = d.to_hash
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboodle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 21
|
10
|
+
version: 0.2.21
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Stef Lewandowski
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-06 00:00:00 +01:00
|
19
19
|
default_executable: caboodle
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -381,6 +381,7 @@ files:
|
|
381
381
|
- lib/caboodle/kits/typekit/views/typekit.scss
|
382
382
|
- lib/caboodle/kits/vimeo/views/vimeo.haml
|
383
383
|
- lib/caboodle/kits/vimeo/vimeo.rb
|
384
|
+
- lib/caboodle/kits/webmaster/webmaster.rb
|
384
385
|
- lib/caboodle/kits/youtube/views/youtube.haml
|
385
386
|
- lib/caboodle/kits/youtube/youtube.rb
|
386
387
|
- lib/caboodle/markdown.rb
|