promptify 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gem-push.yml +34 -0
- data/Gemfile.lock +2 -2
- data/lib/promptify/railtie.rb +6 -6
- data/lib/promptify/version.rb +1 -1
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 425f7b8c1ffd6476335b17753839abca298f09c65f6619a91c7f09179b197bcf
|
4
|
+
data.tar.gz: 01745114d2c870e3a61989820caa87f60e6ed393ce04916215ea917e358181aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7ebad73bc47bd14ab8ed7a5a856b5da5d307b48bfd7c8b68383b22ef1b6de3704c971902354877b0152c9fc299d8cb3c601e17ddd542e48f30690d9443e896c
|
7
|
+
data.tar.gz: 54f4475b48d28045f474b91cb53843ea2b056517a115715d637dc4d52622b84678c42f718de799fe1b468995d19a64af25e7a8e9ad2a4917f423e98c89b03230
|
@@ -0,0 +1,34 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
name: Build + Publish
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
permissions:
|
14
|
+
contents: read
|
15
|
+
packages: write
|
16
|
+
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v2
|
19
|
+
- name: Set up Ruby 2.6
|
20
|
+
uses: actions/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: 2.6.x
|
23
|
+
|
24
|
+
- name: Publish to GPR
|
25
|
+
run: |
|
26
|
+
mkdir -p $HOME/.gem
|
27
|
+
touch $HOME/.gem/credentials
|
28
|
+
chmod 0600 $HOME/.gem/credentials
|
29
|
+
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
30
|
+
gem build *.gemspec
|
31
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
32
|
+
env:
|
33
|
+
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
|
34
|
+
OWNER: ${{ github.repository_owner }}
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
promptify (1.0.
|
4
|
+
promptify (1.0.3)
|
5
5
|
pry
|
6
6
|
pry-rails
|
7
7
|
|
@@ -11,7 +11,7 @@ GEM
|
|
11
11
|
coderay (1.1.3)
|
12
12
|
diff-lcs (1.3)
|
13
13
|
method_source (1.0.0)
|
14
|
-
pry (0.
|
14
|
+
pry (0.14.0)
|
15
15
|
coderay (~> 1.1)
|
16
16
|
method_source (~> 1.0)
|
17
17
|
pry-rails (0.3.9)
|
data/lib/promptify/railtie.rb
CHANGED
@@ -37,16 +37,16 @@ module Promptify
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
def
|
41
|
-
return unless ENV["HEROKU_APP_NAME"]
|
42
|
-
|
43
|
-
"[#{Pry::Helpers::Text.cyan(
|
40
|
+
def tenant_app
|
41
|
+
return unless ENV["HEROKU_APP_NAME"] || ENV["TENANT"]
|
42
|
+
name = ENV["HEROKU_APP_NAME"] || ENV["TENANT"]
|
43
|
+
"[#{Pry::Helpers::Text.cyan(name)}]"
|
44
44
|
end
|
45
45
|
|
46
46
|
def new_prompt
|
47
47
|
[
|
48
|
-
proc { |*a| "[#{app_name}]#{
|
49
|
-
proc { |*a| "[#{app_name}]#{
|
48
|
+
proc { |*a| "[#{app_name}]#{tenant_app}[#{environment}]> " },
|
49
|
+
proc { |*a| "[#{app_name}]#{tenant_app}[#{environment}]> " },
|
50
50
|
]
|
51
51
|
end
|
52
52
|
|
data/lib/promptify/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: promptify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joey Cody
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -80,13 +80,14 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '3.0'
|
83
|
-
description:
|
83
|
+
description:
|
84
84
|
email:
|
85
85
|
- joey@fountain.com
|
86
86
|
executables: []
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
+
- ".github/workflows/gem-push.yml"
|
90
91
|
- ".gitignore"
|
91
92
|
- ".rspec"
|
92
93
|
- Gemfile
|
@@ -109,7 +110,7 @@ metadata:
|
|
109
110
|
documentation_uri: https://github.com/onboardiq/promptify
|
110
111
|
homepage_uri: https://github.com/onboardiq/promptify
|
111
112
|
source_code_uri: https://github.com/onboardiq/promptify
|
112
|
-
post_install_message:
|
113
|
+
post_install_message:
|
113
114
|
rdoc_options: []
|
114
115
|
require_paths:
|
115
116
|
- lib
|
@@ -124,8 +125,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
125
|
- !ruby/object:Gem::Version
|
125
126
|
version: '0'
|
126
127
|
requirements: []
|
127
|
-
|
128
|
-
|
128
|
+
rubyforge_project:
|
129
|
+
rubygems_version: 2.7.6.2
|
130
|
+
signing_key:
|
129
131
|
specification_version: 4
|
130
132
|
summary: Colorize staging/production rails console prompts with environment details
|
131
133
|
test_files: []
|