lokka 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +48 -0
- data/LICENSE +20 -0
- data/README.ja.rdoc +46 -0
- data/README.rdoc +46 -0
- data/Rakefile +116 -0
- data/VERSION +1 -0
- data/bin/autotest +16 -0
- data/bin/bluefeather +16 -0
- data/bin/convert_to_should_syntax +16 -0
- data/bin/css2sass +16 -0
- data/bin/edit_json.rb +16 -0
- data/bin/erubis +16 -0
- data/bin/exceptional +16 -0
- data/bin/haml +16 -0
- data/bin/html2haml +16 -0
- data/bin/jeweler +16 -0
- data/bin/lokka +4 -0
- data/bin/prettify_json.rb +16 -0
- data/bin/rackup +16 -0
- data/bin/rake +16 -0
- data/bin/rcov +16 -0
- data/bin/sass +16 -0
- data/bin/sass-convert +16 -0
- data/bin/tilt +16 -0
- data/bin/unit_diff +16 -0
- data/config.ru +3 -0
- data/config.yml +4 -0
- data/i18n/en.yml +149 -0
- data/i18n/ja.yml +149 -0
- data/init.rb +7 -0
- data/install.rb +16 -0
- data/lib/lokka.rb +138 -0
- data/lib/lokka/app.rb +562 -0
- data/lib/lokka/before.rb +29 -0
- data/lib/lokka/bread_crumb.rb +34 -0
- data/lib/lokka/category.rb +33 -0
- data/lib/lokka/comment.rb +26 -0
- data/lib/lokka/entry.rb +70 -0
- data/lib/lokka/helpers.rb +214 -0
- data/lib/lokka/option.rb +23 -0
- data/lib/lokka/site.rb +19 -0
- data/lib/lokka/tag.rb +5 -0
- data/lib/lokka/theme.rb +17 -0
- data/lib/lokka/user.rb +77 -0
- data/lib/sqlite3.dll +0 -0
- data/lokka.exe +0 -0
- data/lokka.exy +15 -0
- data/lokka.gemspec +373 -0
- data/lokka.ico +0 -0
- data/lokka.rb +11 -0
- data/public/admin/categories/edit.haml +6 -0
- data/public/admin/categories/form.haml +18 -0
- data/public/admin/categories/index.haml +15 -0
- data/public/admin/categories/new.haml +5 -0
- data/public/admin/comments/edit.haml +6 -0
- data/public/admin/comments/form.haml +29 -0
- data/public/admin/comments/index.haml +22 -0
- data/public/admin/comments/new.haml +5 -0
- data/public/admin/css/editor.css +10 -0
- data/public/admin/css/jquery.cleditor.css +24 -0
- data/public/admin/css/style.css +710 -0
- data/public/admin/edit.haml +42 -0
- data/public/admin/favicon.ico +0 -0
- data/public/admin/images/add.png +0 -0
- data/public/admin/images/aside_arrow.png +0 -0
- data/public/admin/images/buttons.gif +0 -0
- data/public/admin/images/category.png +0 -0
- data/public/admin/images/comment.png +0 -0
- data/public/admin/images/dashboard.png +0 -0
- data/public/admin/images/file.png +0 -0
- data/public/admin/images/files.png +0 -0
- data/public/admin/images/mail-attachment.png +0 -0
- data/public/admin/images/plugin.png +0 -0
- data/public/admin/images/post.png +0 -0
- data/public/admin/images/setting.png +0 -0
- data/public/admin/images/tag.png +0 -0
- data/public/admin/images/theme.png +0 -0
- data/public/admin/images/toolbar.gif +0 -0
- data/public/admin/images/user.png +0 -0
- data/public/admin/index.haml +1 -0
- data/public/admin/js/editor.js +7 -0
- data/public/admin/js/jquery.cleditor.js +1132 -0
- data/public/admin/js/jquery.cleditor.min.js +31 -0
- data/public/admin/layout.haml +91 -0
- data/public/admin/pages/edit.haml +6 -0
- data/public/admin/pages/form.haml +33 -0
- data/public/admin/pages/index.haml +23 -0
- data/public/admin/pages/new.haml +5 -0
- data/public/admin/plugins/index.haml +4 -0
- data/public/admin/posts/edit.haml +6 -0
- data/public/admin/posts/form.haml +33 -0
- data/public/admin/posts/index.haml +23 -0
- data/public/admin/posts/new.haml +5 -0
- data/public/admin/show.haml +7 -0
- data/public/admin/signup.haml +17 -0
- data/public/admin/site/edit.haml +13 -0
- data/public/admin/tags/edit.haml +6 -0
- data/public/admin/tags/form.haml +10 -0
- data/public/admin/tags/index.haml +19 -0
- data/public/admin/themes/index.haml +13 -0
- data/public/admin/users/edit.haml +6 -0
- data/public/admin/users/form.haml +22 -0
- data/public/admin/users/index.haml +24 -0
- data/public/admin/users/new.haml +5 -0
- data/public/plugin/lokka-google_analytics/lib/lokka/google_analytics.rb +29 -0
- data/public/plugin/lokka-google_analytics/views/index.haml +15 -0
- data/public/plugin/lokka-hello/lib/lokka/hello.rb +15 -0
- data/public/plugin/lokka-markdown/lib/lokka/markdown.rb +12 -0
- data/public/plugin/lokka-rbconfig/lib/lokka/rbconfig.rb +11 -0
- data/public/plugin/lokka-rbconfig/views/index.haml +7 -0
- data/public/plugin/lokka-rbconfig/views/style.css +12 -0
- data/public/system/404.haml +20 -0
- data/public/system/500.haml +19 -0
- data/public/system/comments/form.haml +22 -0
- data/public/system/favicon.ico +0 -0
- data/public/system/index.builder +25 -0
- data/public/system/style.css +8 -0
- data/public/theme/default/entries.erb +40 -0
- data/public/theme/default/entry.erb +23 -0
- data/public/theme/default/layout.erb +74 -0
- data/public/theme/default/quote.gif +0 -0
- data/public/theme/default/screenshot.png +0 -0
- data/public/theme/default/style.css +1147 -0
- data/public/theme/jarvi/entries.erb +26 -0
- data/public/theme/jarvi/entry.erb +14 -0
- data/public/theme/jarvi/favicon.ico +0 -0
- data/public/theme/jarvi/images/aside_dt.gif +0 -0
- data/public/theme/jarvi/images/aside_dt.png +0 -0
- data/public/theme/jarvi/images/footer.gif +0 -0
- data/public/theme/jarvi/images/footer.psd +0 -0
- data/public/theme/jarvi/images/header_deascription_ul.gif +0 -0
- data/public/theme/jarvi/images/header_language.gif +0 -0
- data/public/theme/jarvi/images/header_nav.gif +0 -0
- data/public/theme/jarvi/images/html.gif +0 -0
- data/public/theme/jarvi/images/index_content.gif +0 -0
- data/public/theme/jarvi/images/index_content_footer.gif +0 -0
- data/public/theme/jarvi/images/index_content_header.gif +0 -0
- data/public/theme/jarvi/images/index_header_nav.gif +0 -0
- data/public/theme/jarvi/images/section_header_title.gif +0 -0
- data/public/theme/jarvi/images/wide_content.gif +0 -0
- data/public/theme/jarvi/images/wide_content_body.gif +0 -0
- data/public/theme/jarvi/images/wide_content_h3.gif +0 -0
- data/public/theme/jarvi/layout.erb +55 -0
- data/public/theme/jarvi/screenshot.png +0 -0
- data/public/theme/jarvi/style.css +618 -0
- data/public/theme/lokka-org/article.haml +9 -0
- data/public/theme/lokka-org/entries.haml +9 -0
- data/public/theme/lokka-org/entry.haml +1 -0
- data/public/theme/lokka-org/favicon.ico +0 -0
- data/public/theme/lokka-org/images/aside_dt.gif +0 -0
- data/public/theme/lokka-org/images/aside_dt.png +0 -0
- data/public/theme/lokka-org/images/download_button.jpg +0 -0
- data/public/theme/lokka-org/images/footer.gif +0 -0
- data/public/theme/lokka-org/images/footer.psd +0 -0
- data/public/theme/lokka-org/images/header_capture.gif +0 -0
- data/public/theme/lokka-org/images/header_capture.jpg +0 -0
- data/public/theme/lokka-org/images/header_capture_a.gif +0 -0
- data/public/theme/lokka-org/images/header_deascription_ul.gif +0 -0
- data/public/theme/lokka-org/images/header_h1_a.gif +0 -0
- data/public/theme/lokka-org/images/header_language.gif +0 -0
- data/public/theme/lokka-org/images/header_nav.gif +0 -0
- data/public/theme/lokka-org/images/heder_nav_home.gif +0 -0
- data/public/theme/lokka-org/images/heder_nav_home.jpg +0 -0
- data/public/theme/lokka-org/images/html.gif +0 -0
- data/public/theme/lokka-org/images/index_content.gif +0 -0
- data/public/theme/lokka-org/images/index_content_footer.gif +0 -0
- data/public/theme/lokka-org/images/index_content_header.gif +0 -0
- data/public/theme/lokka-org/images/index_header_h1.gif +0 -0
- data/public/theme/lokka-org/images/index_header_nav.gif +0 -0
- data/public/theme/lokka-org/images/language_a.png +0 -0
- data/public/theme/lokka-org/images/section_header_title.gif +0 -0
- data/public/theme/lokka-org/images/wide_content.gif +0 -0
- data/public/theme/lokka-org/images/wide_content_body.gif +0 -0
- data/public/theme/lokka-org/images/wide_content_h3.gif +0 -0
- data/public/theme/lokka-org/index.haml +5 -0
- data/public/theme/lokka-org/layout.haml +72 -0
- data/public/theme/lokka-org/quote.gif +0 -0
- data/public/theme/lokka-org/screenshot.png +0 -0
- data/public/theme/lokka-org/style.css +806 -0
- data/public/theme/p0t/article.haml +10 -0
- data/public/theme/p0t/entries.haml +9 -0
- data/public/theme/p0t/entry.haml +7 -0
- data/public/theme/p0t/favicon.ico +0 -0
- data/public/theme/p0t/images/quote.gif +0 -0
- data/public/theme/p0t/layout.haml +68 -0
- data/public/theme/p0t/screenshot.png +0 -0
- data/public/theme/p0t/style.css +359 -0
- data/public/theme/vicuna-mono/entries.erb +40 -0
- data/public/theme/vicuna-mono/entry.erb +23 -0
- data/public/theme/vicuna-mono/layout.erb +76 -0
- data/public/theme/vicuna-mono/quote.gif +0 -0
- data/public/theme/vicuna-mono/screenshot.png +0 -0
- data/public/theme/vicuna-mono/style.css +1156 -0
- data/test/helper.rb +23 -0
- data/test/lokka/app_test.rb +15 -0
- data/test/lokka/post_test.rb +17 -0
- metadata +965 -0
data/Gemfile
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
source :rubygems
|
2
|
+
|
3
|
+
gem 'rack-flash', '0.1.1'
|
4
|
+
gem 'i18n', '0.4.1'
|
5
|
+
gem 'sinatra', '1.1.0'
|
6
|
+
gem 'sinatra-r18n', '0.4.7.1'
|
7
|
+
gem 'sinatra-content-for', '0.2'
|
8
|
+
gem 'dm-migrations', '1.0.2'
|
9
|
+
gem 'dm-timestamps', '1.0.2'
|
10
|
+
gem 'dm-validations', '1.0.2'
|
11
|
+
gem 'dm-types', '1.0.2'
|
12
|
+
gem 'dm-is-tree', '1.0.2'
|
13
|
+
gem 'dm-tags', '1.0.2'
|
14
|
+
gem 'dm-pager', '1.1.0'
|
15
|
+
gem 'builder', '2.1.2'
|
16
|
+
gem 'haml', '3.0.18'
|
17
|
+
gem 'rake', '0.8.7'
|
18
|
+
gem 'exceptional', '2.0.25'
|
19
|
+
gem 'erubis', '2.6.6'
|
20
|
+
gem 'activesupport', '3.0.0'
|
21
|
+
gem 'bluefeather'
|
22
|
+
|
23
|
+
Dir["public/plugin/lokka-*/Gemfile"].each do |path|
|
24
|
+
File.open(path) do |f|
|
25
|
+
f.lines.each do |line|
|
26
|
+
eval(line)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
group :production do
|
32
|
+
gem 'dm-postgres-adapter', '1.0.0'
|
33
|
+
end
|
34
|
+
|
35
|
+
group :development do
|
36
|
+
gem 'dm-sqlite-adapter', '1.0.2'
|
37
|
+
gem 'shoulda', '2.11.3'
|
38
|
+
gem 'bundler', '~> 1.0.0'
|
39
|
+
gem 'jeweler', '~> 1.5.1'
|
40
|
+
gem 'rcov', '>= 0'
|
41
|
+
end
|
42
|
+
|
43
|
+
group :test do
|
44
|
+
gem 'dm-sqlite-adapter', '1.0.2'
|
45
|
+
gem 'shoulda', '2.11.3'
|
46
|
+
gem 'rack-test', '0.5.4', :require => 'rack/test'
|
47
|
+
gem 'autotest', '4.3.2'
|
48
|
+
end
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2010 Masaki Komagata
|
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.ja.rdoc
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
= Lokka
|
2
|
+
|
3
|
+
Rubyで書かれたクラウドの為のCMS。
|
4
|
+
|
5
|
+
== 特徴
|
6
|
+
|
7
|
+
* Windows, Mac, Linuxに加え、Google App Engine, Heroku等のクラウド環境でも動作します。
|
8
|
+
* WordPressを参考にして、WordPressユーザーに分かりやすく作られています。
|
9
|
+
* インストールが簡単。
|
10
|
+
* デザイナーにとってテーマを作るのが簡単。
|
11
|
+
* RubyistにとってクリーンなプラグインAPI。
|
12
|
+
|
13
|
+
== インストール
|
14
|
+
|
15
|
+
$ gem install bundler
|
16
|
+
$ git clone git://github.com/komagata/lokka.git
|
17
|
+
$ cd lokka
|
18
|
+
$ bundle install --path bundle --without production test
|
19
|
+
$ bundle exec rake db:set
|
20
|
+
$ bundle exec rackup
|
21
|
+
|
22
|
+
http://localhost:9292/ を見る。
|
23
|
+
|
24
|
+
== Herokuへのデプロイ
|
25
|
+
|
26
|
+
$ gem install bundler
|
27
|
+
$ git clone git://github.com/komagata/lokka.git
|
28
|
+
$ cd lokka
|
29
|
+
$ heroku create
|
30
|
+
$ git push heroku master
|
31
|
+
$ heroku rake db:set
|
32
|
+
|
33
|
+
== Note on Patches/Pull Requests
|
34
|
+
|
35
|
+
* Fork the project.
|
36
|
+
* Make your feature addition or bug fix.
|
37
|
+
* Add tests for it. This is important so I don't break it in a
|
38
|
+
future version unintentionally.
|
39
|
+
* Commit, do not mess with rakefile, version, or history.
|
40
|
+
(if you want to have your own version, that is fine but
|
41
|
+
bump version in a commit by itself I can ignore when I pull)
|
42
|
+
* Send me a pull request. Bonus points for topic branches.
|
43
|
+
|
44
|
+
== Copyright
|
45
|
+
|
46
|
+
Copyright (c) 2010 Masaki Komagata. See LICENSE for details.
|
data/README.rdoc
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
= Lokka
|
2
|
+
|
3
|
+
CMS written in Ruby for cloud computing.
|
4
|
+
|
5
|
+
== FEATURES
|
6
|
+
|
7
|
+
* Performs in the cloud environment such as Google App Engine and Heroku as well as Windows, Mac, and Linux.
|
8
|
+
* Designed with reference to WordPress for WordPress users to easily understand.
|
9
|
+
* Easy installation
|
10
|
+
* Easy to create a theme for designers.
|
11
|
+
* A clear plug-in API for Rubyists
|
12
|
+
|
13
|
+
== INSTALLATION
|
14
|
+
|
15
|
+
$ gem install bundler
|
16
|
+
$ git clone git://github.com/komagata/lokka.git
|
17
|
+
$ cd lokka
|
18
|
+
$ bundle install --path bundle --without production test
|
19
|
+
$ bundle exec rake db:set
|
20
|
+
$ bundle exec rackup
|
21
|
+
|
22
|
+
View at: http://localhost:9292/
|
23
|
+
|
24
|
+
== DEPLOY TO HEROKU
|
25
|
+
|
26
|
+
$ gem install bundler
|
27
|
+
$ git clone git://github.com/komagata/lokka.git
|
28
|
+
$ cd lokka
|
29
|
+
$ heroku create
|
30
|
+
$ git push heroku master
|
31
|
+
$ heroku rake db:set
|
32
|
+
|
33
|
+
== Note on Patches/Pull Requests
|
34
|
+
|
35
|
+
* Fork the project.
|
36
|
+
* Make your feature addition or bug fix.
|
37
|
+
* Add tests for it. This is important so I don't break it in a
|
38
|
+
future version unintentionally.
|
39
|
+
* Commit, do not mess with rakefile, version, or history.
|
40
|
+
(if you want to have your own version, that is fine but
|
41
|
+
bump version in a commit by itself I can ignore when I pull)
|
42
|
+
* Send me a pull request. Bonus points for topic branches.
|
43
|
+
|
44
|
+
== Copyright
|
45
|
+
|
46
|
+
Copyright (c) 2010 Masaki Komagata. See LICENSE for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,116 @@
|
|
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 'rake'
|
11
|
+
|
12
|
+
require 'jeweler'
|
13
|
+
Jeweler::Tasks.new do |gem|
|
14
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
15
|
+
gem.name = "lokka"
|
16
|
+
gem.homepage = "http://github.com/komagata/lokka"
|
17
|
+
gem.license = "MIT"
|
18
|
+
gem.summary = %Q{CMS for Cloud.}
|
19
|
+
gem.description = %Q{CMS written in Ruby for cloud computing.}
|
20
|
+
gem.email = "komagata@gmail.com"
|
21
|
+
gem.authors = ["Masaki KOMAGATA", "Teppei Machida"]
|
22
|
+
gem.executables = ['lokka']
|
23
|
+
gem.files.exclude 'log'
|
24
|
+
gem.files.exclude 'tmp'
|
25
|
+
gem.add_dependency 'rack-flash', '0.1.1'
|
26
|
+
gem.add_dependency 'i18n', '0.4.1'
|
27
|
+
gem.add_dependency 'sinatra', '1.1.0'
|
28
|
+
gem.add_dependency 'sinatra-r18n', '0.4.7.1'
|
29
|
+
gem.add_dependency 'sinatra-content-for', '0.2'
|
30
|
+
gem.add_dependency 'dm-migrations', '1.0.2'
|
31
|
+
gem.add_dependency 'dm-timestamps', '1.0.2'
|
32
|
+
gem.add_dependency 'dm-validations', '1.0.2'
|
33
|
+
gem.add_dependency 'dm-types', '1.0.2'
|
34
|
+
gem.add_dependency 'dm-is-tree', '1.0.2'
|
35
|
+
gem.add_dependency 'dm-tags', '1.0.2'
|
36
|
+
gem.add_dependency 'dm-pager', '1.1.0'
|
37
|
+
gem.add_dependency 'builder', '2.1.2'
|
38
|
+
gem.add_dependency 'haml', '3.0.18'
|
39
|
+
gem.add_dependency 'rake', '0.8.7'
|
40
|
+
gem.add_dependency 'exceptional', '2.0.25'
|
41
|
+
gem.add_dependency 'erubis', '2.6.6'
|
42
|
+
gem.add_dependency 'activesupport', '3.0.0'
|
43
|
+
gem.add_dependency 'bluefeather', '0.33'
|
44
|
+
gem.add_dependency 'dm-sqlite-adapter', '1.0.2'
|
45
|
+
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
46
|
+
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
47
|
+
# gem.add_runtime_dependency 'jabber4r', '> 0.1'
|
48
|
+
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
49
|
+
end
|
50
|
+
Jeweler::RubygemsDotOrgTasks.new
|
51
|
+
|
52
|
+
require 'rake/testtask'
|
53
|
+
Rake::TestTask.new(:test) do |test|
|
54
|
+
test.libs << 'lib' << 'test'
|
55
|
+
test.pattern = 'test/**/test_*.rb'
|
56
|
+
test.verbose = true
|
57
|
+
end
|
58
|
+
|
59
|
+
require 'rcov/rcovtask'
|
60
|
+
Rcov::RcovTask.new do |test|
|
61
|
+
test.libs << 'test'
|
62
|
+
test.pattern = 'test/**/test_*.rb'
|
63
|
+
test.verbose = true
|
64
|
+
end
|
65
|
+
|
66
|
+
task :default => :test
|
67
|
+
|
68
|
+
require 'rake/rdoctask'
|
69
|
+
Rake::RDocTask.new do |rdoc|
|
70
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
71
|
+
|
72
|
+
rdoc.rdoc_dir = 'rdoc'
|
73
|
+
rdoc.title = "lokka #{version}"
|
74
|
+
rdoc.rdoc_files.include('README*')
|
75
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
76
|
+
end
|
77
|
+
|
78
|
+
require './init'
|
79
|
+
|
80
|
+
desc 'Prepare test'
|
81
|
+
task 'test:prepare' => 'db:migrate' do
|
82
|
+
User.create(:name => 'test', :password => 'test', :password_confirmation => 'test')
|
83
|
+
Site.create(:title => 'Test Site', :description => 'description...', :theme => 'jarvi')
|
84
|
+
Post.create(
|
85
|
+
:id => 1,
|
86
|
+
:user_id => 1,
|
87
|
+
:category_id => 1,
|
88
|
+
:title => "Test Post ...",
|
89
|
+
:body => "body ...",
|
90
|
+
:slug => "slug"
|
91
|
+
)
|
92
|
+
end
|
93
|
+
|
94
|
+
desc 'Create the Lokka database'
|
95
|
+
task 'db:migrate' do
|
96
|
+
Lokka::Database.new.create
|
97
|
+
end
|
98
|
+
|
99
|
+
desc 'Execute seed script'
|
100
|
+
task 'db:seed' do
|
101
|
+
Lokka::Database.new.setup
|
102
|
+
end
|
103
|
+
|
104
|
+
desc 'Set database'
|
105
|
+
task 'db:set' => %w(db:migrate db:seed)
|
106
|
+
|
107
|
+
desc 'Reset database'
|
108
|
+
task 'db:reset' => %w(db:migrate db:seed)
|
109
|
+
|
110
|
+
desc 'Install gems'
|
111
|
+
task :bundle do
|
112
|
+
`bundle install --path bundle --without production test`
|
113
|
+
end
|
114
|
+
|
115
|
+
desc 'Install'
|
116
|
+
task :install => %w(bundle db:set)
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.1
|
data/bin/autotest
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'autotest' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('autotest', 'autotest')
|
data/bin/bluefeather
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'bluefeather' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('bluefeather', 'bluefeather')
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'convert_to_should_syntax' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('shoulda', 'convert_to_should_syntax')
|
data/bin/css2sass
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'css2sass' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('haml', 'css2sass')
|
data/bin/edit_json.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'edit_json.rb' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('json_pure', 'edit_json.rb')
|
data/bin/erubis
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'erubis' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('erubis', 'erubis')
|
data/bin/exceptional
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'exceptional' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('exceptional', 'exceptional')
|
data/bin/haml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'haml' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('haml', 'haml')
|
data/bin/html2haml
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'html2haml' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('haml', 'html2haml')
|
data/bin/jeweler
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'jeweler' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('jeweler', 'jeweler')
|