sql_csv 0.1.1 → 0.2.0

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: 66ae2d2126304cb5231d1af07b2f7a28027fdd417f6479588fe5592ed13c46e5
4
- data.tar.gz: 1b6a84ff3a374acc535402b92d1fdaf3f0265b43d92a391676297443230fc46a
3
+ metadata.gz: 8592799150a388a4b77ab66aa05207fae4bc867122e3d6afb24f0665dd345a0d
4
+ data.tar.gz: b4f33ebc70b51940bb2f250201447415c0a09f54fed783d9f2aefb3f4f16fba7
5
5
  SHA512:
6
- metadata.gz: 222afc8bc01a7b9e650e6ba2279b3848210cbd859cf134581d4cbda4b9a977f001ca202012521d5eb6fb765c0f26cf505e4169937e4daee21042c9a7e0e89fcd
7
- data.tar.gz: 7514781709130addc9aceb03e8c458eac915a32966479a029a0b19f691d647457e0098d17422f75b1aff522dbed43cbb113caef90639faa72230c8f9c9ac4aa2
6
+ metadata.gz: f8f5df072e36c68b4069ba539e5b38defe98b4bbae46fc948c9824071ec17964f8e3883905be707e08b8940c3b145b1783fedd9433c699fc0658dea9701d42dc
7
+ data.tar.gz: 7393d95481d4429f615d2a5e3e7cfceb25eca1b8ff4f1d9a4d65586afcfc68c2445a7c43acdfee3e4fdbd87a532c72ed77004a9e58b66a7091e5b6007c2b7cc7
data/.gitignore CHANGED
@@ -10,3 +10,4 @@
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
12
  .byebug_history
13
+ *.gem
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.4
1
+ 2.7.6
data/Gemfile CHANGED
@@ -5,9 +5,9 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in sql_csv.gemspec
6
6
  gemspec
7
7
 
8
- gem 'rake', '~> 12.0'
9
- gem 'rspec', '~> 3.0'
10
- gem 'rubocop', '~> 1.21'
8
+ gem 'rake', '~> 13.0'
9
+ gem 'rspec', '~> 3.11'
10
+ gem 'rubocop', '~> 1.29'
11
11
  gem 'rubocop-rake', '~> 0.6.0'
12
- gem 'rubocop-rspec', '~> 2.5'
12
+ gem 'rubocop-rspec', '~> 2.10'
13
13
  gem 'strong_versions', '~> 0.4.5'
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sql_csv (0.1.1)
4
+ sql_csv (0.2.0)
5
5
  activerecord (~> 6.1)
6
6
  mysql2 (~> 0.5.3)
7
7
 
8
8
  GEM
9
- remote: https://rubygems.org/
9
+ remote: https://rubygems.homeflow.co.uk/
10
10
  specs:
11
11
  activemodel (6.1.5)
12
12
  activesupport (= 6.1.5)
@@ -20,48 +20,48 @@ GEM
20
20
  tzinfo (~> 2.0)
21
21
  zeitwerk (~> 2.3)
22
22
  ast (2.4.2)
23
- concurrent-ruby (1.1.9)
23
+ concurrent-ruby (1.1.10)
24
24
  devpack (0.3.2)
25
- diff-lcs (1.4.4)
26
- i18n (1.8.10)
25
+ diff-lcs (1.5.0)
26
+ i18n (1.10.0)
27
27
  concurrent-ruby (~> 1.0)
28
28
  minitest (5.15.0)
29
29
  mysql2 (0.5.3)
30
30
  paint (2.2.1)
31
- parallel (1.21.0)
32
- parser (3.0.2.0)
31
+ parallel (1.22.1)
32
+ parser (3.1.2.0)
33
33
  ast (~> 2.4.1)
34
- rainbow (3.0.0)
35
- rake (12.3.3)
36
- regexp_parser (2.1.1)
34
+ rainbow (3.1.1)
35
+ rake (13.0.6)
36
+ regexp_parser (2.3.1)
37
37
  rexml (3.2.5)
