digipolitan-app-swift-template-cli 0.1.0 → 0.2.0
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/CHANGELOG.md +6 -0
- data/LICENSE +1 -1
- data/lib/digipolitan-app-swift-template-cli/init.rb +8 -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: 40b559f9a6601b0cbb364a2909d7f8a6d21bb345
|
4
|
+
data.tar.gz: 34061c4ec7452094f6f05282bce82b8467bfc6a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f556fa8114c5d498f2dd0f48af5ecd4a8c26a6c90ceab5b3795050f6a271939afe3fbbf421de62bc0ea329c1e478555fcc2bea0608307285b55169344e3bf09a
|
7
|
+
data.tar.gz: d333fda5fe39083851d5f492cb2e7b1fc457dc846f2e78bc9c20b628a63fce5989c4200cada6393dcca8fac0a4485875bdf848c9b6c30902d90c55547da92027
|
data/CHANGELOG.md
CHANGED
@@ -2,3 +2,9 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
`digipolitan-app-swift-template-cli` adheres to [Semantic Versioning](http://semver.org/).
|
5
|
+
|
6
|
+
---
|
7
|
+
|
8
|
+
## [0.2.0](https://github.com/Digipolitan/app-swift-template-cli/releases/tag/v0.2.0)
|
9
|
+
|
10
|
+
Add tvOS project repository
|
data/LICENSE
CHANGED
@@ -6,6 +6,11 @@ module Digipolitan
|
|
6
6
|
|
7
7
|
class AppSwiftTemplate
|
8
8
|
|
9
|
+
@@sources = {
|
10
|
+
"iOS" => "https://github.com/Digipolitan/app-swift-template/archive/master.zip",
|
11
|
+
"tvOS" => "https://github.com/Digipolitan/app-swift-template-tvos/archive/master.zip"
|
12
|
+
}
|
13
|
+
|
9
14
|
def self.init(target_path = nil)
|
10
15
|
|
11
16
|
zip_path = ".template.zip"
|
@@ -26,8 +31,10 @@ module Digipolitan
|
|
26
31
|
Digipolitan::UI.crash "The target directory contains an xcodeproj, please select another one or clear the directory."
|
27
32
|
end
|
28
33
|
|
34
|
+
platform = Digipolitan::UI.select("Choose your platform", @@sources.keys)
|
35
|
+
|
29
36
|
Digipolitan::UI.message "Downloading Digipolitan app...";
|
30
|
-
buffer = open(
|
37
|
+
buffer = open(@@sources[platform]).read
|
31
38
|
Digipolitan::FileUtils.write_to_file(zip_path, buffer)
|
32
39
|
Digipolitan::UI.message "Unziping Digipolitan app...";
|
33
40
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: digipolitan-app-swift-template-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bbriatte
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: digipolitan-apps-tools
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.5.2
|
78
|
+
rubygems_version: 2.5.2.3
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Digipolitan Ruby tools to use swift app template
|