TemplateInfo 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.DS_Store +0 -0
- data/README.md +13 -2
- data/bin/tif_create +8 -1
- data/lib/TemplateInfo/version.rb +1 -1
- metadata +2 -2
data/.DS_Store
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ TemplateInfo.plist file is used in xcode 4 template files.
|
|
8
8
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
|
-
gem 'TemplateInfo
|
11
|
+
gem 'TemplateInfo'
|
12
12
|
|
13
13
|
And then execute:
|
14
14
|
|
@@ -16,7 +16,7 @@ And then execute:
|
|
16
16
|
|
17
17
|
Or install it yourself as:
|
18
18
|
|
19
|
-
$ gem install TemplateInfo
|
19
|
+
$ gem install TemplateInfo
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
@@ -44,3 +44,14 @@ xcode 4的模板目录名是以**.xctemplate**结尾的。如base_ios.xctemplate
|
|
44
44
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
45
45
|
4. Push to the branch (`git push origin my-new-feature`)
|
46
46
|
5. Create new Pull Request
|
47
|
+
|
48
|
+
|
49
|
+
## History
|
50
|
+
|
51
|
+
v0.0.4:2013-04-24
|
52
|
+
|
53
|
+
- 修改了key和string生成问题
|
54
|
+
|
55
|
+
<key>libs/BeeFramework/MVC/ViewController/Extension/UIViewController+UINavigationBar.m</string>
|
56
|
+
|
57
|
+
|
data/bin/tif_create
CHANGED
@@ -126,7 +126,14 @@ def format_templateInfo_xml_to_plist(name='TemplateInfo')
|
|
126
126
|
s2 = line
|
127
127
|
line = line.sub(/\n/,'').gsub(/\s/,'');
|
128
128
|
#p "#{s1}#{line}</string>\n"
|
129
|
-
|
129
|
+
if /\s*<key>/ =~ s1
|
130
|
+
p '这个是key'
|
131
|
+
text.push "#{s1}#{line}</key>\n"
|
132
|
+
else
|
133
|
+
p '这是是string'
|
134
|
+
text.push "#{s1}#{line}</string>\n"
|
135
|
+
end
|
136
|
+
|
130
137
|
else
|
131
138
|
text.push "#{line}"
|
132
139
|
end
|
data/lib/TemplateInfo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: TemplateInfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|