zing 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/zing +79 -35
- data/zing.gemspec +2 -2
- metadata +13 -13
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/bin/zing
CHANGED
@@ -185,6 +185,11 @@ class Cms < Sinatra::Base
|
|
185
185
|
end
|
186
186
|
|
187
187
|
get '/cms/login' do
|
188
|
+
image_array = ["http://www.buuuk.com/wp-content/uploads/2011/08/ST_bannerNEW.png",
|
189
|
+
"http://www.buuuk.com/wp-content/uploads/2011/04/weatherlah-banner2d.png",
|
190
|
+
"http://www.buuuk.com/wp-content/uploads/2011/04/buUuk-banner_New2.png"]
|
191
|
+
@main_image = image_array[rand(3)]
|
192
|
+
|
188
193
|
haml :login, :layout => false
|
189
194
|
end
|
190
195
|
|
@@ -200,6 +205,11 @@ class Cms < Sinatra::Base
|
|
200
205
|
redirect '/cms/login'
|
201
206
|
end
|
202
207
|
|
208
|
+
get '/cms/logout' do
|
209
|
+
session[:authorized] = false
|
210
|
+
redirect '/cms/login'
|
211
|
+
end
|
212
|
+
|
203
213
|
get '/cms/dashboard' do
|
204
214
|
haml :dashboard
|
205
215
|
end
|
@@ -216,7 +226,15 @@ end
|
|
216
226
|
%title= if @page_title then "CMS " + @page_title.humanize else "CMS" end
|
217
227
|
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
|
218
228
|
%meta{:content => "NONE,NOARCHIVE", :name => "robots"}
|
219
|
-
%link{:href => "http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css", :rel => "
|
229
|
+
%link{:href => "http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css", :rel => "stylesheet", :type => "text/css"}
|
230
|
+
:css
|
231
|
+
body {
|
232
|
+
padding-top: 60px;
|
233
|
+
}
|
234
|
+
.hero-unit {
|
235
|
+
padding: 0;
|
236
|
+
margin-bottom: 10px;
|
237
|
+
}
|
220
238
|
|
221
239
|
%body
|
222
240
|
|
@@ -225,26 +243,39 @@ end
|
|
225
243
|
.container
|
226
244
|
%a.brand{:href=>"#"}
|
227
245
|
= $APP_NAME + " CMS"
|
228
|
-
|
229
|
-
%li.active
|
230
|
-
%a{:href => "#"}Home
|
231
|
-
%li
|
232
|
-
%a{:href => "#about"}About
|
233
|
-
%li
|
234
|
-
%a{:href => "#contact"}Contact
|
246
|
+
|
235
247
|
%form.pull-right{:action => "/cms/login", :method => "post"}
|
236
|
-
%input.input-small{:type => "text", :placeholder => "Username"}
|
237
|
-
%input.input-small{:type => "
|
248
|
+
%input.input-small{:name => "username", :type => "text", :placeholder => "Username"}
|
249
|
+
%input.input-small{:name => "password", :type => "password", :placeholder => "Password"}
|
238
250
|
%button.btn{:type => "submit"}Sign in
|
239
251
|
|
240
252
|
.container
|
241
253
|
.hero-unit
|
242
|
-
%
|
243
|
-
|
244
|
-
|
245
|
-
|
254
|
+
%img{:src => @main_image}
|
255
|
+
|
256
|
+
.row
|
257
|
+
.span16
|
258
|
+
%h2 We build custom mobile applications
|
259
|
+
%p
|
260
|
+
We help our clients create mobile applications. Our focus is on building apps that deliver real-time, contextually relevant information to mobile touch screens. We are experts in using location, augmented reality and push notification. We don't out-source.
|
261
|
+
.row
|
262
|
+
.span4{:style => "text-align: center"}
|
263
|
+
%img{:src => "http://www.buuuk.com/wp-content/uploads/2011/03/iPhone4Both1.png", :width => "200px", :height => "376px"}
|
264
|
+
.span4{:style => "text-align: center"}
|
265
|
+
%img{:src => "http://www.buuuk.com/wp-content/uploads/2011/03/Samsung_Nexus_S_FTKAKI.png", :width => "187px", :height => "344px"}
|
266
|
+
.span4{:style => "text-align: center"}
|
267
|
+
%img{:src => "http://www.buuuk.com/wp-content/uploads/2011/03/Blackberry-AMEXmerchantfind3.png", :width => "230px", :height => "363px"}
|
268
|
+
.span4{:style => "text-align: center"}
|
269
|
+
%img{:src => "http://www.buuuk.com/wp-content/uploads/2011/03/windows_buuuk2.png", :width => "200px", :height => "362px"}
|
270
|
+
|
271
|
+
.row
|
272
|
+
.span16
|
273
|
+
%h2 Platforms
|
274
|
+
%p From iPhone/iPad, to Android, to BlackBerry, to Windows 7: our portfolio of products is testament to our expertise across multiple platforms. Our services extend beyond just developing apps. We can provide a complete infrastructure for deployment, content management and hosting.
|
275
|
+
|
276
|
+
%footer
|
246
277
|
%p
|
247
|
-
= "All rights reserved. © " + Time.now.year.to_s
|
278
|
+
= "All rights reserved. © BuUuk " + Time.now.year.to_s
|
248
279
|
|
249
280
|
login_haml_content
|
250
281
|
ZingHelper.create_file("#{views_directory}/login.haml", login_haml_content)
|
@@ -252,43 +283,56 @@ end
|
|
252
283
|
# create layout.haml
|
253
284
|
layout_haml_content = <<-layout_haml_content
|
254
285
|
!!! 5
|
255
|
-
%html
|
286
|
+
%html
|
256
287
|
%head
|
257
288
|
%title= if @page_title then "CMS " + @page_title.humanize else "CMS" end
|
258
|
-
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
|
289
|
+
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
|
259
290
|
%meta{:content => "NONE,NOARCHIVE", :name => "robots"}
|
260
|
-
%link{:href => "http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css", :rel => "
|
291
|
+
%link{:href => "http://twitter.github.com/bootstrap/1.4.0/bootstrap.min.css", :rel => "stylesheet", :type => "text/css"}
|
292
|
+
:css
|
293
|
+
body {
|
294
|
+
padding-top: 60px;
|
295
|
+
}
|
261
296
|
|
262
297
|
%body
|
263
298
|
|
264
299
|
.topbar
|
265
|
-
.
|
266
|
-
.container
|
267
|
-
%a.brand{:href=>"
|
268
|
-
= $APP_NAME + " CMS"
|
300
|
+
.topbar-inner
|
301
|
+
.container-fluid
|
302
|
+
%a.brand{:href=>"/"}
|
303
|
+
= $APP_NAME + " CMS"
|
269
304
|
%ul.nav
|
270
305
|
%li.active
|
271
|
-
%a{:href => "
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
%button.btn{:type => "submit"}Sign in
|
306
|
+
%a{:href => "/cms/dashboard"}Dashboard
|
307
|
+
%p.pull-right
|
308
|
+
%a{:href => "/cms/logout"}Logout
|
309
|
+
|
310
|
+
.container-fluid
|
311
|
+
.sidebar
|
312
|
+
.well
|
313
|
+
= haml :sidebar
|
280
314
|
|
281
|
-
.container
|
282
315
|
.content
|
283
316
|
= yield
|
284
317
|
|
285
|
-
|
286
|
-
|
287
|
-
|
318
|
+
%footer
|
319
|
+
%p
|
320
|
+
= "All rights reserved. © BuUuk " + Time.now.year.to_s
|
288
321
|
|
289
322
|
layout_haml_content
|
290
323
|
ZingHelper.create_file("#{views_directory}/layout.haml", layout_haml_content)
|
291
324
|
|
325
|
+
sidbar_haml_content = <<-sidebar_haml_content
|
326
|
+
%h5
|
327
|
+
CMS Modules
|
328
|
+
%ul
|
329
|
+
%li
|
330
|
+
%a{:href => "#"}Push Notification
|
331
|
+
%li
|
332
|
+
%a{:href => "#"}Collection Items
|
333
|
+
sidebar_haml_content
|
334
|
+
ZingHelper.create_file("#{views_directory}/sidebar.haml", sidebar_haml_content)
|
335
|
+
|
292
336
|
dashboard_haml_content = <<-dashboard_haml_content
|
293
337
|
%p
|
294
338
|
This is the dashboard
|
data/zing.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "zing"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Samuel Chandra"]
|
12
|
-
s.date = "2012-01
|
12
|
+
s.date = "2012-02-01"
|
13
13
|
s.description = "This gem will generate common code for a new or existing Sinatra project"
|
14
14
|
s.email = "samuelchandra@yahoo.com"
|
15
15
|
s.executables = ["zing"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
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-02-01 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colorize
|
16
|
-
requirement: &
|
16
|
+
requirement: &70206015711540 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70206015711540
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: shoulda
|
27
|
-
requirement: &
|
27
|
+
requirement: &70206015710520 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70206015710520
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70206015669380 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70206015669380
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: jeweler
|
49
|
-
requirement: &
|
49
|
+
requirement: &70206015668320 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.6.4
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70206015668320
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rcov
|
60
|
-
requirement: &
|
60
|
+
requirement: &70206015667120 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70206015667120
|
69
69
|
description: This gem will generate common code for a new or existing Sinatra project
|
70
70
|
email: samuelchandra@yahoo.com
|
71
71
|
executables:
|
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
segments:
|
108
108
|
- 0
|
109
|
-
hash:
|
109
|
+
hash: 3208439667910366908
|
110
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
111
|
none: false
|
112
112
|
requirements:
|