caboodle 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -75,6 +75,12 @@
75
75
  %header#page_title
76
76
  %h1
77
77
  = @title
78
+ = before_social
79
+ %section#social
80
+ = above_social
81
+ = social
82
+ = below_social
83
+ = after_social
78
84
  = before_content
79
85
  %section#content
80
86
  = above_content
@@ -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
- var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\");
5
- document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\"));
6
- </script>
7
- <script type=\"text/javascript\">
8
- try {
9
- var pageTracker = _gat._getTracker(\"#{Caboodle::Site.analytics_id}\");
10
- pageTracker._trackPageview();
11
- } catch(err) {}
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,11 @@
1
+ module Caboodle
2
+ class Disqus < Caboodle::Kit
3
+
4
+ menu "Chat", "/chat" do
5
+ @title = "Chat"
6
+ haml :disqus
7
+ end
8
+
9
+ required [:disqus]
10
+ end
11
+ 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 "/page/:page_number" do |page_number|
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
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-15 00:00:00 +01:00
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