snfn 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +18 -0
- data/LICENSE.txt +20 -0
- data/README.mdown +80 -0
- data/Rakefile +45 -0
- data/VERSION +1 -0
- data/bin/snfn +71 -0
- data/lib/extensions/string.rb +35 -0
- data/lib/snfn.rb +1 -0
- data/lib/templates/Gemfile +48 -0
- data/lib/templates/Procfile +1 -0
- data/lib/templates/README.mdown +60 -0
- data/lib/templates/Rakefile +20 -0
- data/lib/templates/app.rb +11 -0
- data/lib/templates/config/db.yml +35 -0
- data/lib/templates/config/initializers/database.rb +27 -0
- data/lib/templates/config/redis.yml +14 -0
- data/lib/templates/config/unicorn.rb +12 -0
- data/lib/templates/config.ru +15 -0
- data/lib/templates/public/css/main.css +87 -0
- data/lib/templates/public/js/app.js +4 -0
- data/lib/templates/public/js/lib/modernizr-2.0.6.js +1116 -0
- data/lib/templates/views/layout.erb +42 -0
- data/lib/templates/views/welcome.erb +17 -0
- data/snfn.gemspec +78 -0
- data/test/helper.rb +18 -0
- data/test/test_snfn.rb +7 -0
- data/vendor/cache/git-1.2.5.gem +0 -0
- data/vendor/cache/jeweler-1.6.4.gem +0 -0
- data/vendor/cache/rake-0.9.2.gem +0 -0
- data/vendor/cache/thor-0.14.6.gem +0 -0
- metadata +117 -0
@@ -0,0 +1,42 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
|
3
|
+
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
|
4
|
+
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
|
5
|
+
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
6
|
+
<head>
|
7
|
+
<meta charset="utf-8" />
|
8
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
|
9
|
+
|
10
|
+
<title>Template</title>
|
11
|
+
|
12
|
+
<meta name="author" content="Zach Pendleton" />
|
13
|
+
<meta name="description" content="Template Description" />
|
14
|
+
|
15
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
16
|
+
|
17
|
+
<script src="/js/lib/modernizr-2.0.6.js"></script>
|
18
|
+
<link rel="stylesheet" href="/css/main.css" />
|
19
|
+
</head>
|
20
|
+
<body>
|
21
|
+
<div class="wrapper">
|
22
|
+
<header class="branding">
|
23
|
+
<h1>My Application Title</h1>
|
24
|
+
</header>
|
25
|
+
|
26
|
+
<div class="main">
|
27
|
+
<%= yield %>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
<footer class="branding">
|
31
|
+
<small>© <%= Time.now.year %>, Zach Pendleton.</small>
|
32
|
+
</footer>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
|
36
|
+
<script src="/js/app.js"></script>
|
37
|
+
<!--[if lt IE 7]>
|
38
|
+
<script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.2/CFInstall.min.js"></script>
|
39
|
+
<script>window.attachEvent("onload",function(){CFInstall.check({mode:"overlay"})})</script>
|
40
|
+
<![endif]-->
|
41
|
+
</body>
|
42
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<h2>Sinatra Template Default Page</h2>
|
2
|
+
|
3
|
+
<div class="content">
|
4
|
+
<p>Welcome to the Sinatra Template! If you're seeing this page, then everything is working
|
5
|
+
as expected. To get started, delete this file (<code>views/welcome.erb</code> and begin adding
|
6
|
+
your own actions to <code>app.rb</code>. For more information, see the README.</p>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<div class="sidebar">
|
10
|
+
<h3>Environment</h3>
|
11
|
+
<ul>
|
12
|
+
<li><b>Ruby:</b> <%= @version %></li>
|
13
|
+
<li><b>Environment:</b> <%= @environment %></li>
|
14
|
+
<li><b>Server:</b> <%= @env["SERVER_SOFTWARE"] %></li>
|
15
|
+
<li><b>Port:</b> <%= @env["SERVER_PORT"] %></li>
|
16
|
+
</ul>
|
17
|
+
</div>
|
data/snfn.gemspec
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{snfn}
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = [%q{Zach Pendleton}]
|
12
|
+
s.date = %q{2011-08-15}
|
13
|
+
s.description = %q{An app generator for Sinatra apps with an eye towards easy Heroku setup and deployment.}
|
14
|
+
s.email = %q{zachpendleton@gmail.com}
|
15
|
+
s.executables = [%q{snfn}]
|
16
|
+
s.extra_rdoc_files = [
|
17
|
+
"LICENSE.txt",
|
18
|
+
"README.mdown"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".document",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.mdown",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"bin/snfn",
|
29
|
+
"lib/extensions/string.rb",
|
30
|
+
"lib/snfn.rb",
|
31
|
+
"lib/templates/Gemfile",
|
32
|
+
"lib/templates/Procfile",
|
33
|
+
"lib/templates/README.mdown",
|
34
|
+
"lib/templates/Rakefile",
|
35
|
+
"lib/templates/app.rb",
|
36
|
+
"lib/templates/config.ru",
|
37
|
+
"lib/templates/config/db.yml",
|
38
|
+
"lib/templates/config/initializers/database.rb",
|
39
|
+
"lib/templates/config/redis.yml",
|
40
|
+
"lib/templates/config/unicorn.rb",
|
41
|
+
"lib/templates/public/css/main.css",
|
42
|
+
"lib/templates/public/js/app.js",
|
43
|
+
"lib/templates/public/js/lib/modernizr-2.0.6.js",
|
44
|
+
"lib/templates/views/layout.erb",
|
45
|
+
"lib/templates/views/welcome.erb",
|
46
|
+
"snfn.gemspec",
|
47
|
+
"test/helper.rb",
|
48
|
+
"test/test_snfn.rb",
|
49
|
+
"vendor/cache/git-1.2.5.gem",
|
50
|
+
"vendor/cache/jeweler-1.6.4.gem",
|
51
|
+
"vendor/cache/rake-0.9.2.gem",
|
52
|
+
"vendor/cache/thor-0.14.6.gem"
|
53
|
+
]
|
54
|
+
s.homepage = %q{http://github.com/zachpendleton/snfn}
|
55
|
+
s.licenses = [%q{MIT}]
|
56
|
+
s.require_paths = [%q{lib}]
|
57
|
+
s.rubygems_version = %q{1.8.7}
|
58
|
+
s.summary = %q{A Heroku-friendy Sinatra app generator}
|
59
|
+
|
60
|
+
if s.respond_to? :specification_version then
|
61
|
+
s.specification_version = 3
|
62
|
+
|
63
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
64
|
+
s.add_runtime_dependency(%q<thor>, [">= 0"])
|
65
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
66
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
67
|
+
else
|
68
|
+
s.add_dependency(%q<thor>, [">= 0"])
|
69
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
70
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
71
|
+
end
|
72
|
+
else
|
73
|
+
s.add_dependency(%q<thor>, [">= 0"])
|
74
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
75
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
data/test/helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
require 'shoulda'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
+
require 'snfn'
|
16
|
+
|
17
|
+
class Test::Unit::TestCase
|
18
|
+
end
|
data/test/test_snfn.rb
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: snfn
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Zach Pendleton
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-08-15 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: thor
|
16
|
+
requirement: &70186082933460 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70186082933460
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: bundler
|
27
|
+
requirement: &70186082931700 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.0.0
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70186082931700
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: jeweler
|
38
|
+
requirement: &70186082929680 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.6.4
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70186082929680
|
47
|
+
description: An app generator for Sinatra apps with an eye towards easy Heroku setup
|
48
|
+
and deployment.
|
49
|
+
email: zachpendleton@gmail.com
|
50
|
+
executables:
|
51
|
+
- snfn
|
52
|
+
extensions: []
|
53
|
+
extra_rdoc_files:
|
54
|
+
- LICENSE.txt
|
55
|
+
- README.mdown
|
56
|
+
files:
|
57
|
+
- .document
|
58
|
+
- Gemfile
|
59
|
+
- Gemfile.lock
|
60
|
+
- LICENSE.txt
|
61
|
+
- README.mdown
|
62
|
+
- Rakefile
|
63
|
+
- VERSION
|
64
|
+
- bin/snfn
|
65
|
+
- lib/extensions/string.rb
|
66
|
+
- lib/snfn.rb
|
67
|
+
- lib/templates/Gemfile
|
68
|
+
- lib/templates/Procfile
|
69
|
+
- lib/templates/README.mdown
|
70
|
+
- lib/templates/Rakefile
|
71
|
+
- lib/templates/app.rb
|
72
|
+
- lib/templates/config.ru
|
73
|
+
- lib/templates/config/db.yml
|
74
|
+
- lib/templates/config/initializers/database.rb
|
75
|
+
- lib/templates/config/redis.yml
|
76
|
+
- lib/templates/config/unicorn.rb
|
77
|
+
- lib/templates/public/css/main.css
|
78
|
+
- lib/templates/public/js/app.js
|
79
|
+
- lib/templates/public/js/lib/modernizr-2.0.6.js
|
80
|
+
- lib/templates/views/layout.erb
|
81
|
+
- lib/templates/views/welcome.erb
|
82
|
+
- snfn.gemspec
|
83
|
+
- test/helper.rb
|
84
|
+
- test/test_snfn.rb
|
85
|
+
- vendor/cache/git-1.2.5.gem
|
86
|
+
- vendor/cache/jeweler-1.6.4.gem
|
87
|
+
- vendor/cache/rake-0.9.2.gem
|
88
|
+
- vendor/cache/thor-0.14.6.gem
|
89
|
+
homepage: http://github.com/zachpendleton/snfn
|
90
|
+
licenses:
|
91
|
+
- MIT
|
92
|
+
post_install_message:
|
93
|
+
rdoc_options: []
|
94
|
+
require_paths:
|
95
|
+
- lib
|
96
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
segments:
|
103
|
+
- 0
|
104
|
+
hash: -3397489681279787297
|
105
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
requirements: []
|
112
|
+
rubyforge_project:
|
113
|
+
rubygems_version: 1.8.7
|
114
|
+
signing_key:
|
115
|
+
specification_version: 3
|
116
|
+
summary: A Heroku-friendy Sinatra app generator
|
117
|
+
test_files: []
|