frontend-helpers 0.0.9.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/Gemfile.lock +2 -0
- data/MIT-LICENSE +1 -1
- data/Rakefile +1 -1
- data/app/views/layouts/mail.html.haml +4 -7
- data/frontend-helpers.gemspec +5 -2
- data/lib/frontend-helpers/metatag_helper.rb +11 -11
- data/lib/frontend-helpers/services_helper.rb +1 -1
- data/test/frontend-helpers_test.rb +11 -1
- metadata +24 -13
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/MIT-LICENSE
CHANGED
data/Rakefile
CHANGED
@@ -19,7 +19,7 @@ Jeweler::Tasks.new do |gem|
|
|
19
19
|
gem.description = %Q{Large collection of useful Rails 3.1 helpers for SEO, Metatags, Facebook OG tags, integration for analytics services like google, woopra, olark, mixpanel and much much more...}
|
20
20
|
gem.email = "me@christopherhein.com"
|
21
21
|
gem.authors = ["Christopher Hein"]
|
22
|
-
gem.version = "0.0
|
22
|
+
gem.version = "0.1.0"
|
23
23
|
# dependencies defined in Gemfile
|
24
24
|
end
|
25
25
|
Jeweler::RubygemsDotOrgTasks.new
|
@@ -27,18 +27,18 @@
|
|
27
27
|
}
|
28
28
|
|
29
29
|
h1 a:active, h2 a:active, h3 a:active, h4 a:active, h5 a:active, h6 a:active {
|
30
|
-
color: red !important;
|
30
|
+
color: red !important;
|
31
31
|
}
|
32
32
|
|
33
33
|
h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited {
|
34
|
-
color: purple !important;
|
34
|
+
color: purple !important;
|
35
35
|
}
|
36
36
|
|
37
37
|
table td {
|
38
38
|
border-collapse: collapse;
|
39
39
|
}
|
40
40
|
|
41
|
-
.yshortcuts, .yshortcuts a, .yshortcuts a:link,.yshortcuts a:visited, .yshortcuts a:hover, .yshortcuts a span { color: black; text-decoration: none !important; border-bottom: none !important; background: none !important; }
|
41
|
+
.yshortcuts, .yshortcuts a, .yshortcuts a:link,.yshortcuts a:visited, .yshortcuts a:hover, .yshortcuts a span { color: black; text-decoration: none !important; border-bottom: none !important; background: none !important; }
|
42
42
|
|
43
43
|
%body
|
44
44
|
%table#backgroundTable{:border => "0", :cellpadding => "0", :cellspacing => "0"}
|
@@ -48,7 +48,4 @@
|
|
48
48
|
%tr
|
49
49
|
%td{:width => "200"}
|
50
50
|
%td{:width => "200"}= yield
|
51
|
-
%td{:width => "200"}
|
52
|
-
%a{:href => "http://www.responsys.com/blogs/nsm/2010/07/feeling-blue-over-yahoo-email.html", :style => "color:red; text-decoration: none;", :target => "_blank", :title => "Feeling Blue Over Yahoo"}
|
53
|
-
%span{:style => "color: red;"} Here is the fix for Yahoo from Responsys/Smith Harmon
|
54
|
-
%img{:alt => "Your alt text", :height => "x", :src => "full path to image", :style => "display: block;", :title => "Your title text", :width => "x"}/
|
51
|
+
%td{:width => "200"}
|
data/frontend-helpers.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "frontend-helpers"
|
8
|
-
s.version = "0.0
|
8
|
+
s.version = "0.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Christopher Hein"]
|
12
|
-
s.date = "2011-
|
12
|
+
s.date = "2011-10-18"
|
13
13
|
s.description = "Large collection of useful Rails 3.1 helpers for SEO, Metatags, Facebook OG tags, integration for analytics services like google, woopra, olark, mixpanel and much much more..."
|
14
14
|
s.email = "me@christopherhein.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -123,12 +123,14 @@ Gem::Specification.new do |s|
|
|
123
123
|
|
124
124
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
125
125
|
s.add_runtime_dependency(%q<rails>, ["~> 3.1.0"])
|
126
|
+
s.add_runtime_dependency(%q<sqlite3>, [">= 0"])
|
126
127
|
s.add_runtime_dependency(%q<haml-rails>, [">= 0"])
|
127
128
|
s.add_runtime_dependency(%q<sass-rails>, [">= 0"])
|
128
129
|
s.add_runtime_dependency(%q<sprockets>, [">= 0"])
|
129
130
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
130
131
|
else
|
131
132
|
s.add_dependency(%q<rails>, ["~> 3.1.0"])
|
133
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
132
134
|
s.add_dependency(%q<haml-rails>, [">= 0"])
|
133
135
|
s.add_dependency(%q<sass-rails>, [">= 0"])
|
134
136
|
s.add_dependency(%q<sprockets>, [">= 0"])
|
@@ -136,6 +138,7 @@ Gem::Specification.new do |s|
|
|
136
138
|
end
|
137
139
|
else
|
138
140
|
s.add_dependency(%q<rails>, ["~> 3.1.0"])
|
141
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
139
142
|
s.add_dependency(%q<haml-rails>, [">= 0"])
|
140
143
|
s.add_dependency(%q<sass-rails>, [">= 0"])
|
141
144
|
s.add_dependency(%q<sprockets>, [">= 0"])
|
@@ -28,17 +28,17 @@ module FrontendHelpers
|
|
28
28
|
|
29
29
|
def opts
|
30
30
|
{
|
31
|
-
title
|
32
|
-
keywords
|
33
|
-
description
|
34
|
-
author
|
35
|
-
email
|
36
|
-
copyright
|
37
|
-
generator
|
38
|
-
rating
|
39
|
-
language
|
40
|
-
distribution
|
41
|
-
robots
|
31
|
+
:title => @meta_title,
|
32
|
+
:keywords => @meta_keywords,
|
33
|
+
:description => @meta_description,
|
34
|
+
:author => @meta_author,
|
35
|
+
:email => @meta_email,
|
36
|
+
:copyright => @meta_copyright,
|
37
|
+
:generator => @meta_generator,
|
38
|
+
:rating => @meta_rating,
|
39
|
+
:language => @meta_language,
|
40
|
+
:distribution => @meta_distribution,
|
41
|
+
:robots => @robots,
|
42
42
|
:"fb:app_id" => @meta_fb_app_id,
|
43
43
|
:"og:title" => @meta_og_title,
|
44
44
|
:"og:description" => @meta_og_description,
|
@@ -25,7 +25,7 @@ module FrontendHelpers
|
|
25
25
|
|
26
26
|
def inspectlet
|
27
27
|
if service(:inspectlet, :setup) != false
|
28
|
-
haml_tag :script, {id
|
28
|
+
haml_tag :script, {:id => "inspectletjs"} do
|
29
29
|
haml_concat "var __insp = __insp || []; var __inspHost = (('https:' == document.location.protocol) ? 'https://www.inspectlet.com' : 'http://www.inspectlet.com'); document.write(unescape('%3Cscript id='inspsync' src='' + __inspHost + '/inspect_nojquery/3664049264.js' type='text/javascript'%3E%3C/script%3E'));"
|
30
30
|
end
|
31
31
|
end
|
@@ -3,9 +3,19 @@ require 'test_helper'
|
|
3
3
|
class FrontendHelpersTest < ActiveSupport::TestCase
|
4
4
|
|
5
5
|
include FrontendHelpers::Html5Helper
|
6
|
+
include FrontendHelpers::MetatagHelper
|
7
|
+
include FrontendHelpers::ServicesHelper
|
6
8
|
|
7
|
-
test "" do
|
9
|
+
test "should be able to create the html tag" do
|
10
|
+
assert true
|
11
|
+
end
|
12
|
+
|
13
|
+
test "should be able to create the meta tags" do
|
14
|
+
assert true
|
15
|
+
end
|
8
16
|
|
17
|
+
test "should be able to create a google js tag" do
|
18
|
+
assert true
|
9
19
|
end
|
10
20
|
|
11
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frontend-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-10-18 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153941160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,21 @@ dependencies:
|
|
21
21
|
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2153941160
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: sqlite3
|
27
|
+
requirement: &2153940680 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2153940680
|
25
36
|
- !ruby/object:Gem::Dependency
|
26
37
|
name: haml-rails
|
27
|
-
requirement: &
|
38
|
+
requirement: &2153940200 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
40
|
requirements:
|
30
41
|
- - ! '>='
|
@@ -32,10 +43,10 @@ dependencies:
|
|
32
43
|
version: '0'
|
33
44
|
type: :runtime
|
34
45
|
prerelease: false
|
35
|
-
version_requirements: *
|
46
|
+
version_requirements: *2153940200
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: sass-rails
|
38
|
-
requirement: &
|
49
|
+
requirement: &2153939580 !ruby/object:Gem::Requirement
|
39
50
|
none: false
|
40
51
|
requirements:
|
41
52
|
- - ! '>='
|
@@ -43,10 +54,10 @@ dependencies:
|
|
43
54
|
version: '0'
|
44
55
|
type: :runtime
|
45
56
|
prerelease: false
|
46
|
-
version_requirements: *
|
57
|
+
version_requirements: *2153939580
|
47
58
|
- !ruby/object:Gem::Dependency
|
48
59
|
name: sprockets
|
49
|
-
requirement: &
|
60
|
+
requirement: &2153939040 !ruby/object:Gem::Requirement
|
50
61
|
none: false
|
51
62
|
requirements:
|
52
63
|
- - ! '>='
|
@@ -54,10 +65,10 @@ dependencies:
|
|
54
65
|
version: '0'
|
55
66
|
type: :runtime
|
56
67
|
prerelease: false
|
57
|
-
version_requirements: *
|
68
|
+
version_requirements: *2153939040
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: jeweler
|
60
|
-
requirement: &
|
71
|
+
requirement: &2153938480 !ruby/object:Gem::Requirement
|
61
72
|
none: false
|
62
73
|
requirements:
|
63
74
|
- - ! '>='
|
@@ -65,7 +76,7 @@ dependencies:
|
|
65
76
|
version: '0'
|
66
77
|
type: :development
|
67
78
|
prerelease: false
|
68
|
-
version_requirements: *
|
79
|
+
version_requirements: *2153938480
|
69
80
|
description: Large collection of useful Rails 3.1 helpers for SEO, Metatags, Facebook
|
70
81
|
OG tags, integration for analytics services like google, woopra, olark, mixpanel
|
71
82
|
and much much more...
|
@@ -185,7 +196,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
185
196
|
version: '0'
|
186
197
|
segments:
|
187
198
|
- 0
|
188
|
-
hash: -
|
199
|
+
hash: -3488550587213246021
|
189
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
201
|
none: false
|
191
202
|
requirements:
|