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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cb3406764dd4113106be135401eaf69d532e3d6
4
- data.tar.gz: e0b05908cc78e8426094d68f88211405a6c53c7b
3
+ metadata.gz: 4cded9dfd7e9d5778a187396df414b2c8b1cb06f
4
+ data.tar.gz: 3d74f551127aab8503e1559d01d1c0e5d2145881
5
5
  SHA512:
6
- metadata.gz: 024a7bd25fbab0febae13ab0fa737a8f00e1cd3e71ec938b6acd838757ab453928e6222f06717a7bdffd90c07f03387332583a5884fc40d677afe6865fe78925
7
- data.tar.gz: 3793f374ecc436ada63284d96e68804ba7452b0f17cdb420ff1561be6367a6350d4289b82d82cec20ca371a6260d6d18101396c4add15d00ea16e8bb11839636
6
+ metadata.gz: 054de2d7b543938e158155481469b08752b661c9ea89805d45214f1e9020d02d9905271ab9021753086fe2908afaa4190e377d1f2b9930223e7c3e17d18c8874
7
+ data.tar.gz: fc1127119f0b069e773aea4a8d091845ecb7a93f075a93cf5d7f2f1f3204aa907f2d1ceec0c84272dd355a9fed464b1129086266650e7278176f2a4e0284607b
data/README.md CHANGED
@@ -1,8 +1,5 @@
1
1
  # LittleSqlClient
2
- Short description and motivation.
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
- Contribution directions go here.
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).
@@ -1 +1,3 @@
1
- Rails.application.config.assets.precompile += %w( sql-formatter.min.js )
1
+ if Rails.Rails.application.config.respond_to?(:assets)
2
+ Rails.application.config.assets.precompile += %w( sql-formatter.min.js )
3
+ end
@@ -1,3 +1,3 @@
1
1
  module LittleSqlClient
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: little_sql_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 纪亚荣