onlyoffice_github_helper 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onlyoffice_github_helper/github_client/branches.rb +3 -0
- data/lib/onlyoffice_github_helper/github_client/file_list.rb +12 -0
- data/lib/onlyoffice_github_helper/github_client/tags.rb +3 -0
- data/lib/onlyoffice_github_helper/name.rb +3 -0
- data/lib/onlyoffice_github_helper/version.rb +3 -1
- metadata +129 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10deb0ac9c295b3a1d5b2b31fd82cfc0a14b7673f14eba19249e03528072e72e
|
4
|
+
data.tar.gz: 1360e99f584b3ea16128f60354cca15f1dcc685c64c3044949e20bf80ab872c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c2591f8a59f46dcd89011729e88fd8af1e9603b3d1c4df9935ab783976199aed112e8be29c0c8c2d595ba4cf5f3ceb4f7796f33fad612574c9bc5c15c163737
|
7
|
+
data.tar.gz: 5b75b2386151aea2188a69cd2fbea90fce333a8e7c63bbe93a920123b1617abe999ec2003b55ea25aac753a4d170a22e684aa0e3a9125942b40b8b5e65cc7930
|
@@ -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] = []
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ONLYOFFICE
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-01-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: octokit
|
@@ -25,20 +25,138 @@ dependencies:
|
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '4'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: overcommit
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: rake
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
31
45
|
requirements:
|
32
46
|
- - "~>"
|
33
47
|
- !ruby/object:Gem::Version
|
34
|
-
version: '13
|
48
|
+
version: '13'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '13'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rspec
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rubocop
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '1'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: rubocop-performance
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '1'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '1'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: rubocop-rake
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
35
105
|
type: :development
|
36
106
|
prerelease: false
|
37
107
|
version_requirements: !ruby/object:Gem::Requirement
|
38
108
|
requirements:
|
39
109
|
- - "~>"
|
40
110
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
111
|
+
version: '0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: rubocop-rspec
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - "~>"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '2'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '2'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: simplecov
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: yard
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - "~>"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 0.9.20
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - "~>"
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0'
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.9.20
|
42
160
|
description: Github Helper Gem for ONLYOFFICE QA
|
43
161
|
email:
|
44
162
|
- shockwavenn@gmail.com
|
@@ -53,15 +171,15 @@ files:
|
|
53
171
|
- lib/onlyoffice_github_helper/github_client/tags.rb
|
54
172
|
- lib/onlyoffice_github_helper/name.rb
|
55
173
|
- lib/onlyoffice_github_helper/version.rb
|
56
|
-
homepage: https://github.com/
|
174
|
+
homepage: https://github.com/ONLYOFFICE-QA/onlyoffice_github_helper
|
57
175
|
licenses:
|
58
176
|
- AGPL-3.0
|
59
177
|
metadata:
|
60
|
-
bug_tracker_uri: https://github.com/
|
61
|
-
changelog_uri: https://github.com/
|
178
|
+
bug_tracker_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_github_helper/issues
|
179
|
+
changelog_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_github_helper/blob/master/CHANGELOG.md
|
62
180
|
documentation_uri: https://www.rubydoc.info/gems/onlyoffice_github_helper
|
63
|
-
homepage_uri: https://github.com/
|
64
|
-
source_code_uri: https://github.com/
|
181
|
+
homepage_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_github_helper
|
182
|
+
source_code_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_github_helper
|
65
183
|
post_install_message:
|
66
184
|
rdoc_options: []
|
67
185
|
require_paths:
|
@@ -70,14 +188,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
70
188
|
requirements:
|
71
189
|
- - ">="
|
72
190
|
- !ruby/object:Gem::Version
|
73
|
-
version: '2.
|
191
|
+
version: '2.5'
|
74
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
193
|
requirements:
|
76
194
|
- - ">="
|
77
195
|
- !ruby/object:Gem::Version
|
78
196
|
version: '0'
|
79
197
|
requirements: []
|
80
|
-
rubygems_version: 3.
|
198
|
+
rubygems_version: 3.1.4
|
81
199
|
signing_key:
|
82
200
|
specification_version: 4
|
83
201
|
summary: Github Helper Gem
|