grippy-doozer 0.1.4 → 0.1.5

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
data/doozer.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{doozer}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["grippy"]
12
- s.date = %q{2009-08-14}
12
+ s.date = %q{2009-09-04}
13
13
  s.default_executable = %q{doozer}
14
14
  s.description = %q{This GEM provides a small, barebones framework for creating MVC Rack applications.}
15
15
  s.email = %q{gmelton@whorde.com}
@@ -72,6 +72,7 @@ Gem::Specification.new do |s|
72
72
  "templates/skeleton/app/views/index/index.html.erb",
73
73
  "templates/skeleton/app/views/layouts/default.html.erb",
74
74
  "templates/skeleton/config/app.yml",
75
+ "templates/skeleton/config/boot.rb",
75
76
  "templates/skeleton/config/database.yml",
76
77
  "templates/skeleton/config/environment.rb",
77
78
  "templates/skeleton/config/rack.rb",
@@ -100,6 +101,7 @@ Gem::Specification.new do |s|
100
101
  "test/project/app/views/index/index.html.erb",
101
102
  "test/project/app/views/layouts/default.html.erb",
102
103
  "test/project/config/app.yml",
104
+ "test/project/config/boot.rb",
103
105
  "test/project/config/database.yml",
104
106
  "test/project/config/environment.rb",
105
107
  "test/project/config/rack.rb",
@@ -132,6 +134,7 @@ Gem::Specification.new do |s|
132
134
  "test/project/app/controllers/application_controller.rb",
133
135
  "test/project/app/controllers/index_controller.rb",
134
136
  "test/project/app/helpers/application_helper.rb",
137
+ "test/project/config/boot.rb",
135
138
  "test/project/config/environment.rb",
136
139
  "test/project/config/rack.rb",
137
140
  "test/project/config/routes.rb",
@@ -3,7 +3,7 @@ module Doozer
3
3
  module ORM
4
4
  def self.load
5
5
  db_config = Doozer::Configs.db()
6
- # ActiveRecord::Base.allow_concurrency = true
6
+ #ActiveRecord::Base.allow_concurrency = true
7
7
  ActiveRecord::Base.establish_connection(
8
8
  :adapter => db_config["adapter"],
9
9
  :host => db_config["host"],
@@ -13,7 +13,7 @@ module Doozer
13
13
  )
14
14
  printf "ORM: #{Doozer::Configs.orm()} initialized...\n"
15
15
  # printf "ORM: logging initialized"
16
- ActiveRecord::Base.logger = Doozer::Configs.logger
16
+ ActiveRecord::Base.logger = Doozer::Configs.logger
17
17
  end
18
18
  end
19
19
  end
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
- require 'rubygems'
3
- require 'doozer'
2
+
3
+ APP_PATH = Dir.pwd
4
+ require File.join(APP_PATH, 'config/boot')
4
5
 
5
6
  #--boot it up
6
7
  Doozer::Initializer.boot(env)
@@ -15,7 +16,7 @@ map "/" do
15
16
  use Rack::Reloader, secs=1
16
17
  end
17
18
 
18
- use Rack::Static, {:urls => Doozer::Configs.app["static_urls"], :root => "#{Dir.pwd}/#{Doozer::Configs.app["static_root"]}"} if Doozer::Configs.app
19
+ use Rack::Static, {:urls => Doozer::Configs.app["static_urls"], :root => "#{APP_PATH}/#{Doozer::Configs.app["static_root"]}"} if Doozer::Configs.app
19
20
 
20
21
  use Rack::Session::Cookie, :key => 'rack.session',
21
22
  :domain => '',
@@ -27,7 +28,7 @@ end
27
28
 
28
29
  #--stack additional rack apps
29
30
  begin
30
- require "#{Dir.pwd}/config/rack"
31
+ require "#{APP_PATH}/config/rack"
31
32
  stack()
32
33
  rescue => e
33
34
  Doozer::Configs.logger.error(e)
