web-console-param 0.0.1 → 0.0.2

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: ccffbd40eea0e0723555b007d0e1bff691bd5f33
4
- data.tar.gz: 1d53ae9d793d934f621d0ab028c409203e975224
3
+ metadata.gz: 766228cde3bb190cb267626372cb2d63dc3e82dd
4
+ data.tar.gz: 24fa3e711f234aad977807f201c8a195bf489f8f
5
5
  SHA512:
6
- metadata.gz: 897f1306b7bdc3c1660c5e9c21d7c76f084f95f75aa44637bfe18250cd5308a2ed0d98cc7b58e089f30fce72c895dc974bd925f8b2743842fa3b4ee5517ca049
7
- data.tar.gz: d5178322eb21aba54d6c4c1a3b54a2d7ac959544f21f2524515fe151b465c634b57dbf45b455b46bd09b4229e80567b4229953c1c5feecec123f97e9913ee015
6
+ metadata.gz: 58932a9a09be25f21fa2b573a7ed51711236b9042cdbc6c3ead993977df3f722c610c4fa5126d3a89abdfe7660335fca05b6868ab6148c61c98d5b24a2450a72
7
+ data.tar.gz: 695ca1e365791f9b4590c9b312c655ea625161ddd17a7ce5d2b2185f7fdaae8323bdf74e58676d2d6bb6f922327a7e17dd932dad5e62f26c57d7834a36875e9f
@@ -0,0 +1,5 @@
1
+ WebConsoleFilter = ->(controller) do
2
+ controller.console if controller.params[:web_console]
3
+ end
4
+
5
+ ApplicationController.before_action(WebConsoleFilter) if defined?(WebConsole)
@@ -0,0 +1,4 @@
1
+ module WebConsoleEngine
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -1,3 +1,3 @@
1
1
  module WebConsoleParam
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require 'web_console_param/version'
2
+ require 'web_console_param/engine'
2
3
 
3
4
  module WebConsoleParam
4
5
  end
Binary file
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ['Jacob Burenstam']
10
10
  spec.email = ['burenstam@gmail.com']
11
11
  spec.summary = %q{Open Rails web-console by adding ?web_console=1 to any page.}
12
- spec.description = %q{Open web-console by adding ?web_console=1 to any page. You could implement this yourself in a couple of lines, but if you're really lazy.. go ahead and use this gem.}
12
+ spec.description = %q{Open Rails web-console by adding ?web_console=1 to any page. You could implement this yourself in a couple of lines, but if you're really lazy.. go ahead and use this gem.}
13
13
  spec.homepage = 'https://github.com/buren/web-console-param'
14
14
  spec.license = 'MIT'
15
15
 
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Burenstam
@@ -38,9 +38,9 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- description: Open web-console by adding ?web_console=1 to any page. You could implement
42
- this yourself in a couple of lines, but if you're really lazy.. go ahead and use
43
- this gem.
41
+ description: Open Rails web-console by adding ?web_console=1 to any page. You could
42
+ implement this yourself in a couple of lines, but if you're really lazy.. go ahead
43
+ and use this gem.
44
44
  email:
45
45
  - burenstam@gmail.com
46
46
  executables: []
@@ -52,8 +52,11 @@ files:
52
52
  - LICENSE.txt
53
53
  - README.md
54
54
  - Rakefile
55
+ - config/initializers/web_console_param.rb
55
56
  - lib/web_console_param.rb
57
+ - lib/web_console_param/engine.rb
56
58
  - lib/web_console_param/version.rb
59
+ - web-console-param-0.0.1.gem
57
60
  - web_console_param.gemspec
58
61
  homepage: https://github.com/buren/web-console-param
59
62
  licenses: