onlyoffice_github_helper 0.1.0 → 1.0.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: 9578a0eb673c72a14cfe35ddf2e2a3b2f1361fa97b25bcab3932bf08bc219998
4
- data.tar.gz: 03deaed6e6f98757b476b67fae5171a5cb4651a9fe4be839d81f089629ce4861
3
+ metadata.gz: 3304d67eda76d4ba289a3ee65db04f9cb2f9b62bad269e7cd19fdcae58faa315
4
+ data.tar.gz: b2a829dcf25a3783dd33adbfa66e7dab2426be7bf7c48a9c50dd8f5da3d4d01f
5
5
  SHA512:
6
- metadata.gz: 64a9ff189f08013c7f07b57e648a4ef60e5f99b18bdd38eaa3cee7dc4d313ce94a0bc9a4b9e5aef47e8ee6eb12a72556f8128c4e1f16b3a8efe0ac60a616e41d
7
- data.tar.gz: '0989342043c92a9e7a06f89bce992810fa55cc083b500573d4092e2cb54f970b5f94144839d7f98bc6e60c42785ead629e9466fe9137eac22186b57f21232c92'
6
+ metadata.gz: a6547b4d21cdd148b244adc6863cc685e8c4fed91381a5fd14a5e384534da63bb911704e736c9bf171f915752b44ce71ff90a447af5f645d416cefd0b64caf99
7
+ data.tar.gz: 1519824ff950da7aec4161cae95a47525c104500a43c3f7b900194dae0c100ebdf2aeacaf6fe026984563caadb4fbfcd64ded0a86dede3024aa5a3e221bf6c4a
@@ -3,6 +3,9 @@
3
3
  module OnlyofficeGithubHelper
4
4
  # Working with branches
5
5
  module Branches
6
+ # Get list of branches in repo
7
+ # @param [String] repo to check
8
+ # @return [Array<String>] list of branches
6
9
  def branches(repo)
7
10
  Octokit.branches(repo).map(&:name)
8
11
  end
@@ -3,17 +3,29 @@
3
3
  module OnlyofficeGithubHelper
4
4
  # Module for working with file list
5
5
  module FileList
6
+ # Get file list in repo
7
+ # @param [String] repo to check
8
+ # @param [String] refs to check
9
+ # @return [Array<String>] list of files
6
10
  def file_list(repo, refs: 'master')
7
11
  Octokit.tree(repo, refs, recursive: true).tree
8
12
  .reject { |elem| elem.type == 'tree' }
9
13
  .map(&:path)
10
14
  end
11
15
 
16
+ # Get file tree in repo
17
+ # @param [String] repo to check
18
+ # @param [String] refs to check
19
+ # @return [Hash] file tree
12
20
  def file_tree(repo, refs: 'master')
13
21
  list = file_list(repo, refs: refs)
14
22
  parse_tree(list)
15
23
  end
16
24
 
25
+ # Parse file tree
26
+ # @param [Array<String>] list of file with full path
27
+ # @param [String] path to root
28
+ # @return [Hash] result of parse
17
29
  def parse_tree(list, path: '')
18
30
  root_tree = { name: path }
19
31
  root_tree[:children] = []
@@ -3,6 +3,9 @@
3
3
  module OnlyofficeGithubHelper
4
4
  # Working with tags
5
5
  module Tags
6
+ # Get list of tags in repo
7
+ # @param [String] repo to check
8
+ # @return [Array<String>] list of tags
6
9
  def tags(repo)
7
10
  Octokit.tags(repo).map(&:name)
8
11
  end
@@ -31,8 +31,8 @@ module OnlyofficeGithubHelper
31
31
  def init_github_access(config)
32
32
  return if @user_name && @user_password
33
33
 
34
- @user_name = ENV['GITHUB_USER_NAME']
35
- @user_password = ENV['GITHUB_USER_PASSWORD']
34
+ @user_name = ENV.fetch('GITHUB_USER_NAME', 'unknown_user')
35
+ @user_password = ENV.fetch('GITHUB_USER_PASSWORD', 'unknown_password')
36
36
  return unless File.exist?(config)
37
37
 
38
38
  @config = YAML.load_file(config)
@@ -1,7 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Main namespace of gem
3
4
  module OnlyofficeGithubHelper
5
+ # Module to storing name of gem
4
6
  module Name
7
+ # @return [String] name of gem
5
8
  STRING = 'onlyoffice_github_helper'
6
9
  end
7
10
  end
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OnlyofficeGithubHelper
4
+ # Module to store version of gem
4
5
  module Version
5
- STRING = '0.1.0'
6
+ # @return [String] version of gem
7
+ STRING = '1.0.0'
6
8
  end
7
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlyoffice_github_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -9,36 +9,160 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-03-19 00:00:00.000000000 Z
12
+ date: 2022-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: octokit
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '4'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '6'
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
- - - "~>"
28
+ - - ">="
26
29
  - !ruby/object:Gem::Version
27
30
  version: '4'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '6'
34
+ - !ruby/object:Gem::Dependency
35
+ name: overcommit
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ type: :development
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
28
48
  - !ruby/object:Gem::Dependency
29
49
  name: rake
30
50
  requirement: !ruby/object:Gem::Requirement
31
51
  requirements:
32
52
  - - "~>"
33
53
  - !ruby/object:Gem::Version
34
- version: '13.0'
54
+ version: '13'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '13'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rspec
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3'
76
+ - !ruby/object:Gem::Dependency
77
+ name: rubocop
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1'
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1'
90
+ - !ruby/object:Gem::Dependency
91
+ name: rubocop-performance
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1'
97
+ type: :development
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1'
104
+ - !ruby/object:Gem::Dependency
105
+ name: rubocop-rake
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
35
111
  type: :development
36
112
  prerelease: false
37
113
  version_requirements: !ruby/object:Gem::Requirement
38
114
  requirements:
39
115
  - - "~>"
40
116
  - !ruby/object:Gem::Version
41
- version: '13.0'
117
+ version: '0'
118
+ - !ruby/object:Gem::Dependency
119
+ name: rubocop-rspec
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '2'
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '2'
132
+ - !ruby/object:Gem::Dependency
133
+ name: simplecov
134
+ requirement: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ type: :development
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ - !ruby/object:Gem::Dependency
147
+ name: yard
148
+ requirement: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: 0.9.20
156
+ type: :development
157
+ prerelease: false
158
+ version_requirements: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - "~>"
161
+ - !ruby/object:Gem::Version
162
+ version: '0'
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: 0.9.20
42
166
  description: Github Helper Gem for ONLYOFFICE QA
43
167
  email:
44
168
  - shockwavenn@gmail.com
@@ -53,15 +177,16 @@ files:
53
177
  - lib/onlyoffice_github_helper/github_client/tags.rb
54
178
  - lib/onlyoffice_github_helper/name.rb
55
179
  - lib/onlyoffice_github_helper/version.rb
56
- homepage: https://github.com/onlyoffice-testing-robot/onlyoffice_github_helper
180
+ homepage: https://github.com/ONLYOFFICE-QA/onlyoffice_github_helper
57
181
  licenses:
58
182
  - AGPL-3.0
59
183
  metadata:
60
- bug_tracker_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_github_helper/issues
61
- changelog_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_github_helper/blob/master/CHANGELOG.md
184
+ bug_tracker_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_github_helper/issues
185
+ changelog_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_github_helper/blob/master/CHANGELOG.md
62
186
  documentation_uri: https://www.rubydoc.info/gems/onlyoffice_github_helper
63
- homepage_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_github_helper
64
- source_code_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_github_helper
187
+ homepage_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_github_helper
188
+ source_code_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_github_helper
189
+ rubygems_mfa_required: 'true'
65
190
  post_install_message:
66
191
  rdoc_options: []
67
192
  require_paths:
@@ -70,14 +195,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
195
  requirements:
71
196
  - - ">="
72
197
  - !ruby/object:Gem::Version
73
- version: '2.3'
198
+ version: '2.7'
74
199
  required_rubygems_version: !ruby/object:Gem::Requirement
75
200
  requirements:
76
201
  - - ">="
77
202
  - !ruby/object:Gem::Version
78
203
  version: '0'
79
204
  requirements: []
80
- rubygems_version: 3.0.6
205
+ rubygems_version: 3.3.17
81
206
  signing_key:
82
207
  specification_version: 4
83
208
  summary: Github Helper Gem