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 +4 -4
- data/README.md +1 -1
- data/activeadmin-sqlpage.gemspec +1 -1
- data/lib/activeadmin/sqlpage.rb +8 -2
- data/lib/activeadmin/sqlpage/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8b4a435b91cff0735e04185fcc4eb71560917ca
|
4
|
+
data.tar.gz: 669de8b46bea9d3c912118a1cb2bd29421028374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/activeadmin-sqlpage.gemspec
CHANGED
@@ -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
|
|
data/lib/activeadmin/sqlpage.rb
CHANGED
@@ -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
|
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
|
|
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.
|
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-
|
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
|
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: []
|