neetob 0.4.9 → 0.4.10

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: 6ce1b302e4f9bdf8f62fca55537f0171a48963a224c961c3638dcf340dd2afd1
4
+ data.tar.gz: 1c9bd7a3c53cd44b87b66c819352f014cb0a52b0b73d3e5fdcfb43148d6b9902
5
5
  SHA512:
6
- metadata.gz: 5c153eb16f92778e498f66d1f6f76a3fde04747fe3177d0ce662e2cdc0ae259c26ef2de78689b7fe3af8f7762513b78667333d4835b4cd183f404001bb9d8cf1
7
- data.tar.gz: 58b00a21637dfa693896c052b4da03b419f352010ae5816ef9144efbd12f661b98143f27965bd21c8af8000c758dcc213117a695b19491c39221159ff0312f51
6
+ metadata.gz: 16a45922adaae6452d113425007fc34369445ee2f3a729865ab68c519bdf1c649049b508a54f3c55e10e9c069cff734e76560b3ca9271548c98e9b6d854b712d
7
+ data.tar.gz: 7f68cbd5bece764cd868f513e86e7b2776049de5da362515f30922b302607cffa11015f9c6e6e0730953205eda9f299ecca29d098ca717f2d5b83fe16f0c9711
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ### [0.4.10](https://www.github.com/bigbinary/neetob/compare/v0.4.9...v0.4.10) (2023-08-23)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Added engines option for repos query ([#288](https://www.github.com/bigbinary/neetob/issues/288)) ([3f1dbcb](https://www.github.com/bigbinary/neetob/commit/3f1dbcb79ff71c636077e0b77653f96a9a60ed94))
9
+
3
10
  ### [0.4.9](https://www.github.com/bigbinary/neetob/compare/v0.4.8...v0.4.9) (2023-08-21)
4
11
 
5
12
 
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.10)
5
5
  brakeman (~> 5.0)
6
6
  chronic
7
7
  dotenv (~> 2.8.1)
data/README.md CHANGED
@@ -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
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.10"
5
5
  end
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.10
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