gitlab_mobile_review_app_builder 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c10ea40aac050a3b2ec6063a44fc455bd1fb1c1f733082e8d42d978112801fbc
4
+ data.tar.gz: 1656cf4a0f082301465c90c800e9a8834e2277e9ba6ae3187a925ae29cbbb883
5
+ SHA512:
6
+ metadata.gz: fc53527f1aa86c48ffe97ec1a2c102c80b441c93faaadb6dbba3f78535796edf7267154fcec066355c35ffaa2bb9515b55edf6af08ae44403aa2b05d3c9d205f
7
+ data.tar.gz: f42c9e72f6ab6b8c3098f138c9220402debcc82a05cc5c258ccc150c908a506fc7742247f98860f2563c876de792ef888652cc60b64ec2b723995463c447269d
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.gitlab-ci.yml ADDED
@@ -0,0 +1,9 @@
1
+ image: ruby:2.7.2
2
+
3
+ before_script:
4
+ - gem install bundler -v 2.2.22
5
+ - bundle install
6
+
7
+ example_job:
8
+ script:
9
+ - bundle exec rake
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.4
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2021-08-25
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at dfrey@gitlab.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in gitlab_mobile_review_app_builder.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.7"
data/Gemfile.lock ADDED
@@ -0,0 +1,269 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ gitlab_mobile_review_app_builder (0.1.0)
5
+ bundler (~> 2)
6
+ fastlane (~> 2)
7
+ http (~> 4)
8
+ thor
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ CFPropertyList (3.0.3)
14
+ addressable (2.8.0)
15
+ public_suffix (>= 2.0.2, < 5.0)
16
+ artifactory (3.0.15)
17
+ ast (2.4.2)
18
+ atomos (0.1.3)
19
+ aws-eventstream (1.1.1)
20
+ aws-partitions (1.491.0)
21
+ aws-sdk-core (3.119.1)
22
+ aws-eventstream (~> 1, >= 1.0.2)
23
+ aws-partitions (~> 1, >= 1.239.0)
24
+ aws-sigv4 (~> 1.1)
25
+ jmespath (~> 1.0)
26
+ aws-sdk-kms (1.46.0)
27
+ aws-sdk-core (~> 3, >= 3.119.0)
28
+ aws-sigv4 (~> 1.1)
29
+ aws-sdk-s3 (1.99.0)
30
+ aws-sdk-core (~> 3, >= 3.119.0)
31
+ aws-sdk-kms (~> 1)
32
+ aws-sigv4 (~> 1.1)
33
+ aws-sigv4 (1.2.4)
34
+ aws-eventstream (~> 1, >= 1.0.2)
35
+ babosa (1.0.4)
36
+ claide (1.0.3)
37
+ colored (1.2)
38
+ colored2 (3.1.2)
39
+ commander (4.6.0)
40
+ highline (~> 2.0.0)
41
+ declarative (0.0.20)
42
+ diff-lcs (1.4.4)
43
+ digest-crc (0.6.4)
44
+ rake (>= 12.0.0, < 14.0.0)
45
+ domain_name (0.5.20190701)
46
+ unf (>= 0.0.5, < 1.0.0)
47
+ dotenv (2.7.6)
48
+ emoji_regex (3.2.2)
49
+ excon (0.85.0)
50
+ faraday (1.7.0)
51
+ faraday-em_http (~> 1.0)
52
+ faraday-em_synchrony (~> 1.0)
53
+ faraday-excon (~> 1.1)
54
+ faraday-httpclient (~> 1.0.1)
55
+ faraday-net_http (~> 1.0)
56
+ faraday-net_http_persistent (~> 1.1)
57
+ faraday-patron (~> 1.0)
58
+ faraday-rack (~> 1.0)
59
+ multipart-post (>= 1.2, < 3)
60
+ ruby2_keywords (>= 0.0.4)
61
+ faraday-cookie_jar (0.0.7)
62
+ faraday (>= 0.8.0)
63
+ http-cookie (~> 1.0.0)
64
+ faraday-em_http (1.0.0)
65
+ faraday-em_synchrony (1.0.0)
66
+ faraday-excon (1.1.0)
67
+ faraday-httpclient (1.0.1)
68
+ faraday-net_http (1.0.1)
69
+ faraday-net_http_persistent (1.2.0)
70
+ faraday-patron (1.0.0)
71
+ faraday-rack (1.0.0)
72
+ faraday_middleware (1.1.0)
73
+ faraday (~> 1.0)
74
+ fastimage (2.2.5)
75
+ fastlane (2.192.0)
76
+ CFPropertyList (>= 2.3, < 4.0.0)
77
+ addressable (>= 2.8, < 3.0.0)
78
+ artifactory (~> 3.0)
79
+ aws-sdk-s3 (~> 1.0)
80
+ babosa (>= 1.0.3, < 2.0.0)
81
+ bundler (>= 1.12.0, < 3.0.0)
82
+ colored
83
+ commander (~> 4.6)
84
+ dotenv (>= 2.1.1, < 3.0.0)
85
+ emoji_regex (>= 0.1, < 4.0)
86
+ excon (>= 0.71.0, < 1.0.0)
87
+ faraday (~> 1.0)
88
+ faraday-cookie_jar (~> 0.0.6)
89
+ faraday_middleware (~> 1.0)
90
+ fastimage (>= 2.1.0, < 3.0.0)
91
+ gh_inspector (>= 1.1.2, < 2.0.0)
92
+ google-apis-androidpublisher_v3 (~> 0.3)
93
+ google-apis-playcustomapp_v1 (~> 0.1)
94
+ google-cloud-storage (~> 1.31)
95
+ highline (~> 2.0)
96
+ json (< 3.0.0)
97
+ jwt (>= 2.1.0, < 3)
98
+ mini_magick (>= 4.9.4, < 5.0.0)
99
+ multipart-post (~> 2.0.0)
100
+ naturally (~> 2.2)
101
+ optparse (~> 0.1.1)
102
+ plist (>= 3.1.0, < 4.0.0)
103
+ rubyzip (>= 2.0.0, < 3.0.0)
104
+ security (= 0.1.3)
105
+ simctl (~> 1.6.3)
106
+ terminal-notifier (>= 2.0.0, < 3.0.0)
107
+ terminal-table (>= 1.4.5, < 2.0.0)
108
+ tty-screen (>= 0.6.3, < 1.0.0)
109
+ tty-spinner (>= 0.8.0, < 1.0.0)
110
+ word_wrap (~> 1.0.0)
111
+ xcodeproj (>= 1.13.0, < 2.0.0)
112
+ xcpretty (~> 0.3.0)
113
+ xcpretty-travis-formatter (>= 0.0.3)
114
+ ffi (1.15.3)
115
+ ffi-compiler (1.0.1)
116
+ ffi (>= 1.0.0)
117
+ rake
118
+ gh_inspector (1.1.3)
119
+ google-apis-androidpublisher_v3 (0.10.0)
120
+ google-apis-core (>= 0.4, < 2.a)
121
+ google-apis-core (0.4.1)
122
+ addressable (~> 2.5, >= 2.5.1)
123
+ googleauth (>= 0.16.2, < 2.a)
124
+ httpclient (>= 2.8.1, < 3.a)
125
+ mini_mime (~> 1.0)
126
+ representable (~> 3.0)
127
+ retriable (>= 2.0, < 4.a)
128
+ rexml
129
+ webrick
130
+ google-apis-iamcredentials_v1 (0.7.0)
131
+ google-apis-core (>= 0.4, < 2.a)
132
+ google-apis-playcustomapp_v1 (0.5.0)
133
+ google-apis-core (>= 0.4, < 2.a)
134
+ google-apis-storage_v1 (0.6.0)
135
+ google-apis-core (>= 0.4, < 2.a)
136
+ google-cloud-core (1.6.0)
137
+ google-cloud-env (~> 1.0)
138
+ google-cloud-errors (~> 1.0)
139
+ google-cloud-env (1.5.0)
140
+ faraday (>= 0.17.3, < 2.0)
141
+ google-cloud-errors (1.1.0)
142
+ google-cloud-storage (1.34.1)
143
+ addressable (~> 2.5)
144
+ digest-crc (~> 0.4)
145
+ google-apis-iamcredentials_v1 (~> 0.1)
146
+ google-apis-storage_v1 (~> 0.1)
147
+ google-cloud-core (~> 1.6)
148
+ googleauth (>= 0.16.2, < 2.a)
149
+ mini_mime (~> 1.0)
150
+ googleauth (0.17.0)
151
+ faraday (>= 0.17.3, < 2.0)
152
+ jwt (>= 1.4, < 3.0)
153
+ memoist (~> 0.16)
154
+ multi_json (~> 1.11)
155
+ os (>= 0.9, < 2.0)
156
+ signet (~> 0.14)
157
+ highline (2.0.3)
158
+ http (4.4.1)
159
+ addressable (~> 2.3)
160
+ http-cookie (~> 1.0)
161
+ http-form_data (~> 2.2)
162
+ http-parser (~> 1.2.0)
163
+ http-cookie (1.0.4)
164
+ domain_name (~> 0.5)
165
+ http-form_data (2.3.0)
166
+ http-parser (1.2.3)
167
+ ffi-compiler (>= 1.0, < 2.0)
168
+ httpclient (2.8.3)
169
+ jmespath (1.4.0)
170
+ json (2.5.1)
171
+ jwt (2.2.3)
172
+ memoist (0.16.2)
173
+ mini_magick (4.11.0)
174
+ mini_mime (1.1.1)
175
+ multi_json (1.15.0)
176
+ multipart-post (2.0.0)
177
+ nanaimo (0.3.0)
178
+ naturally (2.2.1)
179
+ optparse (0.1.1)
180
+ os (1.1.1)
181
+ parallel (1.20.1)
182
+ parser (3.0.2.0)
183
+ ast (~> 2.4.1)
184
+ plist (3.6.0)
185
+ public_suffix (4.0.6)
186
+ rainbow (3.0.0)
187
+ rake (13.0.6)
188
+ regexp_parser (2.1.1)
189
+ representable (3.1.1)
190
+ declarative (< 0.1.0)
191
+ trailblazer-option (>= 0.1.1, < 0.2.0)
192
+ uber (< 0.2.0)
193
+ retriable (3.1.2)
194
+ rexml (3.2.5)
195
+ rouge (2.0.7)
196
+ rspec (3.10.0)
197
+ rspec-core (~> 3.10.0)
198
+ rspec-expectations (~> 3.10.0)
199
+ rspec-mocks (~> 3.10.0)
200
+ rspec-core (3.10.1)
201
+ rspec-support (~> 3.10.0)
202
+ rspec-expectations (3.10.1)
203
+ diff-lcs (>= 1.2.0, < 2.0)
204
+ rspec-support (~> 3.10.0)
205
+ rspec-mocks (3.10.2)
206
+ diff-lcs (>= 1.2.0, < 2.0)
207
+ rspec-support (~> 3.10.0)
208
+ rspec-support (3.10.2)
209
+ rubocop (1.19.0)
210
+ parallel (~> 1.10)
211
+ parser (>= 3.0.0.0)
212
+ rainbow (>= 2.2.2, < 4.0)
213
+ regexp_parser (>= 1.8, < 3.0)
214
+ rexml
215
+ rubocop-ast (>= 1.9.1, < 2.0)
216
+ ruby-progressbar (~> 1.7)
217
+ unicode-display_width (>= 1.4.0, < 3.0)
218
+ rubocop-ast (1.10.0)
219
+ parser (>= 3.0.1.1)
220
+ ruby-progressbar (1.11.0)
221
+ ruby2_keywords (0.0.5)
222
+ rubyzip (2.3.2)
223
+ security (0.1.3)
224
+ signet (0.15.0)
225
+ addressable (~> 2.3)
226
+ faraday (>= 0.17.3, < 2.0)
227
+ jwt (>= 1.5, < 3.0)
228
+ multi_json (~> 1.10)
229
+ simctl (1.6.8)
230
+ CFPropertyList
231
+ naturally
232
+ terminal-notifier (2.0.0)
233
+ terminal-table (1.6.0)
234
+ thor (1.1.0)
235
+ trailblazer-option (0.1.1)
236
+ tty-cursor (0.7.1)
237
+ tty-screen (0.8.1)
238
+ tty-spinner (0.9.3)
239
+ tty-cursor (~> 0.7)
240
+ uber (0.1.0)
241
+ unf (0.1.4)
242
+ unf_ext
243
+ unf_ext (0.0.7.7)
244
+ unicode-display_width (2.0.0)
245
+ webrick (1.7.0)
246
+ word_wrap (1.0.0)
247
+ xcodeproj (1.21.0)
248
+ CFPropertyList (>= 2.3.3, < 4.0)
249
+ atomos (~> 0.1.3)
250
+ claide (>= 1.0.2, < 2.0)
251
+ colored2 (~> 3.1)
252
+ nanaimo (~> 0.3.0)
253
+ rexml (~> 3.2.4)
254
+ xcpretty (0.3.0)
255
+ rouge (~> 2.0.7)
256
+ xcpretty-travis-formatter (1.0.1)
257
+ xcpretty (~> 0.2, >= 0.0.7)
258
+
259
+ PLATFORMS
260
+ x86_64-darwin-20
261
+
262
+ DEPENDENCIES
263
+ gitlab_mobile_review_app_builder!
264
+ rake (~> 13.0)
265
+ rspec (~> 3.0)
266
+ rubocop (~> 1.7)
267
+
268
+ BUNDLED WITH
269
+ 2.2.22
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Darby Frey
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # GitlabMobileReviewAppBuilder
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/gitlab_mobile_review_app_builder`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'gitlab_mobile_review_app_builder'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install gitlab_mobile_review_app_builder
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/gitlab_mobile_review_app_builder. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/gitlab_mobile_review_app_builder/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the GitlabMobileReviewAppBuilder project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/gitlab_mobile_review_app_builder/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "gitlab_mobile_review_app_builder"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/exe/mobile_review ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require 'gitlab_mobile_review_app_builder'
3
+
4
+ GitlabMobileReviewAppBuilder::CLI.start(ARGV)
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/gitlab_mobile_review_app_builder/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "gitlab_mobile_review_app_builder"
7
+ spec.version = GitlabMobileReviewAppBuilder::VERSION
8
+ spec.authors = ["Darby Frey"]
9
+ spec.email = ["dfrey@gitlab.com"]
10
+
11
+ spec.summary = "Some code to support mobile review apps in GitLab"
12
+ spec.homepage = "https://gitlab.com/gitlab-org/incubation-engineering/devops-for-mobile-apps/gitlab_mobile_review_app_builder"
13
+ spec.license = "MIT"
14
+ spec.required_ruby_version = ">= 2.4.0"
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = "https://gitlab.com/gitlab-org/incubation-engineering/devops-for-mobile-apps/gitlab_mobile_review_app_builder"
18
+ spec.metadata["changelog_uri"] = "https://gitlab.com/gitlab-org/incubation-engineering/devops-for-mobile-apps/gitlab_mobile_review_app_builder/CHANGELOG.md"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
23
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
24
+ end
25
+ spec.bindir = "exe"
26
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
27
+ spec.require_paths = ["lib"]
28
+
29
+ # Uncomment to register a new dependency of your gem
30
+ # spec.add_dependency "example-gem", "~> 1.0"
31
+ spec.add_dependency "bundler", "~> 2"
32
+ spec.add_dependency "fastlane", "~> 2"
33
+ spec.add_dependency "http", "~> 4"
34
+ spec.add_dependency "thor"
35
+
36
+ # For more information and examples about making a new gem, checkout our
37
+ # guide at: https://bundler.io/guides/creating_gem.html
38
+ end
@@ -0,0 +1,19 @@
1
+ require 'thor'
2
+ module GitlabMobileReviewAppBuilder
3
+ class CLI < Thor
4
+ desc "deploy", "Deploy an APK to appetize"
5
+ option :token
6
+ option :path
7
+ def deploy
8
+ GitlabMobileReviewAppBuilder::Android.deploy_to_appetize!(options)
9
+ end
10
+
11
+ desc "destroy", "Destroy an appetize app"
12
+ option :token
13
+ option :public_key
14
+ def destroy
15
+ GitlabMobileReviewAppBuilder::Android.delete_from_appetize!(options)
16
+ end
17
+ end
18
+ end
19
+
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GitlabMobileReviewAppBuilder
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "gitlab_mobile_review_app_builder/version"
4
+ require_relative "gitlab_mobile_review_app_builder/cli"
5
+ require 'fastlane'
6
+ require 'fastlane/actions/appetize'
7
+ require 'http'
8
+
9
+ module GitlabMobileReviewAppBuilder
10
+ class Error < StandardError; end
11
+
12
+ class Android
13
+ def self.deploy_to_appetize!(options)
14
+ token = options[:token] || ENV['APPETIZE_API_TOKEN']
15
+ path = options[:path] || 'app/build/outputs/apk/debug/app-debug.apk'
16
+ api_host = options[:api_host] || 'api.appetize.io'
17
+
18
+ Fastlane::Actions::AppetizeAction.run(
19
+ path: path,
20
+ api_token: token,
21
+ platform: 'android',
22
+ api_host: api_host
23
+ )
24
+
25
+ public_key = Fastlane::Actions.lane_context[Fastlane::Actions::SharedValues::APPETIZE_PUBLIC_KEY]
26
+
27
+ File.write('./review.env', public_key)
28
+ end
29
+
30
+ def self.delete_from_appetize!(options)
31
+ token = options[:token] || ENV['APPETIZE_API_TOKEN']
32
+ api_host = options[:api_host] || 'api.appetize.io'
33
+
34
+ response = HTTP.basic_auth(user: token, pass: '').delete("https://#{api_host}/v1/apps/#{options[:public_key]}")
35
+
36
+ raise "Delete failed: #{response.status}" if response.status != 200
37
+ end
38
+ end
39
+ end
metadata ADDED
@@ -0,0 +1,121 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gitlab_mobile_review_app_builder
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Darby Frey
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-08-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: fastlane
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: http
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '4'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '4'
55
+ - !ruby/object:Gem::Dependency
56
+ name: thor
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description:
70
+ email:
71
+ - dfrey@gitlab.com
72
+ executables:
73
+ - mobile_review
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - ".gitlab-ci.yml"
79
+ - ".rspec"
80
+ - ".rubocop.yml"
81
+ - CHANGELOG.md
82
+ - CODE_OF_CONDUCT.md
83
+ - Gemfile
84
+ - Gemfile.lock
85
+ - LICENSE.txt
86
+ - README.md
87
+ - Rakefile
88
+ - bin/console
89
+ - bin/setup
90
+ - exe/mobile_review
91
+ - gitlab_mobile_review_app_builder.gemspec
92
+ - lib/gitlab_mobile_review_app_builder.rb
93
+ - lib/gitlab_mobile_review_app_builder/cli.rb
94
+ - lib/gitlab_mobile_review_app_builder/version.rb
95
+ homepage: https://gitlab.com/gitlab-org/incubation-engineering/devops-for-mobile-apps/gitlab_mobile_review_app_builder
96
+ licenses:
97
+ - MIT
98
+ metadata:
99
+ homepage_uri: https://gitlab.com/gitlab-org/incubation-engineering/devops-for-mobile-apps/gitlab_mobile_review_app_builder
100
+ source_code_uri: https://gitlab.com/gitlab-org/incubation-engineering/devops-for-mobile-apps/gitlab_mobile_review_app_builder
101
+ changelog_uri: https://gitlab.com/gitlab-org/incubation-engineering/devops-for-mobile-apps/gitlab_mobile_review_app_builder/CHANGELOG.md
102
+ post_install_message:
103
+ rdoc_options: []
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 2.4.0
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ requirements: []
117
+ rubygems_version: 3.2.26
118
+ signing_key:
119
+ specification_version: 4
120
+ summary: Some code to support mobile review apps in GitLab
121
+ test_files: []