cheatset 1.2.12 → 1.2.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd3bb678d6d0344ce0c1da26b5800010d13911bb
4
- data.tar.gz: 879fdddea1e994626926578a5e603d15875a52bd
3
+ metadata.gz: a7a09e8206895b8285a71ee77bdef5c4e84ac894
4
+ data.tar.gz: 0cc422f1cd30f8d2f3101fcc3325438c7fcafc1e
5
5
  SHA512:
6
- metadata.gz: 48c170a229e68d486a5498bf7ab9e21c20e0bb0c7faeb2f37cb0be09d7340d930470c1ce8c93111e6fa0db5ec683f9c6825d3c9ce32f785db60c312666925e85
7
- data.tar.gz: 74ee753dfdfc04b22fe79b1e21146d63276a97fe27a9fe2861cde7d353e9749916d0d39834c4d916604aae504d4d00eb90d8d1cfd7362c4e6ed53769b1fdba43
6
+ metadata.gz: e0f42d4fea47d4c694f2d5ccddd04ee67f02fe5069eea0e74c99986e41881984faf476a94ee1e7bd2a6656b3c2f13bd3e015ad1e15c45936486992e6a002f67f
7
+ data.tar.gz: 4e43983fd46c4487f39c81183281a61a4d85933b10804c54b46f60f70a0bdf2d33298ec9ca2b477b6dc4a4eef6af5c04293d6ac45fc13996c67d9ea36b6cdc13
@@ -107,8 +107,8 @@ class Cheatset::Creator
107
107
  end
108
108
  end
109
109
  if entry.name
110
- db.execute(sql, entry.tags_stripped_name.strip, 'Entry',
111
- "index.html\#//dash_ref_#{category_strip}/Entry/#{URI.escape(entry.tags_stripped_name.strip).gsub(/\//, '%252F')}/0")
110
+ db.execute(sql, (entry.index_name) ? entry.index_name.strip : entry.tags_stripped_name.strip, 'Entry',
111
+ "index.html\#//dash_ref_#{category_strip}/Entry/#{URI.escape(entry.tags_stripped_name.strip).gsub(/\//, '%252F')}/0")
112
112
  end
113
113
  end
114
114
  end
@@ -2,6 +2,7 @@ module Cheatset
2
2
  module DSL
3
3
  class Entry < Base
4
4
  define_list_attrs :command, :td_command
5
+ define_attrs :index_name
5
6
  define_markdown_attrs :name, :notes
6
7
  define_markdown_list_attrs :td_notes
7
8
  end
@@ -1,3 +1,3 @@
1
1
  module Cheatset
2
- VERSION = '1.2.12'
2
+ VERSION = '1.2.13'
3
3
  end
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.12
4
+ version: 1.2.13
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-29 00:00:00.000000000 Z
11
+ date: 2014-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler