grat 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/LICENSE +20 -0
- data/{README → README.rdoc} +20 -1
- data/Rakefile +51 -11
- data/VERSION +1 -0
- metadata +21 -19
- data/Manifest +0 -55
- data/grat.gemspec +0 -42
data/.gitignore
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Sam Schenkman-Moore
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/{README → README.rdoc}
RENAMED
@@ -1,9 +1,13 @@
|
|
1
|
+
= grat
|
2
|
+
|
1
3
|
Grat is a minimal content management dealy.
|
2
4
|
|
3
5
|
It runs on Rack and uses MongoDB for wicked flexibility.
|
4
6
|
|
5
7
|
Woo.
|
6
8
|
|
9
|
+
== Get setup
|
10
|
+
|
7
11
|
Use it like so:
|
8
12
|
1. Install gem (may need to set up gemcutter)
|
9
13
|
2. Fresh directory
|
@@ -33,4 +37,19 @@ Use it like so:
|
|
33
37
|
'secret' == password
|
34
38
|
end
|
35
39
|
end
|
36
|
-
|
40
|
+
|
41
|
+
|
42
|
+
== Note on Patches/Pull Requests
|
43
|
+
|
44
|
+
* Fork the project.
|
45
|
+
* Make your feature addition or bug fix.
|
46
|
+
* Add tests for it. This is important so I don't break it in a
|
47
|
+
future version unintentionally.
|
48
|
+
* Commit, do not mess with rakefile, version, or history.
|
49
|
+
(if you want to have your own version, that is fine but
|
50
|
+
bump version in a commit by itself I can ignore when I pull)
|
51
|
+
* Send me a pull request. Bonus points for topic branches.
|
52
|
+
|
53
|
+
== Copyright
|
54
|
+
|
55
|
+
Copyright (c) 2009 Sam Schenkman-Moore. See LICENSE for details.
|
data/Rakefile
CHANGED
@@ -1,16 +1,56 @@
|
|
1
|
-
# Rakefile
|
2
1
|
require 'rubygems'
|
3
2
|
require 'rake'
|
4
|
-
require 'echoe'
|
5
3
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "grat"
|
8
|
+
gem.summary = "Minimal CMS for Rack and MongoDB."
|
9
|
+
gem.description = "Basic interface for making webpages with Haml and Erb. Supports nested templates."
|
10
|
+
gem.email = "samsm@samsm.com"
|
11
|
+
gem.homepage = "http://github.com/samsm/grat"
|
12
|
+
gem.authors = ["Sam Schenkman-Moore"]
|
13
|
+
# gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
14
|
+
gem.add_development_dependency "yard", ">= 0"
|
15
|
+
gem.add_runtime_dependency 'sinatra'
|
16
|
+
gem.add_runtime_dependency 'haml'
|
17
|
+
gem.add_runtime_dependency 'mongomapper'
|
18
|
+
gem.add_runtime_dependency 'json'
|
19
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
20
|
+
end
|
21
|
+
rescue LoadError
|
22
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
14
23
|
end
|
15
24
|
|
16
|
-
|
25
|
+
require 'rake/testtask'
|
26
|
+
Rake::TestTask.new(:test) do |test|
|
27
|
+
test.libs << 'lib' << 'test'
|
28
|
+
test.pattern = 'test/**/test_*.rb'
|
29
|
+
test.verbose = true
|
30
|
+
end
|
31
|
+
|
32
|
+
begin
|
33
|
+
require 'rcov/rcovtask'
|
34
|
+
Rcov::RcovTask.new do |test|
|
35
|
+
test.libs << 'test'
|
36
|
+
test.pattern = 'test/**/test_*.rb'
|
37
|
+
test.verbose = true
|
38
|
+
end
|
39
|
+
rescue LoadError
|
40
|
+
task :rcov do
|
41
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
task :test => :check_dependencies
|
46
|
+
|
47
|
+
task :default => :test
|
48
|
+
|
49
|
+
begin
|
50
|
+
require 'yard'
|
51
|
+
YARD::Rake::YardocTask.new
|
52
|
+
rescue LoadError
|
53
|
+
task :yardoc do
|
54
|
+
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
|
55
|
+
end
|
56
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.2
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Schenkman-Moore
|
@@ -12,6 +12,16 @@ cert_chain: []
|
|
12
12
|
date: 2009-11-18 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: yard
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
15
25
|
- !ruby/object:Gem::Dependency
|
16
26
|
name: sinatra
|
17
27
|
type: :runtime
|
@@ -59,16 +69,12 @@ executables: []
|
|
59
69
|
extensions: []
|
60
70
|
|
61
71
|
extra_rdoc_files:
|
62
|
-
-
|
63
|
-
-
|
64
|
-
- lib/grat.rb
|
65
|
-
- lib/grat/content.rb
|
66
|
-
- lib/grat/hash_binding.rb
|
67
|
-
- lib/grat/system.rb
|
72
|
+
- LICENSE
|
73
|
+
- README.rdoc
|
68
74
|
files:
|
69
|
-
-
|
70
|
-
- README
|
75
|
+
- .gitignore
|
71
76
|
- Rakefile
|
77
|
+
- VERSION
|
72
78
|
- config.ru
|
73
79
|
- lib/environment.rb
|
74
80
|
- lib/grat.rb
|
@@ -121,19 +127,15 @@ files:
|
|
121
127
|
- views/layout.haml
|
122
128
|
- views/list.haml
|
123
129
|
- views/missing.haml
|
124
|
-
-
|
130
|
+
- LICENSE
|
131
|
+
- README.rdoc
|
125
132
|
has_rdoc: true
|
126
|
-
homepage: http://
|
133
|
+
homepage: http://github.com/samsm/grat
|
127
134
|
licenses: []
|
128
135
|
|
129
136
|
post_install_message:
|
130
137
|
rdoc_options:
|
131
|
-
- --
|
132
|
-
- --inline-source
|
133
|
-
- --title
|
134
|
-
- Grat
|
135
|
-
- --main
|
136
|
-
- README
|
138
|
+
- --charset=UTF-8
|
137
139
|
require_paths:
|
138
140
|
- lib
|
139
141
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -146,11 +148,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
148
|
requirements:
|
147
149
|
- - ">="
|
148
150
|
- !ruby/object:Gem::Version
|
149
|
-
version: "
|
151
|
+
version: "0"
|
150
152
|
version:
|
151
153
|
requirements: []
|
152
154
|
|
153
|
-
rubyforge_project:
|
155
|
+
rubyforge_project:
|
154
156
|
rubygems_version: 1.3.5
|
155
157
|
signing_key:
|
156
158
|
specification_version: 3
|
data/Manifest
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
Manifest
|
2
|
-
README
|
3
|
-
Rakefile
|
4
|
-
config.ru
|
5
|
-
lib/environment.rb
|
6
|
-
lib/grat.rb
|
7
|
-
lib/grat/content.rb
|
8
|
-
lib/grat/hash_binding.rb
|
9
|
-
lib/grat/system.rb
|
10
|
-
public/gratfiles/application.js
|
11
|
-
public/gratfiles/custom.css
|
12
|
-
public/gratfiles/einars-js-beautify/HTML-Beautify.js
|
13
|
-
public/gratfiles/einars-js-beautify/beautify-cl.js
|
14
|
-
public/gratfiles/einars-js-beautify/beautify-tests.js
|
15
|
-
public/gratfiles/einars-js-beautify/beautify.js
|
16
|
-
public/gratfiles/einars-js-beautify/bin/beautify_js
|
17
|
-
public/gratfiles/einars-js-beautify/index.html
|
18
|
-
public/gratfiles/einars-js-beautify/javascriptobfuscator_unpacker.js
|
19
|
-
public/gratfiles/einars-js-beautify/license.txt
|
20
|
-
public/gratfiles/einars-js-beautify/sanitytest.js
|
21
|
-
public/gratfiles/einars-js-beautify/unmaintained/bbedit/jsBeautify_BBED.scpt
|
22
|
-
public/gratfiles/einars-js-beautify/unmaintained/c-sharp/JSBeautify.cs
|
23
|
-
public/gratfiles/einars-js-beautify/unmaintained/opera-userscript/make_opera_userscript.sh
|
24
|
-
public/gratfiles/einars-js-beautify/unmaintained/opera-userscript/opera_userscript.js
|
25
|
-
public/gratfiles/favicon.ico
|
26
|
-
public/gratfiles/jquery-combined.min.js
|
27
|
-
public/gratfiles/js-beautifier.min.js
|
28
|
-
public/gratfiles/oocss.min.css
|
29
|
-
public/gratfiles/oocss/content.css
|
30
|
-
public/gratfiles/oocss/grids.css
|
31
|
-
public/gratfiles/oocss/grids_debug.css
|
32
|
-
public/gratfiles/oocss/libraries.css
|
33
|
-
public/gratfiles/oocss/mod.css
|
34
|
-
public/gratfiles/oocss/mod_debug.css
|
35
|
-
public/gratfiles/oocss/mod_skins.css
|
36
|
-
public/gratfiles/oocss/talk.css
|
37
|
-
public/gratfiles/oocss/talk_skins.css
|
38
|
-
public/gratfiles/oocss/template.css
|
39
|
-
public/gratfiles/oocss/template_debug.css
|
40
|
-
views/content_form.haml
|
41
|
-
views/css/_content.sass
|
42
|
-
views/css/_custom.sass
|
43
|
-
views/css/_grids.sass
|
44
|
-
views/css/_grids_debug.sass
|
45
|
-
views/css/_libraries.sass
|
46
|
-
views/css/_mod.sass
|
47
|
-
views/css/_mod_debug.sass
|
48
|
-
views/css/_mod_skins.sass
|
49
|
-
views/css/_template.sass
|
50
|
-
views/css/_template_debug.sass
|
51
|
-
views/delete.haml
|
52
|
-
views/import_form.haml
|
53
|
-
views/layout.haml
|
54
|
-
views/list.haml
|
55
|
-
views/missing.haml
|
data/grat.gemspec
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{grat}
|
5
|
-
s.version = "0.1.1"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Sam Schenkman-Moore"]
|
9
|
-
s.date = %q{2009-11-18}
|
10
|
-
s.description = %q{Basic interface for making webpages with Haml and Erb. Supports nested templates.}
|
11
|
-
s.email = %q{samsm@samsm.com}
|
12
|
-
s.extra_rdoc_files = ["README", "lib/environment.rb", "lib/grat.rb", "lib/grat/content.rb", "lib/grat/hash_binding.rb", "lib/grat/system.rb"]
|
13
|
-
s.files = ["Manifest", "README", "Rakefile", "config.ru", "lib/environment.rb", "lib/grat.rb", "lib/grat/content.rb", "lib/grat/hash_binding.rb", "lib/grat/system.rb", "public/gratfiles/application.js", "public/gratfiles/custom.css", "public/gratfiles/einars-js-beautify/HTML-Beautify.js", "public/gratfiles/einars-js-beautify/beautify-cl.js", "public/gratfiles/einars-js-beautify/beautify-tests.js", "public/gratfiles/einars-js-beautify/beautify.js", "public/gratfiles/einars-js-beautify/bin/beautify_js", "public/gratfiles/einars-js-beautify/index.html", "public/gratfiles/einars-js-beautify/javascriptobfuscator_unpacker.js", "public/gratfiles/einars-js-beautify/license.txt", "public/gratfiles/einars-js-beautify/sanitytest.js", "public/gratfiles/einars-js-beautify/unmaintained/bbedit/jsBeautify_BBED.scpt", "public/gratfiles/einars-js-beautify/unmaintained/c-sharp/JSBeautify.cs", "public/gratfiles/einars-js-beautify/unmaintained/opera-userscript/make_opera_userscript.sh", "public/gratfiles/einars-js-beautify/unmaintained/opera-userscript/opera_userscript.js", "public/gratfiles/favicon.ico", "public/gratfiles/jquery-combined.min.js", "public/gratfiles/js-beautifier.min.js", "public/gratfiles/oocss.min.css", "public/gratfiles/oocss/content.css", "public/gratfiles/oocss/grids.css", "public/gratfiles/oocss/grids_debug.css", "public/gratfiles/oocss/libraries.css", "public/gratfiles/oocss/mod.css", "public/gratfiles/oocss/mod_debug.css", "public/gratfiles/oocss/mod_skins.css", "public/gratfiles/oocss/talk.css", "public/gratfiles/oocss/talk_skins.css", "public/gratfiles/oocss/template.css", "public/gratfiles/oocss/template_debug.css", "views/content_form.haml", "views/css/_content.sass", "views/css/_custom.sass", "views/css/_grids.sass", "views/css/_grids_debug.sass", "views/css/_libraries.sass", "views/css/_mod.sass", "views/css/_mod_debug.sass", "views/css/_mod_skins.sass", "views/css/_template.sass", "views/css/_template_debug.sass", "views/delete.haml", "views/import_form.haml", "views/layout.haml", "views/list.haml", "views/missing.haml", "grat.gemspec"]
|
14
|
-
s.homepage = %q{http://samsm.com/}
|
15
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Grat", "--main", "README"]
|
16
|
-
s.require_paths = ["lib"]
|
17
|
-
s.rubyforge_project = %q{grat}
|
18
|
-
s.rubygems_version = %q{1.3.5}
|
19
|
-
s.summary = %q{Minimal CMS for Rack and MongoDB.}
|
20
|
-
|
21
|
-
if s.respond_to? :specification_version then
|
22
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
23
|
-
s.specification_version = 3
|
24
|
-
|
25
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_runtime_dependency(%q<sinatra>, [">= 0"])
|
27
|
-
s.add_runtime_dependency(%q<haml>, [">= 0"])
|
28
|
-
s.add_runtime_dependency(%q<mongomapper>, [">= 0"])
|
29
|
-
s.add_runtime_dependency(%q<json>, [">= 0"])
|
30
|
-
else
|
31
|
-
s.add_dependency(%q<sinatra>, [">= 0"])
|
32
|
-
s.add_dependency(%q<haml>, [">= 0"])
|
33
|
-
s.add_dependency(%q<mongomapper>, [">= 0"])
|
34
|
-
s.add_dependency(%q<json>, [">= 0"])
|
35
|
-
end
|
36
|
-
else
|
37
|
-
s.add_dependency(%q<sinatra>, [">= 0"])
|
38
|
-
s.add_dependency(%q<haml>, [">= 0"])
|
39
|
-
s.add_dependency(%q<mongomapper>, [">= 0"])
|
40
|
-
s.add_dependency(%q<json>, [">= 0"])
|
41
|
-
end
|
42
|
-
end
|