listen_sql 0.1.2 → 0.1.3

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: 32ef53c64373b9c3e09ddd399bea9a2b5835d7d5
4
- data.tar.gz: aa6fb8d49296f275b30af53ba64d55430acb9b54
3
+ metadata.gz: c06475328216fa8b5b064aaa16d1298b868e4cbf
4
+ data.tar.gz: d3036cfe2711f33c62241233b84f9cf848badd5a
5
5
  SHA512:
6
- metadata.gz: c116014e0f8f15a3633c05aac84cff7056c48a8f8d0056ae3d29f07ed6fdbbb75bb03562cf4c1e7f6a10fa97f16daf210f74624197506a110a1b8214ccc0b955
7
- data.tar.gz: e0e921a0dcde86af0288f2f17881b5b72fbb0e491f37dbf1341866daafd0a84983d8163cf2f351e4ba3f4b46ec2ce357d9c5c64708755591940828d17c28321c
6
+ metadata.gz: 58eb4c46390735aead4ce88ddda7a950164a9a463c8c0d124ac96eacaa5ea0d71207589908cece340728df0d3d93312ba61628b1063b227f16282812146a2b51
7
+ data.tar.gz: 8d9d54dcb4f09cafc116206dae7fed70ed03d4b6131da3a9aea5a1951df7d5c191a5b26e7619a9e84e2c34f1d29b2b019cf2776533117d52e397ff4471a6cc2b
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  /Gemfile.lock
4
4
  /_yardoc/
5
5
  /coverage/
6
- /doc/
7
6
  /pkg/
8
7
  /spec/reports/
9
8
  /tmp/
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # Listen SQL
2
2
 
3
- Problems helper bin scripts to monitor SQL file changes and execute them using
4
- psql.
3
+ Helper scripts to monitor SQL file changes and execute them using psql.
4
+
5
+ <img src='doc/listen_sql_demo.gif' alt="listen SQL demo"/>
5
6
 
6
7
  ## Usage
7
8
 
@@ -37,18 +38,34 @@ Or install it yourself as:
37
38
 
38
39
  $ gem install listen_sql
39
40
 
41
+ ### rbenv Users
42
+ You'll need to link your bin files so gem executables are accessible in your
43
+ shell. [rbenv rehash](https://github.com/rbenv/rbenv#rbenv-rehash)
44
+
45
+ ```sh
46
+ rbenv rehash
47
+ ```
48
+
40
49
  ## Development
41
50
 
42
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
51
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run
52
+ `rake spec` to run the tests. You can also run `bin/console` for an interactive
53
+ prompt that will allow you to experiment.
43
54
 
44
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
55
+ To install this gem onto your local machine, run `bundle exec rake install`. To
56
+ release a new version, update the version number in `version.rb`, and then run
57
+ `bundle exec rake release`, which will create a git tag for the version, push
58
+ git commits and tags, and push the `.gem` file to
59
+ [rubygems.org](https://rubygems.org).
45
60
 
46
61
  ## Contributing
47
62
 
48
- Bug reports and pull requests are welcome on GitHub at https://github.com/ddrscott/listen_sql.
63
+ Bug reports and pull requests are welcome on GitHub at
64
+ https://github.com/ddrscott/listen_sql.
49
65
 
50
66
 
51
67
  ## License
52
68
 
53
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
69
+ The gem is available as open source under the terms of the
70
+ [MIT License](http://opensource.org/licenses/MIT).
54
71
 
Binary file
@@ -17,6 +17,6 @@ module ListenSql
17
17
 
18
18
  # Show Resultset
19
19
  puts "Rows: "
20
- puts `psql #{db_name} < #{Shellwords.escape file}`
20
+ system(%(psql #{db_name} < #{Shellwords.escape file}))
21
21
  end
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module ListenSql
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: listen_sql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Pierce
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-06 00:00:00.000000000 Z
11
+ date: 2018-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -98,11 +98,13 @@ files:
98
98
  - Rakefile
99
99
  - bin/console
100
100
  - bin/setup
101
+ - doc/listen_sql_demo.gif
101
102
  - exe/exec_sql
102
103
  - exe/listen_sql
103
104
  - lib/listen_sql.rb
104
105
  - lib/listen_sql/version.rb
105
106
  - listen_sql.gemspec
107
+ - listen_sql_demo.gif
106
108
  homepage: https://github.com/ddrscott/listen_sql
107
109
  licenses:
108
110
  - MIT
@@ -123,9 +125,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
125
  version: '0'
124
126
  requirements: []
125
127
  rubyforge_project:
126
- rubygems_version: 2.4.5.1
128
+ rubygems_version: 2.6.14
127
129
  signing_key:
128
130
  specification_version: 4
129
131
  summary: Listen from SQL file changes then psql execute it.
130
132
  test_files: []
131
- has_rdoc: