staticise 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.4
1
+ 0.6.5
@@ -0,0 +1,2 @@
1
+ %H1 New Layout
2
+ = yield
@@ -1 +1 @@
1
- %h1 Cat Page
1
+ %h1 Cat Pages
@@ -0,0 +1 @@
1
+ layout: new.haml
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'rubygems'
4
+ require 'bundler/setup'
5
+
4
6
  $:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib })
5
7
  require 'staticise'
6
8
 
@@ -84,7 +84,7 @@ module Staticise
84
84
  end
85
85
 
86
86
  def get_layout(file)
87
- config = File.join(File.dirname(file), "config.yml")
87
+ config = File.join(File.dirname(file), "#{ File.basename(file, File.extname(file)) }.yml")
88
88
  unless File.exist?(config)
89
89
  config = File.join(APP_ROOT, "config.yml")
90
90
  unless File.exist?(config)
@@ -1,59 +1,2 @@
1
- <!DOCTYPE html>
2
- <html lang='en'>
3
- <head>
4
- <meta charset='utf-8'>
5
- <meta content='IE=Edge,chrome=1' http-equiv='X-UA-Compatible'>
6
- <meta content='width=device-width, initial-scale=1.0' name='viewport'>
7
- <title></title>
8
-
9
- <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
10
- <!--[if lt IE 9]>
11
-
12
- <![endif]-->
13
-
14
- <link href='images/apple-touch-icon-144x144.png' rel='apple-touch-icon-precomposed' sizes='144x144'>
15
- <link href='images/apple-touch-icon-114x114.png' rel='apple-touch-icon-precomposed' sizes='114x114'>
16
- <link href='images/apple-touch-icon-72x72.png' rel='apple-touch-icon-precomposed' sizes='72x72'>
17
- <link href='images/apple-touch-icon.png' rel='apple-touch-icon-precomposed'>
18
- <link href='favicon.ico' rel='shortcut icon'>
19
- </head>
20
- <body>
21
- <div class='navbar navbar-fixed-top'>
22
- <div class='navbar-inner'>
23
- <div class='container'>
24
- <a class='btn btn-navbar' data-target='.nav-collapse' data-toggle='collapse'>
25
- <span class='icon-bar'></span>
26
- <span class='icon-bar'></span>
27
- <span class='icon-bar'></span>
28
- </a>
29
- <a class='brand' href='/' title='Im sick of damn excel sheet'>isodes</a>
30
- <div class='container nav-collapse'>
31
- <ul class='nav'>
32
- <li></li>
33
- <li></li>
34
- <li></li>
35
- <li></li>
36
- </ul>
37
- </div>
38
- </div>
39
- </div>
40
- </div>
41
- <div class='container content-panel'>
42
- <div class='row'>
43
- <div class='span12'>
44
-
45
- <h1>Cat Page</h1>
46
- </div>
47
- </div>
48
- <footer>
49
- <p>&copy; melvinsembrano@gmail.com 2013</p>
50
- </footer>
51
- </div>
52
- <!--
53
- Javascripts
54
- ==================================================
55
- -->
56
- <!-- Placed at the end of the document so the pages load faster -->
57
-
58
- </body>
59
- </html>
1
+ <H1>New Layout</H1>
2
+ <h1>Cat Pages</h1>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "staticise"
8
- s.version = "0.6.4"
8
+ s.version = "0.6.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Melvin Sembrano"]
12
- s.date = "2013-06-14"
12
+ s.date = "2013-06-19"
13
13
  s.description = "Static site generator using Haml and Coffescript"
14
14
  s.email = "melvinsembrano@gmail.com"
15
15
  s.executables = ["staticise"]
@@ -33,9 +33,11 @@ Gem::Specification.new do |s|
33
33
  "app/js/plugins/a.coffee",
34
34
  "app/layouts/app.haml",
35
35
  "app/layouts/app.html",
36
+ "app/layouts/new.haml",
36
37
  "app/pages/_footer.haml",
37
38
  "app/pages/_footer.html",
38
39
  "app/pages/cat/index.haml",
40
+ "app/pages/cat/index.yml",
39
41
  "app/pages/dog/index.haml",
40
42
  "app/pages/help.html",
41
43
  "app/pages/index.haml",
