activeadmin-sqlpage 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20c0e65ad665b0eec9eb76281aec3d65dd88a530
4
- data.tar.gz: 73b043843a67fc6fe9eb67cc4b3adc3dbef12719
3
+ metadata.gz: d8b4a435b91cff0735e04185fcc4eb71560917ca
4
+ data.tar.gz: 669de8b46bea9d3c912118a1cb2bd29421028374
5
5
  SHA512:
6
- metadata.gz: 8fb0c72b2d6d0f12b33f3e753974e7ebef60f721b98c4cc0c8f29000771250a84306c58ab66208c224915231decddef0f6572fec215e459e1810b6ec5f03af9f
7
- data.tar.gz: 39cb10dd3404c01ccf068383e92d0d0e24406cc308eb7ad1329526630e727c7856e227d27970d735a5365e0ddd91b3fcd0386480728139361ff0a4efc66d65c0
6
+ metadata.gz: 752c3862c97757b70150dd4cd809e42d8a6f770bfa51deda0dcd0488a74148d184b1d4dc09ca2d8e2f4e0ea042e9a4df7ea2accd55cecfe3ce0ef0b2663818bb
7
+ data.tar.gz: f651fff81c0ea5ea7e2dbb43aed54e737e58ddb1b3e6ff92d2002c8d02f6c76094b988e3a64fb2c41ba97e0ec668d4c0e67b4496ae9dab8703742c38559eb500
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The SQL active admin page
4
4
 
5
- Add page to your ActiveAdmin panel that allow execute SQL requests and show result in table
5
+ Add page to your ActiveAdmin panel that allow execute raw SQL requests and show result in table
6
6
 
7
7
  [![Version](http://img.shields.io/gem/v/activeadmin-sqlpage.svg)](https://rubygems.org/gems/activeadmin-sqlpage)
8
8
 
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["oklaspec@gmail.com"]
11
11
 
12
12
  spec.summary = %q{The SQL active admin page}
13
- spec.description = %q{Add page to your ActiveAdmin panel that allow execute SQL requests and show result in table}
13
+ spec.description = %q{Add page to your ActiveAdmin panel that allow execute raw SQL requests and show result in table}
14
14
  spec.homepage = "http://github.com/oklas/activeadmin-sqlpage"
15
15
  spec.license = "MIT"
16
16
 
@@ -1,3 +1,4 @@
1
+ B
1
2
  require "activeadmin/sqlpage/version"
2
3
 
3
4
  module ActiveAdmin
@@ -21,11 +22,16 @@ module ActiveAdmin
21
22
  name: :authenticity_token,
22
23
  value: form_authenticity_token
23
24
 
24
- textarea name: :sql do
25
+ textarea name: :sql,
26
+ onkeypress: %{
27
+ if(event.keyCode==10||(event.ctrlKey && event.keyCode==13)) {
28
+ $('form').submit();
29
+ }
30
+ }, autofocus: 1, title: 'Ctrl+Enter' do
25
31
  params[:sql]
26
32
  end
27
33
 
28
- button :submit
34
+ button :submit, title: 'Ctrl+Enter'
29
35
  end
30
36
  end
31
37
 
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module SqlPage
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-sqlpage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serguei Okladnikov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-09 00:00:00.000000000 Z
11
+ date: 2016-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,8 +52,8 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: Add page to your ActiveAdmin panel that allow execute SQL requests and
56
- show result in table
55
+ description: Add page to your ActiveAdmin panel that allow execute raw SQL requests
56
+ and show result in table
57
57
  email:
58
58
  - oklaspec@gmail.com
59
59
  executables: []