deploygate 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/pull_request.yml +113 -3
- data/.github/workflows/release.yml +2 -2
- data/.gitignore +6 -0
- data/Gemfile +4 -0
- data/README.md +4 -2
- data/bin/dg +5 -1
- data/deploygate.gemspec +6 -3
- data/lib/deploygate/api/v1/base.rb +1 -1
- data/lib/deploygate/commands/deploy/push.rb +0 -1
- data/lib/deploygate/version.rb +1 -1
- data/lib/deploygate.rb +1 -0
- data/spec/deploygate/api/v1/session_spec.rb +2 -2
- data/spec/fixtures/sample.aab +0 -0
- data/spec/fixtures/sample.apk +0 -0
- data/spec/fixtures/sample.ipa +0 -0
- metadata +28 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11726b800c7915d5d3ba0eca9224de67753a03b854b5be1556d58234003aad1f
|
4
|
+
data.tar.gz: 269d497271f81487e7978c8d134a4245aa93023dad0c549d5d15f404f9735029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f8cfd98f879f34d7d8bab4c0b0d42c633567bebb305a2b7c0584671ff4707982b59bf28864ae435e58f3b625590c5005424a286341fe90986b01d90d739de61
|
7
|
+
data.tar.gz: 8cc04c3544240f96e702d8ee5bcc266ffa5f01191be40b24ce3c5b9c220d1845dc61c81fa65739e62548a0f3ea685e17c46269e49b8171e7e44c99760669aa7a
|
@@ -2,21 +2,131 @@ name: Run jobs on every PR
|
|
2
2
|
|
3
3
|
on:
|
4
4
|
pull_request:
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- master
|
8
|
+
schedule:
|
9
|
+
- cron: "0 1 * * *" # everyday at 10am JST
|
5
10
|
|
6
11
|
jobs:
|
7
|
-
build:
|
12
|
+
build-ruby2:
|
8
13
|
strategy:
|
14
|
+
fail-fast: false
|
9
15
|
matrix:
|
10
16
|
ruby_version:
|
11
17
|
- 2.6
|
12
18
|
- 2.7
|
13
|
-
# - 3.0 # needs to upgrade fastlane and activesupport else
|
14
19
|
runs-on: ubuntu-latest
|
15
20
|
steps:
|
16
|
-
- uses: actions/checkout@
|
21
|
+
- uses: actions/checkout@v4
|
22
|
+
- uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
ruby-version: ${{ matrix.ruby_version }}
|
25
|
+
bundler-cache: true
|
26
|
+
- run: gem update --system 3.4.22 # The latest of Ruby 2.x support
|
27
|
+
- run: bundle exec rake
|
28
|
+
|
29
|
+
build-ruby3:
|
30
|
+
strategy:
|
31
|
+
fail-fast: false
|
32
|
+
matrix:
|
33
|
+
ruby_version:
|
34
|
+
- 3.0
|
35
|
+
- 3.1
|
36
|
+
- 3.2
|
37
|
+
- 3.3
|
38
|
+
runs-on: ubuntu-latest
|
39
|
+
steps:
|
40
|
+
- uses: actions/checkout@v4
|
17
41
|
- uses: ruby/setup-ruby@v1
|
18
42
|
with:
|
19
43
|
ruby-version: ${{ matrix.ruby_version }}
|
20
44
|
bundler-cache: true
|
21
45
|
- run: gem update --system
|
22
46
|
- run: bundle exec rake
|
47
|
+
|
48
|
+
instrument-ruby2:
|
49
|
+
strategy:
|
50
|
+
fail-fast: false
|
51
|
+
matrix:
|
52
|
+
ruby_version:
|
53
|
+
- 2.6
|
54
|
+
- 2.7
|
55
|
+
services:
|
56
|
+
app:
|
57
|
+
image: ghcr.io/deploygate/deploygate-mock-server:main
|
58
|
+
ports:
|
59
|
+
- 3000/tcp
|
60
|
+
options: >-
|
61
|
+
--health-cmd "curl -fI http://localhost:3000"
|
62
|
+
--health-interval 15s
|
63
|
+
--health-timeout 5s
|
64
|
+
--health-retries 5
|
65
|
+
--health-start-period 20s
|
66
|
+
runs-on: ubuntu-latest
|
67
|
+
steps:
|
68
|
+
- uses: actions/checkout@v4
|
69
|
+
- uses: ruby/setup-ruby@v1
|
70
|
+
with:
|
71
|
+
ruby-version: ${{ matrix.ruby_version }}
|
72
|
+
bundler-cache: true
|
73
|
+
- run: gem update --system 3.4.22 # The latest of Ruby 2.x support
|
74
|
+
- run: ./bin/dg deploy spec/fixtures/sample.apk
|
75
|
+
env:
|
76
|
+
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
|
77
|
+
DG_USER_NAME: 'owner_test'
|
78
|
+
DG_TOKEN: 'owner_test'
|
79
|
+
- run: ./bin/dg deploy spec/fixtures/sample.aab
|
80
|
+
env:
|
81
|
+
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
|
82
|
+
DG_USER_NAME: 'owner_test'
|
83
|
+
DG_TOKEN: 'owner_test'
|
84
|
+
- run: ./bin/dg deploy spec/fixtures/sample.ipa
|
85
|
+
env:
|
86
|
+
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
|
87
|
+
DG_USER_NAME: 'owner_test'
|
88
|
+
DG_TOKEN: 'owner_test'
|
89
|
+
|
90
|
+
instrument-ruby3:
|
91
|
+
strategy:
|
92
|
+
fail-fast: false
|
93
|
+
matrix:
|
94
|
+
ruby_version:
|
95
|
+
- 3.0
|
96
|
+
- 3.1
|
97
|
+
- 3.2
|
98
|
+
- 3.3
|
99
|
+
services:
|
100
|
+
app:
|
101
|
+
image: ghcr.io/deploygate/deploygate-mock-server:main
|
102
|
+
ports:
|
103
|
+
- 3000/tcp
|
104
|
+
options: >-
|
105
|
+
--health-cmd "curl -fI http://localhost:3000"
|
106
|
+
--health-interval 15s
|
107
|
+
--health-timeout 5s
|
108
|
+
--health-retries 5
|
109
|
+
--health-start-period 20s
|
110
|
+
runs-on: ubuntu-latest
|
111
|
+
steps:
|
112
|
+
- uses: actions/checkout@v4
|
113
|
+
- uses: ruby/setup-ruby@v1
|
114
|
+
with:
|
115
|
+
ruby-version: ${{ matrix.ruby_version }}
|
116
|
+
bundler-cache: true
|
117
|
+
- run: gem update --system
|
118
|
+
- run: ./bin/dg deploy spec/fixtures/sample.apk
|
119
|
+
env:
|
120
|
+
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
|
121
|
+
DG_USER_NAME: 'owner_test'
|
122
|
+
DG_TOKEN: 'owner_test'
|
123
|
+
- run: ./bin/dg deploy spec/fixtures/sample.aab
|
124
|
+
env:
|
125
|
+
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
|
126
|
+
DG_USER_NAME: 'owner_test'
|
127
|
+
DG_TOKEN: 'owner_test'
|
128
|
+
- run: ./bin/dg deploy spec/fixtures/sample.ipa
|
129
|
+
env:
|
130
|
+
DG_DEVELOP_URL: http://localhost:${{ job.services.app.ports[3000] }}
|
131
|
+
DG_USER_NAME: 'owner_test'
|
132
|
+
DG_TOKEN: 'owner_test'
|
@@ -9,11 +9,11 @@ jobs:
|
|
9
9
|
release:
|
10
10
|
runs-on: ubuntu-latest
|
11
11
|
steps:
|
12
|
-
- uses: actions/checkout@
|
12
|
+
- uses: actions/checkout@v4
|
13
13
|
- uses: ruby/setup-ruby@v1
|
14
14
|
with:
|
15
15
|
bundler-cache: true
|
16
|
-
- run: gem update --system
|
16
|
+
- run: gem update --system 3.4.22 # The latest of Ruby 2.x support
|
17
17
|
- run: bundle exec rake build
|
18
18
|
- id: gem
|
19
19
|
run: echo "result=$(find pkg -name 'deploygate-*.gem' -type f | head -1)" >> $GITHUB_OUTPUT
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -7,8 +7,6 @@ dg: A command-line interface for DeployGate
|
|
7
7
|
|
8
8
|
## Requirements
|
9
9
|
|
10
|
-
*dg* runs with a minimal set of requirements.
|
11
|
-
|
12
10
|
- Ruby 2.6+ (Depends on [Ruby Maintenance Branches](https://www.ruby-lang.org/en/downloads/branches/))
|
13
11
|
|
14
12
|
## Installation
|
@@ -17,6 +15,9 @@ Add this line to your application's Gemfile:
|
|
17
15
|
|
18
16
|
```
|
19
17
|
gem 'deploygate'
|
18
|
+
|
19
|
+
# Only when you are using Ruby 2.x
|
20
|
+
gem 'multi_xml' '~> 0.6.0'
|
20
21
|
```
|
21
22
|
|
22
23
|
And then execute:
|
@@ -28,6 +29,7 @@ $ bundle
|
|
28
29
|
Or install it yourself as:
|
29
30
|
|
30
31
|
```
|
32
|
+
$ gem install 'multi_xml' -v '~> 0.6.0' # Run this only when you are using Ruby 2.x
|
31
33
|
$ gem install deploygate
|
32
34
|
```
|
33
35
|
|
data/bin/dg
CHANGED
data/deploygate.gemspec
CHANGED
@@ -20,6 +20,8 @@ dg installed! To get started fast:
|
|
20
20
|
|
21
21
|
POST_INSTALL_MESSAGE
|
22
22
|
|
23
|
+
spec.required_ruby_version = '>= 2.6'
|
24
|
+
|
23
25
|
spec.add_runtime_dependency 'json', '~> 2.0'
|
24
26
|
spec.add_runtime_dependency 'httpclient', '~> 2.8'
|
25
27
|
spec.add_runtime_dependency 'commander', '~> 4.4'
|
@@ -28,14 +30,15 @@ POST_INSTALL_MESSAGE
|
|
28
30
|
spec.add_runtime_dependency 'highline', '~> 2.0'
|
29
31
|
spec.add_runtime_dependency 'uuid', '~> 2.3'
|
30
32
|
spec.add_runtime_dependency 'gem_update_checker', '~> 0.2'
|
31
|
-
spec.add_runtime_dependency 'activesupport', '~>
|
32
|
-
spec.add_runtime_dependency 'i18n', '~> 0.7'
|
33
|
+
spec.add_runtime_dependency 'activesupport', '~> 6.1'
|
33
34
|
spec.add_runtime_dependency 'launchy', '~> 2.4'
|
34
35
|
spec.add_runtime_dependency 'locale', '~> 2.1'
|
35
36
|
spec.add_runtime_dependency 'net-ping', '~> 2.0'
|
36
37
|
spec.add_runtime_dependency 'socket.io-client-simple', '~> 1.2'
|
37
38
|
spec.add_runtime_dependency 'workers', '~> 0.6'
|
38
39
|
spec.add_runtime_dependency 'sentry-ruby', '~> 5.8'
|
40
|
+
# Webrick has been removed from bundled gems since Ruby 3
|
41
|
+
spec.add_runtime_dependency 'webrick', '~> 1.8'
|
39
42
|
|
40
43
|
# ios build
|
41
44
|
spec.add_runtime_dependency 'fastlane', '~> 2.212.1'
|
@@ -44,7 +47,7 @@ POST_INSTALL_MESSAGE
|
|
44
47
|
spec.add_development_dependency 'rake', '~> 12.0'
|
45
48
|
spec.add_development_dependency 'rspec', '~> 3.5'
|
46
49
|
spec.add_development_dependency 'webmock', '~> 2.3'
|
47
|
-
spec.add_development_dependency 'i18n-tasks', '~> 0
|
50
|
+
spec.add_development_dependency 'i18n-tasks', '~> 1.0'
|
48
51
|
|
49
52
|
spec.files = `git ls-files`.split($/)
|
50
53
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
data/lib/deploygate/version.rb
CHANGED
data/lib/deploygate.rb
CHANGED
@@ -9,7 +9,7 @@ describe DeployGate::API::V1::Session do
|
|
9
9
|
:results => {'name' => name}
|
10
10
|
}
|
11
11
|
stub_request(:get, "#{API_ENDPOINT}/sessions/user").
|
12
|
-
with(:headers => { 'AUTHORIZATION' => token }).
|
12
|
+
with(:headers => { 'AUTHORIZATION' => "token #{token}" }).
|
13
13
|
to_return(:body => response.to_json)
|
14
14
|
|
15
15
|
|
@@ -24,7 +24,7 @@ describe DeployGate::API::V1::Session do
|
|
24
24
|
:because => 'error message'
|
25
25
|
}
|
26
26
|
stub_request(:get, "#{API_ENDPOINT}/sessions/user").
|
27
|
-
with(:headers => { 'AUTHORIZATION' => token }).
|
27
|
+
with(:headers => { 'AUTHORIZATION' => "token #{token}" }).
|
28
28
|
to_return(:body => response.to_json)
|
29
29
|
|
30
30
|
results = DeployGate::API::V1::Session.show(token)
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploygate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- deploygate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -128,28 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '6.1'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: i18n
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0.7'
|
146
|
-
type: :runtime
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0.7'
|
138
|
+
version: '6.1'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: launchy
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,6 +220,20 @@ dependencies:
|
|
234
220
|
- - "~>"
|
235
221
|
- !ruby/object:Gem::Version
|
236
222
|
version: '5.8'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: webrick
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '1.8'
|
230
|
+
type: :runtime
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '1.8'
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
238
|
name: fastlane
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -316,14 +316,14 @@ dependencies:
|
|
316
316
|
requirements:
|
317
317
|
- - "~>"
|
318
318
|
- !ruby/object:Gem::Version
|
319
|
-
version: '0
|
319
|
+
version: '1.0'
|
320
320
|
type: :development
|
321
321
|
prerelease: false
|
322
322
|
version_requirements: !ruby/object:Gem::Requirement
|
323
323
|
requirements:
|
324
324
|
- - "~>"
|
325
325
|
- !ruby/object:Gem::Version
|
326
|
-
version: '0
|
326
|
+
version: '1.0'
|
327
327
|
description: You can control to DeployGate in your terminal
|
328
328
|
email:
|
329
329
|
- contact@deploygate.com
|
@@ -399,6 +399,9 @@ files:
|
|
399
399
|
- spec/deploygate/xcode/member_center_spec.rb
|
400
400
|
- spec/deploygate/xcode/member_centers/app_spec.rb
|
401
401
|
- spec/deploygate/xcode/member_centers/provisioning_profile_spec.rb
|
402
|
+
- spec/fixtures/sample.aab
|
403
|
+
- spec/fixtures/sample.apk
|
404
|
+
- spec/fixtures/sample.ipa
|
402
405
|
- spec/spec_helper.rb
|
403
406
|
- spec/test_files/DeployGateSample.apk
|
404
407
|
homepage: https://deploygate.com
|
@@ -418,14 +421,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
418
421
|
requirements:
|
419
422
|
- - ">="
|
420
423
|
- !ruby/object:Gem::Version
|
421
|
-
version: '
|
424
|
+
version: '2.6'
|
422
425
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
423
426
|
requirements:
|
424
427
|
- - ">="
|
425
428
|
- !ruby/object:Gem::Version
|
426
429
|
version: '0'
|
427
430
|
requirements: []
|
428
|
-
rubygems_version: 3.4.
|
431
|
+
rubygems_version: 3.4.22
|
429
432
|
signing_key:
|
430
433
|
specification_version: 4
|
431
434
|
summary: A command-line interface for DeployGate
|
@@ -447,5 +450,8 @@ test_files:
|
|
447
450
|
- spec/deploygate/xcode/member_center_spec.rb
|
448
451
|
- spec/deploygate/xcode/member_centers/app_spec.rb
|
449
452
|
- spec/deploygate/xcode/member_centers/provisioning_profile_spec.rb
|
453
|
+
- spec/fixtures/sample.aab
|
454
|
+
- spec/fixtures/sample.apk
|
455
|
+
- spec/fixtures/sample.ipa
|
450
456
|
- spec/spec_helper.rb
|
451
457
|
- spec/test_files/DeployGateSample.apk
|