Permalink
Browse files

Installation regressions; initial jeweler setup

  • Loading branch information...
1 parent fd468a4 commit 00c0215a1a7eacf7515bd1f6cb64fbcc188720fc @methodmissing committed Feb 8, 2009
Showing with 36 additions and 4 deletions.
  1. +14 −1 README.textile
  2. +16 −0 Rakefile
  3. +3 −1 install.rb
  4. +2 −1 lib/scrooge.rb
  5. +1 −1 rails/init.rb
View
15 README.textile
@@ -7,4 +7,17 @@ and reduce conversion overheads to native Ruby types.
This is mostly an experiment into unobtrusive tracking, respecting development workflows
and understanding Rack internals better.
-h2. !! Work in progress - ship early, ship often !!
+h2. Installation
+
+h4. From Git
+
+ git pull git://github.com/methodmissing/scrooge.git
+
+h4. As a Rails plugin
+
+ ./script/plugin install git://github.com/methodmissing/scrooge.git
+
+h4. As a Gem
+
+ sudo gem install methodmissing-scrooge -s http://gems.github.com
+
View
16 Rakefile
@@ -16,4 +16,20 @@ desc "Run the specs under spec"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts << "-c"
+end
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |s|
+ s.name = "scrooge"
+ s.summary = "Scrooge - Fetch exactly what you need"
+ s.email = "lourens@methodmissing.com"
+ s.homepage = "http://github.com/methodmissing/scrooge"
+ s.description = "A Framework and ORM agnostic Model / record attribute tracker to ensure production
+ Ruby applications only fetch the database content needed to minimize wire traffic
+ and reduce conversion overheads to native Ruby types."
+ s.authors = ["Lourens Naudé"]
+ end
+rescue LoadError
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
View
4 install.rb
@@ -1,3 +1,5 @@
require File.join(File.dirname(__FILE__), 'rails', 'init' )
+
Scrooge::Base.setup!
-puts IO.read(File.join(File.dirname(__FILE__), 'README'))
+
+puts IO.read(File.join(File.dirname(__FILE__), 'README.textile'))
View
3 lib/scrooge.rb
@@ -5,11 +5,12 @@
require 'scrooge/core/string'
require 'scrooge/core/symbol'
require 'scrooge/core/thread'
+require 'thread'
module Scrooge
class Base
- GUARD = Mutex.new
+ GUARD = ::Mutex.new
class << self
View
2 rails/init.rb
@@ -1,4 +1,4 @@
-require 'scrooge'
+require File.join(File.dirname(__FILE__), '..', 'lib', 'scrooge' )
# Hook to register through Scrooge::Framework::Base.inherited
Scrooge::Framework::Rails

0 comments on commit 00c0215

Please sign in to comment.