nixenvironment 0.0.66 → 0.0.67

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
  SHA1:
3
- metadata.gz: ad1a673aa13db0acba59cf7cac6ded70f4d93ee0
4
- data.tar.gz: 523923efe703537bc3e38873681aa8f14150e140
3
+ metadata.gz: f834db42f3efa243c84e0a0218f7b992f1b47e7e
4
+ data.tar.gz: d74ed425d6f9623980740aff6738b1c4ce42a5e8
5
5
  SHA512:
6
- metadata.gz: 5f458279ff5703405675e9bf0b02284f291f7330c8c9f7045a2a336288614e90e55aa6d8c83237e5589d710f0c3e2314d0e94032b21ae9e4e5a9b00ea0a23ea8
7
- data.tar.gz: 571f9d3ab26b5ac02a164298db91f3373dc32935df24ef77807891240d2c491f04ddae320689a1901222574d368dbc9f76f447bb276845459fea602e831f7a78
6
+ metadata.gz: 6ec4e5b1c6ae99fdc5a418417140ae62a184a5fcb28a3013d705023915316cbe92140f71ed851b7510335e3d197ec2f0bb64dff2b72e16ea89bbeaafb2794ea3
7
+ data.tar.gz: 5a65f8bd9613ea7c4cdae1822e994e104fe0177c32cd083d2f4e626efdfe7d268e5c92fc137de7a504c968fc8f0dd308ab18f8ab4567aadb28a7c0a1ece60d47
data/bin/nixenvironment CHANGED
@@ -216,7 +216,13 @@ def init
216
216
 
217
217
  puts
218
218
  dest_url = ask('Destination repository url: ')
219
+
220
+ Git.ls_remote(dest_url)
221
+ raise "Repository not found: '#{dest_url}'" unless Git.last_cmd_success?
222
+
219
223
  local_directory_to_clone = ask('Directory to clone into: ')
224
+ raise 'Cloning into an existing directory is not allowed!' if Dir.exist?(local_directory_to_clone)
225
+
220
226
  repo_name = File.basename(dest_url, GIT_EXT)
221
227
  template_project_name = File.basename(template_project_url, GIT_EXT)
222
228
 
data/legacy/DeployIPA.sh CHANGED
@@ -56,9 +56,9 @@ if [[ -f "${IPA_PRODUCT_RESIGNED_APPSTORE}" ]]; then
56
56
  echo "DEPLOY_ITUNESCONNECT_USER isn't specified, skipping deliver..."
57
57
  else
58
58
  if [ "${DELIVER_DEPLOY}" == 1 ]; then
59
- deliver testflight "${IPA_PRODUCT_RESIGNED_APPSTORE}" -u "${DEPLOY_ITUNESCONNECT_USER}" # --submit_for_review
59
+ + pilot upload -i "${IPA_PRODUCT_RESIGNED_APPSTORE}" -u "${DEPLOY_ITUNESCONNECT_USER}"
60
60
  else
61
- deliver testflight "${IPA_PRODUCT_RESIGNED_APPSTORE}" -u "${DEPLOY_ITUNESCONNECT_USER}" --skip-deploy
61
+ + pilot upload -i "${IPA_PRODUCT_RESIGNED_APPSTORE}" -u "${DEPLOY_ITUNESCONNECT_USER}" --skip_submission
62
62
  fi
63
63
  fi
64
64
 
@@ -302,6 +302,8 @@ NAME_FOR_DEPLOYMENT='#{configuration}'
302
302
  is_widget_bundle_idchanged = rename_bundle_id(dest_widget_product_path, new_widget_bundle_id)
303
303
  end
304
304
 
305
+ # TODO: codesign watchkit app!
306
+
305
307
  # codesign watchkit extension
306
308
  if watchkit_extension_relative_product_path.present?
