Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Installation regressions; initial jeweler setup

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

0 notes on commit 00c0215

Please sign in to comment.
Something went wrong with that request. Please try again.