vesper 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,11 +1,42 @@
1
- Vesper is still in development until the 1.0 release, so tread carefully.
1
+ ![Vesper Logo](http://vesperapps.com/img/vesper.png)
2
2
 
3
- ## Installation
3
+ Version 1.0.1
4
+ ======
5
+ > The Ruby web framework designed for clarity, flexibility and effectiveness.
4
6
 
5
- You may need to sudo this:
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
- ## Options
40
+ ---
10
41
 
11
- vesper options
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.1'
5
- gem 'vesper', '~> 1.0.0', :require => false
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)}
@@ -1,5 +1 @@
1
- # Bypass Sinatra sessions and use Rack directly
2
- use Rack::Session::Cookie, key: 'my_app_key',
3
- path: '/',
4
- expire_after: 1209600, # 2 weeks, in seconds
5
- secret: 'P@ssw0rd'
1
+ set :sessions, true
@@ -4,4 +4,4 @@
4
4
  # >> rake dm:seed
5
5
  #
6
6
  # Example:
7
- # User.create(:email => 'jarrod@vesperapps.com')
7
+ # User.create email: 'jarrod@vesperapps.com'
@@ -4,4 +4,4 @@
4
4
  # >> rake dm:transmogrify
5
5
  #
6
6
  # Example:
7
- # User.first.update(:email => 'new.email@example.com')
7
+ # User.first.update email: 'new.email@example.com'
@@ -26,16 +26,16 @@ configure :development do
26
26
  DataMapper::Logger.new $stdout, :debug
27
27
 
28
28
  # Memory
29
- # DataMapper.setup(:default, 'sqlite::memory:')
29
+ # DataMapper.setup :default, 'sqlite::memory:'
30
30
 
31
31
  # SQLite
32
- DataMapper.setup(:default, "sqlite://#{Dir.pwd}/data/development.sqlite3")
32
+ DataMapper.setup :default, "sqlite://#{Dir.pwd}/data/development.sqlite3"
33
33
 
34
34
  # MySQL
35
- # DataMapper.setup(:default, 'mysql://username:password@host_url/database_name:port')
35
+ # DataMapper.setup :default, 'mysql://username:password@host_url/database_name:port'
36
36
 
37
37
  # PostreSQL
38
- # DataMapper.setup(:default, 'postgres://username:password@host_url/database_name:port')
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(:default, 'sqlite::memory:')
50
+ # DataMapper.setup :default, 'sqlite::memory:'
51
51
 
52
52
  # SQLite
53
- DataMapper.setup(:default, "sqlite://#{Dir.pwd}/data/production.sqlite3")
53
+ DataMapper.setup :default, "sqlite://#{Dir.pwd}/data/production.sqlite3"
54
54
 
55
55
  # MySQL
56
- # DataMapper.setup(:default, 'mysql://username:password@host_url/database_name:port')
56
+ # DataMapper.setup :default, 'mysql://username:password@host_url/database_name:port'
57
57
 
58
58
  # PostgreSQL
59
- # DataMapper.setup(:default, 'postgres://username:password@host_url/database_name:port')
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/vesper/data-mapper',
6
- source: 'git@github.com:vesper/data-mapper.git'
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/vesper/hot-reloader',
6
- source: 'git@github.com:vesper/hot-reloader.git'
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/vesper/pony',
6
- source: 'git@github.com:vesper/pony.git'
5
+ homepage: 'https://github.com/jarrodtaylor/vpi-pony-emailer',
6
+ source: 'git@github.com:jarrodtaylor/vpi-pony-emailer.git'
7
7
  }
@@ -1,3 +1,3 @@
1
1
  module Vesper
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -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 Ruby web framework designed for clarity, flexibility and effectiveness."
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.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-08 00:00:00.000000000 Z
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: &70204747674340 !ruby/object:Gem::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: *70204747674340
36
+ version_requirements: *70345138772340
26
37
  - !ruby/object:Gem::Dependency
27
38
  name: sinatra
28
- requirement: &70204747673060 !ruby/object:Gem::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: *70204747673060
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 Ruby web framework designed for clarity, flexibility and effectiveness.
141
+ summary: Vesper is the plug and play Ruby web app framework.
131
142
  test_files: []