tipsy 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2 +1,18 @@
|
|
1
1
|
module SiteHelper
|
2
|
+
|
3
|
+
def page_id(txt = nil)
|
4
|
+
content_for(:__pageid, txt) if txt
|
5
|
+
return content_for(:__pageid) unless txt
|
6
|
+
""
|
7
|
+
end
|
8
|
+
|
9
|
+
def page_title(txt = nil)
|
10
|
+
content_for(:__title, txt) if txt
|
11
|
+
return content_for(:__title) unless txt
|
12
|
+
""
|
13
|
+
end
|
14
|
+
|
15
|
+
def keywords
|
16
|
+
end
|
17
|
+
|
2
18
|
end
|
@@ -1,27 +1,27 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
2
|
+
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
|
3
|
+
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
|
4
|
+
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
|
5
|
+
<!--[if gt IE 8]><!-->
|
6
|
+
<html class="no-js" lang="en"><!--<![endif]-->
|
3
7
|
<head>
|
4
|
-
<meta charset="utf-8"
|
8
|
+
<meta charset="utf-8">
|
9
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
10
|
+
<title><%= page_title %></title>
|
11
|
+
<meta name="description" content="">
|
12
|
+
<meta name="keywords" content="">
|
13
|
+
<meta name="author" content="" />
|
14
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
5
15
|
<!-- pre-fetch dns info for external sites -->
|
6
16
|
<link rel="dns-prefetch" href="//ajax.googleapis.com" />
|
7
|
-
<!-- force IE to render as IE... weird isn't it? -->
|
8
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
9
17
|
<!-- 'pinned' sites in IE ( see: http://html5boilerplate.com/docs/head-Tips/ ) -->
|
10
18
|
<meta name="application-name" content="" />
|
11
19
|
<meta name="msapplication-tooltip" content="" />
|
12
20
|
<!-- Facebook open graph ( seff: http://developers.facebook.com/docs/share ) -->
|
13
21
|
<meta property="og:title" content="" />
|
14
22
|
<meta property="og:description" content="" />
|
15
|
-
<meta property="og:image" content="" />
|
16
|
-
|
17
|
-
<meta name="description" content="" />
|
18
|
-
<meta name="author" content="" />
|
19
|
-
<meta name="viewport" content="width=device-width,initial-scale=1,target-densitydpi=device-dpi" />
|
20
|
-
<!--[if lt IE 9]>
|
21
|
-
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
22
|
-
<%= stylesheet_link_tag 'ie' %>
|
23
|
-
<![endif]-->
|
24
|
-
<%= stylesheet_link_tag 'screen' %>
|
23
|
+
<meta property="og:image" content="" />
|
24
|
+
<%= stylesheet_link_tag 'screen' %>
|
25
25
|
</head>
|
26
26
|
<body id="<%= page_id %>">
|
27
27
|
<div id="wrapper">
|
@@ -37,5 +37,16 @@
|
|
37
37
|
</div>
|
38
38
|
<%= javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" %>
|
39
39
|
<%= javascript_include_tag 'site' %>
|
40
|
+
<!-- <script>
|
41
|
+
// Replace UA-XXXXX-X with the proper analytics code
|
42
|
+
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
|
43
|
+
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
44
|
+
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
45
|
+
s.parentNode.insertBefore(g,s)}(document,'script'));
|
46
|
+
</script> -->
|
47
|
+
<!--[if lt IE 7 ]>
|
48
|
+
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
|
49
|
+
<script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
|
50
|
+
<![endif]-->
|
40
51
|
</body>
|
41
52
|
</html>
|
@@ -5,6 +5,10 @@ module Tipsy
|
|
5
5
|
|
6
6
|
include Tipsy::Utils::System
|
7
7
|
|
8
|
+
def excludes
|
9
|
+
@_excludes ||= ['.svn', '.git', '.gitignore', '.sass-cache', 'config.erb', '.DS_Store']
|
10
|
+
end
|
11
|
+
|
8
12
|
def initialize(args, site)
|
9
13
|
@site_name, @site = args.first, site
|
10
14
|
@source_path = File.expand_path("../../../templates/site", __FILE__)
|
data/lib/tipsy/utils/system.rb
CHANGED
data/lib/tipsy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tipsy
|
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: 2012-01-
|
12
|
+
date: 2012-01-30 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
16
|
-
requirement: &
|
16
|
+
requirement: &70133830130560 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.3'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70133830130560
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rack-test
|
27
|
-
requirement: &
|
27
|
+
requirement: &70133830129940 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0.6'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70133830129940
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: tilt
|
38
|
-
requirement: &
|
38
|
+
requirement: &70133830129360 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '1.3'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70133830129360
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: i18n
|
49
|
-
requirement: &
|
49
|
+
requirement: &70133830128780 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0.6'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70133830128780
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: sass
|
60
|
-
requirement: &
|
60
|
+
requirement: &70133830128200 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '3.1'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70133830128200
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activesupport
|
71
|
-
requirement: &
|
71
|
+
requirement: &70133830127620 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '3.1'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70133830127620
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: sprockets
|
82
|
-
requirement: &
|
82
|
+
requirement: &70133830127040 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '2.0'
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70133830127040
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: hike
|
93
|
-
requirement: &
|
93
|
+
requirement: &70133830126460 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '1.2'
|
99
99
|
type: :runtime
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70133830126460
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: erubis
|
104
|
-
requirement: &
|
104
|
+
requirement: &70133830125900 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '2.7'
|
110
110
|
type: :runtime
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70133830125900
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: minitest
|
115
|
-
requirement: &
|
115
|
+
requirement: &70133830125360 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
@@ -120,7 +120,7 @@ dependencies:
|
|
120
120
|
version: '2.5'
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70133830125360
|
124
124
|
description: Tipsy is a mini Rack application for working with static websites using
|
125
125
|
Tilt, and Sprockets.
|
126
126
|
email:
|