ambient-xcode 0.5.0 → 0.5.1
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 +4 -4
- data/README.md +9 -7
- data/ambient-xcode.gemspec +2 -2
- data/example/images/Constant.png +0 -0
- data/lib/capabilities_helper.rb +8 -0
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bbb7285b674c2fb1324c0f6d6afccbac5ffd1e2
|
4
|
+
data.tar.gz: a377e66021a4f78dcccf8214994824f0431e059f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34ed62a46022138cd638cadf3dcdc558a5e8d73e20d66e38c4a00c062e58d824c75d7890a6f6d0161ed236d9a5a07d9dacd5d3f44b6d254b1b658bffa934e230
|
7
|
+
data.tar.gz: b2f7e2018f8ed49945969744472d3468206eda18b5246057076ede084fcce3985b3f0ba73e6e32770adb44c0c7518adfb392307fcb7fc50498d155a6d2f7b583
|
data/README.md
CHANGED
@@ -44,26 +44,28 @@ target "MyProject" do
|
|
44
44
|
end
|
45
45
|
```
|
46
46
|
|
47
|
+
Name of the constant that can be used as an option is located in the **Quick Settings**
|
48
|
+

|
49
|
+
|
47
50
|
Run `ambient` from the command line to write your settings into your project.
|
48
51
|
|
49
|
-
The [example Ambientfile](https://github.com/Dan2552/ambient-xcode/blob/master/example/Ambientfile) matches the exact settings of a new iOS project.
|
52
|
+
The [example Ambientfile](https://github.com/Dan2552/ambient-xcode/blob/master/example/Ambientfile) or [example Ambientfile-swift](https://github.com/Dan2552/ambient-xcode/blob/master/example/Ambientfile-swift) matches the exact settings of a new iOS project.
|
50
53
|
|
51
|
-
If for any reason you want multiple Ambientfile, you can:
|
54
|
+
If for any reason you want multiple Ambientfile (maybe for example if you wanted different capabilities for an Enterprise build vs an AppStore build), you can:
|
52
55
|
```
|
53
|
-
use_settings_from 'Ambientfile'
|
56
|
+
use_settings_from 'Ambientfile' # inherits all of the settings from Ambientfile
|
54
57
|
|
55
|
-
target "
|
56
|
-
development_team "
|
58
|
+
target "Monies" do
|
59
|
+
development_team "341MONEY25"
|
57
60
|
capability :apple_pay
|
58
61
|
end
|
59
62
|
```
|
60
63
|
|
61
|
-
Just run `ambient [filename]` (
|
64
|
+
Just run `ambient [filename]` (e.g. `ambient Ambientfile-enterprise`)
|
62
65
|
|
63
66
|
Notes
|
64
67
|
=====
|
65
68
|
|
66
|
-
- You can re-run `ambient` as many times as possible.
|
67
69
|
- Use the `use_defaults_for_everything_not_specified_in_this_file!` setting to ensure your project file is clean. Warning though: this setting will clear all your targets' settings, so be sure to define absolutely every setting in the `Ambientfile` if you want to use this.
|
68
70
|
- When defining settings directly within a target, the setting is set to each scheme.
|
69
71
|
|
data/ambient-xcode.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = 'ambient-xcode'
|
6
|
-
gem.version = '0.5.
|
6
|
+
gem.version = '0.5.1'
|
7
7
|
gem.authors = ['Daniel Green']
|
8
8
|
gem.email = ['dan2552@gmail.com']
|
9
9
|
gem.description = %q{CLI for configuring Xcode projects from a Ruby file.}
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.homepage = 'https://github.com/Dan2552/ambient'
|
12
12
|
gem.license = 'MIT'
|
13
13
|
|
14
|
-
gem.add_dependency 'xcodeproj', '~> 0
|
14
|
+
gem.add_dependency 'xcodeproj', '~> 1.1.0'
|
15
15
|
|
16
16
|
gem.files = `git ls-files`.split($/)
|
17
17
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
Binary file
|
data/lib/capabilities_helper.rb
CHANGED
@@ -50,6 +50,14 @@ class CapabilitiesHelper
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def target_attributes
|
53
|
+
unless @project.root_object.attributes["TargetAttributes"]
|
54
|
+
@project.root_object.attributes["TargetAttributes"] = {}
|
55
|
+
end
|
56
|
+
|
57
|
+
unless @project.root_object.attributes["TargetAttributes"][@target.uuid]
|
58
|
+
@project.root_object.attributes["TargetAttributes"][@target.uuid] = {}
|
59
|
+
end
|
60
|
+
|
53
61
|
@project.root_object.attributes["TargetAttributes"][@target.uuid]
|
54
62
|
end
|
55
63
|
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ambient-xcode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Green
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.1.0
|
27
27
|
description: CLI for configuring Xcode projects from a Ruby file.
|
28
28
|
email:
|
29
29
|
- dan2552@gmail.com
|
@@ -37,6 +37,7 @@ files:
|
|
37
37
|
- bin/ambient
|
38
38
|
- example/Ambientfile
|
39
39
|
- example/Ambientfile-swift
|
40
|
+
- example/images/Constant.png
|
40
41
|
- lib/ambient.rb
|
41
42
|
- lib/capabilities_helper.rb
|
42
43
|
- lib/dsl.rb
|
@@ -51,17 +52,17 @@ require_paths:
|
|
51
52
|
- lib
|
52
53
|
required_ruby_version: !ruby/object:Gem::Requirement
|
53
54
|
requirements:
|
54
|
-
- -
|
55
|
+
- - '>='
|
55
56
|
- !ruby/object:Gem::Version
|
56
57
|
version: '0'
|
57
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
59
|
requirements:
|
59
|
-
- -
|
60
|
+
- - '>='
|
60
61
|
- !ruby/object:Gem::Version
|
61
62
|
version: '0'
|
62
63
|
requirements: []
|
63
64
|
rubyforge_project:
|
64
|
-
rubygems_version: 2.
|
65
|
+
rubygems_version: 2.0.14.1
|
65
66
|
signing_key:
|
66
67
|
specification_version: 4
|
67
68
|
summary: Define your envrionment settings all in one easy to read Ruby file, and re-apply
|