neetob-ud 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +126 -0
- data/Gemfile.lock +3 -3
- data/README.md +18 -2
- data/lib/neetob/cli.rb +1 -1
- data/lib/neetob/version.rb +1 -1
- data/neetob.gemspec +50 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69a1abd45adfaf7d4e410c6650cd5845e8e8bfc2caba1ea9605267e91e6bb2f4
|
4
|
+
data.tar.gz: 81bf1e27b55543222ca578a6b2d88b273622ae62f99181e401a69decd6fbe31e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b2152d0581415805f1e8aa2245993f261b93818be89a8d298a6c16610d3af6110807e447a4a995c98adc97f0bc9e8b871fb955a80cc3660a5ba1e7765e27705
|
7
|
+
data.tar.gz: 7f251bf5384be288be312ceb42a701150504c5b4e70b83d7db84053596ba09575da43f19867aabfb3314fd6e738ba05f57ff73b1146751684a604ed94cbe9d23
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,131 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
### [0.2.6](https://www.github.com/udai1931/neetob-temp-1/compare/v0.2.5...v0.2.6) (2023-05-23)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* Added some logs for labels ([#22](https://www.github.com/udai1931/neetob-temp-1/issues/22)) ([6fcceb1](https://www.github.com/udai1931/neetob-temp-1/commit/6fcceb1ac3c4b92b8c971b896d53577f6a102419))
|
9
|
+
|
10
|
+
### [0.2.5](https://www.github.com/udai1931/neetob-temp-1/compare/v0.2.4...v0.2.5) (2023-05-23)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* Updated workflow ([#20](https://www.github.com/udai1931/neetob-temp-1/issues/20)) ([ab3273a](https://www.github.com/udai1931/neetob-temp-1/commit/ab3273a28ece61cd170d5ef3d636b6d956a284be))
|
16
|
+
|
17
|
+
### [0.2.4](https://www.github.com/udai1931/neetob-temp-1/compare/v0.2.3...v0.2.4) (2023-05-23)
|
18
|
+
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* Printed conv commits ([#18](https://www.github.com/udai1931/neetob-temp-1/issues/18)) ([419c748](https://www.github.com/udai1931/neetob-temp-1/commit/419c748384026e0730fb3a9b590694dccf39e0d5))
|
23
|
+
|
24
|
+
### [0.2.3](https://www.github.com/udai1931/neetob-temp-1/compare/v0.2.2...v0.2.3) (2023-05-23)
|
25
|
+
|
26
|
+
|
27
|
+
### Bug Fixes
|
28
|
+
|
29
|
+
* qwerty ([#16](https://www.github.com/udai1931/neetob-temp-1/issues/16)) ([ee81f5a](https://www.github.com/udai1931/neetob-temp-1/commit/ee81f5a885146881aa48bd606be83e9adfa60d12))
|
30
|
+
|
31
|
+
### [0.2.2](https://www.github.com/udai1931/neetob-temp-1/compare/v0.2.1...v0.2.2) (2023-05-23)
|
32
|
+
|
33
|
+
|
34
|
+
### Bug Fixes
|
35
|
+
|
36
|
+
* Updated commons ([#14](https://www.github.com/udai1931/neetob-temp-1/issues/14)) ([e297a59](https://www.github.com/udai1931/neetob-temp-1/commit/e297a595e614cee3c355e603bc81a30c659a8c26))
|
37
|
+
|
38
|
+
### [0.2.1](https://www.github.com/udai1931/neetob-temp-1/compare/v0.2.0...v0.2.1) (2023-05-23)
|
39
|
+
|
40
|
+
|
41
|
+
### Bug Fixes
|
42
|
+
|
43
|
+
* Updated commons ([#12](https://www.github.com/udai1931/neetob-temp-1/issues/12)) ([23ff81a](https://www.github.com/udai1931/neetob-temp-1/commit/23ff81a69f025cce59267274150cafadace8d135))
|
44
|
+
|
45
|
+
## [0.2.0](https://www.github.com/udai1931/neetob-temp-1/compare/v0.1.3...v0.2.0) (2023-05-19)
|
46
|
+
|
47
|
+
|
48
|
+
### Features
|
49
|
+
|
50
|
+
* Added some consoles ([#9](https://www.github.com/udai1931/neetob-temp-1/issues/9)) ([6d68117](https://www.github.com/udai1931/neetob-temp-1/commit/6d68117a1a77ce25416a971220a7a77a38d75b81))
|
51
|
+
|
52
|
+
### [0.1.3](https://www.github.com/udai1931/neetob-temp-1/compare/v0.1.2...v0.1.3) (2023-05-19)
|
53
|
+
|
54
|
+
|
55
|
+
### Bug Fixes
|
56
|
+
|
57
|
+
* Added some consoles ([#7](https://www.github.com/udai1931/neetob-temp-1/issues/7)) ([f1ef295](https://www.github.com/udai1931/neetob-temp-1/commit/f1ef295cb78ebefc137b5ac55a46b62f92433884))
|
58
|
+
|
59
|
+
### [0.1.2](https://www.github.com/udai1931/neetob-temp-1/compare/v0.1.1...v0.1.2) (2023-05-19)
|
60
|
+
|
61
|
+
|
62
|
+
### Bug Fixes
|
63
|
+
|
64
|
+
* Added some consoles ([#5](https://www.github.com/udai1931/neetob-temp-1/issues/5)) ([4caaf68](https://www.github.com/udai1931/neetob-temp-1/commit/4caaf68a48d51a368011c1f2e0e150fe2ce0309e))
|
65
|
+
|
66
|
+
### [0.1.1](https://www.github.com/udai1931/neetob-temp-1/compare/v0.1.0...v0.1.1) (2023-05-19)
|
67
|
+
|
68
|
+
|
69
|
+
### Bug Fixes
|
70
|
+
|
71
|
+
* Added some consoles ([#3](https://www.github.com/udai1931/neetob-temp-1/issues/3)) ([56ddeb0](https://www.github.com/udai1931/neetob-temp-1/commit/56ddeb0942ce077c1cbf01fa1e7feafe7a82978e))
|
72
|
+
|
73
|
+
## 0.1.0 (2023-05-19)
|
74
|
+
|
75
|
+
|
76
|
+
### Bug Fixes
|
77
|
+
|
78
|
+
* Added some consoles ([#1](https://www.github.com/udai1931/neetob-temp-1/issues/1)) ([3746b48](https://www.github.com/udai1931/neetob-temp-1/commit/3746b48814248ebff3e011afc38a171d24b24353))
|
79
|
+
|
80
|
+
## [0.3.0](https://www.github.com/udai1931/neetob-temp/compare/v0.1.9...v0.2.0) (2023-02-27)
|
81
|
+
|
82
|
+
|
83
|
+
### Features
|
84
|
+
|
85
|
+
* Updated abcd 2 ([ccec591](https://www.github.com/udai1931/neetob-temp/commit/ccec591dbd2039152e358c2ed98fbcf5a20d002e))
|
86
|
+
|
87
|
+
### [0.1.9](https://www.github.com/udai1931/neetob-temp/compare/v0.1.8...v0.1.9) (2023-02-27)
|
88
|
+
|
89
|
+
|
90
|
+
### Bug Fixes
|
91
|
+
|
92
|
+
* Updated abcd ([774da9b](https://www.github.com/udai1931/neetob-temp/commit/774da9bc0cd82a87eb229abb192a10769001c8a1))
|
93
|
+
|
94
|
+
### [0.1.8](https://www.github.com/udai1931/neetob-temp/compare/v0.1.7...v0.1.8) (2023-02-27)
|
95
|
+
|
96
|
+
|
97
|
+
### Bug Fixes
|
98
|
+
|
99
|
+
* readme update ([cc91950](https://www.github.com/udai1931/neetob-temp/commit/cc9195068df383ae4f9274375a0199e279a6bc3e))
|
100
|
+
|
101
|
+
### [0.1.7](https://www.github.com/udai1931/neetob-temp/compare/v0.1.6...v0.1.7) (2023-02-27)
|
102
|
+
|
103
|
+
|
104
|
+
### Bug Fixes
|
105
|
+
|
106
|
+
* Updated readme 2 ([f07927d](https://www.github.com/udai1931/neetob-temp/commit/f07927df577d1ffbf73db6db2b0dd5b301d6d02a))
|
107
|
+
|
108
|
+
### [0.1.6](https://www.github.com/udai1931/neetob-temp/compare/v0.1.5...v0.1.6) (2023-02-27)
|
109
|
+
|
110
|
+
|
111
|
+
### Bug Fixes
|
112
|
+
|
113
|
+
* Updated readme ([e2e18e6](https://www.github.com/udai1931/neetob-temp/commit/e2e18e6bbe47559d1d1f68ef34a805df3b54ff6e))
|
114
|
+
|
115
|
+
### [0.1.5](https://www.github.com/udai1931/neetob-temp/compare/v0.1.4...v0.1.5) (2023-02-17)
|
116
|
+
|
117
|
+
|
118
|
+
### Bug Fixes
|
119
|
+
|
120
|
+
* Added abc command ([90a3988](https://www.github.com/udai1931/neetob-temp/commit/90a398893d4770e05a8a44fe42ef27affcf84e70))
|
121
|
+
|
122
|
+
### [0.1.4](https://www.github.com/udai1931/neetob-temp/compare/v0.1.3...v0.1.4) (2023-02-17)
|
123
|
+
|
124
|
+
|
125
|
+
### Bug Fixes
|
126
|
+
|
127
|
+
* 27 ([6854aba](https://www.github.com/udai1931/neetob-temp/commit/6854aba85e60e5b0b60ebf08b7f10a358b826d10))
|
128
|
+
|
3
129
|
### [0.1.3](https://www.github.com/udai1931/neetob-temp/compare/v0.1.2...v0.1.3) (2023-02-17)
|
4
130
|
|
5
131
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
neetob-ud (0.2.
|
4
|
+
neetob-ud (0.2.6)
|
5
5
|
dotenv (~> 2.8.1)
|
6
6
|
launchy (~> 2.5.0)
|
7
7
|
octokit (~> 4.0)
|
@@ -134,9 +134,9 @@ GEM
|
|
134
134
|
net-smtp (0.3.3)
|
135
135
|
net-protocol
|
136
136
|
nio4r (2.5.8)
|
137
|
-
nokogiri (1.
|
137
|
+
nokogiri (1.14.3-x86_64-darwin)
|
138
138
|
racc (~> 1.4)
|
139
|
-
nokogiri (1.
|
139
|
+
nokogiri (1.14.3-x86_64-linux)
|
140
140
|
racc (~> 1.4)
|
141
141
|
octokit (4.25.1)
|
142
142
|
faraday (>= 1, < 3)
|
data/README.md
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
# neetob
|
2
|
-
|
1
|
+
# neetob temp
|
3
2
|
The `neetob` gem gives different commands for interacting with Github and Heroku instances of existing neeto projects.
|
4
3
|
|
5
4
|
## Table of Contents
|
@@ -32,12 +31,18 @@ The `neetob` gem gives different commands for interacting with Github and Heroku
|
|
32
31
|
|
33
32
|
Clone the repository onto your system using the following command:
|
34
33
|
|
34
|
+
|
35
|
+
|
35
36
|
```sh
|
36
37
|
git clone https://github.com/bigbinary/neetob.git
|
37
38
|
```
|
38
39
|
|
40
|
+
|
41
|
+
|
39
42
|
Navigate to the root of the application directory.
|
40
43
|
|
44
|
+
|
45
|
+
|
41
46
|
```sh
|
42
47
|
cd neetob
|
43
48
|
```
|
@@ -48,6 +53,8 @@ To set up `neetob`, execute the below command from the root of the application d
|
|
48
53
|
bin/setup
|
49
54
|
```
|
50
55
|
|
56
|
+
|
57
|
+
|
51
58
|
## Usage
|
52
59
|
|
53
60
|
Utilize the `help` keyword to access a comprehensive list of all the available commands and options.
|
@@ -162,6 +169,8 @@ For example, assume we have a file named `branch-protection-rules.json` on the `
|
|
162
169
|
}
|
163
170
|
```
|
164
171
|
|
172
|
+
|
173
|
+
|
165
174
|
To update the above-mentioned branch protection rules for the `main` branch of all the neeto products, use the following command:
|
166
175
|
|
167
176
|
```sh
|
@@ -237,14 +246,17 @@ neetob heroku config_vars audit --path ~/Desktop/config.json --apps "neeto-*-pro
|
|
237
246
|
# `data/config-vars-upsert.json` file present at the root of installed `neetob` gem.
|
238
247
|
neetob heroku config_vars upsert --apps "neeto-*-staging"
|
239
248
|
|
249
|
+
|
240
250
|
# The `remove` command is used to delete `config_vars`.
|
241
251
|
neetob heroku config_vars remove --keys=TEST_KEY_1 TEST_KEY_2 --apps "neeto-*-staging"
|
242
252
|
```
|
243
253
|
|
244
254
|
We can use a custom JSON file with `upsert` command using the `path` option.
|
245
255
|
|
256
|
+
|
246
257
|
For example, assume we have a file named `config.json` on the Desktop, like so:
|
247
258
|
|
259
|
+
|
248
260
|
```json
|
249
261
|
{
|
250
262
|
"NEETO_WIDGET_API_KEY": "jh4c1SC5cS5BvRbcBk4LD",
|
@@ -364,6 +376,8 @@ neeto-desk-web
|
|
364
376
|
neeto-kb-web
|
365
377
|
```
|
366
378
|
|
379
|
+
|
380
|
+
|
367
381
|
## Working with local Repos
|
368
382
|
|
369
383
|
Using the `local` command, we can interact with the local neeto repos.
|
@@ -393,4 +407,6 @@ For testing `github` commands use - [neeto-dummy](https://github.com/bigbinary/n
|
|
393
407
|
|
394
408
|
For testing `heroku` commands use - [neeto-dummy](https://dashboard.heroku.com/apps/neeto-dummy) app.
|
395
409
|
|
410
|
+
|
411
|
+
|
396
412
|
**Note:** Contact your respective Team Lead if you don't have access.
|
data/lib/neetob/cli.rb
CHANGED
@@ -32,7 +32,7 @@ module Neetob
|
|
32
32
|
desc "local", "Interact with the local neeto repos"
|
33
33
|
subcommand "local", Local::Commands
|
34
34
|
|
35
|
-
desc "make_repos_uptodate", "Uptodate all neeto repos"
|
35
|
+
desc "make_repos_uptodate", "Uptodate all the neeto repos"
|
36
36
|
option :all_neeto_repos, type: :boolean, aliases: "--all", desc: "Use this flag for working with all neeto repos",
|
37
37
|
default: false
|
38
38
|
def make_repos_uptodate
|
data/lib/neetob/version.rb
CHANGED
data/neetob.gemspec
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/neetob/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "neetob-ud"
|
7
|
+
spec.version = Neetob::VERSION
|
8
|
+
spec.authors = ["Udai Gupta"]
|
9
|
+
spec.email = ["udaigupta19311@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "Provides a set of helper scripts for Github and Heroku."
|
12
|
+
spec.description = "This gem gives different commands for interacting with Github and Heroku instances of existing neeto repos."
|
13
|
+
spec.homepage = "https://github.com/bigbinary/neetob"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = ">= 3.0.0"
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/bigbinary/neetob"
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/bigbinary/neetob/blob/main/CHANGELOG.md"
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
spec.files = Dir.chdir(__dir__) do
|
24
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
25
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
26
|
+
end
|
27
|
+
end
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
|
32
|
+
# Must have deps
|
33
|
+
spec.add_dependency "thor", "~> 1.2.1" # for cli
|
34
|
+
spec.add_dependency "octokit", "~> 4.0" # for github client
|
35
|
+
spec.add_dependency "terminal-table", "~> 3.0.2" # for building cli table
|
36
|
+
spec.add_dependency "launchy", "~> 2.5.0" # for opening in browser
|
37
|
+
spec.add_dependency "dotenv", "~> 2.8.1" # for loading env variables
|
38
|
+
|
39
|
+
# To add the files from submodules
|
40
|
+
`git submodule --quiet foreach pwd`.split($\).each do |submodule_path|
|
41
|
+
Dir.chdir(submodule_path) do
|
42
|
+
required_submodule_files = `git ls-files -z`
|
43
|
+
.split("\x0")
|
44
|
+
.select { |file| file.match("lib/neeto_compliance*|data/*") }
|
45
|
+
.map { |file| "#{submodule_path}/#{file}" }
|
46
|
+
.map { |file| file.gsub "#{File.dirname(__FILE__)}/", "" }
|
47
|
+
spec.files += required_submodule_files
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neetob-ud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Udai Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- lib/neetob/exception_handler.rb
|
156
156
|
- lib/neetob/utils.rb
|
157
157
|
- lib/neetob/version.rb
|
158
|
+
- neetob.gemspec
|
158
159
|
- overcommit.yml
|
159
160
|
- scripts/delete_unused_assets.rb
|
160
161
|
homepage: https://github.com/bigbinary/neetob
|