deploygate 0.9.1 → 0.10.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: adf14ae1f32fecc9f1ea43039f92b32666c3a1eac168c4fa0ff34e05f1b97076
4
- data.tar.gz: e1659f8923152038701e75382bf2aa1547cadea45bf6d276507d3a644a521498
3
+ metadata.gz: 11726b800c7915d5d3ba0eca9224de67753a03b854b5be1556d58234003aad1f
4
+ data.tar.gz: 269d497271f81487e7978c8d134a4245aa93023dad0c549d5d15f404f9735029
5
5
  SHA512:
6
- metadata.gz: 1d5a10525fb53f0716c6f881af75fbef60a83c5dc87bd9665d3506ca532edc0313b64634483806bff3368f8f844194ded2e2f83866bee5e36c1460ae6333c38d
7
- data.tar.gz: 4ee64348e03fc576418bb5f76056cec7981abb978a06684a2fe99b0d96e664c049ed135b19b5d1009fd80ec8ed1232fe1ae7a6119b4d4404b36b5a431725e41e
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@v2
21
+ - uses: actions/checkout@v4
17
22
  - uses: ruby/setup-ruby@v1
18
23
  with:
19
24
  ruby-version: ${{ matrix.ruby_version }}
20
25
  bundler-cache: true
21
26
  - run: gem update --system 3.4.22 # The latest of Ruby 2.x support
22
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
41
+ - uses: ruby/setup-ruby@v1
42
+ with:
43
+ ruby-version: ${{ matrix.ruby_version }}
44
+ bundler-cache: true
45
+ - run: gem update --system
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,7 +9,7 @@ jobs:
9
9
  release:
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v2
12
+ - uses: actions/checkout@v4
13
13
  - uses: ruby/setup-ruby@v1
14
14
  with:
15
15
  bundler-cache: true
data/.gitignore CHANGED
@@ -27,5 +27,11 @@ spec/test_files/.dg
27
27
  # binary files
28
28
  *.app.dSYM.zip
29
29
  *.ipa
30
+ *.apk
31
+ *.aab
30
32
 
31
33
  .DS_Store
34
+
35
+ !/spec/fixtures/*.apk
36
+ !/spec/fixtures/*.aab
37
+ !/spec/fixtures/*.ipa
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
@@ -1,6 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require 'rubygems'
4
+ require 'bundler/setup'
5
+
3
6
  $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
7
+
4
8
  require "deploygate"
5
9
 
6
- DeployGate::CommandBuilder.new().run
10
+ DeployGate::CommandBuilder.new.run
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', '~> 4.2'
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.9'
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) }
@@ -60,7 +60,7 @@ module DeployGate
60
60
  extheaders = BASE_HEADERS.dup
61
61
 
62
62
  unless @token.nil?
63
- extheaders.push(['AUTHORIZATION', @token])
63
+ extheaders.push(['AUTHORIZATION', "token #{@token}"])
64
64
  end
65
65
 
66
66
  extheaders
@@ -2,7 +2,6 @@ module DeployGate
2
2
  module Commands
3
3
  module Deploy
4
4
  class Push
5
- BASE_URL = 'https://deploygate.com'
6
5
  COMMAND = 'push'
7
6
 
8
7
  class << self
@@ -1,4 +1,4 @@
1
1
  module DeployGate
2
- VERSION = '0.9.1'
2
+ VERSION = '0.10.0'
3
3
  VERSION_CODE = Gem::Version.new(VERSION).segments.reverse.each_with_index.map { |v, i| 100 ** i * v }.reduce(&:+)
4
4
  end
data/lib/deploygate.rb CHANGED
@@ -12,6 +12,7 @@ require "uuid"
12
12
  require "gem_update_checker"
13
13
  require "active_support/core_ext/time"
14
14
  require "active_support/core_ext/hash"
15
+ require "active_support/core_ext/integer/time"
15
16
  require "locale"
16
17
  require "tempfile"
17
18
  require "open3"
@@ -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.9.1
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: 2024-05-02 00:00:00.000000000 Z
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: '4.2'
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: '4.2'
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.9'
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.9'
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,7 +421,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
418
421
  requirements:
419
422
  - - ">="
420
423
  - !ruby/object:Gem::Version
421
- version: '0'
424
+ version: '2.6'
422
425
  required_rubygems_version: !ruby/object:Gem::Requirement
423
426
  requirements:
424
427
  - - ">="
@@ -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