ruby-pg-extras 0.6.1 → 0.6.2

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
  SHA256:
3
- metadata.gz: b827b0fd3456ae78b5d56fb7c77d545d9e24a46948b13bc7bc92eb5cf90d8d36
4
- data.tar.gz: 8effa03a76d561bd13da4be048f1be64e51236c814238046036f65537579c2be
3
+ metadata.gz: dc0c4f898fafe14cddcbc3195d8b5b3953c0ceacfc6db3fdb5592d6c2d24d3db
4
+ data.tar.gz: e55cfa4afc4a1f44146ff55f229756c3d02a1897bd21a8312aaea48defb98815
5
5
  SHA512:
6
- metadata.gz: 036d5388d77c297f88ccc6d0c237eea6d3781f58a98e07a44221aee775b0a06f279469bd0c3f1d1c02c9e66d7f6621d881fcaaf5ba90e5d11164520082166f8a
7
- data.tar.gz: c371df27594c34ca5e882850b1be80b97d9b25cf8f51d705d268b3b53b38fa5d5f77dab590e318f93976f43c1c8ed29d87294a82bc19cc04c6a4cf7555089c7e
6
+ metadata.gz: 31d21b258ca0e7907646f44df02bf35e8805b1d45a35033b54b7a881aa1df2b7c19b1b3df8bdc396ff080f98f8b73959964d578bd00cbd218a127f372ff8a786
7
+ data.tar.gz: 8b0a8653f524cf7fbbf7e6a220ce454172f1758730692ecb1b691cab3b8d559fd9525e24693989b7ccdd9d917d8dc85333bcae4f1334efa717cd4cec193fc377
data/README.md CHANGED
@@ -16,6 +16,20 @@ gem 'ruby-pg-extras'
16
16
 
17
17
  ### Usage
18
18
 
19
+ Gem expects the `ENV['DATABASE_URL']` value in the following format:
20
+
21
+ ```ruby
22
+ ENV["DATABASE_URL"] = "postgresql://postgres:secret@localhost:5432/database_name"
23
+ ```
24
+
25
+ Alternatively you can set it using the module class method:
26
+
27
+ ```ruby
28
+ RubyPGExtras.database_url = "postgresql://postgres:secret@localhost:5432/database_name"
29
+ ```
30
+
31
+ You can run queries using a simple Ruby API:
32
+
19
33
  ```ruby
20
34
  RubyPGExtras.cache_hit
21
35
  ```
@@ -30,7 +44,6 @@ RubyPGExtras.cache_hit
30
44
  +----------------+------------------------+
31
45
  ```
32
46
 
33
-
34
47
  By default the ASCII table is displayed, to change to format you need to specify the `in_format` parameter (`[:display_table, :hash, :array, :raw]` options are available):
35
48
 
36
49
  ```ruby
@@ -1,3 +1,3 @@
1
1
  module RubyPGExtras
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-pg-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb