caboodle 0.1.6 → 0.1.7
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 +1 -1
- data/lib/caboodle/app/views/layout.haml +6 -0
- data/lib/caboodle/helpers.rb +9 -0
- data/lib/caboodle/kits/analytics/analytics.rb +13 -8
- data/lib/caboodle/kits/disqus/disqus.rb +11 -0
- data/lib/caboodle/kits/disqus/views/disqus.haml +13 -0
- data/lib/caboodle/kits/posterous/posterous.rb +1 -1
- metadata +6 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
data/lib/caboodle/helpers.rb
CHANGED
@@ -9,6 +9,15 @@ module Sinatra
|
|
9
9
|
#Caboodle::Kit.credit
|
10
10
|
end
|
11
11
|
|
12
|
+
def title
|
13
|
+
if request.path_info == "/"
|
14
|
+
"#{Caboodle::Site.title} | #{Caboodle::Site.description}"
|
15
|
+
else
|
16
|
+
t = Caboodle::Site.title
|
17
|
+
t = "#{@title} | #{t}" if @title
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
12
21
|
end
|
13
22
|
helpers CaboodleHelpers
|
14
23
|
end
|
@@ -1,14 +1,19 @@
|
|
1
1
|
module Caboodle
|
2
2
|
class Analytics < Caboodle::Kit
|
3
3
|
add_to_layout "after_body" => "<script type=\"text/javascript\">
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
4
|
+
|
5
|
+
var _gaq = _gaq || [];
|
6
|
+
_gaq.push(['_setAccount', '#{Caboodle::Site.analytics_id}']);
|
7
|
+
_gaq.push(['_setDomainName', 'none']);
|
8
|
+
_gaq.push(['_setAllowLinker', true]);
|
9
|
+
_gaq.push(['_trackPageview']);
|
10
|
+
|
11
|
+
(function() {
|
12
|
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
13
|
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
14
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
15
|
+
})();
|
16
|
+
|
12
17
|
</script>"
|
13
18
|
required [:analytics_id]
|
14
19
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
- if ENV["RACK_ENV"] == "development"
|
2
|
+
:javascript
|
3
|
+
var disqus_developer = true;
|
4
|
+
|
5
|
+
#disqus.page
|
6
|
+
- if Caboodle::Site.disqus
|
7
|
+
#disqus_thread
|
8
|
+
%script{:src => "http://disqus.com/forums/#{Caboodle::Site.disqus}/embed.js", :type => "text/javascript"}
|
9
|
+
%noscript
|
10
|
+
%a{:href => "http://#{Caboodle::Site.disqus}.disqus.com/?url=ref"} View the discussion thread.
|
11
|
+
%a.dsq-brlink{:href => "http://disqus.com"}
|
12
|
+
Discussion powered by
|
13
|
+
%span.logo-disqus Disqus
|
@@ -132,7 +132,7 @@ module Caboodle
|
|
132
132
|
|
133
133
|
class Posterous < Caboodle::Kit
|
134
134
|
|
135
|
-
get "/
|
135
|
+
get "/blog/:page_number" do |page_number|
|
136
136
|
@posts = Post.page(page_number) rescue nil
|
137
137
|
not_found if @posts.class == Array && @posts.blank?
|
138
138
|
haml :posts
|
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: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 7
|
10
|
+
version: 0.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- steflewandowski
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-16 00:00:00 +01:00
|
19
19
|
default_executable: caboodle
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -277,6 +277,8 @@ files:
|
|
277
277
|
- lib/caboodle/helpers.rb
|
278
278
|
- lib/caboodle/kit.rb
|
279
279
|
- lib/caboodle/kits/analytics/analytics.rb
|
280
|
+
- lib/caboodle/kits/disqus/disqus.rb
|
281
|
+
- lib/caboodle/kits/disqus/views/disqus.haml
|
280
282
|
- lib/caboodle/kits/flickr/flickr.rb
|
281
283
|
- lib/caboodle/kits/flickr/public/galleria.noconflict.min.js
|
282
284
|
- lib/caboodle/kits/flickr/views/photography.haml
|