38
- rspec (3.10.0)
39
- rspec-core (~> 3.10.0)
40
- rspec-expectations (~> 3.10.0)
41
- rspec-mocks (~> 3.10.0)
42
- rspec-core (3.10.1)
43
- rspec-support (~> 3.10.0)
44
- rspec-expectations (3.10.1)
38
+ rspec (3.11.0)
39
+ rspec-core (~> 3.11.0)
40
+ rspec-expectations (~> 3.11.0)
41
+ rspec-mocks (~> 3.11.0)
42
+ rspec-core (3.11.0)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-expectations (3.11.0)
45
45
  diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.10.0)
47
- rspec-mocks (3.10.2)
46
+ rspec-support (~> 3.11.0)
47
+ rspec-mocks (3.11.1)
48
48
  diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.10.0)
50
- rspec-support (3.10.2)
51
- rubocop (1.21.0)
49
+ rspec-support (~> 3.11.0)
50
+ rspec-support (3.11.0)
51
+ rubocop (1.29.0)
52
52
  parallel (~> 1.10)
53
- parser (>= 3.0.0.0)
53
+ parser (>= 3.1.0.0)
54
54
  rainbow (>= 2.2.2, < 4.0)
55
55
  regexp_parser (>= 1.8, < 3.0)
56
- rexml
57
- rubocop-ast (>= 1.9.1, < 2.0)
56
+ rexml (>= 3.2.5, < 4.0)
57
+ rubocop-ast (>= 1.17.0, < 2.0)
58
58
  ruby-progressbar (~> 1.7)
59
59
  unicode-display_width (>= 1.4.0, < 3.0)
60
- rubocop-ast (1.11.0)
61
- parser (>= 3.0.1.1)
60
+ rubocop-ast (1.17.0)
61
+ parser (>= 3.1.1.0)
62
62
  rubocop-rake (0.6.0)
63
63
  rubocop (~> 1.0)
64
- rubocop-rspec (2.5.0)
64
+ rubocop-rspec (2.10.0)
65
65
  rubocop (~> 1.19)
66
66
  ruby-progressbar (1.11.0)
67
67
  strong_versions (0.4.5)
@@ -77,11 +77,11 @@ PLATFORMS
77
77
 
78
78
  DEPENDENCIES
79
79
  devpack (~> 0.3.2)
80
- rake (~> 12.0)
81
- rspec (~> 3.0)
82
- rubocop (~> 1.21)
80
+ rake (~> 13.0)
81
+ rspec (~> 3.11)
82
+ rubocop (~> 1.29)
83
83
  rubocop-rake (~> 0.6.0)
84
- rubocop-rspec (~> 2.5)
84
+ rubocop-rspec (~> 2.10)
85
85
  sql_csv!
86
86
  strong_versions (~> 0.4.5)
87
87
 
data/README.md CHANGED
@@ -20,10 +20,12 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
+ An executable `sql2csv` is installed with the gem.
24
+
23
25
  Write an SQL command to `stdin` and set `DATABASE_URL` to configure connection. CSV output will be written to `stdout`.
24
26
 
25
27
  ```bash
26
- echo "select * from users" | DATABASE_URL='postgresql://user:password@host:1234/database' sql_csv > users.csv
28
+ echo "select * from users" | DATABASE_URL='postgresql://user:password@host:1234/database' sql2csv > users.csv
27
29
  ```
28
30
 
29
31
  ## License
File without changes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SqlCsv
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.0'
5
5
  end
data/sql_csv.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  end
23
23
 
24
24
  spec.bindir = 'bin'
25
- spec.executables = ['sql_csv']
25
+ spec.executables = ['sql2csv']
26
26
  spec.require_paths = ['lib']
27
27
  spec.add_runtime_dependency 'activerecord', '~> 6.1'
28
28
  spec.add_runtime_dependency 'mysql2', '~> 0.5.3'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql_csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-21 00:00:00.000000000 Z
11
+ date: 2022-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -56,7 +56,7 @@ description: Use ActiveRecord to execute SQL against any DB to export CSV
56
56
  email:
57
57
  - git@bob.frl
58
58
  executables:
59
- - sql_csv
59
+ - sql2csv
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
@@ -72,7 +72,7 @@ files:
72
72
  - Rakefile
73
73
  - bin/console
74
74
  - bin/setup
75
- - bin/sql_csv
75
+ - bin/sql2csv
76
76
  - lib/sql_csv.rb
77
77
  - lib/sql_csv/version.rb
78
78
  - sql_csv.gemspec