deploygate 0.8.5 → 0.9.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: 205fe31f4fd075fe324796f70e1bacbd271415654c97813ac7bfd9dabcf72a88
4
- data.tar.gz: 1d489557b2810cfdf378d8566cd7ac6723842c7ed2d9c29505f601d810db70b4
3
+ metadata.gz: 2669c914e21a76d6f95ec3e9805ae72f47ec0bc8fbf086ab2980fc9d21a8ac2b
4
+ data.tar.gz: 9abb804fc443e9f8c44e6cb524023f0e8beffa75b4861a8926212b5a786bc681
5
5
  SHA512:
6
- metadata.gz: 2d09762f900f984318f51724d8f047bb783f25f3082120f7ad16c2b229dbfe17c3933a1d59621a4fafcccf7009124b5c9b7cef8a254b8cd37cad6ff286618327
7
- data.tar.gz: 6b9b2c2845aa72e70872df1663f331aa83eca0ec956970ac93e6e4c724d92e7c2168b208d80910c52508bf3875bb9278c9739653aeda1c0a4031a5225e70acc2
6
+ metadata.gz: aba0aff7a36314c2ef9a866b5611573d2e8a8802e015b174a56e7794b1fce08631cbe93800583a655b4b1317b2328505d07654f4ac7fe401a2806418faef31a5
7
+ data.tar.gz: d28f72b321e978998010542dff5761957891691490ddb477558aec53f84405e7dd6f38302ee5f5033565fae821b2edaa2da17a94100e1dffbd7f1476cfdc0960
@@ -18,4 +18,5 @@ jobs:
18
18
  with:
19
19
  ruby-version: ${{ matrix.ruby_version }}
20
20
  bundler-cache: true
21
- - run: bundle exec rake
21
+ - run: gem update --system
22
+ - run: bundle exec rake
@@ -13,13 +13,14 @@ jobs:
13
13
  - uses: ruby/setup-ruby@v1
14
14
  with:
15
15
  bundler-cache: true
16
+ - run: gem update --system
16
17
  - run: bundle exec rake build
17
18
  - id: gem
18
- run: echo "::set-output name=result::$(find pkg -name 'deploygate-*.gem' -type f | head -1)"
19
+ run: echo "result=$(find pkg -name 'deploygate-*.gem' -type f | head -1)" >> $GITHUB_OUTPUT
19
20
  - run: |
20
- curl --data-binary '@${{ steps.gem.outputs.result }}' \
21
- -H 'Authorization: ${{ secrets.RUBYGEMS_API_KEY }}' \
22
- "https://rubygems.org/api/v1/gems"
21
+ gem push '${{ steps.gem.outputs.result }}'
22
+ env:
23
+ GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
23
24
  - uses: slackapi/slack-github-action@v1.16.0
24
25
  with:
25
26
  payload: "{\"text\": \"Released a deploygate gem in <https://rubygems.org/gems/deploygate/|RubyGems>\"}"
@@ -21,11 +21,8 @@ en:
21
21
  xcodeproj: 'The path to the target Xcode project file (iOS app only)'
22
22
  add_devices:
23
23
  description: 'Register devices to your Apple Developer account and refresh your provisioning profile. (iOS only) By default, it automatically finds new devices added to your application on DeployGate and ask you which device to register. You can also specify which device to register via command line options.'
24
- user: 'Owner user or organization name'
25
24
  udid: 'UDID to be registered'
26
25
  device_name: 'Device name to be registered'
27
- distribution_key: 'If you also want to update distribution page, set the last part of the URL of the page'
28
- xcodeproj: 'The path to the target Xcode project file (iOS app only)'
29
26
  server:
30
27
  description: 'Start the add-devices server. When added new device automatically run add-devices command.'
31
28
  connecting: 'Connecting...'
data/deploygate.gemspec CHANGED
@@ -25,7 +25,7 @@ POST_INSTALL_MESSAGE
25
25
  spec.add_runtime_dependency 'commander', '~> 4.4'
26
26
  spec.add_runtime_dependency 'plist', '~> 3.1'
