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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b6d769398b175fdecd63c65c6bdfac24c88ef0a
4
- data.tar.gz: 46a3f59d219c2142088e24c8b9ed86d57fc2d064
3
+ metadata.gz: 40b559f9a6601b0cbb364a2909d7f8a6d21bb345
4
+ data.tar.gz: 34061c4ec7452094f6f05282bce82b8467bfc6a9
5
5
  SHA512:
6
- metadata.gz: d47bc461416a799f880a532943e4123a1c46ba061cf1c9993928e4cf995bc0319640f6022b21471cb8563f2a07d667f0d31fde6445627b377806b5253f123771
7
- data.tar.gz: 64b5262a4c1fe64657618b1d4c9a7977d8e7bddbeead97d1e8409bf25ca64288f778949b41014f692dcaf9fdb3e83d40236be3afb063742d13d034c9dae90124
6
+ metadata.gz: f556fa8114c5d498f2dd0f48af5ecd4a8c26a6c90ceab5b3795050f6a271939afe3fbbf421de62bc0ea329c1e478555fcc2bea0608307285b55169344e3bf09a
7
+ data.tar.gz: d333fda5fe39083851d5f492cb2e7b1fc457dc846f2e78bc9c20b628a63fce5989c4200cada6393dcca8fac0a4485875bdf848c9b6c30902d90c55547da92027
@@ -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
@@ -1,6 +1,6 @@
1
1
  BSD 3-Clause License
2
2
 
3
- Copyright (c) 2017, Digipolitan
3
+ Copyright (c) 2019, Digipolitan
4
4
  All rights reserved.
5
5
 
6
6
  Redistribution and use in source and binary forms, with or without
@@ -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('https://github.com/Digipolitan/app-swift-template/archive/master.zip').read
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.1.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: 2017-10-02 00:00:00.000000000 Z
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