gym 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gym/generators/build_command_generator.rb +6 -4
- data/lib/gym/options.rb +5 -1
- data/lib/gym/runner.rb +7 -0
- data/lib/gym/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e69a3477b1ebbe253c5c4d676198a45f3b7515e5
|
4
|
+
data.tar.gz: 7eb27b97545adfdf000ccdafa49e64a87e8b07aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5ace4a6fee48eee6c67b8204b1fa866302d82a30047674bfa8b6d0c070cdfb83cef5ea81d29247799e49ae4f73234d994efcffdefd5fbecb8f461cece18f8f4
|
7
|
+
data.tar.gz: b9d5753c5eb545d8e4c2cd2acd0ec7d32bead31027556253f7be607ee0cf97095c3008f9f1e5e3cd9b449647f34cbff982176bb743d1460c05016e57938dd085
|
@@ -78,12 +78,14 @@ module Gym
|
|
78
78
|
return File.join(containing, file_name)
|
79
79
|
end
|
80
80
|
|
81
|
-
# The path
|
81
|
+
# The path where archive will be created
|
82
82
|
def build_path
|
83
83
|
unless Gym.cache[:build_path]
|
84
|
-
|
85
|
-
|
86
|
-
|
84
|
+
Gym.cache[:build_path] = Gym.config[:build_path]
|
85
|
+
unless Gym.cache[:build_path]
|
86
|
+
day = Time.now.strftime("%F") # e.g. 2015-08-07
|
87
|
+
Gym.cache[:build_path] = File.expand_path("~/Library/Developer/Xcode/Archives/#{day}/")
|
88
|
+
end
|
87
89
|
FileUtils.mkdir_p Gym.cache[:build_path]
|
88
90
|
end
|
89
91
|
Gym.cache[:build_path]
|
data/lib/gym/options.rb
CHANGED
@@ -124,10 +124,14 @@ module Gym
|
|
124
124
|
end),
|
125
125
|
|
126
126
|
# Very optional
|
127
|
+
FastlaneCore::ConfigItem.new(key: :build_path,
|
128
|
+
env_name: "GYM_BUILD_PATH",
|
129
|
+
description: "The directory in which the archive should be stored in",
|
130
|
+
optional: true),
|
127
131
|
FastlaneCore::ConfigItem.new(key: :archive_path,
|
128
132
|
short_option: "-b",
|
129
133
|
env_name: "GYM_ARCHIVE_PATH",
|
130
|
-
description: "The
|
134
|
+
description: "The path to the created archive",
|
131
135
|
optional: true),
|
132
136
|
FastlaneCore::ConfigItem.new(key: :derived_data_path,
|
133
137
|
short_option: "-f",
|
data/lib/gym/runner.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'pty'
|
2
2
|
require 'open3'
|
3
3
|
require 'fileutils'
|
4
|
+
require 'shellwords'
|
4
5
|
|
5
6
|
module Gym
|
6
7
|
class Runner
|
@@ -77,6 +78,11 @@ module Gym
|
|
77
78
|
Gym::XcodebuildFixes.watchkit2_fix
|
78
79
|
end
|
79
80
|
|
81
|
+
def mark_archive_as_built_by_gym(archive_path)
|
82
|
+
escaped_archive_path = archive_path.shellescape
|
83
|
+
system("xattr -w info.fastlane.generated_by_gym 1 #{escaped_archive_path}")
|
84
|
+
end
|
85
|
+
|
80
86
|
# Builds the app and prepares the archive
|
81
87
|
def build_app
|
82
88
|
command = BuildCommandGenerator.generate
|
@@ -88,6 +94,7 @@ module Gym
|
|
88
94
|
ErrorHandler.handle_build_error(output)
|
89
95
|
end)
|
90
96
|
|
97
|
+
mark_archive_as_built_by_gym(BuildCommandGenerator.archive_path)
|
91
98
|
UI.success "Successfully stored the archive. You can find it in the Xcode Organizer."
|
92
99
|
UI.verbose("Stored the archive in: " + BuildCommandGenerator.archive_path)
|
93
100
|
end
|
data/lib/gym/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gym
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -269,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
269
269
|
version: '0'
|
270
270
|
requirements: []
|
271
271
|
rubyforge_project:
|
272
|
-
rubygems_version: 2.4.
|
272
|
+
rubygems_version: 2.4.5.1
|
273
273
|
signing_key:
|
274
274
|
specification_version: 4
|
275
275
|
summary: Building your iOS apps has never been easier
|