nixenvironment 0.0.64 → 0.0.65

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: ba7af3de08aa524c27d0c8bbf905e3c5cb153c15
4
- data.tar.gz: eb41458df4e6085ac8f64119654ab451355978c1
3
+ metadata.gz: 75c1eef3f33d03ebe3e67692aee6967fb28701fc
4
+ data.tar.gz: 0200541c06f63d158ab537150c4abf6386e1480c
5
5
  SHA512:
6
- metadata.gz: 80b9a44cd70a98690058cefa4538095eb0059c12584584af0abf4c7cc4fefbe129e875e36eeb32657177274cf9fa9edcd94a8a5784d388e2391deffbecd89f85
7
- data.tar.gz: c83169a8e4ccca18961b649274fd53edc653d9c5b1959f36fb58d73a66b3c277033583b3eef48ecf953099d514998296791271d20af799d1df64ed7fc970b3bc
6
+ metadata.gz: b24e313955f68c4985aca1b1774a0cfca3cfc0b270f3c6278b82e78c77deabd2b3bd255711adb9463c84dbf99a5820cdcb7183d3237bb329ab3a0de3583e547b
7
+ data.tar.gz: e2c2527f139ff86921fa711f9d6294106570cfbddaa91c81b119514131610133e72d4ba80f2f6fabbcbcef6275e7078589a03ab7d3c102bfe5b738ae0d5869bb
data/bin/nixenvironment CHANGED
@@ -107,7 +107,7 @@ command :build do |c|
107
107
  error('Build error!', e)
108
108
  end
109
109
 
110
- @config_settings.merge!(Xcodebuild.config_settings)
110
+ @config_settings.merge!(Xcodebuild.config_settings) { |_key, v1, v2| v1 || v2 }
111
111
 
112
112
  begin
113
113
  prebuild(options.config)
@@ -709,5 +709,5 @@ def error(msg, e = nil)
709
709
  end
710
710
 
711
711
  def success(msg)
712
- puts msg.green.on_blue.bold
712
+ puts msg.green.bold
713
713
  end
@@ -76,7 +76,7 @@ function GenerateCoverage()
76
76
  mkdir -p $outputPath
77
77
 
78
78
  printf " Generating coverage for '$productName'... "
79
- "${currentScriptDir}/Utils/gcovr" -r "$(PWD)" --object-directory="${objectsDir}" "${exclude}" --xml > "$outputPath${productName}.xml"
79
+ "${currentScriptDir}/../utils/gcovr" -r "$(PWD)" --object-directory="${objectsDir}" "${exclude}" --xml > "$outputPath${productName}.xml"
80
80
 
81
81
  if [ $? -ne 0 ]; then
82
82
  exit 1
@@ -21,4 +21,4 @@ done
21
21
  currentScriptDir="$(dirname "$0")"
22
22
  source "${currentScriptDir}/LoadBuildEnvVars.sh"
23
23
 
24
- java -jar "${currentScriptDir}/Utils/simian-2.3.33.jar" "**/*.m" "**/*.h" ${excludes} -threshold=5 -failOnDuplication- -formatter=xml:${output}
24
+ java -jar "${currentScriptDir}/../utils/simian-2.3.33.jar" "**/*.m" "**/*.h" ${excludes} -threshold=5 -failOnDuplication- -formatter=xml:${output}
@@ -109,15 +109,14 @@ NAME_FOR_DEPLOYMENT='#{configuration}'
109
109
  watchkit_extension_relative_product = build_env_vars['WATCHKIT_EXTENSION_RELATIVE_PRODUCT'].presence
110
110
  widget_relative_product = build_env_vars['WIDGET_RELATIVE_PRODUCT'].presence
111
111
 
