cheatset 1.3.7 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cheatset/creator.rb +6 -1
- data/lib/cheatset/dsl/entry.rb +1 -1
- 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: c17d60608527a7bfaf467040fc3f3ff24feeb33e
|
|
4
|
+
data.tar.gz: 3ec579d38fff206c660ad8de50e318ec5189fd72
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4403ac5eec70a0d560c5db741ce605e13fa7ac2ef16790e79d78693854edbebb51e669bbf7e141a1e8cb4705ce44f9899b1b1dbbd7b07de8675913b1285dd266
|
|
7
|
+
data.tar.gz: 23a3021db0729fe6feec2f7e9292b86c9f0f4727e8776604c609365e7b6521733a4213e778ef9c1bd20292d526aba236d509e4a557bfe04afe7fd7bd3ae30763
|
data/lib/cheatset/creator.rb
CHANGED
|
@@ -96,7 +96,7 @@ class Cheatset::Creator
|
|
|
96
96
|
if entry.command && entry.command.length > 0
|
|
97
97
|
first_command = entry.command.first
|
|
98
98
|
end
|
|
99
|
-
href = (entry.name || entry.index_name) ? "index.html\#//dash_ref_#{category_strip}/Entry/#{URI.escape((entry.
|
|
99
|
+
href = (entry.name || entry.index_name) ? "index.html\#//dash_ref_#{category_strip}/Entry/#{URI.escape((entry.index_name) ? entry.index_name.strip : entry.tags_stripped_name.strip).gsub(/\//, '%252F')}/0" : (first_command) ? "index.html\#//dash_ref_#{category_strip}/Command/#{URI.escape(first_command).gsub(/\//, '%252F')}/0" : ""
|
|
100
100
|
if entry.command
|
|
101
101
|
entry.command.each do |command|
|
|
102
102
|
if(!command.strip.empty?)
|
|
@@ -114,6 +114,11 @@ class Cheatset::Creator
|
|
|
114
114
|
if entry.name || entry.index_name
|
|
115
115
|
db.execute(sql, (entry.index_name) ? entry.index_name.strip : entry.tags_stripped_name.strip, 'Entry', href)
|
|
116
116
|
end
|
|
117
|
+
if entry.extra_index_name
|
|
118
|
+
entry.extra_index_name.each do |extra_index_name|
|
|
119
|
+
db.execute(sql, extra_index_name.strip, 'Entry', href)
|
|
120
|
+
end
|
|
121
|
+
end
|
|
117
122
|
end
|
|
118
123
|
end
|
|
119
124
|
end
|
data/lib/cheatset/dsl/entry.rb
CHANGED
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.3.
|
|
4
|
+
version: 1.3.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bogdan Popescu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-07-
|
|
11
|
+
date: 2018-07-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|