Skip to content

Commit 00c0215

Browse files
committed
Installation regressions; initial jeweler setup
1 parent fd468a4 commit 00c0215

File tree

5 files changed

+36
-4
lines changed

5 files changed

+36
-4
lines changed

README.textile

+14-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,17 @@ and reduce conversion overheads to native Ruby types.
77
This is mostly an experiment into unobtrusive tracking, respecting development workflows
88
and understanding Rack internals better.
99

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+

Rakefile

+16
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,20 @@ desc "Run the specs under spec"
1616
Spec::Rake::SpecTask.new do |t|
1717
t.spec_files = FileList['spec/**/*_spec.rb']
1818
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 = "[email protected]"
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"
1935
end

install.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
require File.join(File.dirname(__FILE__), 'rails', 'init' )
2+
23
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'))

lib/scrooge.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
require 'scrooge/core/string'
66
require 'scrooge/core/symbol'
77
require 'scrooge/core/thread'
8+
require 'thread'
89

910
module Scrooge
1011
class Base
1112

12-
GUARD = Mutex.new
13+
GUARD = ::Mutex.new
1314

1415
class << self
1516

rails/init.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require 'scrooge'
1+
require File.join(File.dirname(__FILE__), '..', 'lib', 'scrooge' )
22

33
# Hook to register through Scrooge::Framework::Base.inherited
44
Scrooge::Framework::Rails

0 commit comments

Comments
 (0)