cheatset 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cheatset/creator.rb +3 -3
- data/lib/cheatset/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 672f5b576f2cb6142027d91fa66ec74160746961
|
4
|
+
data.tar.gz: 0e5f76bd5859196d8d36aa5b97e80eb1b7cd0046
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85e7517d35d808d30cba3a55a013b32f8c3a7ea3d7962783bcf40fb15f89db74c157874fd6e09abd23d104c9c3e0ace5a6ad327d6059aa450439d195f2eb4be5
|
7
|
+
data.tar.gz: c63edf57011b04f0334d9d84466f01b9c77e1307292bc4f3709e596ec2bb777b8a4bf2a613621d4cfe35164475dd31e1d9ca840b1d3b304a9d87942a0c623596
|
data/lib/cheatset/creator.rb
CHANGED
@@ -52,13 +52,13 @@ class Cheatset::Creator
|
|
52
52
|
def generate_plist_file
|
53
53
|
plist_data = {
|
54
54
|
'CFBundleIdentifier' => 'cheatsheet',
|
55
|
-
'CFBundleName' => @cheatsheet.title,
|
55
|
+
'CFBundleName' => (@cheatsheet.title) ? @cheatsheet.title : 'No Title',
|
56
56
|
'DocSetPlatformFamily' => 'cheatsheet',
|
57
57
|
'DashDocSetFamily' => 'cheatsheet',
|
58
58
|
'isDashDocset' => true,
|
59
59
|
'dashIndexFilePath' => 'index.html',
|
60
|
-
'DashDocSetPluginKeyword' => (@cheatsheet.platform) ? @cheatsheet.platform : @cheatsheet.keyword,
|
61
|
-
'DashDocSetKeyword' => @cheatsheet.keyword
|
60
|
+
'DashDocSetPluginKeyword' => (@cheatsheet.platform) ? @cheatsheet.platform : (@cheatsheet.keyword) ? @cheatsheet.keyword : 'cheatsheet',
|
61
|
+
'DashDocSetKeyword' => (@cheatsheet.keyword) ? @cheatsheet.keyword : 'cheatsheet'
|
62
62
|
}
|
63
63
|
File.open("#{@path}Info.plist", 'w') do |file|
|
64
64
|
file.write(Plist::Emit.dump(plist_data))
|
data/lib/cheatset/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cheatset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bogdan Popescu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|