app_store_connect 0.5.0 → 0.6.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: a5f4c797a32fb88d807db77e401dac1f6d0d6fe74e027735eec4d855d4896115
4
- data.tar.gz: f2d5a2e9e29687b1ae1dffa5d2e716fff950267149cad74d835482bfa987db6e
3
+ metadata.gz: 78c441ea7e16744eee415f8b65fb1389436e28e1880a3b4687d60d67ed4e3388
4
+ data.tar.gz: dc044031de07e8c2d7c5a543e5613a609d73d4fdfa753a3db71fec4370903b60
5
5
  SHA512:
6
- metadata.gz: 1a080cac1b6c67278e1aa3f909cae54cc1b7c7d14147ea08facfdac81ca7701c6732e11dbe3a8d4fc3c9556d2958308b46982de46ee5b58a7c5b863b57eca83c
7
- data.tar.gz: 7dbae88cb1af01353d7d296269dfa673dc1cd96c4aaec3bc3c4ae2a196a8dd2296be84b4cbec866da85e0fb8e3caba3d11910696015f9c076e6d0a5ec3149916
6
+ metadata.gz: b1361415a42d7ca66c345a6c43d97cf4d684c5f6b3aded20b148aeb1c769ceb58ae4a13a72b1a3fa8b9a228ac03158a47d952431d763450659c3595db750cae4
7
+ data.tar.gz: 3672cc89f06df46185e84577309f9f5817f88e62bfe7b168a5eb67dabc9097361692627133719bab761a91ba8b3f4f1f5a9cb28e3c3c82340f7640a8b6253555
data/Gemfile.lock CHANGED
@@ -1,9 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_store_connect (0.4.0)
4
+ app_store_connect (0.6.0)
5
5
  activesupport (~> 5.2.3)
6
- gli (~> 2.17)
7
6
  httparty (~> 0.16)
8
7
  jwt (~> 2.1)
9
8
 
@@ -28,7 +27,6 @@ GEM
28
27
  activesupport (>= 4.2.0)
29
28
  ffi (1.11.1)
30
29
  formatador (0.2.5)
31
- gli (2.18.0)
32
30
  guard (2.15.0)
33
31
  formatador (>= 0.2.4)
34
32
  listen (>= 2.7, < 4.0)
@@ -18,12 +18,9 @@ Gem::Specification.new do |spec|
18
18
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
19
  end
20
20
 
21
- spec.bindir = 'exe'
22
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
21
  spec.require_paths = ['lib']
24
22
 
25
23
  spec.add_runtime_dependency 'activesupport', '~> 5.2.3'
26
- spec.add_runtime_dependency 'gli', '~> 2.17'
27
24
  spec.add_runtime_dependency 'httparty', '~> 0.16'
28
25
  spec.add_runtime_dependency 'jwt', '~> 2.1'
29
26
 
@@ -6,7 +6,6 @@ require 'httparty'
6
6
  require 'app_store_connect/authorization'
7
7
  require 'app_store_connect/parser'
8
8
  require 'app_store_connect/client'
9
- require 'app_store_connect/cli'
10
9
  require 'app_store_connect/bundle_id_create_request'
11
10
  require 'app_store_connect/user_invitation_create_request'
12
11
  require 'app_store_connect/version'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppStoreConnect
4
- VERSION = '0.5.0'
4
+ VERSION = '0.6.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_store_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Decot
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-05 00:00:00.000000000 Z
11
+ date: 2019-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 5.2.3
27
- - !ruby/object:Gem::Dependency
28
- name: gli
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.17'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.17'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: httparty
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -209,8 +195,7 @@ dependencies:
209
195
  description:
210
196
  email:
211
197
  - kyle.decot@icloud.com
212
- executables:
213
- - app_store_connect
198
+ executables: []
214
199
  extensions: []
215
200
  extra_rdoc_files: []
216
201
  files:
@@ -231,13 +216,11 @@ files:
231
216
  - app_store_connect.gemspec
232
217
  - bin/console
233
218
  - bin/setup
234
- - exe/app_store_connect
235
219
  - lib/app_store_connect.rb
236
220
  - lib/app_store_connect/authorization.rb
237
221
  - lib/app_store_connect/bundle_id_create_request.rb
238
222
  - lib/app_store_connect/bundle_id_create_request/data.rb
239
223
  - lib/app_store_connect/bundle_id_create_request/data/attributes.rb
240
- - lib/app_store_connect/cli.rb
241
224
  - lib/app_store_connect/client.rb
242
225
  - lib/app_store_connect/config.rb
243
226
  - lib/app_store_connect/factory.rb
@@ -1,6 +0,0 @@
1
- #! /usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'app_store_connect'
5
-
6
- AppStoreConnect::CLI.run(ARGV)
@@ -1,72 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'gli'
4
-
5
- require 'app_store_connect/version'
6
-
7
- module AppStoreConnect
8
- class CLI
9
- extend GLI::App
10
-
11
- program_desc 'Here is my program description'
12
- version AppStoreConnect::VERSION
13
-
14
- flag [:i, 'issuer-id'],
15
- default_value: ENV['APP_STORE_CONNECT_ISSUER_ID']
16
-
17
- flag [:p, 'private-key'],
18
- default_value: ENV['APP_STORE_CONNECT_PRIVATE_KEY']
19
-
20
- flag [:k, 'key-id'],
21
- default_value: ENV['APP_STORE_CONNECT_KEY_ID']
22
-
23
- command 'app' do |c|
24
- c.flag %i[a app_id], required: true
25
-
26
- c.action do |_, options|
27
- app_id = options[:app_id]
28
- puts client.app(app_id).to_json
29
- end
30
- end
31
-
32
- command 'apps' do |c|
33
- c.desc 'Gets all of the apps'
34
- c.long_desc 'The long desc'
35
-
36
- c.action do |global_options, _, _|
37
- puts client(global_options).apps.to_json
38
- end
39
- end
40
-
41
- command 'builds' do |c|
42
- c.flag %i[a app_id], required: true
43
-
44
- c.action do |global_options, options|
45
- app_id = options[:app_id]
46
-
47
- puts client(global_options).builds(app_id).to_json
48
- end
49
- end
50
-
51
- command 'build' do |c|
52
- c.flag %i[a app_id], required: true
53
- c.switch %i[b build_id], required: true
54
-
55
- c.action do |global_options, options|
56
- app_id = options[:app_id]
57
- build_id = options[:build_id]
58
-
59
- puts client(global_options).build(app_id, build_id).to_json
60
- end
61
- end
62
-
63
- def self.client(global_options)
64
- AppStoreConnect::Client.new(
65
- private_key: global_options[:private_key],
66
- issuer_id: global_options[:issuer_id],
67
- key_id: global_options[:key_id]
68
- )
69
- end
70
- private_class_method :client
71
- end
72
- end