onebox 1.8.49 → 1.8.50
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onebox/version.rb +1 -1
- data/templates/githubblob.mustache +37 -0
- data/templates/gitlabblob.mustache +14 -0
- metadata +1 -2
- data/templates/git_blob.mustache +0 -37
- data/templates/githubblob.mustache +0 -1
- data/templates/gitlabblob.mustache +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e62d2b22c537e8c97becadbcc8f4c5d4b0ea5b31b1b096cfb4904ee39ff583c
|
4
|
+
data.tar.gz: 8794956832c051ea3da3422490884d51b0dc244f12a4459447fd476573718fe1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cc79d2f6e1960dd1c24d203fa0a55227fd8e0f62a077084dc7efe4304a723f518cfd9a3b7a0a0976615f5a06cb2653495b5a0e4934db85d151411c6c4e4b4e4
|
7
|
+
data.tar.gz: 3155f199ad086c65413602dee4a11d94899e56d59e357db82edaac0ed3a50a53d113b12aaa7f60fb00ae56f6bd70c4b243228160bb7b604bee7e110cab545822
|
data/lib/onebox/version.rb
CHANGED
@@ -0,0 +1,37 @@
|
|
1
|
+
<h4><a href="{{link}}" target="_blank">{{title}}</a></h4>
|
2
|
+
{{^has_lines}}
|
3
|
+
<pre><code class='{{lang}}'>{{content}}</code></pre>
|
4
|
+
{{/has_lines}}
|
5
|
+
{{#has_lines}}
|
6
|
+
{{! This is a template comment | Sample rules for this box
|
7
|
+
<style>
|
8
|
+
pre.onebox code ol{
|
9
|
+
margin-left:0px;
|
10
|
+
}
|
11
|
+
pre.onebox code ol .lines{
|
12
|
+
margin-left:30px;
|
13
|
+
}
|
14
|
+
pre.onebox code ol.lines li {
|
15
|
+
list-style-type: decimal;
|
16
|
+
margin-left:45px;
|
17
|
+
}
|
18
|
+
pre.onebox code li{
|
19
|
+
list-style-type: none;
|
20
|
+
background-color:#fff;
|
21
|
+
border-bottom:1px solid #F0F0F0;
|
22
|
+
padding-left:5px;
|
23
|
+
|
24
|
+
}
|
25
|
+
pre.onebox code li.selected{
|
26
|
+
background-color:#cfc
|
27
|
+
}
|
28
|
+
</style>
|
29
|
+
}}
|
30
|
+
<pre class='onebox' ><code class='{{lang}}'><ol class='start lines' start="{{cr_results.from}}" style='counter-reset: li-counter {{cr_results.from_minus_one}} ;'>
|
31
|
+
{{#lines}}<li{{#selected}} class="selected"{{/selected}}>{{data}}</li>{{/lines}}
|
32
|
+
</ol></code></pre>
|
33
|
+
{{/has_lines}}
|
34
|
+
|
35
|
+
{{#truncated}}
|
36
|
+
This file has been truncated. <a href="{{link}}" target="_blank">show original</a>
|
37
|
+
{{/truncated}}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<h4><a href="{{link}}" target="_blank">{{title}}</a></h4>
|
2
|
+
{{^has_lines}}
|
3
|
+
<pre><code class='{{lang}}'>{{content}}</code></pre>
|
4
|
+
{{/has_lines}}
|
5
|
+
|
6
|
+
{{#has_lines}}
|
7
|
+
<pre class='onebox'><code class='{{lang}}'><ol class='start lines' start="{{cr_results.from}}" style='counter-reset: li-counter {{cr_results.from_minus_one}} ;'>
|
8
|
+
{{#lines}}<li{{#selected}} class="selected"{{/selected}}>{{data}}</li>{{/lines}}
|
9
|
+
</ol></code></pre>
|
10
|
+
{{/has_lines}}
|
11
|
+
|
12
|
+
{{#truncated}}
|
13
|
+
This file has been truncated. <a href="{{link}}" target="_blank">show original</a>
|
14
|
+
{{/truncated}}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onebox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.50
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joanna Zeta
|
@@ -375,7 +375,6 @@ files:
|
|
375
375
|
- templates/_layout.mustache
|
376
376
|
- templates/amazon.mustache
|
377
377
|
- templates/douban.mustache
|
378
|
-
- templates/git_blob.mustache
|
379
378
|
- templates/githubblob.mustache
|
380
379
|
- templates/githubcommit.mustache
|
381
380
|
- templates/githubgist.mustache
|
data/templates/git_blob.mustache
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
<h4><a href="{{link}}" target="_blank">{{title}}</a></h4>
|
2
|
-
{{^has_lines}}
|
3
|
-
<pre><code class='{{lang}}'>{{content}}</code></pre>
|
4
|
-
{{/has_lines}}
|
5
|
-
{{#has_lines}}
|
6
|
-
{{! This is a template comment | Sample rules for this box
|
7
|
-
<style>
|
8
|
-
pre.onebox code ol{
|
9
|
-
margin-left:0px;
|
10
|
-
}
|
11
|
-
pre.onebox code ol .lines{
|
12
|
-
margin-left:30px;
|
13
|
-
}
|
14
|
-
pre.onebox code ol.lines li {
|
15
|
-
list-style-type: decimal;
|
16
|
-
margin-left:45px;
|
17
|
-
}
|
18
|
-
pre.onebox code li{
|
19
|
-
list-style-type: none;
|
20
|
-
background-color:#fff;
|
21
|
-
border-bottom:1px solid #F0F0F0;
|
22
|
-
padding-left:5px;
|
23
|
-
|
24
|
-
}
|
25
|
-
pre.onebox code li.selected{
|
26
|
-
background-color:#cfc
|
27
|
-
}
|
28
|
-
</style>
|
29
|
-
}}
|
30
|
-
<pre class='onebox' ><code class='{{lang}}'><ol class='start lines' start="{{cr_results.from}}" style='counter-reset: li-counter {{cr_results.from_minus_one}} ;'>
|
31
|
-
{{#lines}}<li{{#selected}} class="selected"{{/selected}}>{{data}}</li>{{/lines}}
|
32
|
-
</ol></code></pre>
|
33
|
-
{{/has_lines}}
|
34
|
-
|
35
|
-
{{#truncated}}
|
36
|
-
This file has been truncated. <a href="{{link}}" target="_blank">show original</a>
|
37
|
-
{{/truncated}}
|
@@ -1 +0,0 @@
|
|
1
|
-
templates/git_blob.mustache
|
@@ -1 +0,0 @@
|
|
1
|
-
templates/git_blob.mustache
|