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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69104514397d227461c55f60e116f80022e6f18da032cdd3315851d335884081
4
- data.tar.gz: edcc18d26203630f4e26ce6cfcf1a947adb166d37d68f55972a3fd188245b822
3
+ metadata.gz: 10deb0ac9c295b3a1d5b2b31fd82cfc0a14b7673f14eba19249e03528072e72e
4
+ data.tar.gz: 1360e99f584b3ea16128f60354cca15f1dcc685c64c3044949e20bf80ab872c8
5
5
  SHA512:
6
- metadata.gz: 3922159664e71e9de8678283e2f1c585cb907283182d91b9caea3ec3353ffbf8f63ff800ce406e886867b94e2b68f4310a596f577b03559bd00309ce8cb5d6bd
7
- data.tar.gz: 4bb4a3837f53d77c001e30537cf5e8a297c600ce23a50086da645c5c0a210a37c28639e0ccaab5c74931e357ffbc4c83cd2ca7c1d73fc723c40d67b04e34798a
6
+ metadata.gz: 8c2591f8a59f46dcd89011729e88fd8af1e9603b3d1c4df9935ab783976199aed112e8be29c0c8c2d595ba4cf5f3ceb4f7796f33fad612574c9bc5c15c163737
7
+ data.tar.gz: 5b75b2386151aea2188a69cd2fbea90fce333a8e7c63bbe93a920123b1617abe999ec2003b55ea25aac753a4d170a22e684aa0e3a9125942b40b8b5e65cc7930
@@ -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
@@ -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.1'
6
+ # @return [String] version of gem
7
+ STRING = '0.2.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.1
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: 2020-03-19 00:00:00.000000000 Z
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.0'
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: '13.0'
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/onlyoffice-testing-robot/onlyoffice_github_helper
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/onlyoffice-testing-robot/onlyoffice_github_helper/issues
61
- changelog_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_github_helper/blob/master/CHANGELOG.md
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/onlyoffice-testing-robot/onlyoffice_github_helper
64
- source_code_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_github_helper
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.3'
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.0.6
198
+ rubygems_version: 3.1.4
81
199
  signing_key:
82
200
  specification_version: 4
83
201
  summary: Github Helper Gem