little_sql_client 0.1.1 → 0.1.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 +4 -4
- data/README.md +21 -5
- data/config/initializers/assets.rb +3 -1
- data/lib/little_sql_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cded9dfd7e9d5778a187396df414b2c8b1cb06f
|
4
|
+
data.tar.gz: 3d74f551127aab8503e1559d01d1c0e5d2145881
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 054de2d7b543938e158155481469b08752b661c9ea89805d45214f1e9020d02d9905271ab9021753086fe2908afaa4190e377d1f2b9930223e7c3e17d18c8874
|
7
|
+
data.tar.gz: fc1127119f0b069e773aea4a8d091845ecb7a93f075a93cf5d7f2f1f3204aa907f2d1ceec0c84272dd355a9fed464b1129086266650e7278176f2a4e0284607b
|
data/README.md
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
# LittleSqlClient
|
2
|
-
|
3
|
-
|
4
|
-
## Usage
|
5
|
-
How to use my plugin.
|
2
|
+
A streamlined SQL query tool
|
6
3
|
|
7
4
|
## Installation
|
8
5
|
Add this line to your application's Gemfile:
|
@@ -22,7 +19,26 @@ $ gem install little_sql_client
|
|
22
19
|
```
|
23
20
|
|
24
21
|
## Contributing
|
25
|
-
|
22
|
+
```ruby
|
23
|
+
$ rails g little_sql_client:install
|
24
|
+
```
|
25
|
+
in config/initializer/little_sql_client.rb
|
26
|
+
```ruby
|
27
|
+
# setup your safe ip in production mode
|
28
|
+
LittleSqlClient::Config.ip_white_list = [
|
29
|
+
# '127.0.0.1'
|
30
|
+
]
|
31
|
+
```
|
32
|
+
to setup your safe ip
|
33
|
+
|
34
|
+
in routes.rb
|
35
|
+
```ruby
|
36
|
+
Rails.application.routes.draw do
|
37
|
+
mount LittleSqlClient::Engine => "/sql_records"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
and then open url "`your_project_host`/sql_records"
|
41
|
+
|
26
42
|
|
27
43
|
## License
|
28
44
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|