swift_lib_templater 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/CHANGELOG.md +3 -0
  4. data/Gemfile +4 -0
  5. data/Gemfile.lock +20 -0
  6. data/README.md +11 -0
  7. data/Rakefile +2 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +8 -0
  10. data/exe/swift_lib_templater +4 -0
  11. data/lib/swift_lib_templater.rb +36 -0
  12. data/lib/swift_lib_templater/copy_template_command.rb +15 -0
  13. data/lib/swift_lib_templater/get_framework_name_command.rb +9 -0
  14. data/lib/swift_lib_templater/initialize_git_repository_command.rb +17 -0
  15. data/lib/swift_lib_templater/open_projet_command.rb +12 -0
  16. data/lib/swift_lib_templater/rename_files_command.rb +33 -0
  17. data/lib/swift_lib_templater/version.rb +3 -0
  18. data/lib/templates/framework/.gitignore +67 -0
  19. data/lib/templates/framework/.travis.yml +31 -0
  20. data/lib/templates/framework/CHANGELOG.md +0 -0
  21. data/lib/templates/framework/LICENSE +23 -0
  22. data/lib/templates/framework/README.md +29 -0
  23. data/lib/templates/framework/Source/Classes/EmptyFile.swift +7 -0
  24. data/lib/templates/framework/Source/Info.plist +22 -0
  25. data/lib/templates/framework/Source/TEMPLATE.h +19 -0
  26. data/lib/templates/framework/TEMPLATE.podspec +24 -0
  27. data/lib/templates/framework/TEMPLATE.xcodeproj/project.pbxproj +474 -0
  28. data/lib/templates/framework/TEMPLATE.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  29. data/lib/templates/framework/TEMPLATE.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  30. data/lib/templates/framework/TEMPLATE.xcworkspace/contents.xcworkspacedata +10 -0
  31. data/lib/templates/framework/TEMPLATE.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  32. data/lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example.xcodeproj/project.pbxproj +370 -0
  33. data/lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  34. data/lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  35. data/lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example/Classes/AppDelegate.swift +22 -0
  36. data/lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example/Classes/ViewController.swift +20 -0
  37. data/lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example/Configuration/Info.plist +45 -0
  38. data/lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json +98 -0
  39. data/lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example/Resources/Assets.xcassets/Contents.json +6 -0
  40. data/lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example/Resources/Base.lproj/LaunchScreen.storyboard +29 -0
  41. data/lib/templates/framework/Tests/Info.plist +22 -0
  42. data/lib/templates/framework/Tests/TEMPLATETests.swift +33 -0
  43. data/swift_lib_templater.gemspec +39 -0
  44. metadata +118 -0