@@ -92,18 +92,15 @@ def stop
92
92
  end
93
93
 
94
94
  opts = OptionParser.new("", 24, ' ') { |opts|
95
- opts.banner = "Usage: script/clusters -C [command] -E [environment] -h"
96
-
95
+ opts.banner = "Usage: script/cluster -C [command] -E [environment] -h"
97
96
  opts.separator ""
98
97
  opts.separator "Command options:"
99
98
  opts.on("-C", "--command COMMAND", "start, stop, restart, or test") { | c |
100
99
  @command = c.downcase.to_sym
101
100
  }
102
-
103
101
  opts.on("-E", "--env ENVIRONMENT", "default: development || deployment") { | e |
104
102
  @env = e.downcase.to_sym
105
103
  }
106
-
107
104
  opts.on_tail("-h", "--help", "Show this message") do
108
105
  puts opts
109
106
  exit
@@ -2,7 +2,7 @@ module Doozer
2
2
  module Version
3
3
  MAJOR=0
4
4
  MINOR=1
5
- PATCH=4
5
+ PATCH=5
6
6
  STRING=[MAJOR, MINOR, PATCH].join('.')
7
7
  end
8
8
  end
@@ -433,6 +433,9 @@ Task - Create a task file in project/tasks with the class name of TaskName.
433
433
  system("mkdir #{name}/config")
434
434
  system("cp #{skeleton_path 'config/*.yml'} #{name}/config")
435
435
  system("cp #{skeleton_path 'config/*.rb'} #{name}/config")
436
+
437
+ ## load boot.erb replace version number and save as boot.rb
438
+
436
439
  else
437
440
  p "Skipping #{name}/config directory (already exists)"
438
441
  end
@@ -0,0 +1,11 @@
1
+ DOOZER_GEM_VERSION='0.1.5'
2
+
3
+ begin
4
+ require 'date'
5
+ require 'rubygems'
6
+ gem 'doozer', "= #{DOOZER_GEM_VERSION}"
7
+ require 'doozer'
8
+ rescue Gem::LoadError
9
+ raise "Doozer #{DOOZER_GEM_VERSION} gem not installed"
10
+ end
11
+
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require 'date'
3
- require 'rubygems'
4
- require 'doozer'
5
2
  APP_PATH = Dir.pwd
3
+ require File.join(APP_PATH, 'config/boot')
6
4
  require File.join(DOOZER_PATH, 'doozer/scripts/cluster')
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
- require 'date'
3
2
  require 'irb'
4
- require 'rubygems'
5
- require 'doozer'
3
+ APP_PATH = Dir.pwd
4
+ require File.join(APP_PATH, 'config/boot')
5
+
6
6
  @env = (ARGV.length > 0) ? ARGV[0] : 'development'
7
7
  ARGV.delete(@env) if ARGV.include?(@env)
8
8
  @env = @env.to_sym
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require 'date'
3
- require 'rubygems'
4
- require 'doozer'
5
2
  APP_PATH = Dir.pwd
3
+ require File.join(APP_PATH, 'config/boot')
6
4
  require File.join(DOOZER_PATH, 'doozer/scripts/migrate')
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require 'date'
3
- require 'rubygems'
4
- require 'doozer'
5
2
  APP_PATH = Dir.pwd
3
+ require File.join(APP_PATH, 'config/boot')
6
4
  require File.join(DOOZER_PATH, 'doozer/scripts/task')
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require 'date'
3
- require 'rubygems'
4
- require 'doozer'
5
2
  APP_PATH = Dir.pwd
6
- require DOOZER_PATH + '/doozer/scripts/test'
3
+ require File.join(APP_PATH, 'config/boot')
4
+ require File.join(DOOZER_PATH, 'doozer/scripts/test')
@@ -0,0 +1,10 @@
1
+ DOOZER_GEM_VERSION='0.1.5'
2
+
3
+ begin
4
+ require 'date'
5
+ require 'rubygems'
6
+ gem 'doozer', "= #{DOOZER_GEM_VERSION}"
7
+ require 'doozer'
8
+ rescue Gem::LoadError
9
+ raise "Doozer #{DOOZER_GEM_VERSION} gem not installed"
10
+ end
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require 'date'
3
- require 'rubygems'
4
- require 'doozer'
5
2
  APP_PATH = Dir.pwd
3
+ require File.join(APP_PATH, 'config/boot')
6
4
  require File.join(DOOZER_PATH, 'doozer/scripts/cluster')
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
- require 'date'
3
2
  require 'irb'
4
- require 'rubygems'
5
- require 'doozer'
3
+ APP_PATH = Dir.pwd
4
+ require File.join(APP_PATH, 'config/boot')
5
+
6
6
  @env = (ARGV.length > 0) ? ARGV[0] : 'development'
7
7
  ARGV.delete(@env) if ARGV.include?(@env)
8
8
  @env = @env.to_sym
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require 'date'
3
- require 'rubygems'
4
- require 'doozer'
5
2
  APP_PATH = Dir.pwd
3
+ require File.join(APP_PATH, 'config/boot')
6
4
  require File.join(DOOZER_PATH, 'doozer/scripts/migrate')
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require 'date'
3
- require 'rubygems'
4
- require 'doozer'
5
2
  APP_PATH = Dir.pwd
3
+ require File.join(APP_PATH, 'config/boot')
6
4
  require File.join(DOOZER_PATH, 'doozer/scripts/task')
@@ -1,6 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require 'date'
3
- require 'rubygems'
4
- require 'doozer'
5
2
  APP_PATH = Dir.pwd
6
- require DOOZER_PATH + '/doozer/scripts/test'
3
+ require File.join(APP_PATH, 'config/boot')
4
+ require File.join(DOOZER_PATH, 'doozer/scripts/test')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grippy-doozer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - grippy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-14 00:00:00 -07:00
12
+ date: 2009-09-04 00:00:00 -07:00
13
13
  default_executable: doozer
14
14
  dependencies: []
15
15
 
@@ -76,6 +76,7 @@ files:
76
76
  - templates/skeleton/app/views/index/index.html.erb
77
77
  - templates/skeleton/app/views/layouts/default.html.erb
78
78
  - templates/skeleton/config/app.yml
79
+ - templates/skeleton/config/boot.rb
79
80
  - templates/skeleton/config/database.yml
80
81
  - templates/skeleton/config/environment.rb
81
82
  - templates/skeleton/config/rack.rb
@@ -104,6 +105,7 @@ files:
104
105
  - test/project/app/views/index/index.html.erb
105
106
  - test/project/app/views/layouts/default.html.erb
106
107
  - test/project/config/app.yml
108
+ - test/project/config/boot.rb
107
109
  - test/project/config/database.yml
108
110
  - test/project/config/environment.rb
109
111
  - test/project/config/rack.rb
@@ -126,7 +128,6 @@ files:
126
128
  - test/test_helper.rb
127
129
  has_rdoc: true
128
130
  homepage: http://github.com/grippy/doozer
129
- licenses:
130
131
  post_install_message:
131
132
  rdoc_options:
132
133
  - --charset=UTF-8
@@ -147,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
148
  requirements: []
148
149
 
149
150
  rubyforge_project:
150
- rubygems_version: 1.3.5
151
+ rubygems_version: 1.2.0
151
152
  signing_key:
152
153
  specification_version: 2
153
154
  summary: A little MVC framework for Rack applications.
@@ -156,6 +157,7 @@ test_files:
156
157
  - test/project/app/controllers/application_controller.rb
157
158
  - test/project/app/controllers/index_controller.rb
158
159
  - test/project/app/helpers/application_helper.rb
160
+ - test/project/config/boot.rb
159
161
  - test/project/config/environment.rb
160
162
  - test/project/config/rack.rb
161
163
  - test/project/config/routes.rb