@@ -67,7 +69,7 @@ Gem::Specification.new do |s|
67
69
  s.homepage = "http://github.com/melvinsembrano/staticise"
68
70
  s.licenses = ["MIT"]
69
71
  s.require_paths = ["lib"]
70
- s.rubygems_version = "1.8.10"
72
+ s.rubygems_version = "1.8.25"
71
73
  s.summary = "Static site generator using Haml and Coffescript"
72
74
 
73
75
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: staticise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
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: 2013-06-14 00:00:00.000000000 Z
12
+ date: 2013-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: haml
16
- requirement: &70099681160140 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70099681160140
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: sass
27
- requirement: &70099681158920 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70099681158920
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: coffee-script
38
- requirement: &70099681157320 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *70099681157320
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: guard
49
- requirement: &70099681154720 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '0'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *70099681154720
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: guard-coffeescript
60
- requirement: &70099681153040 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,10 +85,15 @@ dependencies:
65
85
  version: '0'
66
86
  type: :runtime
67
87
  prerelease: false
68
- version_requirements: *70099681153040
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: guard-sass
71
- requirement: &70099681152400 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ! '>='
@@ -76,10 +101,15 @@ dependencies:
76
101
  version: '0'
77
102
  type: :runtime
78
103
  prerelease: false
79
- version_requirements: *70099681152400
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
80
110
  - !ruby/object:Gem::Dependency
81
111
  name: shoulda
82
- requirement: &70099681151600 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
83
113
  none: false
84
114
  requirements:
85
115
  - - ! '>='
@@ -87,10 +117,15 @@ dependencies:
87
117
  version: '0'
88
118
  type: :development
89
119
  prerelease: false
90
- version_requirements: *70099681151600
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
91
126
  - !ruby/object:Gem::Dependency
92
127
  name: rdoc
93
- requirement: &70099681150740 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
94
129
  none: false
95
130
  requirements:
96
131
  - - ! '>='
@@ -98,10 +133,15 @@ dependencies:
98
133
  version: '0'
99
134
  type: :development
100
135
  prerelease: false
101
- version_requirements: *70099681150740
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
102
142
  - !ruby/object:Gem::Dependency
103
143
  name: bundler
104
- requirement: &70099681149500 !ruby/object:Gem::Requirement
144
+ requirement: !ruby/object:Gem::Requirement
105
145
  none: false
106
146
  requirements:
107
147
  - - ! '>='
@@ -109,10 +149,15 @@ dependencies:
109
149
  version: '0'
110
150
  type: :development
111
151
  prerelease: false
112
- version_requirements: *70099681149500
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
113
158
  - !ruby/object:Gem::Dependency
114
159
  name: jeweler
115
- requirement: &70099681148700 !ruby/object:Gem::Requirement
160
+ requirement: !ruby/object:Gem::Requirement
116
161
  none: false
117
162
  requirements:
118
163
  - - ! '>='
@@ -120,7 +165,12 @@ dependencies:
120
165
  version: '0'
121
166
  type: :development
122
167
  prerelease: false
123
- version_requirements: *70099681148700
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
124
174
  description: Static site generator using Haml and Coffescript
125
175
  email: melvinsembrano@gmail.com
126
176
  executables:
@@ -145,9 +195,11 @@ files:
145
195
  - app/js/plugins/a.coffee
146
196
  - app/layouts/app.haml
147
197
  - app/layouts/app.html
198
+ - app/layouts/new.haml
148
199
  - app/pages/_footer.haml
149
200
  - app/pages/_footer.html
150
201
  - app/pages/cat/index.haml
202
+ - app/pages/cat/index.yml
151
203
  - app/pages/dog/index.haml
152
204
  - app/pages/help.html
153
205
  - app/pages/index.haml
@@ -190,7 +242,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
242
  version: '0'
191
243
  segments:
192
244
  - 0
193
- hash: 3148363132540704849
245
+ hash: 3255930957822625978
194
246
  required_rubygems_version: !ruby/object:Gem::Requirement
195
247
  none: false
196
248
  requirements:
@@ -199,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
251
  version: '0'
200
252
  requirements: []
201
253
  rubyforge_project:
202
- rubygems_version: 1.8.10
254
+ rubygems_version: 1.8.25
203
255
  signing_key:
204
256
  specification_version: 3
205
257
  summary: Static site generator using Haml and Coffescript