pg_meta 0.1.2 → 0.1.3

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: 8553533c4f97ee625c2796b354d0ab5124786853f3a64f1b1a6b0d126ba8ac35
4
- data.tar.gz: 5e80ab9a799e73c21061fc78275affe48706208246b749a198223f7b8f8a0dbf
3
+ metadata.gz: b58a4f531bb7de0145b96bad4e39f8c7357d14e300c0d91b7fc5af44567974e4
4
+ data.tar.gz: 6e5144a8afc064666199f1c692e1eb8f3760ac7688f3d58a1ed168dcd4ab7ac4
5
5
  SHA512:
6
- metadata.gz: 80ad81f85a6acb805971f5522cd3189ba553c0f4ab0a6d09c9f152084ac099d3aff1399da10bc71222f18551e3ac2ed9b2b28ea7b9304a233c943cfbde9dac0e
7
- data.tar.gz: 548de1800985a70250558ce8611ca08f81c472caa5f0d9da5345ace172d5ef37103e1fa6475325b47eb6b9dc83719e9f5c65495610e15d88916717d3dfd37f46
6
+ metadata.gz: 5f3c8c0c82a7099858decef204aaeb51116a2980ccf96960424d70864df0b8bd8e9f14269740bf94ec5aec5e9a4254def92b49bf7217599c83c712091e85d66c
7
+ data.tar.gz: 4d8237a0bf64240a222541b917f6c017afef72c863e3c18be20427060554d6fee903779c2c8f24cde23bde8b996b9ed0b51f8c45d7891ac0ae9c6245640c28c5
data/exe/pg_meta CHANGED
@@ -13,13 +13,15 @@ SPEC = %(
13
13
  -- DATABASE
14
14
  )
15
15
 
16
- opts, args = ShellOpts.process(SPEC, ARGV, version: PgMeta::VERSION, exception: false)
16
+ opts, args = ShellOpts.process(SPEC, ARGV, exception: false)
17
17
  database = args.expect(1)
18
18
 
19
19
  conn = PgConn.new(database)
20
20
  meta = PgMeta.new(conn)
21
+
21
22
  case opts.format
22
23
  when "yaml"; puts meta.to_yaml
23
24
  when "marshal"; puts meta.to_marshal
24
25
  else meta.dump
25
26
  end
27
+
@@ -1,3 +1,3 @@
1
1
  module PgMeta
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/pg_meta.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency "pg"
26
26
 
27
27
  spec.add_dependency "pg_conn"
28
- spec.add_dependency "shellopts", "~> 2.0.0"
28
+ spec.add_dependency "shellopts", "~> 2.0.23"
29
29
 
30
30
  spec.add_development_dependency "bundler"
31
31
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_meta
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
  - Claus Rasmussen
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.0.0
61
+ version: 2.0.23
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.0.0
68
+ version: 2.0.23
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement