cheatset 1.2.8 → 1.2.9
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 +5 -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: ee0d691d3ee17617416dae8ba38f66f06a8745e2
|
|
4
|
+
data.tar.gz: 11f6980fc56212d742096f7b6418f62b9271e18d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7ea750024b1303a947684210d87dc2b200663ae2899afc7c80ae7481b4d307d85886667cf43d17b31e8e142b38ab59bf1c0d3233dab1be4c24c51f659678834
|
|
7
|
+
data.tar.gz: 8112b62289e20ae25e12165e324cc2797f3d449c898c09d5e23a5b5cfe3d467ec7f3333a86bda8581c5f519770a75c1ab01e11403a23b9da0c56aaa7c4f31592
|
data/lib/cheatset/creator.rb
CHANGED
|
@@ -74,9 +74,13 @@ class Cheatset::Creator
|
|
|
74
74
|
type TEXT, path TEXT);
|
|
75
75
|
CREATE UNIQUE INDEX anchor ON searchIndex (name, type, path);
|
|
76
76
|
SQL
|
|
77
|
+
|
|
78
|
+
sql = 'INSERT INTO searchIndex(name, type, path) VALUES (?, ?, ?)'
|
|
79
|
+
db.execute(sql, @cheatsheet.title, 'Category',
|
|
80
|
+
"index.html")
|
|
81
|
+
|
|
77
82
|
@cheatsheet.categories.each do |category|
|
|
78
83
|
category_strip = URI.escape(category.id.strip).gsub(/\//, '%252F');
|
|
79
|
-
sql = 'INSERT INTO searchIndex(name, type, path) VALUES (?, ?, ?)'
|
|
80
84
|
db.execute(sql, category.id, 'Category',
|
|
81
85
|
"index.html\#//dash_ref/Category/#{category_strip}/1")
|
|
82
86
|
category.entries.each_with_index do |entry, index|
|
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.9
|
|
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-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|