peek 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 731496543ec8551ef30e323ab166415625306837
4
- data.tar.gz: b84840b92b4a954f89257de2c49953b6f9cfa088
3
+ metadata.gz: 4e4757c0d89f639ef4af8ea18b1f8b2259719d3a
4
+ data.tar.gz: 6db7dc5ba1bd2c4a37a423aa94e7d7d3c89f46f2
5
5
  SHA512:
6
- metadata.gz: e516a08673602d433445a8d0fec5ecf3c0fca3a19c5b1fe9115f10e598e5416cca25832c5f3cab5db4db888d0192ad3e5e54dae5dbd9561d9b83ff8cf680ba0e
7
- data.tar.gz: 0ac4493088243cf27780ad835dff0663a07af3fe7d9bb5517d33a54befcd0ee8ddc6fd07ea9676b3abb03b0ad00b59e6f46448f20ecdb4f65363b29a53b57ef2
6
+ metadata.gz: 356042baf3ff1e89a55581ec7b91afe1f0067852a97f42a8408a5d24ad4ea18cf5eecb1cc322f0e0dd1344ae21239ad94e758cefd9f5dc57a0c80ce9c6d9117a
7
+ data.tar.gz: e9170140a350b80bd8f92a86a7168a5f601fc9624c9b9ff36e855cd79750b4cf3eb269abf55417e41b3f85e4d5abfd5121ab03978b107696afac2eae62a413a5
data/CHANGELOG.md CHANGED
@@ -60,3 +60,7 @@
60
60
  # 0.1.7
61
61
 
62
62
  - Support all Rails 3.x.x versions by not using `request.uuid` instead `env` - [#39](https://github.com/peek/peek/pull/39) [@bryanmikaelian](https://github.com/bryanmikaelian)
63
+
64
+ # 0.1.8
65
+
66
+ - Include the ControllerHelpers directly into `ActionController::Base` - [#41](https://github.com/peek/peek/pull/41) [@lucasmazza](https://github.com/lucasmazza)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Peek
2
2
 
3
- [![Build Status](https://travis-ci.org/peek/peek.png?branch=master)](https://travis-ci.org/peek/peek)
3
+ [![Build Status](https://travis-ci.org/peek/peek.png?branch=master)](https://travis-ci.org/peek/peek) [![Gem Version](https://badge.fury.io/rb/peek.png)](http://badge.fury.io/rb/peek)
4
4
 
5
5
  Take a peek into your Rails application.
6
6
 
@@ -151,16 +151,6 @@ It just works.
151
151
 
152
152
  It just works.
153
153
 
154
- ## Using Peek with Spork
155
-
156
- For best results with Spork, add this to your `prefork` block
157
- anytime before your environment is loaded:
158
-
159
- ```ruby
160
- require 'peek'
161
- Spork.trap_class_method(Peek, :setup)
162
- ```
163
-
164
154
  ## Access Control
165
155
 
166
156
  Peek will only render in development and staging environments. If you'd
@@ -189,7 +179,7 @@ end
189
179
  - [peek-resque](https://github.com/peek/peek-resque)
190
180
  - [peek-sidekiq](https://github.com/suranyami/peek-sidekiq)
191
181
  - [peek-faraday](https://github.com/grk/peek-faraday)
192
- - [glimpse-svn](https://github.com/neilco/glimpse-svn)
182
+ - [peek-svn](https://github.com/neilco/peek-svn)
193
183
  - Unicorn :soon:
194
184
 
195
185
  Feel free to submit a Pull Request adding your own Peek item to this list.
data/lib/peek/railtie.rb CHANGED
@@ -26,8 +26,11 @@ module Peek
26
26
  end
27
27
 
28
28
  initializer 'peek.include_controller_helpers' do
29
+ ActiveSupport.on_load(:action_controller) do
30
+ include Peek::ControllerHelpers
31
+ end
32
+
29
33
  config.to_prepare do
30
- Peek.setup
31
34
  Peek.views
32
35
  end
33
36
  end
data/lib/peek/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Peek
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
data/lib/peek.rb CHANGED
@@ -103,7 +103,7 @@ module Peek
103
103
  end
104
104
 
105
105
  def self.setup
106
- ApplicationController.send(:include, Peek::ControllerHelpers)
106
+ ActiveSupport::Deprecation.warn "'Peek.setup' is deprecated and does nothing.", caller
107
107
  end
108
108
  end
109
109
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garrett Bjerkhoel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-07 00:00:00.000000000 Z
11
+ date: 2013-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails