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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ee50b2cbb881990f7bdf834c1f297e094a3ecbc
4
- data.tar.gz: e91effb486c77fc5c71198b09bca0790ae5e2ac6
3
+ metadata.gz: c17d60608527a7bfaf467040fc3f3ff24feeb33e
4
+ data.tar.gz: 3ec579d38fff206c660ad8de50e318ec5189fd72
5
5
  SHA512:
6
- metadata.gz: feda84b6a80097c87d5699231bdbb0a58f4902b4721f67254a3c021277d78eea6efb3a5e41cc48e288ba2c49c08beb6d682716c4fc97fcae6d58e1e70d9af137
7
- data.tar.gz: ea6826ff85d90833e881cae84c30bfd76208f9809e690d577e1777d5578c397561f37a746b09870755f8fef3f5068b1dc97698bd0d08a8eab6db415be98fea95
6
+ metadata.gz: 4403ac5eec70a0d560c5db741ce605e13fa7ac2ef16790e79d78693854edbebb51e669bbf7e141a1e8cb4705ce44f9899b1b1dbbd7b07de8675913b1285dd266
7
+ data.tar.gz: 23a3021db0729fe6feec2f7e9292b86c9f0f4727e8776604c609365e7b6521733a4213e778ef9c1bd20292d526aba236d509e4a557bfe04afe7fd7bd3ae30763
@@ -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.name) ? entry.tags_stripped_name.strip : entry.index_name.strip).gsub(/\//, '%252F')}/0" : (first_command) ? "index.html\#//dash_ref_#{category_strip}/Command/#{URI.escape(first_command).gsub(/\//, '%252F')}/0" : ""
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
@@ -1,7 +1,7 @@
1
1
  module Cheatset
2
2
  module DSL
3
3
  class Entry < Base
4
- define_list_attrs :command, :td_command
4
+ define_list_attrs :command, :td_command, :extra_index_name
5
5
  define_attrs :index_name
6
6
  define_markdown_attrs :name, :notes
7
7
  define_markdown_list_attrs :td_notes
@@ -1,3 +1,3 @@
1
1
  module Cheatset
2
- VERSION = '1.3.7'
2
+ VERSION = '1.3.8'
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.3.7
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-06 00:00:00.000000000 Z
11
+ date: 2018-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler