vesper 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +36 -5
- data/bin/vesper +2 -0
- data/lib/vesper/framework/Gemfile +2 -2
- data/lib/vesper/framework/config/sessions.rb +1 -5
- 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/tmp/plugins/data-mapper/assets/data/seeds.rb +1 -1
- data/lib/vesper/framework/tmp/plugins/data-mapper/assets/data/transmogrify.rb +1 -1
- data/lib/vesper/framework/tmp/plugins/data-mapper/config/datasources.rb +8 -8
- data/lib/vesper/framework/tmp/plugins/data-mapper/meta_data.rb +2 -2
- data/lib/vesper/framework/tmp/plugins/hot-reloader/meta_data.rb +2 -2
- data/lib/vesper/framework/tmp/plugins/pony-emailer/meta_data.rb +2 -2
- data/lib/vesper/version.rb +1 -1
- data/vesper.gemspec +3 -2
- metadata +18 -7
data/README.md
CHANGED
@@ -1,11 +1,42 @@
|
|
1
|
-
Vesper
|
1
|
+

|
2
2
|
|
3
|
-
|
3
|
+
Version 1.0.1
|
4
|
+
======
|
5
|
+
> The Ruby web framework designed for clarity, flexibility and effectiveness.
|
4
6
|
|
5
|
-
|
7
|
+
If you've built something interesting with Vesper, [let us know](mailto:jarrod@vesperapps.com?Subject=Look What I Build with Vesper!).
|
6
8
|
|
9
|
+
Installation
|
10
|
+
------------
|
11
|
+
|
12
|
+
### Set Up Your Dev Environment
|
13
|
+
|
14
|
+
Vesper includes almost everything required to write a web app, but first you have to set up your dev environment. Here's what you'll need to get started:
|
15
|
+
|
16
|
+
Ruby 1.9.3 or above: [http://www.ruby-lang.org/](http://www.ruby-lang.org/)</a>
|
17
|
+
|
18
|
+
> **Pro Tip:** Using [rbenv](https://github.com/sstephenson/rbenv) and [ruby-build](https://github.com/sstephenson/ruby-build) should make this simpler.
|
19
|
+
|
20
|
+
RubyGems: [https://rubygems.org/](https://rubygems.org/)
|
21
|
+
|
22
|
+
SQLite: [http://www.sqlite.org/](http://www.sqlite.org/)
|
23
|
+
|
24
|
+
> You can use a different database (or none at all) -- SQLite is just the default.
|
25
|
+
|
26
|
+
A text editor and web browser also help. I recommend [TextMate](http://macromates.com/) and [Safari](http://www.apple.com/safari/).
|
27
|
+
|
28
|
+
---
|
29
|
+
|
30
|
+
### Download the Gem
|
31
|
+
|
32
|
+
Now that you're all set up, installation should be simple.
|
33
|
+
|
34
|
+
> You may need to sudo this.
|
35
|
+
|
7
36
|
gem install vesper
|
37
|
+
|
38
|
+
That's it! You're ready to start writing web apps with Vesper.
|
8
39
|
|
9
|
-
|
40
|
+
---
|
10
41
|
|
11
|
-
|
42
|
+
Vesper was created by [Jarrod Taylor](https://twitter.com/#!/jarrodtaylor) and [Richard Rissanen](https://twitter.com/#!/TheKarmakazie).
|
data/bin/vesper
CHANGED
@@ -72,6 +72,7 @@ def create_plugin plugin_name
|
|
72
72
|
else
|
73
73
|
puts 'Creating plugin...'
|
74
74
|
FileUtils.cp_r File.dirname(__FILE__) + '/../lib/vesper/plugin', "plugins/#{plugin_name}"
|
75
|
+
FileUtils.chmod_R 0777, "plugins/#{plugin_name}"
|
75
76
|
File.rename "plugins/#{plugin_name}/application/plugin.rb", "plugins/#{plugin_name}/application/#{plugin_name}.rb"
|
76
77
|
File.rename "plugins/#{plugin_name}/assets/plugin.rb", "plugins/#{plugin_name}/assets/#{plugin_name}.rb"
|
77
78
|
File.rename "plugins/#{plugin_name}/config/plugin.rb", "plugins/#{plugin_name}/config/#{plugin_name}.rb"
|
@@ -112,6 +113,7 @@ def install_plugin repo
|
|
112
113
|
FileUtils.rm_rf "#{new_plugin.git_dir}/.git"
|
113
114
|
require "./#{new_plugin.git_dir}/meta_data.rb"
|
114
115
|
FileUtils.mv new_plugin.git_dir, "plugins/#{META_DATA[:name]}"
|
116
|
+
FileUtils.chmod_R 0777, "plugins/#{META_DATA[:name]}"
|
115
117
|
puts 'Copying assets...'
|
116
118
|
Dir["plugins/#{META_DATA[:name]}/assets/**"].each {|asset| FileUtils.cp_r asset, "./"}
|
117
119
|
puts 'Bundling gems...'
|
@@ -1,8 +1,8 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
3
|
|
4
|
-
gem 'sinatra', '~> 1.3.
|
5
|
-
gem 'vesper', '~> 1.0.
|
4
|
+
gem 'sinatra', '~> 1.3.2'
|
5
|
+
gem 'vesper', '~> 1.0.1', require: false
|
6
6
|
|
7
7
|
|
8
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
|
@@ -26,16 +26,16 @@ configure :development do
|
|
26
26
|
DataMapper::Logger.new $stdout, :debug
|
27
27
|
|
28
28
|
# Memory
|
29
|
-
# DataMapper.setup
|
29
|
+
# DataMapper.setup :default, 'sqlite::memory:'
|
30
30
|
|
31
31
|
# SQLite
|
32
|
-
DataMapper.setup
|
32
|
+
DataMapper.setup :default, "sqlite://#{Dir.pwd}/data/development.sqlite3"
|
33
33
|
|
34
34
|
# MySQL
|
35
|
-
# DataMapper.setup
|
35
|
+
# DataMapper.setup :default, 'mysql://username:password@host_url/database_name:port'
|
36
36
|
|
37
37
|
# PostreSQL
|
38
|
-
# DataMapper.setup
|
38
|
+
# DataMapper.setup :default, 'postgres://username:password@host_url/database_name:port'
|
39
39
|
|
40
40
|
end
|
41
41
|
|
@@ -47,15 +47,15 @@ configure :production do
|
|
47
47
|
# DataMapper::Logger.new $stdout, :debug
|
48
48
|
|
49
49
|
# Memory
|
50
|
-
# DataMapper.setup
|
50
|
+
# DataMapper.setup :default, 'sqlite::memory:'
|
51
51
|
|
52
52
|
# SQLite
|
53
|
-
DataMapper.setup
|
53
|
+
DataMapper.setup :default, "sqlite://#{Dir.pwd}/data/production.sqlite3"
|
54
54
|
|
55
55
|
# MySQL
|
56
|
-
# DataMapper.setup
|
56
|
+
# DataMapper.setup :default, 'mysql://username:password@host_url/database_name:port'
|
57
57
|
|
58
58
|
# PostgreSQL
|
59
|
-
# DataMapper.setup
|
59
|
+
# DataMapper.setup :default, 'postgres://username:password@host_url/database_name:port'
|
60
60
|
|
61
61
|
end
|
@@ -2,6 +2,6 @@ META_DATA = {
|
|
2
2
|
name: 'data-mapper',
|
3
3
|
version: '1.0.0',
|
4
4
|
authors: ['Jarrod Taylor', 'Richard Rissanen'],
|
5
|
-
homepage: 'https://github.com/
|
6
|
-
source: 'git@github.com:
|
5
|
+
homepage: 'https://github.com/jarrodtaylor/vpi-data-mapper',
|
6
|
+
source: 'git@github.com:jarrodtaylor/vpi-data-mapper.git'
|
7
7
|
}
|
@@ -2,6 +2,6 @@ META_DATA = {
|
|
2
2
|
name: 'hot-reloader',
|
3
3
|
version: '1.0.0',
|
4
4
|
authors: ['Jarrod Taylor'],
|
5
|
-
homepage: 'https://github.com/
|
6
|
-
source: 'git@github.com:
|
5
|
+
homepage: 'https://github.com/jarrodtaylor/vpi-hot-reloader',
|
6
|
+
source: 'git@github.com:jarrodtaylor/vpi-hot-reloader.git'
|
7
7
|
}
|
@@ -2,6 +2,6 @@ META_DATA = {
|
|
2
2
|
name: 'pony-emailer',
|
3
3
|
version: '1.0.0',
|
4
4
|
authors: ['Jarrod Taylor', 'Richard Rissanen'],
|
5
|
-
homepage: 'https://github.com/
|
6
|
-
source: 'git@github.com:
|
5
|
+
homepage: 'https://github.com/jarrodtaylor/vpi-pony-emailer',
|
6
|
+
source: 'git@github.com:jarrodtaylor/vpi-pony-emailer.git'
|
7
7
|
}
|
data/lib/vesper/version.rb
CHANGED
data/vesper.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.authors = ["Jarrod Taylor", "Richard Rissanen"]
|
9
9
|
s.email = "jarrod@vesperapps.com"
|
10
10
|
s.homepage = "http://vesperapps.com/"
|
11
|
-
s.summary = "Vesper is the
|
11
|
+
s.summary = "Vesper is the plug and play Ruby web app framework."
|
12
12
|
|
13
13
|
s.files = `git ls-files`.split("\n")
|
14
14
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -18,7 +18,8 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.required_ruby_version = ">= 1.9.2"
|
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 "bundler", "~> 1.0.21"
|
22
23
|
s.add_runtime_dependency "grit", "~> 2.4.1"
|
23
24
|
s.add_runtime_dependency "sinatra", "~> 1.3.1"
|
24
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vesper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,22 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-01-
|
13
|
+
date: 2012-01-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: bundler
|
17
|
+
requirement: &70345138772800 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.0.21
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *70345138772800
|
15
26
|
- !ruby/object:Gem::Dependency
|
16
27
|
name: grit
|
17
|
-
requirement: &
|
28
|
+
requirement: &70345138772340 !ruby/object:Gem::Requirement
|
18
29
|
none: false
|
19
30
|
requirements:
|
20
31
|
- - ~>
|
@@ -22,10 +33,10 @@ dependencies:
|
|
22
33
|
version: 2.4.1
|
23
34
|
type: :runtime
|
24
35
|
prerelease: false
|
25
|
-
version_requirements: *
|
36
|
+
version_requirements: *70345138772340
|
26
37
|
- !ruby/object:Gem::Dependency
|
27
38
|
name: sinatra
|
28
|
-
requirement: &
|
39
|
+
requirement: &70345138771880 !ruby/object:Gem::Requirement
|
29
40
|
none: false
|
30
41
|
requirements:
|
31
42
|
- - ~>
|
@@ -33,7 +44,7 @@ dependencies:
|
|
33
44
|
version: 1.3.1
|
34
45
|
type: :runtime
|
35
46
|
prerelease: false
|
36
|
-
version_requirements: *
|
47
|
+
version_requirements: *70345138771880
|
37
48
|
description:
|
38
49
|
email: jarrod@vesperapps.com
|
39
50
|
executables:
|
@@ -127,5 +138,5 @@ rubyforge_project:
|
|
127
138
|
rubygems_version: 1.8.11
|
128
139
|
signing_key:
|
129
140
|
specification_version: 3
|
130
|
-
summary: Vesper is the
|
141
|
+
summary: Vesper is the plug and play Ruby web app framework.
|
131
142
|
test_files: []
|