enoki 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/enoki.gemspec +1 -1
- data/lib/enoki/cli/generate.rb +1 -1
- data/lib/enoki/version.rb +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d368ece5a97d37809adfd7791b4a4040477acba3
|
4
|
+
data.tar.gz: 80ac8eb8ded8aac87779ed7acaa416617d18b93a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9660eceb83e5a437844ddba858ca68066b3e01a4962c582c2486ad0641519a1113510dec8b06afd092bd1e5d51a19fe35fd99a3ed5a7d9951d3f3c2db90f8fa
|
7
|
+
data.tar.gz: 511810b95c5b545cfd2d9c65ea5f092f0d1e7f95f02ff673d4465f6e83e29430555babce267e7afcf9b0d5e07ce5a75eed3f948c8ae7ce18083e3021f5013731
|
data/README.md
CHANGED
@@ -53,9 +53,9 @@ Then added 2 files to your Xcode project and setup project groups that correspon
|
|
53
53
|
|
54
54
|
### File name rule
|
55
55
|
|
56
|
-
If you use `__name__` in file or directory name of template, replace to
|
56
|
+
If you use `__name__` in file or directory name of template, replace to name argument in your command.
|
57
57
|
|
58
|
-
For example, generate `Modules/Hello/HelloViewController.swift` from template file `Modules/__name__/__name__ViewController.swift.tt` if your command is `generate TEMPLATE_SET
|
58
|
+
For example, generate `Modules/Hello/HelloViewController.swift` from template file `Modules/__name__/__name__ViewController.swift.tt` if your command is `generate TEMPLATE_SET Hello`.
|
59
59
|
|
60
60
|
### Template file rule
|
61
61
|
|
@@ -74,7 +74,7 @@ class <%= name %>ViewController: UIViewController {
|
|
74
74
|
}
|
75
75
|
```
|
76
76
|
|
77
|
-
and run generate command with name `
|
77
|
+
and run generate command with name `Hello`, then you got following result.
|
78
78
|
|
79
79
|
```swift
|
80
80
|
import UIKit
|
data/enoki.gemspec
CHANGED
data/lib/enoki/cli/generate.rb
CHANGED
@@ -23,7 +23,7 @@ module Enoki
|
|
23
23
|
end
|
24
24
|
|
25
25
|
file_list.each do |path|
|
26
|
-
resolved_path = Pathname.new(path.to_path.gsub(NAME_PLACEHOLDER, name
|
26
|
+
resolved_path = Pathname.new(path.to_path.gsub(NAME_PLACEHOLDER, name).chomp(EXT_TEMPLATE))
|
27
27
|
source_path = path.expand_path(selected_template_root).to_path
|
28
28
|
dest_path = resolved_path.expand_path(project_root).to_path
|
29
29
|
|
data/lib/enoki/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enoki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- slightair
|
@@ -56,16 +56,22 @@ dependencies:
|
|
56
56
|
name: xcodeproj
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.5'
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '2.0'
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- - "
|
69
|
+
- - ">="
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: '1.5'
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '2.0'
|
69
75
|
description: Code generator for Xcode project. You can manage multiple user-defined
|
70
76
|
file template set in your project.
|
71
77
|
email:
|