rust_playground_highlight 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -0
- data/VERSION.md +4 -0
- data/lib/rust_playground_highlight.rb +1 -1
- data/rust_playground_highlight.gemspec +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: b93171d27e83a0eef9d510beb94e907746ddc77a
|
4
|
+
data.tar.gz: b98f7c3c207e51bd12acf48bdb42a6fa7bde8aaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15cd1db5fe0324cf388bc86f9c82d91cf6d8d69801ab56ba259a9dab82da5ec91d09ad2d5ffac749478f82299353cbc0786154b2ebe10b33f1d7d1a492dbcee7
|
7
|
+
data.tar.gz: 21f616a4879d0513a5ad0b890b38d94c883cf5c182f3556b699f392c9b9c660199fabec4b47098e203b41b79e3faf19722b871b17b706d2849f5c801d5054694
|
data/README.md
CHANGED
@@ -69,6 +69,25 @@ div.highlight a.playground {
|
|
69
69
|
}
|
70
70
|
```
|
71
71
|
|
72
|
+
## Installation
|
73
|
+
|
74
|
+
In your Gemfile, add
|
75
|
+
|
76
|
+
```
|
77
|
+
gem 'rust_playground_highlight', :require => 'rust_playground_highlight'
|
78
|
+
```
|
79
|
+
|
80
|
+
Then run `bundle`
|
81
|
+
|
82
|
+
In your `_plugins` directory (which you can create, if you don't have one), add the file `bundler.rb` with the content:
|
83
|
+
|
84
|
+
```
|
85
|
+
# _plugins/bundler.rb
|
86
|
+
require "rubygems"
|
87
|
+
require "bundler/setup"
|
88
|
+
Bundler.require(:default)
|
89
|
+
```
|
90
|
+
|
72
91
|
## Requirements
|
73
92
|
- I am using this with Jekyll 2.5.3. It *should* work with Jekyll 3.
|
74
93
|
- The CSS classes on the button assume you have Bootstrap.
|
data/VERSION.md
CHANGED
@@ -10,7 +10,7 @@ module Jekyll
|
|
10
10
|
def render(context)
|
11
11
|
#calls render on Liquid::Block, which returns the content of the block
|
12
12
|
self.raw = self.method(:render).super_method.super_method.call(context).to_s.strip
|
13
|
-
self.gist_id = options_hash[:
|
13
|
+
self.gist_id = options_hash[:gist_id]
|
14
14
|
super
|
15
15
|
end
|
16
16
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "rust_playground_highlight"
|
7
|
-
gem.version = '0.1.
|
7
|
+
gem.version = '0.1.3'
|
8
8
|
gem.authors = ["IanWhitney"]
|
9
9
|
gem.email = "ian@ianwhitney.com"
|
10
10
|
gem.description = %q{Automatically add links to the Rust Playground for code samples in your Jekyll site.}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rust_playground_highlight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IanWhitney
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|