cheatset 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cheatset/templates/style.css +14 -11
- data/lib/cheatset/templates/style.scss +4 -0
- data/lib/cheatset/templates/template.haml +27 -26
- 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: a7d3d3abd49aff79a308b3198d4d35a3f332e9d1
|
4
|
+
data.tar.gz: 418d56d4285c6b2ff1d98dbf70fe507eadef5310
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5333a16ed667cf9313d8d2630438c1253f6da385efe29864e7fc03b630f064c45aaab20866772b9c894d9ef219a95e62d7455e9372c1f06a9ed7d9066f2f980d
|
7
|
+
data.tar.gz: c3bbfc96346aed984e9b9c4c3584eb492cc3fcb06e39b031aa660089a7f6943df54d143f6edb7d60b96f4f65480144021db745dde0f7f6df1ccb2b69eb1f8805
|
@@ -45,8 +45,8 @@ h1, h2, h3, p, blockquote {
|
|
45
45
|
body {
|
46
46
|
font-family: 'Open Sans', sans-serif;
|
47
47
|
font-size: 14px;
|
48
|
-
color:
|
49
|
-
background-color:
|
48
|
+
color: #000;
|
49
|
+
background-color: #fff;
|
50
50
|
margin: 0; }
|
51
51
|
|
52
52
|
code, pre {
|
@@ -68,7 +68,7 @@ code:before, code:after {
|
|
68
68
|
|
69
69
|
header {
|
70
70
|
color: #efefef;
|
71
|
-
background-color: #
|
71
|
+
background-color: #666;
|
72
72
|
padding: 0px 10px 3px 10px; }
|
73
73
|
|
74
74
|
h1 {
|
@@ -76,7 +76,7 @@ h1 {
|
|
76
76
|
font-weight: 600; }
|
77
77
|
|
78
78
|
footer {
|
79
|
-
background-color: #
|
79
|
+
background-color: #666;
|
80
80
|
color: #efefef;
|
81
81
|
text-align: center;
|
82
82
|
padding: 3px 0px; }
|
@@ -86,28 +86,28 @@ footer {
|
|
86
86
|
section.notes {
|
87
87
|
margin-top: 1em; }
|
88
88
|
section.notes h2 {
|
89
|
-
color: #
|
89
|
+
color: #666;
|
90
90
|
font-size: 1.5em; }
|
91
91
|
|
92
92
|
article {
|
93
93
|
margin: 2em 1em; }
|
94
94
|
|
95
95
|
section.category {
|
96
|
-
border: 2px solid #
|
96
|
+
border: 2px solid #666;
|
97
97
|
border-radius: 6px 6px;
|
98
|
-
background-color: #
|
98
|
+
background-color: #666;
|
99
99
|
margin: 2em 0;
|
100
100
|
overflow: hidden;
|
101
101
|
padding-bottom: 5px; }
|
102
102
|
section.category h2 {
|
103
|
-
color:
|
103
|
+
color: #fff;
|
104
104
|
font-size: 1.5em;
|
105
105
|
text-align: center;
|
106
106
|
margin-top: -2px;
|
107
107
|
font-weight: 600; }
|
108
108
|
|
109
109
|
table {
|
110
|
-
background-color:
|
110
|
+
background-color: #fff;
|
111
111
|
border-collapse: collapse;
|
112
112
|
width: 100%; }
|
113
113
|
|
@@ -132,7 +132,7 @@ td.command, td.td_command {
|
|
132
132
|
text-align: right; }
|
133
133
|
td.command code, td.td_command code {
|
134
134
|
padding: .1em 0.2em;
|
135
|
-
box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px
|
135
|
+
box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #fff inset;
|
136
136
|
border-radius: 3px;
|
137
137
|
border: 1px solid #ccc;
|
138
138
|
background-color: #efefef;
|
@@ -155,7 +155,7 @@ th:nth-child(1), td:nth-child(1) {
|
|
155
155
|
border-left: none; }
|
156
156
|
|
157
157
|
a {
|
158
|
-
color: #
|
158
|
+
color: #666; }
|
159
159
|
|
160
160
|
p {
|
161
161
|
margin: 0 0 7px; }
|
@@ -379,3 +379,6 @@ pre {
|
|
379
379
|
|
380
380
|
ul {
|
381
381
|
padding-left: 24px; }
|
382
|
+
|
383
|
+
.scrollable {
|
384
|
+
overflow-x: auto; }
|
@@ -34,33 +34,34 @@
|
|
34
34
|
%a{name: "//dash_ref/Entry/#{category.id.strip.gsub(/\//, '%2F')}/0"}
|
35
35
|
%h2{id:"//dash_ref/Category/#{category.id.strip.gsub(/\//, '%2F')}/1"}
|
36
36
|
= category.id
|
37
|
-
%
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
37
|
+
%div.scrollable
|
38
|
+
%table
|
39
|
+
- if category.header
|
40
|
+
%tr
|
41
|
+
- category.header.each do |header|
|
42
|
+
%th~ header
|
42
43
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
44
|
+
- category.entries.each_with_index do |entry, index|
|
45
|
+
%tr{id: ((entry.name || entry.index_name) ? "//dash_ref_#{category.id.strip.gsub(/\//, '%2F')}/Entry/#{(entry.name) ? entry.tags_stripped_name.strip.gsub(/\//, '%2F') : entry.index_name.strip.gsub(/\//, '%2F')}/0" : "//dash_ref_#{category.id.strip.gsub(/\//, '%2F')}/Command/#{entry.command.first.strip.gsub(/\//, '%2F')}/0" if (entry.name || entry.index_name || (entry.command && entry.command.length > 0)) )}
|
46
|
+
- if entry.command
|
47
|
+
%td.command
|
48
|
+
- entry.command.each do |command|
|
49
|
+
%p
|
50
|
+
%code= CGI.escapeHTML(command)
|
51
|
+
- if entry.td_command
|
52
|
+
- entry.td_command.each do |command|
|
53
|
+
%td.td_command
|
54
|
+
- if !command.empty?
|
55
|
+
%code= CGI.escapeHTML(command)
|
56
|
+
- if entry.name || entry.notes
|
57
|
+
%td.description{:colspan => ("2" unless entry.command || entry.td_command || entry.td_notes)}
|
58
|
+
.name~ entry.name
|
59
|
+
.notes~ entry.notes
|
60
|
+
- if entry.td_notes
|
61
|
+
- entry.td_notes.each do |notes|
|
62
|
+
%td.td_notes
|
63
|
+
- if !notes.empty?
|
64
|
+
.td_notes~ notes
|
64
65
|
- if notes
|
65
66
|
%section.notes
|
66
67
|
%h2 Notes
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bogdan Popescu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|