307
309
  codesign(watchkit_extension_identity_name, new_watchkit_extension_entitlements_path, is_watchkit_extension_provision_replaced,
@@ -327,7 +329,7 @@ NAME_FOR_DEPLOYMENT='#{configuration}'
327
329
  end
328
330
 
329
331
  def codesign(identity_name, new_entitlements_path, is_provision_replaced, is_bundle_id_or_name_changed, dest_app_product_path, profile_path, new_bundle_id)
330
- codesign_args = ['/usr/bin/codesign', '--force', '--sign', '--deep', "'#{identity_name}'"]
332
+ codesign_args = ['/usr/bin/codesign', '--force', '--sign', "'#{identity_name}'"]
331
333
 
332
334
  # now let's figure out the entitlements...
333
335
  if new_entitlements_path.present?
@@ -3,7 +3,8 @@ module Nixenvironment
3
3
  TEMPLATES_REPO_LIST = {
4
4
  'objc' => 'https://bitbucket.org/nixsolutions/np.git',
5
5
  'swift' => 'https://bitbucket.org/nixsolutions/nps.git',
6
- 'unity' => 'https://bitbucket.org/nixsolutions/nup.git'
6
+ 'unity' => 'https://bitbucket.org/nixsolutions/nup.git',
7
+ 'macos' => 'https://bitbucket.org/nixsolutions/nmp.git'
7
8
  }
8
9
 
9
10
  # config
@@ -20,6 +20,7 @@ module Nixenvironment
20
20
  REMOTE_ADD_CMD = 'remote add'
21
21
  STATUS_CMD = 'status'
22
22
  TAG_CMD = 'tag'
23
+ LS_REMOTE = 'ls-remote'
23
24
 
24
25
  RECURSIVE_OPT = '--recursive'
25
26
  TAGS_OPT = '--tags'
@@ -102,6 +103,13 @@ module Nixenvironment
102
103
  tags.sort_by!(&:to_i)
103
104
  end
104
105
 
106
+ def self.ls_remote(url)
107
+ arr_opts = []
108
+ arr_opts << url
109
+
110
+ execute(LS_REMOTE, arr_opts)
111
+ end
112
+
105
113
  private_class_method :execute
106
114
  end
107
115
  end
@@ -1,3 +1,3 @@
1
1
  module Nixenvironment
2
- VERSION = '0.0.66'
2
+ VERSION = '0.0.67'
3
3
  end
@@ -20,12 +20,12 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
 
22
22
  spec.add_dependency 'cocoapods'
23
- spec.add_dependency 'deliver'
24
23
  spec.add_dependency 'xcpretty'
25
24
  spec.add_dependency 'ocunit2junit'
26
25
  spec.add_dependency 'terminal-table'
27
26
  spec.add_dependency 'colorize'
28
27
  spec.add_dependency 'CFPropertyList', '= 2.2.8'
28
+ spec.add_dependency 'pilot', '~> 1.0.0'
29
29
 
30
30
  # Development only
31
31
  spec.add_development_dependency 'bundler'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nixenvironment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.66
4
+ version: 0.0.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-05 00:00:00.000000000 Z
12
+ date: 2015-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cocoapods
@@ -25,20 +25,6 @@ dependencies:
25
25
  - - '>='
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
- - !ruby/object:Gem::Dependency
29
- name: deliver
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - '>='
33
- - !ruby/object:Gem::Version
34
- version: '0'
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - '>='
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
28
  - !ruby/object:Gem::Dependency
43
29
  name: xcpretty
44
30
  requirement: !ruby/object:Gem::Requirement
@@ -109,6 +95,20 @@ dependencies:
109
95
  - - '='
110
96
  - !ruby/object:Gem::Version
111
97
  version: 2.2.8
98
+ - !ruby/object:Gem::Dependency
99
+ name: pilot
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ~>
103
+ - !ruby/object:Gem::Version
104
+ version: 1.0.0
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ~>
110
+ - !ruby/object:Gem::Version
111
+ version: 1.0.0
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: bundler
114
114
  requirement: !ruby/object:Gem::Requirement