cheatset 1.3.7 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6ee50b2cbb881990f7bdf834c1f297e094a3ecbc
4
- data.tar.gz: e91effb486c77fc5c71198b09bca0790ae5e2ac6
2
+ SHA256:
3
+ metadata.gz: d6e82e43c4402b68c129a13be55550581f4633e6a41e2abc969c84437e6936ed
4
+ data.tar.gz: 9f073f4fce052749b72935977bac5f6f91f36734466a5fc9908b808132fcc587
5
5
  SHA512:
6
- metadata.gz: feda84b6a80097c87d5699231bdbb0a58f4902b4721f67254a3c021277d78eea6efb3a5e41cc48e288ba2c49c08beb6d682716c4fc97fcae6d58e1e70d9af137
7
- data.tar.gz: ea6826ff85d90833e881cae84c30bfd76208f9809e690d577e1777d5578c397561f37a746b09870755f8fef3f5068b1dc97698bd0d08a8eab6db415be98fea95
6
+ metadata.gz: 54c3999aae21439650008792948b94a975ca002ff743703e6a8f15fa36ed42f874ba6332e319a1bcbc118de99f90f5ad0659ed2520f28a100eda3c4cdbf25d4a
7
+ data.tar.gz: 79ca59e3666d0c1d6ae22bdfdca10ab556c94a92120f3b4846fa20bb2cc15051af77f563123e7635054278247d3f42e9f0e9ace0e4e81693072d09c3205dfccc
data/README.md CHANGED
@@ -8,7 +8,7 @@ language (Ruby DSL).
8
8
 
9
9
  ## Installation
10
10
 
11
- $ sudo gem install cheatset --no-ri --no-rdoc
11
+ $ sudo gem install cheatset
12
12
 
13
13
  Note: this requires the Xcode Command Line Tools to be installed. Install them using this:
14
14
 
@@ -16,7 +16,7 @@ Note: this requires the Xcode Command Line Tools to be installed. Install them u
16
16
 
17
17
  ## Contributions
18
18
 
19
- If you make an useful cheat sheet, please [contribute it](https://github.com/Kapeli/cheatsheets#readme) to Dash.
19
+ If you make a useful cheat sheet, please [contribute it](https://github.com/Kapeli/cheatsheets#readme) to Dash.
20
20
 
21
21
  ## Usage
22
22
 
@@ -96,23 +96,30 @@ 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
- if(!command.strip.empty?)
102
+ if(!command.strip.empty? && !entry.not_in_main_index)
103
103
  db.execute(sql, command.strip, 'Command', href)
104
104
  end
105
105
  end
106
106
  end
107
107
  if entry.td_command
108
108
  entry.td_command.each do |command|
109
- if(!command.strip.empty?)
109
+ if(!command.strip.empty? && !entry.not_in_main_index)
110
110
  db.execute(sql, command.strip, 'Command', href)
111
111
  end
112
112
  end
113
113
  end
114
114
  if entry.name || entry.index_name
115
- db.execute(sql, (entry.index_name) ? entry.index_name.strip : entry.tags_stripped_name.strip, 'Entry', href)
115
+ if(!entry.not_in_main_index)
116
+ db.execute(sql, (entry.index_name) ? entry.index_name.strip : entry.tags_stripped_name.strip, 'Entry', href)
117
+ end
118
+ end
119
+ if entry.extra_index_name
120
+ entry.extra_index_name.each do |extra_index_name|
121
+ db.execute(sql, extra_index_name.strip, 'Entry', href)
122
+ end
116
123
  end
117
124
  end
118
125
  end
@@ -1,8 +1,8 @@
1
1
  module Cheatset
2
2
  module DSL
3
3
  class Entry < Base
4
- define_list_attrs :command, :td_command
5
- define_attrs :index_name
4
+ define_list_attrs :command, :td_command, :extra_index_name
5
+ define_attrs :index_name, :not_in_main_index
6
6
  define_markdown_attrs :name, :notes
7
7
  define_markdown_list_attrs :td_notes
8
8
  end
@@ -44,14 +44,14 @@ h1, h2, h3, p, blockquote {
44
44
  src: local("Open Sans Extrabold Italic"), local("OpenSans-ExtraboldItalic"), url(cheatset_resources/Open_Sans_Extrabold_Italic.woff) format("woff"); }
45
45
  body {
46
46
  font-family: 'Open Sans', sans-serif;
47
- font-size: 14px;
47
+ font-size: 16px;
48
48
  color: #000;
49
49
  background-color: #fff;
50
50
  margin: 0; }
51
51
 
52
52
  code, pre {
53
53
  font-family: Menlo, Consolas, "Liberation Mono", Courier, monospace;
54
- font-size: 13px; }
54
+ font-size: 15px; }
55
55
 
56
56
  code {
57
57
  margin: 0;
@@ -1,3 +1,3 @@
1
1
  module Cheatset
2
- VERSION = '1.3.7'
2
+ VERSION = '1.4.1'
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.4.1
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: 2020-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -152,8 +152,7 @@ dependencies:
152
152
  version: '0'
153
153
  description: Generate cheat sheets for Dash
154
154
  email:
155
- executables:
156
- - cheatset
155
+ executables: []
157
156
  extensions: []
158
157
  extra_rdoc_files: []
159
158
  files:
@@ -162,7 +161,6 @@ files:
162
161
  - LICENSE.txt
163
162
  - README.md
164
163
  - Rakefile
165
- - bin/cheatset
166
164
  - cheatset.gemspec
167
165
  - lib/cheatset.rb
168
166
  - lib/cheatset/cli.rb
@@ -204,8 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
202
  - !ruby/object:Gem::Version
205
203
  version: '0'
206
204
  requirements: []
207
- rubyforge_project:
208
- rubygems_version: 2.2.5
205
+ rubygems_version: 3.0.1
209
206
  signing_key:
210
207
  specification_version: 4
211
208
  summary: Generate cheat sheets for Dash
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- $LOAD_PATH << File.expand_path('../../lib', __FILE__)
4
- require 'cheatset'
5
- require 'cheatset/cli'
6
- Cheatset::CLI.start