query_diet 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -6,11 +6,11 @@ This is useful to prevent {N + 1 queries}[http://guides.rubyonrails.org/active_r
6
6
 
7
7
  This is Query Diet being happy about 3 requests taking 66ms:
8
8
 
9
- http://gem-session.com/files/query_diet_happy.png
9
+ http://blog.makandra.com/images/articles/2010-06-25-solving-the-n-1-query-problem-with-query-diet/query_diet_happy.png
10
10
 
11
11
  This is Query Diet being angry about 103 requests taking 164ms:
12
12
 
13
- http://gem-session.com/files/query_diet_angry.png
13
+ http://blog.makandra.com/images/articles/2010-06-25-solving-the-n-1-query-problem-with-query-diet/query_diet_angry.png
14
14
 
15
15
  == Installation
16
16
 
@@ -1,3 +1,3 @@
1
1
  module QueryDiet
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
data/query_diet.gemspec CHANGED
@@ -17,6 +17,6 @@ Gem::Specification.new do |gem|
17
17
  gem.require_paths = ["lib"]
18
18
  gem.version = QueryDiet::VERSION
19
19
 
20
- gem.post_install_message = "Remember to put <%= query_diet_widget %> into your app layout."
20
+ gem.post_install_message = "Remember to put <%= query_diet_widget if Rails.env.development? %> into your app layout."
21
21
  end
22
22
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- query_diet (0.4.0)
4
+ query_diet (0.5.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- query_diet (0.4.0)
4
+ query_diet (0.5.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -21,6 +21,10 @@ print "\033[30m" # dark gray text
21
21
  ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
22
22
  print "\033[0m"
23
23
 
24
+ # For some reason the first time the SqliteAdapter fetches schema information it
25
+ # raises an error.
26
+ Movie.create rescue nil
27
+
24
28
  RSpec.configure do |config|
25
29
  config.use_transactional_fixtures = false
26
30
  config.use_instantiated_fixtures = false
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- query_diet (0.4.0)
4
+ query_diet (0.5.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -101,7 +101,7 @@ GEM
101
101
  hike (~> 1.2)
102
102
  rack (~> 1.0)
103
103
  tilt (~> 1.1, != 1.3.0)
104
- sqlite3 (1.3.6)
104
+ sqlite3 (1.3.9)
105
105
  thor (0.16.0)
106
106
  tilt (1.3.3)
107
107
  treetop (1.4.12)
@@ -16,6 +16,12 @@ print "\033[30m" # dark gray text
16
16
  ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
17
17
  print "\033[0m"
18
18
 
19
+ # For some reason the first time the SqliteAdapter fetches schema information it
20
+ # raises an error
21
+ Movie.create rescue nil
22
+
23
+ # Movie.reset_column_information
24
+
19
25
  RSpec.configure do |config|
20
26
  config.use_transactional_fixtures = false
21
27
  config.use_instantiated_fixtures = false
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_diet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 2
10
- version: 0.5.2
9
+ - 3
10
+ version: 0.5.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Henning Koch
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2013-07-26 00:00:00 +02:00
19
+ date: 2014-10-20 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies: []
22
22
 
@@ -106,7 +106,7 @@ has_rdoc: true
106
106
  homepage: https://github.com/makandra/query_diet
107
107
  licenses:
108
108
  - MIT
109
- post_install_message: Remember to put <%= query_diet_widget %> into your app layout.
109
+ post_install_message: Remember to put <%= query_diet_widget if Rails.env.development? %> into your app layout.
110
110
  rdoc_options: []
111
111
 
112
112
  require_paths: