youthtree-helpers 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ module YouthTree
4
4
 
5
5
  def clicky_snippet_js(site_id)
6
6
  value = <<-END_OF_JS
7
- var clicky = { log: function(){ return; }, goal: function(){ return; }};
7
+ var clicky = {log:function(){return;},goal:function(){return;}};
8
8
  var clicky_site_id = #{site_id};
9
9
  (function() {
10
10
  var s = document.createElement('script');
@@ -43,7 +43,6 @@ module YouthTree
43
43
  var _gaq = _gaq || [];
44
44
  _gaq.push(['_setAccount', #{identifier.to_json}]);
45
45
  _gaq.push(['_trackPageview']);
46
-
47
46
  (function() {
48
47
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
49
48
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
@@ -3,13 +3,17 @@ module YouthTree
3
3
  module AssetsHelper
4
4
 
5
5
  # Returns the content to be placed in the header.
6
- def extra_head_content
7
- content_for :extra_head
6
+ def extra_head_content(*args, &blk)
7
+ content_for(:extra_head, *args, &blk)
8
+ end
9
+
10
+ def extra_footer_content(*args, &blk)
11
+ content_for(:extra_footer, *args, &blk)
8
12
  end
9
13
 
10
14
  # Equiv. to include_javascripts in the header
11
15
  def has_jammit_js(*args)
12
- content_for :extra_head, include_javascripts(*args)
16
+ content_for :extra_footer, include_javascripts(*args)
13
17
  nil
14
18
  end
15
19
 
@@ -21,7 +25,7 @@ module YouthTree
21
25
 
22
26
  # Equiv. to javascript_include_tag in the header
23
27
  def has_js(*args)
24
- content_for :extra_head, javascript_include_tag(*args)
28
+ content_for :extra_footer, javascript_include_tag(*args)
25
29
  nil
26
30
  end
27
31
 
@@ -2,7 +2,7 @@ require 'active_support/concern'
2
2
 
3
3
  module YouthTree
4
4
  module Helpers
5
- VERSION = "0.1.3".freeze
5
+ VERSION = "0.1.4".freeze
6
6
 
7
7
  extend ActiveSupport::Autoload
8
8
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{youthtree-helpers}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Darcy Laycock"]
12
- s.date = %q{2010-08-23}
12
+ s.date = %q{2010-08-25}
13
13
  s.description = %q{Helpers to make life easier when coding YT-specific apps. see the code..}
14
14
  s.email = %q{sutto@sutto.net}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youthtree-helpers
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Darcy Laycock
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-23 00:00:00 +08:00
18
+ date: 2010-08-25 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency