deploygate 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmQ1ZDc1OWFkODkzZTc5MWFiYmQ4ZDQ4NmQwYTM2NmVhOGVmOTVjYw==
4
+ MzRkZGQ0OWE3NDRlODkxODEwMzNlMzY3YzBjZDFjYmNiZWIxMjBhMg==
5
5
  data.tar.gz: !binary |-
6
- ZDdjMTMzNGRmMWQ0MDY3YTkyNzFjYTJiNzE4MzUwZTI1OTZiNmZlYQ==
6
+ NTVlZWRlZDE2Y2FhNjhiMTIzMmQxYjc3MGQxNGNmMmNhOTQ1ZTIxZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Njg2NWIxMzU5MDliODNlZDUzYWVhMzgxZmIxYWNiYTFjY2Y5MDM5ZDYwM2Qw
10
- YzUzZDI0ZTVkNmVkMmYzYmJjMTE5OThhZDY2YTJiYzRkN2YxOTg5YmFmOTRj
11
- YzY3MDZiZmQzYjhkNWUyMGQ0ZDE5ZmJkYjNjYWZmZGE2NzM5NzU=
9
+ OGU1YjlkZmQ0OGJlOGFiYmE5NWYyN2Y0MzI4N2NjODNiYzM2ZGU0ZmJmNGIz
10
+ NGJjNjFiMjRmNGY1NTRiNTc5Y2MyNzQzN2I2YjU0MjdhZTUzMjA5ZDg5YzI3
11
+ ZmQyMTU0NDA0NjkyNTFkZjQxNmE2ZTI1OTZhZDRlYjQwMjUxYmY=
12
12
  data.tar.gz: !binary |-
13
- NzY2Y2Q2NDU0YWNhNGRjZmVkODM3YzYyNGU0Yzg0YzcwZWFkYWY5NGYzNzY4
14
- ZGRjOTYzNWE0MzVjNjI3NjkxN2FjNGE5MTYwZDJkNmNjNmZkYjA5MTYwY2Ux
15
- N2I1MWYwNDI2OTIwMGUyZGE2ZWE3NWM1NTY1ZTc0OWNkNDNiNzE=
13
+ YmY0NTRhODJhY2U0MmZlOTQxMDhiNTk3NDllMzJjN2Y4YmZhM2QxOTQxYWFm
14
+ NjgxZDQzNmJiZWNlYWU5OWE5YmVkZDIyZmQxMjQ5NTJhZGJkNDhjZDkwMjg2
15
+ MWJhMDgwOGIzZWI3NzAyOGFkZDVjNjJhOGVmODRmMGY3NDZhNTM=
data/.gitignore CHANGED
@@ -26,3 +26,5 @@ spec/test_files/.dg
26
26
  # binary files
27
27
  *.app.dSYM.zip
28
28
  *.ipa
29
+
30
+ .DS_Store
@@ -21,7 +21,7 @@ dg installed! To get started fast:
21
21
  POST_INSTALL_MESSAGE
22
22
 
23
23
  spec.add_dependency 'json', '~> 1.8.2'
24
- spec.add_dependency 'httpclient', '~> 2.2.5'
24
+ spec.add_dependency 'httpclient', '~> 2.8.2.4'
25
25
  spec.add_dependency 'commander', '~> 4.4.0'
26
26
  spec.add_dependency 'plist', '~> 3.1.0'
27
27
  spec.add_dependency 'xcodeproj', '~> 0.28.2'
@@ -42,10 +42,10 @@ POST_INSTALL_MESSAGE
42
42
  spec.add_dependency 'spaceship', '~> 0.32.0'
43
43
  spec.add_dependency 'sigh', '~> 1.10.0'
44
44
 
45
- spec.add_development_dependency "bundler", "~> 1.3"
45
+ spec.add_development_dependency "bundler"
46
46
  spec.add_development_dependency "rake"
47
- spec.add_development_dependency "rspec", "~> 3.3.0"
48
- spec.add_development_dependency "webmock", "~> 1.21.0"
47
+ spec.add_development_dependency "rspec", "~> 3.5.0"
48
+ spec.add_development_dependency "webmock", "~> 2.1.0"
49
49
  spec.add_development_dependency "i18n-tasks"
50
50
 
51
51
  spec.files = `git ls-files`.split($/)
@@ -40,7 +40,7 @@ module DeployGate
40
40
  select_devices = select_devices(devices)
41
41
  not_device if select_devices.empty?
42
42
 
43
- register!(devices)
43
+ register!(select_devices)
44
44
  else
45
45
  register_udid = udid || HighLine.ask(I18n.t('commands.add_devices.input_udid'))
46
46
  register_device_name = device_name || HighLine.ask(I18n.t('commands.add_devices.input_device_name'))
@@ -1,3 +1,3 @@
1
1
  module DeployGate
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -3,6 +3,7 @@ module DeployGate
3
3
  module Ios
