neetob 0.4.9 → 0.4.11

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: a722c3cf5bcddcfaa4bf60f2938166e3db12a242178892adc79e4829437d1d36
4
- data.tar.gz: e27405eca8f2e0c7958d3249a0d220c522a8729b0faececaa6a31db825aa0dd6
3
+ metadata.gz: 5bffc36454f80fc231a113e5fef5cd520074d11b79a2949678395d6067a69811
4
+ data.tar.gz: 11ba5783db4219b510bc8aaf38b14a6f51e0da91797d0afe156dd04989de4d02
5
5
  SHA512:
6
- metadata.gz: 5c153eb16f92778e498f66d1f6f76a3fde04747fe3177d0ce662e2cdc0ae259c26ef2de78689b7fe3af8f7762513b78667333d4835b4cd183f404001bb9d8cf1
7
- data.tar.gz: 58b00a21637dfa693896c052b4da03b419f352010ae5816ef9144efbd12f661b98143f27965bd21c8af8000c758dcc213117a695b19491c39221159ff0312f51
6
+ metadata.gz: 05bf1fe037620f88890aed24bd297dbc648e1a9da8b6afb0ceef1405e2250080274e8488815bd4a076d8063d4f50fa1921959c7172848f12cbe1229dc58ab4a3
7
+ data.tar.gz: 3c00ae45265a0bb2d18d758acf51d376c1aeb0f5ffe26d7eca8e4882eeed2392033b81e1fb58029d6ec56ccc6ba5824b36b1267e64167f978ec6365981488c0f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ### [0.4.12](https://www.github.com/bigbinary/neetob/compare/v0.4.11...v0.4.12) (2023-08-23)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Update README.md ([#292](https://www.github.com/bigbinary/neetob/issues/292)) ([41d3cc9](https://www.github.com/bigbinary/neetob/commit/41d3cc9c708d1efaf229ab6d41ad058b79cbe121))
9
+
10
+ ### [0.4.11](https://www.github.com/bigbinary/neetob/compare/v0.4.10...v0.4.11) (2023-08-23)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Fixed engines option ([#290](https://www.github.com/bigbinary/neetob/issues/290)) ([49a5dff](https://www.github.com/bigbinary/neetob/commit/49a5dff474a3bff7cf3bac1031239787caa240c8))
16
+
17
+ ### [0.4.10](https://www.github.com/bigbinary/neetob/compare/v0.4.9...v0.4.10) (2023-08-23)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * Added engines option for repos query ([#288](https://www.github.com/bigbinary/neetob/issues/288)) ([3f1dbcb](https://www.github.com/bigbinary/neetob/commit/3f1dbcb79ff71c636077e0b77653f96a9a60ed94))
23
+
3
24
  ### [0.4.9](https://www.github.com/bigbinary/neetob/compare/v0.4.8...v0.4.9) (2023-08-21)
4
25
 
5
26
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetob (0.4.9)
4
+ neetob (0.4.11)
5
5
  brakeman (~> 5.0)
6
6
  chronic
7
7
  dotenv (~> 2.8.1)
@@ -9,7 +9,7 @@ PATH
9
9
  neetodeploy
10
10
  octokit (~> 4.0)
11
11
  terminal-table (~> 3.0.2)
12
- thor (~> 1.2.1)
12
+ thor (~> 1.2.2)
13
13
 
14
14
  GEM
15
15
  remote: https://O6Ts9-SVDaUZpHMRs2CpJp22RwbETDE@gems.neeto.com/
@@ -240,7 +240,7 @@ GEM
240
240
  simplecov_json_formatter (0.1.4)
241
241
  terminal-table (3.0.2)
242
242
  unicode-display_width (>= 1.1.1, < 3)
243
- thor (1.2.1)
243
+ thor (1.2.2)
244
244
  timeout (0.3.1)
245
245
  tzinfo (2.0.5)
246
246
  concurrent-ruby (~> 1.0)
data/README.md CHANGED
@@ -56,7 +56,7 @@ Commands:
56
56
  neetob make-repos-uptodate # Update all neeto repos
57
57
 
58
58
  Options:
59
- [--sandbox] # All the commands in sandbox mode will run only on the "neeto-dummy" app.
59
+ [--sandbox] # All the commands in sandbox mode will run only on the "neeto-dummy" app
60
60
  ```
61
61
 
62
62
  #### Useful command-line options
@@ -116,6 +116,9 @@ neetob github issues list --count --label bug --state open --assignee none \
116
116
  # Creates an issue in Github repos
117
117
  # You will be prompted to enter issue title, description etc.
118
118
  neetob github issues create --repos "neeto-*-web"
119
+
120
+ # Creates an issue in engine repos
121
+ neetob github issues create --repos "engines"
119
122
  ```
120
123
 
121
124
  ### Labels
@@ -22,10 +22,19 @@ module Neetob
22
22
  def find_all_matching_apps_or_repos(apps, platform_name, sandbox_mode, quiet = false)
23
23
  all_neeto_repos = apps == ["all"]
24
24
  inform_about_current_working_mode(sandbox_mode, quiet)
25
+
25
26
  all_available_apps = sandbox_mode ?
26
27
  testing_apps(platform_name) :
27
28
  build_app_list_from_neeto_compliance(platform_name, all_neeto_repos)
28
- matching_apps = all_neeto_repos ? all_available_apps : match_apps(apps || ["*"], all_available_apps)
29
+
30
+ matching_apps = if apps == ["all"]
31
+ all_available_apps
32
+ elsif apps == ["engines"]
33
+ all_engine_repos(sandbox_mode)
34
+ else
35
+ match_apps(apps || ["*"], all_available_apps)
36
+ end
37
+
29
38
  if matching_apps.length == 0
30
39
  error_msg = sandbox_mode ?
31
40
  "Only \"neeto-dummy\" app is available for sandbox mode. Remove the \"--sandbox\" flag to run the given command for all the neeto applications." :
@@ -37,6 +46,12 @@ module Neetob
37
46
  matching_apps
38
47
  end
39
48
 
49
+ def all_engine_repos(sandbox_mode)
50
+ sandbox_mode ?
51
+ testing_apps(:github) :
52
+ NeetoCompliance::NeetoRepos.nanos_backend.map { |repo| "bigbinary/#{repo}" }
53
+ end
54
+
40
55
  def match_apps(required_apps, available_apps)
41
56
  apps = required_apps&.map { |app| Regexp.new "#{app.gsub("*", "[-a-zA-Z0-9]*")}" }
42
57
  available_apps.select do |available_app|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neetob
4
- VERSION = "0.4.9"
4
+ VERSION = "0.4.11"
5
5
  end
data/neetob.gemspec CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.require_paths = ["lib"]
31
31
 
32
32
  # Must have deps
33
- spec.add_dependency "thor", "~> 1.2.1" # for cli
33
+ spec.add_dependency "thor", "~> 1.2.2" # for cli
34
34
  spec.add_dependency "octokit", "~> 4.0" # for github client
35
35
  spec.add_dependency "terminal-table", "~> 3.0.2" # for building cli table
36
36
  spec.add_dependency "launchy", "~> 2.5.0" # for opening in browser
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neetob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.11
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-08-21 00:00:00.000000000 Z
11
+ date: 2023-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2.1
19
+ version: 1.2.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2.1
26
+ version: 1.2.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: octokit
29
29
  requirement: !ruby/object:Gem::Requirement