@@ -0,0 +1,20 @@
1
+ //
2
+ // ViewController.swift
3
+ // TEMPLATE_Example
4
+ //
5
+ // Created by Gaétan Zanella on 05/03/2019.
6
+ // Copyright © 2019 Fabernovel. All rights reserved.
7
+ //
8
+
9
+ import UIKit
10
+
11
+ class ViewController: UIViewController {
12
+
13
+ override func viewDidLoad() {
14
+ super.viewDidLoad()
15
+ // Do any additional setup after loading the view, typically from a nib.
16
+ }
17
+
18
+
19
+ }
20
+
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>$(EXECUTABLE_NAME)</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>APPL</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0</string>
19
+ <key>CFBundleVersion</key>
20
+ <string>1</string>
21
+ <key>LSRequiresIPhoneOS</key>
22
+ <true/>
23
+ <key>UILaunchStoryboardName</key>
24
+ <string>LaunchScreen</string>
25
+ <key>UIMainStoryboardFile</key>
26
+ <string>Main</string>
27
+ <key>UIRequiredDeviceCapabilities</key>
28
+ <array>
29
+ <string>armv7</string>
30
+ </array>
31
+ <key>UISupportedInterfaceOrientations</key>
32
+ <array>
33
+ <string>UIInterfaceOrientationPortrait</string>
34
+ <string>UIInterfaceOrientationLandscapeLeft</string>
35
+ <string>UIInterfaceOrientationLandscapeRight</string>
36
+ </array>
37
+ <key>UISupportedInterfaceOrientations~ipad</key>
38
+ <array>
39
+ <string>UIInterfaceOrientationPortrait</string>
40
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
41
+ <string>UIInterfaceOrientationLandscapeLeft</string>
42
+ <string>UIInterfaceOrientationLandscapeRight</string>
43
+ </array>
44
+ </dict>
45
+ </plist>
@@ -0,0 +1,98 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "idiom" : "iphone",
5
+ "size" : "20x20",
6
+ "scale" : "2x"
7
+ },
8
+ {
9
+ "idiom" : "iphone",
10
+ "size" : "20x20",
11
+ "scale" : "3x"
12
+ },
13
+ {
14
+ "idiom" : "iphone",
15
+ "size" : "29x29",
16
+ "scale" : "2x"
17
+ },
18
+ {
19
+ "idiom" : "iphone",
20
+ "size" : "29x29",
21
+ "scale" : "3x"
22
+ },
23
+ {
24
+ "idiom" : "iphone",
25
+ "size" : "40x40",
26
+ "scale" : "2x"
27
+ },
28
+ {
29
+ "idiom" : "iphone",
30
+ "size" : "40x40",
31
+ "scale" : "3x"
32
+ },
33
+ {
34
+ "idiom" : "iphone",
35
+ "size" : "60x60",
36
+ "scale" : "2x"
37
+ },
38
+ {
39
+ "idiom" : "iphone",
40
+ "size" : "60x60",
41
+ "scale" : "3x"
42
+ },
43
+ {
44
+ "idiom" : "ipad",
45
+ "size" : "20x20",
46
+ "scale" : "1x"
47
+ },
48
+ {
49
+ "idiom" : "ipad",
50
+ "size" : "20x20",
51
+ "scale" : "2x"
52
+ },
53
+ {
54
+ "idiom" : "ipad",
55
+ "size" : "29x29",
56
+ "scale" : "1x"
57
+ },
58
+ {
59
+ "idiom" : "ipad",
60
+ "size" : "29x29",
61
+ "scale" : "2x"
62
+ },
63
+ {
64
+ "idiom" : "ipad",
65
+ "size" : "40x40",
66
+ "scale" : "1x"
67
+ },
68
+ {
69
+ "idiom" : "ipad",
70
+ "size" : "40x40",
71
+ "scale" : "2x"
72
+ },
73
+ {
74
+ "idiom" : "ipad",
75
+ "size" : "76x76",
76
+ "scale" : "1x"
77
+ },
78
+ {
79
+ "idiom" : "ipad",
80
+ "size" : "76x76",
81
+ "scale" : "2x"
82
+ },
83
+ {
84
+ "idiom" : "ipad",
85
+ "size" : "83.5x83.5",
86
+ "scale" : "2x"
87
+ },
88
+ {
89
+ "idiom" : "ios-marketing",
90
+ "size" : "1024x1024",
91
+ "scale" : "1x"
92
+ }
93
+ ],
94
+ "info" : {
95
+ "version" : 1,
96
+ "author" : "xcode"
97
+ }
98
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "info" : {
3
+ "version" : 1,
4
+ "author" : "xcode"
5
+ }
6
+ }
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+ <device id="retina4_7" orientation="portrait">
4
+ <adaptation id="fullscreen"/>
5
+ </device>
6
+ <dependencies>
7
+ <deployment identifier="iOS"/>
8
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
9
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
10
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
11
+ </dependencies>
12
+ <scenes>
13
+ <!--View Controller-->
14
+ <scene sceneID="EHf-IW-A2E">
15
+ <objects>
16
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
17
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
18
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
19
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
20
+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
21
+ <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
22
+ </view>
23
+ </viewController>
24
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
25
+ </objects>
26
+ <point key="canvasLocation" x="53" y="375"/>
27
+ </scene>
28
+ </scenes>
29
+ </document>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>$(EXECUTABLE_NAME)</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>BNDL</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0</string>
19
+ <key>CFBundleVersion</key>
20
+ <string>1</string>
21
+ </dict>
22
+ </plist>
@@ -0,0 +1,33 @@
1
+ //
2
+ // TEMPLATETests.swift
3
+ // TEMPLATETests
4
+ //
5
+ // Created by Gaétan Zanella on 05/03/2019.
6
+ // Copyright © 2019 Fabernovel. All rights reserved.
7
+ //
8
+
9
+ import XCTest
10
+
11
+ class TEMPLATETests: XCTestCase {
12
+
13
+ override func setUp() {
14
+ // Put setup code here. This method is called before the invocation of each test method in the class.
15
+ }
16
+
17
+ override func tearDown() {
18
+ // Put teardown code here. This method is called after the invocation of each test method in the class.
19
+ }
20
+
21
+ func testExample() {
22
+ // This is an example of a functional test case.
23
+ // Use XCTAssert and related functions to verify your tests produce the correct results.
24
+ }
25
+
26
+ func testPerformanceExample() {
27
+ // This is an example of a performance test case.
28
+ self.measure {
29
+ // Put the code you want to measure the time of here.
30
+ }
31
+ }
32
+
33
+ }
@@ -0,0 +1,39 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "swift_lib_templater/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "swift_lib_templater"
8
+ spec.version = SwiftLibTemplater::VERSION
9
+ spec.authors = ["Gaétan Zanella"]
10
+ spec.email = ["gaetan.zanella@fabernovel.com"]
11
+
12
+ spec.summary = %q{Swift library generator}
13
+ spec.description = %q{Swift library generator}
14
+ spec.homepage = "https://github.com/applidium/swift_lib_templater"
15
+
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
20
+ spec.metadata["homepage_uri"] = spec.homepage
21
+ spec.metadata["source_code_uri"] = "https://github.com/applidium/swift_lib_templater"
22
+ spec.metadata["changelog_uri"] = "https://github.com/applidium/swift_lib_templater/blob/master/CHANGELOG.md"
23
+ else
24
+ raise "RubyGems 2.0 or newer is required to protect against " \
25
+ "public gem pushes."
26
+ end
27
+
28
+ # Specify which files should be added to the gem when it is released.
29
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
30
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
31
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
32
+ end
33
+ spec.bindir = "exe"
34
+ spec.executables = ["swift_lib_templater"]
35
+ spec.require_paths = ["lib"]
36
+
37
+ spec.add_development_dependency "bundler", "~> 2.0"
38
+ spec.add_development_dependency "rake", "~> 10.0"
39
+ end
metadata ADDED
@@ -0,0 +1,118 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: swift_lib_templater
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Gaétan Zanella
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: Swift library generator
42
+ email:
43
+ - gaetan.zanella@fabernovel.com
44
+ executables:
45
+ - swift_lib_templater
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - ".gitignore"
50
+ - CHANGELOG.md
51
+ - Gemfile
52
+ - Gemfile.lock
53
+ - README.md
54
+ - Rakefile
55
+ - bin/console
56
+ - bin/setup
57
+ - exe/swift_lib_templater
58
+ - lib/swift_lib_templater.rb
59
+ - lib/swift_lib_templater/copy_template_command.rb
60
+ - lib/swift_lib_templater/get_framework_name_command.rb
61
+ - lib/swift_lib_templater/initialize_git_repository_command.rb
62
+ - lib/swift_lib_templater/open_projet_command.rb
63
+ - lib/swift_lib_templater/rename_files_command.rb
64
+ - lib/swift_lib_templater/version.rb
65
+ - lib/templates/framework/.gitignore
66
+ - lib/templates/framework/.travis.yml
67
+ - lib/templates/framework/CHANGELOG.md
68
+ - lib/templates/framework/LICENSE
69
+ - lib/templates/framework/README.md
70
+ - lib/templates/framework/Source/Classes/EmptyFile.swift
71
+ - lib/templates/framework/Source/Info.plist
72
+ - lib/templates/framework/Source/TEMPLATE.h
73
+ - lib/templates/framework/TEMPLATE.podspec
74
+ - lib/templates/framework/TEMPLATE.xcodeproj/project.pbxproj
75
+ - lib/templates/framework/TEMPLATE.xcodeproj/project.xcworkspace/contents.xcworkspacedata
76
+ - lib/templates/framework/TEMPLATE.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
77
+ - lib/templates/framework/TEMPLATE.xcworkspace/contents.xcworkspacedata
78
+ - lib/templates/framework/TEMPLATE.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
79
+ - lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example.xcodeproj/project.pbxproj
80
+ - lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata
81
+ - lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
82
+ - lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example/Classes/AppDelegate.swift
83
+ - lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example/Classes/ViewController.swift
84
+ - lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example/Configuration/Info.plist
85
+ - lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json
86
+ - lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example/Resources/Assets.xcassets/Contents.json
87
+ - lib/templates/framework/TEMPLATE_Example/TEMPLATE_Example/Resources/Base.lproj/LaunchScreen.storyboard
88
+ - lib/templates/framework/Tests/Info.plist
89
+ - lib/templates/framework/Tests/TEMPLATETests.swift
90
+ - swift_lib_templater.gemspec
91
+ homepage: https://github.com/applidium/swift_lib_templater
92
+ licenses: []
93
+ metadata:
94
+ allowed_push_host: https://rubygems.org
95
+ homepage_uri: https://github.com/applidium/swift_lib_templater
96
+ source_code_uri: https://github.com/applidium/swift_lib_templater
97
+ changelog_uri: https://github.com/applidium/swift_lib_templater/blob/master/CHANGELOG.md
98
+ post_install_message:
99
+ rdoc_options: []
100
+ require_paths:
101
+ - lib
102
+ required_ruby_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ requirements: []
113
+ rubyforge_project:
114
+ rubygems_version: 2.6.11
115
+ signing_key:
116
+ specification_version: 4
117
+ summary: Swift library generator
118
+ test_files: []