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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da2d12d3813a728504609b58be95ac80b3e7269e
4
- data.tar.gz: 83eccffcda4a354391413123402dcdb127378472
3
+ metadata.gz: d368ece5a97d37809adfd7791b4a4040477acba3
4
+ data.tar.gz: 80ac8eb8ded8aac87779ed7acaa416617d18b93a
5
5
  SHA512:
6
- metadata.gz: 318735313acbd4a185874632ca0bcf91b680480af62b52ede58dd46182ebfc2c649610f23d6235b83e2ce7cc25ec4deabef08f69b3b426b801bf70019e4378c8
7
- data.tar.gz: 7c7f05fe7648ae966bbea1c06c0783076874da4f4b5f8a735f8604e421fb86f27ab0f780d2ad9f216d682f4231dd029c85f98ddd6c04470b6826a59c788168ec
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 capitalized name argument in your command.
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 hello`.
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 `hello`, then you got following result.
77
+ and run generate command with name `Hello`, then you got following result.
78
78
 
79
79
  ```swift
80
80
  import UIKit
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
25
 
26
26
  spec.add_dependency "thor", "~> 0.19"
27
- spec.add_dependency "xcodeproj", "~> 1.5"
27
+ spec.add_dependency "xcodeproj", [">= 1.5", "< 2.0"]
28
28
  end
@@ -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.capitalize).chomp(EXT_TEMPLATE))
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
 
@@ -1,3 +1,3 @@
1
1
  module Enoki
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.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: