nixenvironment 0.0.52 → 0.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77f6231f344e70028d66551f0eccd06d68fc00f1
4
- data.tar.gz: 6215ce7b8e569d1d229fa25313f12cb677207a7c
3
+ metadata.gz: 6bb695992e21e02f764d9ae7e6752a68b11ef196
4
+ data.tar.gz: 83ab6a795b55b590441197f28259def852ad5142
5
5
  SHA512:
6
- metadata.gz: 2a6ae06148cadd9f3dda36752f77fe6b90fe5c58d9f8029f04a3051103b30fa35f6d0fc659e82a285c4f315cc5276d42ec25de6007fed5b1c02e8b9d023daba0
7
- data.tar.gz: 8ae24b7949fed174adeb6c29bc89c3e01596af9985016d1f476e8c9a20ee34172ca922680785b072c2efae028278542158cf543e61f573547ec53bcbc1e7585c
6
+ metadata.gz: 9e0b1fcf5b94aaad93979cf6c6583394a5a0f2b9af0631b9e70046b0eea8bd201c9f0a131ea0221353e5309119012d9b7706da4555f8e34254c3aa195eebe495
7
+ data.tar.gz: 1d02264436d18b110eab1c4be9602b9b1cc7036be301700055412edea638de3cec12c85fa8666122c67c3fafc27ad1e386de99956f282404b5449e1618f368c5
data/README.md CHANGED
@@ -106,6 +106,4 @@ Nixenvironment installs, updates and manages inner NIX environment stuff to make
106
106
  ## TODO:
107
107
 
108
108
  1. Move project adjuster to this gem.
109
- 2. Implement bunch ipa making and deployment.
110
- 3. Rewrite XcodeIconTagger/tagIcons.sh and use it in prebuild method.
111
- 4. Rewrite README for ninbas!
109
+ 2. Rewrite README for ninbas!
data/bin/Config CHANGED
@@ -35,8 +35,5 @@ CODE_COVERAGE_OUTPUT_DIRECTORY: ./Coverage/
35
35
 
36
36
  ENV_VAR_PREFIX: NIXENV_
37
37
 
38
- # bundle identifiers and entitlements
39
- BUNDLE_ID: com.nixsolutions.${PRODUCT_NAME:rfc1034identifier}
40
- RESIGNED_BUNDLE_ID: com.nixsolutions.ApplicationResignTest
41
- RESIGNED_BUNDLE_NAME: ApplicationResignTest
42
- RESIGNED_ENTITLEMENTS_PATH:
38
+ # default resigned bundle identifier
39
+ RESIGNED_BUNDLE_ID: com.nixsolutions.ApplicationResignTest
data/bin/nixenvironment CHANGED
@@ -377,6 +377,10 @@ def supplement_config_settings(config)
377
377
  @config_settings['CONFIGURATION_BUILD_DIR'] = build_directory
378
378
  @config_settings['BUILT_PRODUCTS_DIR'] = build_directory
379
379
  @config_settings['DWARF_DSYM_FOLDER_PATH'] = build_directory
380
+
381
+ plist_path = @unescaped_product_settings_path
382
+ bundle_display_name = %x[ /usr/libexec/PlistBuddy -c 'Print CFBundleDisplayName' '#{plist_path}' ].strip!
383
+ @config_settings['RESIGNED_BUNDLE_NAME'] ||= bundle_display_name
380
384
  end
381
385
 
382
386
  def unescaped_product_settings_path(scheme_suffix, config)
@@ -678,9 +682,14 @@ def update_info_plist(config)
678
682
 
679
683
  revision = %x[ source _last_revision.sh && echo ${REVISION} ].strip!
680
684
  monotonic_revision = %x[ source _last_revision.sh && echo ${MONOTONIC_REVISION} ].strip!
685
+ bundle_id = @config_settings['BUNDLE_ID']
686
+
687
+ update_success = system("/usr/libexec/PlistBuddy -c 'Set :CFBundleVersion \"#{monotonic_revision}\"' \"#{@unescaped_product_settings_path}\"")
688
+
689
+ if bundle_id
690
+ update_success &&= system("/usr/libexec/PlistBuddy -c 'Set :CFBundleIdentifier \"#{bundle_id}\"' \"#{@unescaped_product_settings_path}\"")
691
+ end
681
692
 
682
- update_success = system("/usr/libexec/PlistBuddy -c 'Set :CFBundleIdentifier \"#{@config_settings['BUNDLE_ID']}\"' \"#{@unescaped_product_settings_path}\"")
683
- update_success &&= system("/usr/libexec/PlistBuddy -c 'Set :CFBundleVersion \"#{monotonic_revision}\"' \"#{@unescaped_product_settings_path}\"")
684
693
  update_success &&= system("/usr/libexec/PlistBuddy -c 'Add :Configuration string \"#{config}\"' \"#{@unescaped_product_settings_path}\"")
685
694
  update_success &&= system("/usr/libexec/PlistBuddy -c 'Add :RevisionNumber string \"#{revision}\"' \"#{@unescaped_product_settings_path}\"")
686
695
 
@@ -1,3 +1,3 @@
1
1
  module Nixenvironment
2
- VERSION = '0.0.52'
2
+ VERSION = '0.0.53'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nixenvironment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.52
4
+ version: 0.0.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen Arzumanian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-31 00:00:00.000000000 Z
11
+ date: 2015-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler