slim_scrooge 1.0.5 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -22,10 +22,9 @@ h2. Installation
22
22
 
23
23
  Requirements: Rails 2.2 or above, Ruby 1.8.6 or above.
24
24
 
25
+ h3. Gem
26
+
25
27
  <pre>
26
- # if you haven't already, add gemcutter to your gem sources
27
- sudo gem install gemcutter
28
- gem tumble
29
28
  # install slim_scrooge
30
29
  sudo gem install slim_scrooge
31
30
  </pre>
@@ -38,6 +37,12 @@ Next add this to your Rails::Initializer section in environment.rb:
38
37
  config.gem 'slim_scrooge'
39
38
  </pre>
40
39
 
40
+ h3. Plugin
41
+
42
+ <pre>
43
+ script/plugin install git://github.com/sdsykes/slim_scrooge.git
44
+ </pre>
45
+
41
46
  h2. What it does
42
47
 
43
48
  <pre>
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 5
3
2
  :major: 1
4
3
  :build:
5
4
  :minor: 0
5
+ :patch: 7
data/ext/Rakefile CHANGED
@@ -18,7 +18,7 @@ task :build do
18
18
  raise "Makefile not found:\n\n#{results.join "\n"}"
19
19
  end
20
20
 
21
- dest_path = ENV["RUBYARCHDIR"]
21
+ dest_path = ENV["RUBYARCHDIR"] || File.join(File.dirname(__FILE__), "..", "lib")
22
22
 
23
23
  mf = File.read('Makefile')
24
24
  mf = mf.gsub(/^RUBYARCHDIR\s*=\s*\$[^$]*/, "RUBYARCHDIR = #{dest_path}")
@@ -34,7 +34,7 @@ module SlimScrooge
34
34
  # the list of columns we actually need
35
35
  #
36
36
  def select_regexp(table_name)
37
- %r{SELECT (`?(?:#{table_name})?`?.?\\*) FROM}
37
+ %r{SELECT +(?:`?#{table_name}`?.)?\* +FROM}
38
38
  end
39
39
  end
40
40
 
data/lib/slim_scrooge.rb CHANGED
@@ -1,4 +1,11 @@
1
1
  # Author: Stephen Sykes
2
+ begin
3
+ unless File.exists?(File.join(File.dirname(__FILE__), "../", "ext", "Makefile"))
4
+ Dir.chdir(File.join(File.dirname(__FILE__), "../", "ext"))
5
+ `rake`
6
+ end
7
+ rescue Exception
8
+ end
2
9
 
3
10
  begin; require 'callsite_hash'; rescue LoadError; end
4
11
  require 'slim_scrooge/simple_set'
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim_scrooge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 0
8
+ - 7
9
+ version: 1.0.7
5
10
  platform: ruby
6
11
  authors:
7
12
  - Stephen Sykes
@@ -9,7 +14,7 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-15 00:00:00 +02:00
17
+ date: 2010-04-05 00:00:00 +03:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -53,18 +58,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
58
  requirements:
54
59
  - - ">="
55
60
  - !ruby/object:Gem::Version
61
+ segments:
62
+ - 0
56
63
  version: "0"
57
- version:
58
64
  required_rubygems_version: !ruby/object:Gem::Requirement
59
65
  requirements:
60
66
  - - ">="
61
67
  - !ruby/object:Gem::Version
68
+ segments:
69
+ - 0
62
70
  version: "0"
63
- version:
64
71
  requirements: []
65
72
 
66
73
  rubyforge_project:
67
- rubygems_version: 1.3.5
74
+ rubygems_version: 1.3.6
68
75
  signing_key:
69
76
  specification_version: 3
70
77
  summary: Slim_scrooge - serious optimisation for ActiveRecord