pg_meta 0.1.0 → 0.1.1

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: 9a7711ea44e1ae9ff9fd3ed45016e7ba2a00a1554af08e5b311e036cb29c6f01
4
- data.tar.gz: 5045d4b33fe8a0b2aeacac9958d7a2f80e8ed2ae3b27c1b69a457acc4d343875
3
+ metadata.gz: b76496330266e5b433425144c0a516097da3bab3fee34e6d41db83a0a285cb02
4
+ data.tar.gz: bef510203da10b50282aa33081d5d3f050be86b739516ab887d886e5e0c9f9e8
5
5
  SHA512:
6
- metadata.gz: 2e342aef3595dd33c6728ad702efa4a7e4e80640cecccf6c345ad5839f5d3c913b30215b8be7f858fa90faa84eef5c497083978d423c271e008dfb13737c8ba7
7
- data.tar.gz: 38b665922c5005182d764db3126948defc7e87aeab3355782f695f3d89a3976e648aa405e191b871863da1ca42377be3b6ff1fcaeb9ea4657c5c272ddc40c3f4
6
+ metadata.gz: 34856d63fe20e0a773b9cb9aaf93bb2f165b590e05471d86656a0379871d70f14732d9ee97c307e7e5062e69fe122605402b671faf4eade8eafbacae1e6dd08f
7
+ data.tar.gz: 730ef903ebd42635babcc68d2aa3e227108b5cf6cd52bc6353cdb43fd89977373d0d7eca685bf0ad678f7ea9a5fe380f2c6a785281b9abcb778180434b72797f
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in pg_meta.gemspec
6
6
  gemspec
7
+
data/exe/pg_meta CHANGED
@@ -13,16 +13,13 @@ SPEC = %(
13
13
  -- DATABASE
14
14
  )
15
15
 
16
- opts, args = ShellOpts.process(SPEC, ARGV, version: PgMeta::VERSION)
17
-
18
- format = opts.format
16
+ opts, args = ShellOpts.process(SPEC, ARGV, version: PgMeta::VERSION, exception: false)
19
17
  database = args.expect(1)
18
+
20
19
  conn = PgConn.new(database)
21
20
  meta = PgMeta.new(conn)
22
-
23
- case format
21
+ case opts.format
24
22
  when "yaml"; puts meta.to_yaml
25
23
  when "marshal"; puts meta.to_marshal
26
24
  else meta.dump
27
25
  end
28
-
@@ -1,3 +1,3 @@
1
1
  module PgMeta
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/pg_meta.gemspec CHANGED
@@ -1,7 +1,5 @@
1
1
 
2
- lib = File.expand_path("../lib", __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "pg_meta/version"
2
+ require_relative "lib/pg_meta/version.rb"
5
3
 
6
4
  Gem::Specification.new do |spec|
7
5
  spec.name = "pg_meta"
@@ -13,16 +11,6 @@ Gem::Specification.new do |spec|
13
11
  spec.description = %q{pg_meta gem}
14
12
  spec.homepage = "http://www.nowhere.com/"
15
13
 
16
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
- # to allow pushing to a single host or delete this section to allow pushing to any host.
18
- # if spec.respond_to?(:metadata)
19
- #
20
- # spec.metadata["homepage_uri"] = spec.homepage
21
- # else
22
- # raise "RubyGems 2.0 or newer is required to protect against " \
23
- # "public gem pushes."
24
- # end
25
-
26
14
  # Specify which files should be added to the gem when it is released.
27
15
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28
16
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
@@ -32,19 +20,17 @@ Gem::Specification.new do |spec|
32
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
21
  spec.require_paths = ["lib"]
34
22
 
35
- spec.add_development_dependency "bundler"
36
- spec.add_development_dependency "rake"
37
- spec.add_development_dependency "rspec"
38
-
39
23
  # spec.add_dependency GEM [, VERSION]
40
24
  spec.add_dependency "indented_io"
41
25
  spec.add_dependency "pg"
42
- spec.add_dependency "pg_conn", "0.2.1"
43
- spec.add_dependency "shellopts", "2.0.6"
44
26
 
45
- # spec.add_development_dependency GEM [, VERSION]
46
-
47
- # Also un-comment in spec/spec_helper to use simplecov
48
- # spec.add_development_dependency "simplecov"
27
+ spec.add_dependency "pg_conn"
28
+ spec.add_dependency "shellopts", "~> 2.0.0"
49
29
 
30
+ spec.add_development_dependency "bundler"
31
+ spec.add_development_dependency "rake"
32
+ spec.add_development_dependency "rspec"
33
+
34
+ # Also un-comment in spec/spec_helper to use simplecov
35
+ spec.add_development_dependency "simplecov"
50
36
  end
metadata CHANGED
@@ -1,23 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_meta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-02 00:00:00.000000000 Z
11
+ date: 2022-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: indented_io
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
- type: :development
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
@@ -25,13 +25,13 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: pg
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :development
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
@@ -39,13 +39,13 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: pg_conn
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
- type: :development
48
+ type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
@@ -53,13 +53,27 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: indented_io
56
+ name: shellopts
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.0.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - ">="
60
74
  - !ruby/object:Gem::Version
61
75
  version: '0'
62
- type: :runtime
76
+ type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
@@ -67,13 +81,13 @@ dependencies:
67
81
  - !ruby/object:Gem::Version
68
82
  version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
- name: pg
84
+ name: rake
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - ">="
74
88
  - !ruby/object:Gem::Version
75
89
  version: '0'
76
- type: :runtime
90
+ type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
@@ -81,33 +95,33 @@ dependencies:
81
95
  - !ruby/object:Gem::Version
82
96
  version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
- name: pg_conn
98
+ name: rspec
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - '='
101
+ - - ">="
88
102
  - !ruby/object:Gem::Version
89
- version: 0.2.1
90
- type: :runtime
103
+ version: '0'
104
+ type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - '='
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: 0.2.1
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
- name: shellopts
112
+ name: simplecov
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - '='
115
+ - - ">="
102
116
  - !ruby/object:Gem::Version
103
- version: 2.0.6
104
- type: :runtime
117
+ version: '0'
118
+ type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - '='
122
+ - - ">="
109
123
  - !ruby/object:Gem::Version
110
- version: 2.0.6
124
+ version: '0'
111
125
  description: pg_meta gem
112
126
  email:
113
127
  - claus.l.rasmussen@gmail.com
@@ -153,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
167
  - !ruby/object:Gem::Version
154
168
  version: '0'
155
169
  requirements: []
156
- rubygems_version: 3.2.26
170
+ rubygems_version: 3.1.4
157
171
  signing_key:
158
172
  specification_version: 4
159
173
  summary: pg_meta gem