27
27
  spec.add_runtime_dependency 'xcodeproj', '~> 1.7'
28
- spec.add_runtime_dependency 'highline', '~> 1.7'
28
+ spec.add_runtime_dependency 'highline', '~> 2.0'
29
29
  spec.add_runtime_dependency 'uuid', '~> 2.3'
30
30
  spec.add_runtime_dependency 'gem_update_checker', '~> 0.2'
31
31
  spec.add_runtime_dependency 'activesupport', '~> 4.2'
@@ -35,10 +35,10 @@ POST_INSTALL_MESSAGE
35
35
  spec.add_runtime_dependency 'net-ping', '~> 2.0'
36
36
  spec.add_runtime_dependency 'socket.io-client-simple', '~> 1.2'
37
37
  spec.add_runtime_dependency 'workers', '~> 0.6'
38
- spec.add_runtime_dependency 'sentry-raven', '~> 2.8'
38
+ spec.add_runtime_dependency 'sentry-ruby', '~> 5.8'
39
39
 
40
40
  # ios build
41
- spec.add_runtime_dependency 'fastlane', '~> 2.148.1'
41
+ spec.add_runtime_dependency 'fastlane', '~> 2.212.1'
42
42
 
43
43
  spec.add_development_dependency 'bundler', '>= 2.1.4', '< 3.0'
44
44
  spec.add_development_dependency 'rake', '~> 12.0'
@@ -44,7 +44,7 @@ module DeployGate
44
44
  puts HighLine.color(I18n.t('command_builder.add_devices.server.start_build'), HighLine::GREEN)
45
45
  pool.perform do
46
46
  DeployGate::Commands::AddDevices.register!(devices)
47
- DeployGate::Commands::AddDevices.build!(bunlde_id, args, options)
47
+ DeployGate::Commands::AddDevices.build!(bunlde_id, member_center, args, options)
48
48
  puts HighLine.color(I18n.t('command_builder.add_devices.server.finish_build'), HighLine::GREEN)
49
49
  puts ''
50
50
  end
@@ -24,7 +24,7 @@ module DeployGate
24
24
  { :file => file ,
25
25
  :message => message,
26
26
  :distribution_key => distribution_key,
27
- :disable_notify => disable_notify ? 'yes' : 'no',
27
+ :disable_notify => disable_notify,
28
28
  :dg_command => command || '',
29
29
  :env_ci => env_ci
30
30
  }) { process_block.call unless process_block.nil? }
@@ -16,10 +16,10 @@ module DeployGate
16
16
 
17
17
  def setup
18
18
  # sentry config
19
- Raven.configure do |config|
19
+ Sentry.init do |config|
20
20
  config.dsn = 'https://e0b4dda8fe2049a7b0d98c6d2759e067@sentry.io/1371610'
21
- config.logger = Raven::Logger.new('/dev/null') # hide sentry log
22
- config.excluded_exceptions = Raven::Configuration::IGNORE_DEFAULT + [DeployGate::RavenIgnoreException.name]
21
+ config.logger = Sentry::Logger.new('/dev/null') # hide sentry log
22
+ config.excluded_exceptions = Sentry::Configuration::IGNORE_DEFAULT + [DeployGate::RavenIgnoreException.name]
23
23
  end
24
24
 
25
25
  # set Ctrl-C trap
@@ -86,13 +86,15 @@ module DeployGate
86
86
  command ADD_DEVICES do |c|
87
87
  c.syntax = 'dg add-devices'
88
88
  c.description = I18n.t('command_builder.add_devices.description')
89
- c.option '--user STRING', String, I18n.t('command_builder.add_devices.user')
89
+ c.option '--message STRING', String, I18n.t('command_builder.deploy.message')
90
+ c.option '--user STRING', String, I18n.t('command_builder.deploy.user')
90
91
  c.option '--udid STRING', String, I18n.t('command_builder.add_devices.udid')
91
92
  c.option '--device-name STRING', String, I18n.t('command_builder.add_devices.device_name')
