pgcli-rails 0.4.0 → 0.5.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: 72f061d6e9eb665ae79654c660a398ef4f25f8746f47ede113ff5871329920db
4
- data.tar.gz: ead4205167642e0b94573dc954050c520bb05403ab7af9a7344ef2adea4c6e61
3
+ metadata.gz: e8a8d4f15c0db0cfc0880748b1158c51c3726d1ba7adbb4bfd96ab8179fc4cf8
4
+ data.tar.gz: 4fb0ad22bed0c113186bbcb0b6b5c83b349245dca9ec6112dc97e22e0069d691
5
5
  SHA512:
6
- metadata.gz: 7e374793a18217c65c3f45cff6054e9b2dfb6935d022462295cafd3dffecea73cf380319969c5b3bd82d1ad846cb639cf4c07afa0bcf0cfb954ab93d4efa8127
7
- data.tar.gz: 5a2c15f30d885c75cf03d1ae77b86a1f2c60c316272cc86ac906abeb72b0b48b7090057c407646191726fe0e805daf28bc8cfa86d5a856bce59ca2a45806e1db
6
+ metadata.gz: 5fdf898fdc9dbc058f41009035e1bd5aa50f19f50a224400cbd5b8bfa95e6ec212b6d665def393f6049f081fc5aa4fffe8c56a308b4cdce93f76d4075c68f982
7
+ data.tar.gz: 92fa350c15d4837e3fbca72104f6422e108fd2d1236dc11f52caa9ea951a5928660228caabc1739c737d30ce61f44a66b674adfab66b015f78de610e21f8475e
@@ -0,0 +1,12 @@
1
+ on: push
2
+ name: Push
3
+ jobs:
4
+ draftRelease:
5
+ name: Draft Release
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - uses: actions/checkout@master
9
+ - name: Draft Release
10
+ uses: toolmantim/release-drafter@v5.2.0
11
+ env:
12
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,12 +1,15 @@
1
1
  AllCops:
2
2
  DisplayCopNames: true
3
3
  DisplayStyleGuide: true
4
- TargetRubyVersion: 2.4
4
+ TargetRubyVersion: 2.5
5
5
  Exclude:
6
6
  - "*.gemspec"
7
7
  - "tmp/**/*"
8
8
  - "vendor/**/*"
9
9
 
10
+ Layout/SpaceAroundEqualsInParameterDefault:
11
+ EnforcedStyle: no_space
12
+
10
13
  Metrics/AbcSize:
11
14
  Exclude:
12
15
  - "test/**/*"
@@ -40,8 +43,5 @@ Style/FrozenStringLiteralComment:
40
43
  Style/HashSyntax:
41
44
  EnforcedStyle: ruby19
42
45
 
43
- Style/SpaceAroundEqualsInParameterDefault:
44
- EnforcedStyle: no_space
45
-
46
46
  Style/StringLiterals:
47
47
  EnforcedStyle: double_quotes
@@ -6,9 +6,9 @@ branches:
6
6
  only:
7
7
  - master
8
8
  rvm:
9
- - 2.4.6
10
- - 2.5.5
11
- - 2.6.3
9
+ - 2.5.8
10
+ - 2.6.6
11
+ - 2.7.1
12
12
  - ruby-head
13
- before_install: gem install bundler -v 2.0.2
13
+ before_install: gem install bundler -v 2.1.4
14
14
  script: bundle exec rake
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 Matt Brictson
3
+ Copyright (c) 2020 Matt Brictson
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -42,7 +42,7 @@ RAILS_ENV=test bin/rake pgcli
42
42
  ## Requirements
43
43
 
44
44
  * Rails 4.2+ using PostgreSQL
45
- * Ruby 2.4.0+
45
+ * Ruby 2.5.0+
46
46
  * [pgcli][] (`brew install pgcli` to install on macOS)
47
47
 
48
48
  ## How it works
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ task bump: %w[bump:bundler bump:ruby bump:year]
21
21
 
22
22
  namespace :bump do
23
23
  task :bundler do
24
- version = Gemfile.bundler_version
24
+ version = Gem.latest_version_for("bundler").to_s
25
25
  replace_in_file ".travis.yml", /bundler -v (\S+)/ => version
26
26
  end
27
27
 
@@ -60,20 +60,6 @@ def replace_in_file(path, replacements)
60
60
  IO.write(path, contents) if contents != orig_contents
61
61
  end
62
62
 
63
- module Gemfile
64
- class << self
65
- def bundler_version
66
- lock_file[/BUNDLED WITH\n (\S+)$/, 1]
67
- end
68
-
69
- private
70
-
71
- def lock_file
72
- @_lock_file ||= IO.read("Gemfile.lock")
73
- end
74
- end
75
- end
76
-
77
63
  module RubyVersions
78
64
  class << self
79
65
  def lowest_supported
@@ -95,13 +81,13 @@ module RubyVersions
95
81
 
96
82
  private
97
83
 
98
- # rubocop:disable Metrics/LineLength
99
84
  def versions
100
85
  @_versions ||= begin
101
- yaml = open("https://raw.githubusercontent.com/ruby/www.ruby-lang.org/master/_data/downloads.yml")
86
+ yaml = URI.open(
87
+ "https://raw.githubusercontent.com/ruby/www.ruby-lang.org/master/_data/downloads.yml"
88
+ )
102
89
  YAML.safe_load(yaml, symbolize_names: true)
103
90
  end
104
91
  end
105
- # rubocop:enable Metrics/LineLength
106
92
  end
107
93
  end
@@ -1,5 +1,5 @@
1
1
  module Pgcli
2
2
  module Rails
3
- VERSION = "0.4.0".freeze
3
+ VERSION = "0.5.0".freeze
4
4
  end
5
5
  end
@@ -18,13 +18,13 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.required_ruby_version = ">= 2.4.0"
21
+ spec.required_ruby_version = ">= 2.5.0"
22
22
 
23
23
  spec.add_dependency "railties", ">= 4.2.0"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 2.0"
26
- spec.add_development_dependency "rake", "~> 12.0"
26
+ spec.add_development_dependency "rake", "~> 13.0"
27
27
  spec.add_development_dependency "minitest", "~> 5.0"
28
28
  spec.add_development_dependency "minitest-reporters", "~> 1.1"
29
- spec.add_development_dependency "rubocop", "0.72.0"
29
+ spec.add_development_dependency "rubocop", "0.78.0"
30
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgcli-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-27 00:00:00.000000000 Z
11
+ date: 2020-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '12.0'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '12.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.72.0
89
+ version: 0.78.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.72.0
96
+ version: 0.78.0
97
97
  description:
98
98
  email:
99
99
  - opensource@mattbrictson.com
@@ -101,8 +101,8 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - ".github/main.workflow"
105
104
  - ".github/release-drafter.yml"
105
+ - ".github/workflows/push.yml"
106
106
  - ".gitignore"
107
107
  - ".rubocop.yml"
108
108
  - ".travis.yml"
@@ -133,14 +133,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - ">="
135
135
  - !ruby/object:Gem::Version
136
- version: 2.4.0
136
+ version: 2.5.0
137
137
  required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  requirements:
139
139
  - - ">="
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubygems_version: 3.0.4
143
+ rubygems_version: 3.1.2
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Replaces the Rails PostgreSQL dbconsole with the much nicer pgcli
@@ -1,9 +0,0 @@
1
- workflow "Push" {
2
- on = "push"
3
- resolves = ["Draft Release"]
4
- }
5
-
6
- action "Draft Release" {
7
- uses = "toolmantim/release-drafter@v5.1.1"
8
- secrets = ["GITHUB_TOKEN"]
9
- }