vesper 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -0
- data/Gemfile +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/bin/vesper +14 -0
- data/lib/vesper.rb +3 -3
- data/lib/vesper/framework/.gitignore +0 -0
- data/lib/vesper/framework/Gemfile +0 -5
- data/lib/vesper/framework/Rakefile +0 -0
- data/lib/vesper/framework/Readme.md +0 -0
- data/lib/vesper/framework/application/hello_world.rb +0 -0
- data/lib/vesper/framework/config.ru +0 -0
- data/lib/vesper/framework/config/sessions.rb +0 -0
- data/lib/vesper/framework/plugins/core-extensions/Gemfile +0 -0
- data/lib/vesper/framework/plugins/core-extensions/Readme.md +0 -0
- data/lib/vesper/framework/plugins/core-extensions/application/date_time.rb +0 -0
- data/lib/vesper/framework/plugins/core-extensions/application/helpers.rb +0 -0
- data/lib/vesper/framework/plugins/core-extensions/application/number.rb +0 -0
- data/lib/vesper/framework/plugins/core-extensions/application/string.rb +0 -0
- data/lib/vesper/framework/plugins/core-extensions/meta_data.rb +0 -0
- data/lib/vesper/framework/public/css/design.css +0 -0
- data/lib/vesper/framework/public/img/fyeah.jpg +0 -0
- data/lib/vesper/framework/public/js/hide_addressbar.js +0 -0
- data/lib/vesper/framework/public/robots.txt +0 -0
- data/lib/vesper/framework/tasks/irb.rb +0 -0
- data/lib/vesper/framework/tests/hello_world.rb +0 -0
- data/lib/vesper/framework/tmp/plugins/data-mapper/Gemfile +4 -0
- data/lib/vesper/framework/tmp/plugins/data-mapper/Readme.md +3 -0
- data/lib/vesper/framework/{data → tmp/plugins/data-mapper/assets/data}/seeds.rb +2 -2
- data/lib/vesper/framework/tmp/plugins/data-mapper/assets/data/transmogrify.rb +7 -0
- data/lib/vesper/framework/{config/databases.rb → tmp/plugins/data-mapper/config/datasources.rb} +0 -0
- data/lib/vesper/framework/tmp/plugins/data-mapper/hooks/post-boot.rb +1 -0
- data/lib/vesper/framework/tmp/plugins/data-mapper/meta_data.rb +7 -0
- data/lib/vesper/framework/{tasks/databases.rb → tmp/plugins/data-mapper/tasks/data-mapper.rb} +8 -8
- data/lib/vesper/framework/{plugins → tmp/plugins}/hot-reloader/Gemfile +0 -0
- data/lib/vesper/framework/{plugins → tmp/plugins}/hot-reloader/Readme.md +0 -0
- data/lib/vesper/framework/{plugins → tmp/plugins}/hot-reloader/config/hot-reloader.rb +0 -0
- data/lib/vesper/framework/{plugins → tmp/plugins}/hot-reloader/meta_data.rb +0 -0
- data/lib/vesper/framework/tmp/plugins/pony/Gemfile +1 -0
- data/lib/vesper/framework/tmp/plugins/pony/Readme.md +16 -0
- data/lib/vesper/framework/tmp/plugins/pony/config/pony.rb +18 -0
- data/lib/vesper/framework/tmp/plugins/pony/meta_data.rb +7 -0
- data/lib/vesper/framework/tmp/restart.txt +0 -0
- data/lib/vesper/framework/views/hello_world.html +0 -0
- data/lib/vesper/framework/views/layout.html +0 -0
- data/lib/vesper/plugin/Gemfile +0 -0
- data/lib/vesper/plugin/Readme.md +1 -1
- data/lib/vesper/plugin/application/plugin.rb +0 -0
- data/lib/vesper/plugin/assets/plugin.rb +3 -0
- data/lib/vesper/plugin/config/plugin.rb +0 -0
- data/lib/vesper/plugin/meta_data.rb +0 -0
- data/lib/vesper/plugin/tasks/plugin.rb +0 -0
- data/lib/vesper/rake.rb +0 -0
- data/lib/vesper/version.rb +1 -1
- data/vesper.gemspec +3 -8
- metadata +25 -82
- data/lib/vesper/framework/config/schedule.rb +0 -20
- data/lib/vesper/framework/data/transmogrify.rb +0 -7
- data/lib/vesper/framework/log/messages.log +0 -0
- data/lib/vesper/framework/plugins/logger/Readme.md +0 -40
- data/lib/vesper/framework/plugins/logger/application/log.rb +0 -31
- data/lib/vesper/framework/plugins/logger/meta_data.rb +0 -7
- data/lib/vesper/framework/plugins/logger/tasks/log.rb +0 -12
- data/lib/vesper/framework/plugins/markdown-parser/Gemfile +0 -1
- data/lib/vesper/framework/plugins/markdown-parser/Readme.md +0 -11
- data/lib/vesper/framework/plugins/markdown-parser/application/markdown-parser.rb +0 -5
- data/lib/vesper/framework/plugins/markdown-parser/config/markdown-parser.rb +0 -6
- data/lib/vesper/framework/plugins/markdown-parser/meta_data.rb +0 -7
data/.gitignore
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/bin/vesper
CHANGED
@@ -44,6 +44,10 @@ end
|
|
44
44
|
def create_app app_name
|
45
45
|
puts "Creating #{app_name}..."
|
46
46
|
FileUtils.cp_r File.dirname(__FILE__) + '/../lib/vesper/framework', app_name unless Dir.exists? app_name
|
47
|
+
puts 'Installing default plugins...'
|
48
|
+
Dir["#{app_name}/tmp/plugins/**"].each {|plugin| FileUtils.cp_r plugin, "#{app_name}/plugins"}
|
49
|
+
Dir["#{app_name}/plugins/**"].each {|plugin| Dir["#{plugin}/assets/**"].each {|asset| FileUtils.cp_r asset, "#{app_name}/"}}
|
50
|
+
FileUtils.rm_rf "#{app_name}/tmp/plugins"
|
47
51
|
puts "Bundling gems..."
|
48
52
|
system "cd #{app_name} && bundle > /dev/null"
|
49
53
|
puts ''
|
@@ -64,6 +68,7 @@ def create_plugin plugin_name
|
|
64
68
|
puts 'Creating plugin...'
|
65
69
|
FileUtils.cp_r File.dirname(__FILE__) + '/../lib/vesper/plugin', "plugins/#{plugin_name}"
|
66
70
|
File.rename "plugins/#{plugin_name}/application/plugin.rb", "plugins/#{plugin_name}/application/#{plugin_name}.rb"
|
71
|
+
File.rename "plugins/#{plugin_name}/assets/plugin.rb", "plugins/#{plugin_name}/assets/#{plugin_name}.rb"
|
67
72
|
File.rename "plugins/#{plugin_name}/config/plugin.rb", "plugins/#{plugin_name}/config/#{plugin_name}.rb"
|
68
73
|
File.rename "plugins/#{plugin_name}/tasks/plugin.rb", "plugins/#{plugin_name}/tasks/#{plugin_name}.rb"
|
69
74
|
puts ''
|
@@ -76,7 +81,14 @@ end
|
|
76
81
|
|
77
82
|
def remove_plugin plugin_name
|
78
83
|
if Dir.exists? "plugins/#{plugin_name}"
|
84
|
+
assets = []
|
85
|
+
Dir["plugins/#{plugin_name}/assets/**/*"].each {|asset| assets << asset.gsub("plugins/#{plugin_name}/assets/", "")}
|
86
|
+
template = []
|
87
|
+
Dir[File.dirname(__FILE__) + '/../lib/vesper/framework/**/*'].each {|i| template << i.gsub(/(.)*framework\//, '')}
|
88
|
+
assets.each {|asset| FileUtils.rm_rf asset if !template.include?(asset) && asset.include?('.')}
|
89
|
+
assets.each {|asset| FileUtils.rm_rf asset if !template.include?(asset) && Dir.exists?(asset) && Dir.entries(asset) == [".", ".."]}
|
79
90
|
FileUtils.rm_rf "plugins/#{plugin_name}"
|
91
|
+
system "bundle > /dev/null"
|
80
92
|
puts ''
|
81
93
|
puts "#{plugin_name} plugin removed."
|
82
94
|
puts ''
|
@@ -95,6 +107,8 @@ def install_plugin repo
|
|
95
107
|
FileUtils.rm_rf "#{new_plugin.git_dir}/.git"
|
96
108
|
require "./#{new_plugin.git_dir}/meta_data.rb"
|
97
109
|
FileUtils.mv new_plugin.git_dir, "plugins/#{META_DATA[:name]}"
|
110
|
+
puts 'Copying assets...'
|
111
|
+
Dir["plugins/#{META_DATA[:name]}/assets/**"].each {|asset| FileUtils.cp_r asset, "./"}
|
98
112
|
puts 'Bundling gems...'
|
99
113
|
system "bundle > /dev/null"
|
100
114
|
puts ''
|
data/lib/vesper.rb
CHANGED
@@ -11,12 +11,12 @@ module Vesper
|
|
11
11
|
set :public_folder, './public'
|
12
12
|
|
13
13
|
[
|
14
|
+
'plugins/**/hooks/pre-boot.rb',
|
14
15
|
'config',
|
15
16
|
'plugins/**/config',
|
16
17
|
'plugins/**/application',
|
17
|
-
'application'
|
18
|
+
'application',
|
19
|
+
'plugins/**/hooks/post-boot.rb'
|
18
20
|
].each {|dir| Dir["./#{dir}/**/*.rb"].each {|file| require file}}
|
19
21
|
|
20
|
-
DataMapper.finalize
|
21
|
-
|
22
22
|
end
|
File without changes
|
@@ -1,13 +1,8 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
3
|
|
4
|
-
gem 'data_mapper', '~> 1.2.0'
|
5
|
-
# gem 'dm-mysql-adapter'
|
6
|
-
# gem 'dm-postgres-adapter'
|
7
|
-
gem 'dm-sqlite-adapter', '~> 1.2.0'
|
8
4
|
gem 'sinatra', '~> 1.3.1'
|
9
5
|
gem 'vesper', :require => false
|
10
|
-
gem 'whenever', '~> 0.7.0', :require => false
|
11
6
|
|
12
7
|
|
13
8
|
Dir["./plugins/**/Gemfile"].each {|gemfile| self.send(:eval, File.open(gemfile, 'r').read)}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/vesper/framework/{config/databases.rb → tmp/plugins/data-mapper/config/datasources.rb}
RENAMED
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
DataMapper.finalize
|
data/lib/vesper/framework/{tasks/databases.rb → tmp/plugins/data-mapper/tasks/data-mapper.rb}
RENAMED
@@ -1,35 +1,35 @@
|
|
1
1
|
# Example:
|
2
2
|
# >> rake build
|
3
3
|
desc 'Builds the app from scratch'
|
4
|
-
task :build => ['
|
4
|
+
task :build => ['dm:setup'] do
|
5
5
|
exec 'rackup'
|
6
6
|
end
|
7
7
|
|
8
8
|
# Database specific tasks
|
9
|
-
namespace :
|
9
|
+
namespace :dm do
|
10
10
|
|
11
11
|
# Example:
|
12
|
-
# >> rake
|
12
|
+
# >> rake dm:setup
|
13
13
|
desc 'Creates a new seeded database'
|
14
|
-
task :setup => ['
|
14
|
+
task :setup => ['dm:migrate', 'dm:seed']
|
15
15
|
|
16
16
|
# Example:
|
17
|
-
# >> rake
|
17
|
+
# >> rake dm:upgrade
|
18
18
|
desc 'Auto upgrades the database, non-descructive'
|
19
19
|
task(:upgrade) { DataMapper.auto_upgrade }
|
20
20
|
|
21
21
|
# Example:
|
22
|
-
# >> rake
|
22
|
+
# >> rake dm:migrate
|
23
23
|
desc 'Auto migrates the database, destructive'
|
24
24
|
task(:migrate) { DataMapper.auto_migrate! }
|
25
25
|
|
26
26
|
# Example:
|
27
|
-
# >> rake
|
27
|
+
# >> rake dm:seed
|
28
28
|
desc 'Seeds the database'
|
29
29
|
task(:seed) { require "#{Dir.pwd}/data/seeds.rb" }
|
30
30
|
|
31
31
|
# Example
|
32
|
-
# >> rake
|
32
|
+
# >> rake dm:transmogrify
|
33
33
|
desc 'Alters the data'
|
34
34
|
task(:transmogrify) { require "#{Dir.pwd}/data/transmogrify.rb" }
|
35
35
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
gem 'pony', '~> 1.4'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
Pony Vesper Plugin
|
2
|
+
==================
|
3
|
+
> Sends email.
|
4
|
+
|
5
|
+
|
6
|
+
mail
|
7
|
+
----
|
8
|
+
> Sends email using default settings.
|
9
|
+
|
10
|
+
Pony.mail(
|
11
|
+
via: :smtp,
|
12
|
+
via_options: settings.mail_server,
|
13
|
+
to: 'you@example.com',
|
14
|
+
subject:'This is a sample email',
|
15
|
+
body: 'Can you read me now?'
|
16
|
+
)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
set :mail_server, {
|
2
|
+
address: '',
|
3
|
+
port: '',
|
4
|
+
enable_starttls_auto: true,
|
5
|
+
user_name: '',
|
6
|
+
password: '',
|
7
|
+
authentication: :plain
|
8
|
+
}
|
9
|
+
|
10
|
+
# Example using GMail:
|
11
|
+
# set :mail_server, {
|
12
|
+
# address: 'smtp.gmail.com',
|
13
|
+
# port: '587',
|
14
|
+
# enable_starttls_auto: true,
|
15
|
+
# user_name: 'you@gmail.com', # Google Apps domains also work here
|
16
|
+
# password: '********',
|
17
|
+
# authentication: :plain
|
18
|
+
# }
|
File without changes
|
File without changes
|
File without changes
|
data/lib/vesper/plugin/Gemfile
CHANGED
File without changes
|
data/lib/vesper/plugin/Readme.md
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/vesper/rake.rb
CHANGED
File without changes
|
data/lib/vesper/version.rb
CHANGED
data/vesper.gemspec
CHANGED
@@ -5,10 +5,10 @@ require "vesper/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "vesper"
|
7
7
|
s.version = Vesper::VERSION
|
8
|
-
s.
|
9
|
-
s.email = "
|
8
|
+
s.authors = ["Jarrod Taylor", "Richard Rissanen"]
|
9
|
+
s.email = "jarrod@vesperapps.com"
|
10
10
|
s.homepage = "http://vesperapps.com/"
|
11
|
-
s.summary = "A web framework with a focus on transparency
|
11
|
+
s.summary = "A web framework with a focus on transparency."
|
12
12
|
|
13
13
|
s.files = `git ls-files`.split("\n")
|
14
14
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -19,11 +19,6 @@ Gem::Specification.new do |s|
|
|
19
19
|
|
20
20
|
s.post_install_message = "\nTo see what vesper can do:\n vesper options\n\nSend any questions or comments to jarrod@vesperapps.com\n\n"
|
21
21
|
|
22
|
-
s.add_runtime_dependency "chronic", "~> 0.6.5"
|
23
|
-
s.add_runtime_dependency "data_mapper", "~> 1.2.0"
|
24
|
-
s.add_runtime_dependency "dm-sqlite-adapter", "~> 1.2.0"
|
25
22
|
s.add_runtime_dependency "grit", "~> 2.4.1"
|
26
|
-
s.add_runtime_dependency "redcarpet", "~> 2.0.0"
|
27
23
|
s.add_runtime_dependency "sinatra", "~> 1.3.1"
|
28
|
-
s.add_runtime_dependency "whenever", "~> 0.7.0"
|
29
24
|
end
|
metadata
CHANGED
@@ -1,52 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vesper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jarrod Taylor
|
9
|
+
- Richard Rissanen
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
13
|
date: 2011-12-31 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: chronic
|
16
|
-
requirement: &70354325315880 !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 0.6.5
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: *70354325315880
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: data_mapper
|
27
|
-
requirement: &70354325315200 !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
|
-
requirements:
|
30
|
-
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 1.2.0
|
33
|
-
type: :runtime
|
34
|
-
prerelease: false
|
35
|
-
version_requirements: *70354325315200
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: dm-sqlite-adapter
|
38
|
-
requirement: &70354325314720 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 1.2.0
|
44
|
-
type: :runtime
|
45
|
-
prerelease: false
|
46
|
-
version_requirements: *70354325314720
|
47
15
|
- !ruby/object:Gem::Dependency
|
48
16
|
name: grit
|
49
|
-
requirement: &
|
17
|
+
requirement: &70332863474220 !ruby/object:Gem::Requirement
|
50
18
|
none: false
|
51
19
|
requirements:
|
52
20
|
- - ~>
|
@@ -54,21 +22,10 @@ dependencies:
|
|
54
22
|
version: 2.4.1
|
55
23
|
type: :runtime
|
56
24
|
prerelease: false
|
57
|
-
version_requirements: *
|
58
|
-
- !ruby/object:Gem::Dependency
|
59
|
-
name: redcarpet
|
60
|
-
requirement: &70354325313340 !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
|
-
requirements:
|
63
|
-
- - ~>
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: 2.0.0
|
66
|
-
type: :runtime
|
67
|
-
prerelease: false
|
68
|
-
version_requirements: *70354325313340
|
25
|
+
version_requirements: *70332863474220
|
69
26
|
- !ruby/object:Gem::Dependency
|
70
27
|
name: sinatra
|
71
|
-
requirement: &
|
28
|
+
requirement: &70332863473740 !ruby/object:Gem::Requirement
|
72
29
|
none: false
|
73
30
|
requirements:
|
74
31
|
- - ~>
|
@@ -76,20 +33,9 @@ dependencies:
|
|
76
33
|
version: 1.3.1
|
77
34
|
type: :runtime
|
78
35
|
prerelease: false
|
79
|
-
version_requirements: *
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: whenever
|
82
|
-
requirement: &70354325311900 !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
|
-
requirements:
|
85
|
-
- - ~>
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: 0.7.0
|
88
|
-
type: :runtime
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: *70354325311900
|
36
|
+
version_requirements: *70332863473740
|
91
37
|
description:
|
92
|
-
email:
|
38
|
+
email: jarrod@vesperapps.com
|
93
39
|
executables:
|
94
40
|
- vesper
|
95
41
|
extensions: []
|
@@ -107,12 +53,7 @@ files:
|
|
107
53
|
- lib/vesper/framework/Readme.md
|
108
54
|
- lib/vesper/framework/application/hello_world.rb
|
109
55
|
- lib/vesper/framework/config.ru
|
110
|
-
- lib/vesper/framework/config/databases.rb
|
111
|
-
- lib/vesper/framework/config/schedule.rb
|
112
56
|
- lib/vesper/framework/config/sessions.rb
|
113
|
-
- lib/vesper/framework/data/seeds.rb
|
114
|
-
- lib/vesper/framework/data/transmogrify.rb
|
115
|
-
- lib/vesper/framework/log/messages.log
|
116
57
|
- lib/vesper/framework/plugins/core-extensions/Gemfile
|
117
58
|
- lib/vesper/framework/plugins/core-extensions/Readme.md
|
118
59
|
- lib/vesper/framework/plugins/core-extensions/application/date_time.rb
|
@@ -120,32 +61,35 @@ files:
|
|
120
61
|
- lib/vesper/framework/plugins/core-extensions/application/number.rb
|
121
62
|
- lib/vesper/framework/plugins/core-extensions/application/string.rb
|
122
63
|
- lib/vesper/framework/plugins/core-extensions/meta_data.rb
|
123
|
-
- lib/vesper/framework/plugins/hot-reloader/Gemfile
|
124
|
-
- lib/vesper/framework/plugins/hot-reloader/Readme.md
|
125
|
-
- lib/vesper/framework/plugins/hot-reloader/config/hot-reloader.rb
|
126
|
-
- lib/vesper/framework/plugins/hot-reloader/meta_data.rb
|
127
|
-
- lib/vesper/framework/plugins/logger/Readme.md
|
128
|
-
- lib/vesper/framework/plugins/logger/application/log.rb
|
129
|
-
- lib/vesper/framework/plugins/logger/meta_data.rb
|
130
|
-
- lib/vesper/framework/plugins/logger/tasks/log.rb
|
131
|
-
- lib/vesper/framework/plugins/markdown-parser/Gemfile
|
132
|
-
- lib/vesper/framework/plugins/markdown-parser/Readme.md
|
133
|
-
- lib/vesper/framework/plugins/markdown-parser/application/markdown-parser.rb
|
134
|
-
- lib/vesper/framework/plugins/markdown-parser/config/markdown-parser.rb
|
135
|
-
- lib/vesper/framework/plugins/markdown-parser/meta_data.rb
|
136
64
|
- lib/vesper/framework/public/css/design.css
|
137
65
|
- lib/vesper/framework/public/img/fyeah.jpg
|
138
66
|
- lib/vesper/framework/public/js/hide_addressbar.js
|
139
67
|
- lib/vesper/framework/public/robots.txt
|
140
|
-
- lib/vesper/framework/tasks/databases.rb
|
141
68
|
- lib/vesper/framework/tasks/irb.rb
|
142
69
|
- lib/vesper/framework/tests/hello_world.rb
|
70
|
+
- lib/vesper/framework/tmp/plugins/data-mapper/Gemfile
|
71
|
+
- lib/vesper/framework/tmp/plugins/data-mapper/Readme.md
|
72
|
+
- lib/vesper/framework/tmp/plugins/data-mapper/assets/data/seeds.rb
|
73
|
+
- lib/vesper/framework/tmp/plugins/data-mapper/assets/data/transmogrify.rb
|
74
|
+
- lib/vesper/framework/tmp/plugins/data-mapper/config/datasources.rb
|
75
|
+
- lib/vesper/framework/tmp/plugins/data-mapper/hooks/post-boot.rb
|
76
|
+
- lib/vesper/framework/tmp/plugins/data-mapper/meta_data.rb
|
77
|
+
- lib/vesper/framework/tmp/plugins/data-mapper/tasks/data-mapper.rb
|
78
|
+
- lib/vesper/framework/tmp/plugins/hot-reloader/Gemfile
|
79
|
+
- lib/vesper/framework/tmp/plugins/hot-reloader/Readme.md
|
80
|
+
- lib/vesper/framework/tmp/plugins/hot-reloader/config/hot-reloader.rb
|
81
|
+
- lib/vesper/framework/tmp/plugins/hot-reloader/meta_data.rb
|
82
|
+
- lib/vesper/framework/tmp/plugins/pony/Gemfile
|
83
|
+
- lib/vesper/framework/tmp/plugins/pony/Readme.md
|
84
|
+
- lib/vesper/framework/tmp/plugins/pony/config/pony.rb
|
85
|
+
- lib/vesper/framework/tmp/plugins/pony/meta_data.rb
|
143
86
|
- lib/vesper/framework/tmp/restart.txt
|
144
87
|
- lib/vesper/framework/views/hello_world.html
|
145
88
|
- lib/vesper/framework/views/layout.html
|
146
89
|
- lib/vesper/plugin/Gemfile
|
147
90
|
- lib/vesper/plugin/Readme.md
|
148
91
|
- lib/vesper/plugin/application/plugin.rb
|
92
|
+
- lib/vesper/plugin/assets/plugin.rb
|
149
93
|
- lib/vesper/plugin/config/plugin.rb
|
150
94
|
- lib/vesper/plugin/meta_data.rb
|
151
95
|
- lib/vesper/plugin/tasks/plugin.rb
|
@@ -176,6 +120,5 @@ rubyforge_project:
|
|
176
120
|
rubygems_version: 1.8.11
|
177
121
|
signing_key:
|
178
122
|
specification_version: 3
|
179
|
-
summary: A web framework with a focus on transparency
|
180
|
-
and DataMapper.
|
123
|
+
summary: A web framework with a focus on transparency.
|
181
124
|
test_files: []
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# Use this file to easily define all of your cron jobs.
|
2
|
-
#
|
3
|
-
# It's helpful, but not entirely necessary to understand cron before proceeding.
|
4
|
-
# http://en.wikipedia.org/wiki/Cron
|
5
|
-
|
6
|
-
# Example:
|
7
|
-
#
|
8
|
-
# set :output, "/path/to/my/cron_log.log"
|
9
|
-
#
|
10
|
-
# every 2.hours do
|
11
|
-
# command "/usr/bin/some_great_command"
|
12
|
-
# runner "MyModel.some_method"
|
13
|
-
# rake "some:great:rake:task"
|
14
|
-
# end
|
15
|
-
#
|
16
|
-
# every 4.days do
|
17
|
-
# runner "AnotherModel.prune_old_records"
|
18
|
-
# end
|
19
|
-
|
20
|
-
# Learn more: http://github.com/javan/whenever
|
File without changes
|
@@ -1,40 +0,0 @@
|
|
1
|
-
Logger Vesper Plugin
|
2
|
-
====================
|
3
|
-
> Writes to and clears out log files.
|
4
|
-
|
5
|
-
|
6
|
-
message(msg)
|
7
|
-
------------
|
8
|
-
> Writes to log/messages.log.
|
9
|
-
|
10
|
-
>> Log.message('This is my message.')
|
11
|
-
=> This is my message
|
12
|
-
|
13
|
-
|
14
|
-
write_errors(request)
|
15
|
-
---------------------
|
16
|
-
> Writes errors to a log file.
|
17
|
-
|
18
|
-
>> before do
|
19
|
-
>> Log.write_errors request
|
20
|
-
>> end
|
21
|
-
|
22
|
-
|
23
|
-
write_requests_and_errors(request)
|
24
|
-
----------------------------------
|
25
|
-
> Writes errors and requests to a log file.
|
26
|
-
|
27
|
-
>> before do
|
28
|
-
>> Log.write_requests_and_errors request
|
29
|
-
>> end
|
30
|
-
|
31
|
-
|
32
|
-
clear(file)
|
33
|
-
-----------
|
34
|
-
> Clears out a log file.
|
35
|
-
|
36
|
-
>> Log.clear('messages')
|
37
|
-
|
38
|
-
> Also useful as a rake task.
|
39
|
-
|
40
|
-
>> rake log:clear file=messages
|
@@ -1,31 +0,0 @@
|
|
1
|
-
module Log
|
2
|
-
|
3
|
-
def self.message msg
|
4
|
-
File.open('log/messages.log', 'a+') { |f| f.write("\n#{msg}\n") }
|
5
|
-
end
|
6
|
-
|
7
|
-
def self.write_errors request
|
8
|
-
if env['sinatra.error']
|
9
|
-
File.open("log/#{ENV['RACK_ENV']}.log", 'a+') do |f|
|
10
|
-
f.write("\n#{ENV['sinatra.error']}\n")
|
11
|
-
f.write(" #{Time.now} #{ENV['SERVER_PROTOCOL']} #{request.port} #{request.request_method} #{request.url}\n")
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.write_requests_and_errors request
|
17
|
-
File.open("log/#{ENV['RACK_ENV']}.log", 'a+') do |f|
|
18
|
-
f.write("\n#{ENV['sinatra.error']}\n") if ENV['sinatra.error']
|
19
|
-
f.write(" #{Time.now} #{ENV['SERVER_PROTOCOL']} #{request.port} #{request.request_method} #{request.url}\n")
|
20
|
-
f.write("\n") if ENV['sinatra.error']
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.clear file
|
25
|
-
if File.exists? "log/#{file}.log"
|
26
|
-
File.delete "log/#{file}.log"
|
27
|
-
File.open "log/#{file}.log", 'w+'
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
gem 'redcarpet', '~> 2.0.0'
|