112
- resigned_bundle_id = build_env_vars[RESIGNED_BUNDLE_ID_KEY].presence
113
- resigned_watchkit_app_bundle_id = build_env_vars[RESIGNED_WATCHKIT_APP_BUNDLE_ID_KEY].presence
114
- resigned_watchkit_extension_bundle_id = build_env_vars[RESIGNED_WATCHKIT_EXTENSION_BUNDLE_ID_KEY].presence
115
- resigned_widget_bundle_id = build_env_vars[RESIGNED_WIDGET_BUNDLE_ID_KEY].presence
116
-
117
- resigned_bundle_name = build_env_vars[RESIGNED_BUNDLE_NAME_KEY].presence
118
- resigned_entitlements_path = build_env_vars[RESIGNED_ENTITLEMENTS_PATH_KEY].presence
119
- resigned_watchkit_extension_entitlements_path = build_env_vars[RESIGNED_WATCHKIT_EXTENSION_ENTITLEMENTS_PATH_KEY].presence
120
- resigned_widget_entitlements_path = build_env_vars[RESIGNED_WIDGET_ENTITLEMENTS_PATH_KEY].presence
112
+ resigned_bundle_id = is_resigned ? build_env_vars[RESIGNED_BUNDLE_ID_KEY].presence : nil
113
+ resigned_watchkit_app_bundle_id = is_resigned ? build_env_vars[RESIGNED_WATCHKIT_APP_BUNDLE_ID_KEY].presence : nil
114
+ resigned_watchkit_extension_bundle_id = is_resigned ? build_env_vars[RESIGNED_WATCHKIT_EXTENSION_BUNDLE_ID_KEY].presence : nil
115
+ resigned_widget_bundle_id = is_resigned ? build_env_vars[RESIGNED_WIDGET_BUNDLE_ID_KEY].presence : nil
116
+ resigned_bundle_name = is_resigned ? build_env_vars[RESIGNED_BUNDLE_NAME_KEY].presence : nil
117
+ resigned_entitlements_path = is_resigned ? build_env_vars[RESIGNED_ENTITLEMENTS_PATH_KEY].presence : nil
118
+ resigned_watchkit_extension_entitlements_path = is_resigned ? build_env_vars[RESIGNED_WATCHKIT_EXTENSION_ENTITLEMENTS_PATH_KEY].presence : nil
119
+ resigned_widget_entitlements_path = is_resigned ? build_env_vars[RESIGNED_WIDGET_ENTITLEMENTS_PATH_KEY].presence : nil
121
120
 
122
121
  ipa_product = "#{built_products_dir}/#{executable_name}-#{target_name}-#{configuration}#{ipa_product_suffix}.ipa"
123
122
  puts "#{ipa_product_key} = #{ipa_product}"
@@ -339,7 +338,7 @@ NAME_FOR_DEPLOYMENT='#{configuration}'
339
338
 
340
339
  # leave only plist data in file
341
340
  plist = get_plist_from_file(selected_entitlements_path)
342
- plist.save
341
+ plist.save(selected_entitlements_path)
343
342
 
344
343
  puts_header '--> Using existing entitlements'
345
344
  else
@@ -666,7 +665,7 @@ NAME_FOR_DEPLOYMENT='#{configuration}'
666
665
  keychain_name = 'XCodeKeys'
667
666
  keychain_path = %x[ security list | grep '#{keychain_name}' | sed 's/\"//g' | xargs ].strip
668
667
  security_report = %x[ '#{IDENTITIESLIST_UTILITY_PATH}' -k '#{keychain_path}' ]
669
- entries = security_report.lines.collect(&:strip)
668
+ entries = security_report.lines.map(&:strip).reject(&:empty?)
670
669
  entries.to_set
671
670
  end
672
671
 
@@ -683,7 +682,7 @@ NAME_FOR_DEPLOYMENT='#{configuration}'
683
682
  end
684
683
 
685
684
  def puts_warning(msg)
686
- puts_bold msg.yellow.on_black
685
+ puts_bold msg.yellow
687
686
  end
688
687
  end
689
688
  end
@@ -1,3 +1,3 @@
1
1
  module Nixenvironment
2
- VERSION = '0.0.64'
2
+ VERSION = '0.0.65'
3
3
  end
@@ -73,9 +73,10 @@ module Nixenvironment
73
73
  end
74
74
 
75
75
  def self.read_config_settings(workspace = nil, project = nil, scheme = nil, target = nil, sdk = nil, config = nil)
76
+ @config_settings = {}
76
77
  read_info
77
78
 
78
- raise "Scheme #{scheme} doesn't exist!" if scheme.present? && !contains_scheme?(scheme)
79
+ raise "Scheme #{scheme} doesn't exist!" if target.blank? && scheme.present? && !contains_scheme?(scheme)
79
80
  raise "Configuration #{config} doesn't exist!" if config.present? && !contains_config?(config)
80
81
  raise "Either #{PROJECT_TO_BUILD_KEY} or #{WORKSPACE_TO_BUILD_KEY} must be specified!" if project.blank? && workspace.blank?
81
82
 
@@ -148,6 +149,7 @@ module Nixenvironment
148
149
  end
149
150
 
150
151
  def self.read_info
152
+ @info = {}
151
153
  cmd_output = execute(nil, %w(-list 2>&1))
152
154
  raise "Getting xcode_project_info error! #{cmd_output}" if cmd_output.include?('error')
153
155
 
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.64
4
+ version: 0.0.65
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-09-22 00:00:00.000000000 Z
12
+ date: 2015-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cocoapods