web-console-param 0.0.2 → 0.0.3

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: 766228cde3bb190cb267626372cb2d63dc3e82dd
4
- data.tar.gz: 24fa3e711f234aad977807f201c8a195bf489f8f
3
+ metadata.gz: 9599c9b4517645994ab0608d5475e9dd78dfca9b
4
+ data.tar.gz: a031095490041e72cc764862036dc4a588ce54aa
5
5
  SHA512:
6
- metadata.gz: 58932a9a09be25f21fa2b573a7ed51711236b9042cdbc6c3ead993977df3f722c610c4fa5126d3a89abdfe7660335fca05b6868ab6148c61c98d5b24a2450a72
7
- data.tar.gz: 695ca1e365791f9b4590c9b312c655ea625161ddd17a7ce5d2b2185f7fdaae8323bdf74e58676d2d6bb6f922327a7e17dd932dad5e62f26c57d7834a36875e9f
6
+ metadata.gz: e0ec5039c65f58b0c77021ff7229cf9366357a40fa7aefbc2a401cdfb3d56b60fd91be92d6b3a8811274491597caaa1813cdb9128e30946dac3bd3f8bf239f8f
7
+ data.tar.gz: 648b51b037e1615fd75bfb08fe2d55f4abd4a348de4c70182e6d6315024a6afd438d3b24ea9d38058c7955da1c415eaabae9722ff71377561124ffca9c49b546
data/.gitignore CHANGED
@@ -12,3 +12,5 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+
16
+ *.gem
@@ -1,5 +1,5 @@
1
1
  require 'web_console_param/version'
2
- require 'web_console_param/engine'
2
+ require 'web_console_param/railtie'
3
3
 
4
4
  module WebConsoleParam
5
5
  end
@@ -0,0 +1,13 @@
1
+ require 'rails/railtie'
2
+
3
+ module WebConsoleParam
4
+ class Railtie < Rails::Railtie
5
+ config.after_initialize do
6
+ WebConsoleFilter = ->(controller) do
7
+ controller.console if controller.params[:web_console]
8
+ end
9
+
10
+ ApplicationController.before_action(WebConsoleFilter) if defined?(WebConsole)
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module WebConsoleParam
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web-console-param
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Burenstam
@@ -54,7 +54,7 @@ files:
54
54
  - Rakefile
55
55
  - config/initializers/web_console_param.rb
56
56
  - lib/web_console_param.rb
57
- - lib/web_console_param/engine.rb
57
+ - lib/web_console_param/railtie.rb
58
58
  - lib/web_console_param/version.rb
59
59
  - web-console-param-0.0.1.gem
60
60
  - web_console_param.gemspec
@@ -1,4 +0,0 @@
1
- module WebConsoleEngine
2
- class Engine < ::Rails::Engine
3
- end
4
- end