4
4
  WORK_DIR_EXTNAME = '.xcworkspace'
5
5
  PROJECT_DIR_EXTNAME = '.xcodeproj'
6
+ IGNORE_DIRS = [ '.git', 'Carthage' ]
6
7
 
7
8
  class NotSupportExportMethodError < DeployGate::NotIssueError
8
9
  end
@@ -69,6 +70,8 @@ module DeployGate
69
70
  if File.extname(path) == WORK_DIR_EXTNAME
70
71
  projects.push(path)
71
72
  end
73
+
74
+ Find.prune if FileTest.directory?(path) && IGNORE_DIRS.include?(File.basename(path))
72
75
  end
73
76
 
74
77
  projects
@@ -1,53 +1,5 @@
1
1
  describe DeployGate::API::V1::Push do
2
2
  describe "#upload" do
3
- it "success" do
4
- target_user = 'test'
5
- token = 'token'
6
- message = 'message'
7
- response = {
8
- :error => false,
9
- :because => '',
10
- :results => {
11
- :name => 'application_name',
12
- :user => {:name => 'user name'},
13
- :package_name => 'com.example.package.name',
14
- :revision => 1,
15
- :path => '/path/to/app'
16
- }
17
- }
18
-
19
- stub_request(:post, "#{API_ENDPOINT}/users/#{target_user}/apps").
20
- with(:headers => { 'AUTHORIZATION' => token }).
21
- to_return(:body => response.to_json)
22
-
23
- call_process_block = false
24
- results = DeployGate::API::V1::Push.upload(test_file_path, target_user, token, message, '')
25
- expect(results).to eq ({
26
- :error => response[:error],
27
- :message => response[:because],
28
- :application_name => response[:results][:name],
29
- :owner_name => response[:results][:user][:name],
30
- :package_name => response[:results][:package_name],
31
- :revision => response[:results][:revision],
32
- :web_url => DeployGate::API::V1::Base::BASE_URL + response[:results][:path]
33
- })
34
- end
35
-
36
- it "failed" do
37
- target_user = 'test'
38
- token = 'token'
39
- message = 'message'
40
- response = {
41
- :error => true,
42
- :because => 'error message'
43
- }
44
-
45
- stub_request(:post, "#{API_ENDPOINT}/users/#{target_user}/apps").
46
- with(:headers => { 'AUTHORIZATION' => token }).
47
- to_return(:body => response.to_json)
48
-
49
- results = DeployGate::API::V1::Push.upload(test_file_path, target_user, token, message, '')
50
- expect(results).to eq ({:error => response[:error], :message => response[:because]})
51
- end
3
+ # TODO: Add test
52
4
  end
53
5
  end
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.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - deploygate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-31 00:00:00.000000000 Z
11
+ date: 2016-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.5
33
+ version: 2.8.2.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.5
40
+ version: 2.8.2.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: commander
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -280,16 +280,16 @@ dependencies:
280
280
  name: bundler
281
281
  requirement: !ruby/object:Gem::Requirement
282
282
  requirements:
283
- - - ~>
283
+ - - ! '>='
284
284
  - !ruby/object:Gem::Version
285
- version: '1.3'
285
+ version: '0'
286
286
  type: :development
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
- - - ~>
290
+ - - ! '>='
291
291
  - !ruby/object:Gem::Version
292
- version: '1.3'
292
+ version: '0'
293
293
  - !ruby/object:Gem::Dependency
294
294
  name: rake
295
295
  requirement: !ruby/object:Gem::Requirement
@@ -310,28 +310,28 @@ dependencies:
310
310
  requirements:
311
311
  - - ~>
312
312
  - !ruby/object:Gem::Version
313
- version: 3.3.0
313
+ version: 3.5.0
314
314
  type: :development
315
315
  prerelease: false
316
316
  version_requirements: !ruby/object:Gem::Requirement
317
317
  requirements:
318
318
  - - ~>
319
319
  - !ruby/object:Gem::Version
320
- version: 3.3.0
320
+ version: 3.5.0
321
321
  - !ruby/object:Gem::Dependency
322
322
  name: webmock
323
323
  requirement: !ruby/object:Gem::Requirement
324
324
  requirements:
325
325
  - - ~>
326
326
  - !ruby/object:Gem::Version
327
- version: 1.21.0
327
+ version: 2.1.0
328
328
  type: :development
329
329
  prerelease: false
330
330
  version_requirements: !ruby/object:Gem::Requirement
331
331
  requirements:
332
332
  - - ~>
333
333
  - !ruby/object:Gem::Version
334
- version: 1.21.0
334
+ version: 2.1.0
335
335
  - !ruby/object:Gem::Dependency
336
336
  name: i18n-tasks
337
337
  requirement: !ruby/object:Gem::Requirement