92
- c.option '--distribution-key STRING', String, I18n.t('command_builder.add_devices.distribution_key')
93
+ c.option '--distribution-key STRING', String, I18n.t('command_builder.deploy.distribution_key')
93
94
  c.option '--configuration STRING', String, I18n.t('command_builder.deploy.configuration')
94
95
  c.option '--server', I18n.t('command_builder.add_devices.server.description')
95
- c.option '--xcodeproj STRING', I18n.t('command_builder.add_devices.xcodeproj')
96
+ c.option '--disable_notify', I18n.t('command_builder.deploy.disable_notify')
97
+ c.option '--xcodeproj STRING', I18n.t('command_builder.deploy.xcodeproj')
96
98
  c.action do |args, options|
97
99
  options.default :user => nil, :server => false, :command => 'add_devices'
98
100
  begin
@@ -161,7 +163,7 @@ module DeployGate
161
163
  version = Gym::Xcode.xcode_version
162
164
  tags[:xcode_version] = version if version.present?
163
165
 
164
- Raven.capture_exception(error, tags: tags)
166
+ Sentry.capture_exception(error, tags: tags)
165
167
  puts HighLine.color(I18n.t('command_builder.error_handling.thanks'), HighLine::GREEN)
166
168
  end
167
169
  end
@@ -1,4 +1,4 @@
1
1
  module DeployGate
2
- VERSION = '0.8.5'
2
+ VERSION = '0.9.0'
3
3
  VERSION_CODE = Gem::Version.new(VERSION).segments.reverse.each_with_index.map { |v, i| 100 ** i * v }.reduce(&:+)
4
4
  end
@@ -91,7 +91,8 @@ module DeployGate
91
91
 
92
92
  def resolve_build_configuration(&block)
93
93
  gym = Gym::CodeSigningMapping.new(project: @project)
94
- specified_configuration = gym.detect_configuration_for_archive
94
+ specified_configuration = @build_configuration.presence ||
95
+ gym.detect_configuration_for_archive
95
96
 
96
97
  Xcodeproj::Project.open(@xcodeproj).targets.each do |target|
97
98
  target.build_configuration_list.build_configurations.each do |build_configuration|
data/lib/deploygate.rb CHANGED
@@ -22,7 +22,7 @@ require "webrick"
22
22
  require "net/ping"
23
23
  require "socket.io-client-simple"
24
24
  require "workers"
25
- require "sentry-raven"
25
+ require "sentry-ruby"
26
26
 
27
27
  require "i18n"
28
28
  I18n.load_path = Dir[File.join(File.dirname(__FILE__), '../config/locales/*.yml')]
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.8.5
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - deploygate
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-31 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.7'
89
+ version: '2.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.7'
96
+ version: '2.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: uuid
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -221,33 +221,33 @@ dependencies:
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0.6'
223
223
  - !ruby/object:Gem::Dependency
224
- name: sentry-raven
224
+ name: sentry-ruby
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - "~>"
228
228
  - !ruby/object:Gem::Version
229
- version: '2.8'
229
+ version: '5.8'
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - "~>"
235
235
  - !ruby/object:Gem::Version
236
- version: '2.8'
236
+ version: '5.8'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: fastlane
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
241
  - - "~>"
242
242
  - !ruby/object:Gem::Version
243
- version: 2.148.1
243
+ version: 2.212.1
244
244
  type: :runtime
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - "~>"
249
249
  - !ruby/object:Gem::Version
250
- version: 2.148.1
250
+ version: 2.212.1
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: bundler
253
253
  requirement: !ruby/object:Gem::Requirement
@@ -425,8 +425,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
425
425
  - !ruby/object:Gem::Version
426
426
  version: '0'
427
427
  requirements: []
428
- rubygems_version: 3.0.9
429
- signing_key:
428
+ rubygems_version: 3.4.8
429
+ signing_key:
430
430
  specification_version: 4
431
431
  summary: A command-line interface for DeployGate
432
432
  test_files:
@@ -449,4 +449,3 @@ test_files:
449
449
  - spec/deploygate/xcode/member_centers/provisioning_profile_spec.rb
450
450
  - spec/spec_helper.rb
451
451
  - spec/test_files/DeployGateSample.apk
452
- ...