octopress-gist 1.3.0 → 1.3.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
2
  SHA1:
3
- metadata.gz: d4f55815cdf9a8ac6c47c297a686bab4af6c046c
4
- data.tar.gz: 4ce8206a45f6aa28d83ac1963c4bd0c7ba19c5fb
3
+ metadata.gz: dd1d986d4c889fa5a136a6be849e0b2eacf1bcc4
4
+ data.tar.gz: 50105a1ef7fd7a1eea181d359758fd61b5fe4964
5
5
  SHA512:
6
- metadata.gz: 8d6f7784479998474d4ae3e57fd152575bad3cd7ccd0f0ec9ac1a92677feac0a972f6d1cfe5d787d95070b09b7e83837f00c5469f57b760e8b880d89274efa4c
7
- data.tar.gz: 1f4cafca4302be518ddfbbbcfc509bfac2c1706c688b3da20bec7d9ab4de9c2c5ac2f6c353b86b5925d656ad4468d32f3a83b6e5188ac295ab6e3b339a16cd5e
6
+ metadata.gz: ec48ecf66ada84a8d7f90993c13d6ea2bd49d797c0e0f9c7b3d9c3459b909f932be02e8f9f4221eed447767342cb3c25b23e30ff7ff1e616876175af25e8ea29
7
+ data.tar.gz: 1b4624c2e6040d2948c9de4b96cc6ad4aaf4f208ba852c23e81ab249e85a322cc4518d0f984c736530a3572f1a4ad7689ee2c00d93d507e7b0f78525b10c0fbc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.1 - 2014-06-25
4
+ - Fix: Better support for being rendered as a partial.
5
+
3
6
  ## 1.3.0
4
7
  - Added support for start, end and range options for showing code partials.
5
8
 
data/README.md CHANGED
@@ -2,33 +2,27 @@
2
2
 
3
3
  Embed GitHub Gists in your Jekyll or Octopress blog.
4
4
 
5
- [![Build Status](https://travis-ci.org/octopress/octopress-gist.png?branch=master)](https://travis-ci.org/octopress/octopress-gist)
5
+ [![Build Status](https://travis-ci.org/octopress/gist.png?branch=master)](https://travis-ci.org/octopress/gist)
6
6
 
7
7
  ## Installation
8
8
 
9
- Add this line to your application's Gemfile under
10
- the :jekyll_plugins group:
9
+ Add this line to your application's Gemfile
11
10
 
12
11
  ```ruby
13
- group :jekyll_plugins do
14
- gem 'octopress-gist'
15
- end
12
+ gem 'octopress-gist'
16
13
  ```
17
14
 
18
15
  And then execute:
19
16
 
20
17
  $ bundle
21
18
 
22
- Next add this to your plugins folder to automatically load any Jekyll plugins in your :jekyll_plugins group.
19
+ Next add the gem to your Jekyll's `gems` configuration.
23
20
 
24
- ```ruby
25
- # in _plugins/bundler.rb
26
- require "bundler/setup"
27
- Bundler.require(:jekyll_plugins)
21
+ ```yaml
22
+ gems:
23
+ - octopress-gist
28
24
  ```
29
25
 
30
- Or you can just create a ruby file in your Jekyll plugins directory with the line `require "octopress-gist"`
31
-
32
26
  ## Usage
33
27
 
34
28
  The gist syntax looks like this.
@@ -43,7 +43,9 @@ module Octopress
43
43
  begin
44
44
  code = CodeHighlighter.select_lines(file['content'], opt)
45
45
  code = CodeHighlighter.highlight(code, opt)
46
- code = "<notextile>#{code}</notextile>" if context.registers[:page]['path'].match(/textile/)
46
+ if page = context.registers[:page]
47
+ code = "<notextile>#{code}</notextile>" if page['path'] && page['path'].match(/textile/)
48
+ end
47
49
  output << code
48
50
  rescue => e
49
51
  markup = "{% #{@tag_name} #{@markup.strip} %}"
@@ -88,6 +90,7 @@ module Octopress
88
90
  retry
89
91
  end
90
92
  rescue => e
93
+ require 'pry-debugger'; binding.pry
91
94
  puts "Failed to download Gist: #{gist}.".red
92
95
  puts e.extend Error
93
96
  end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Gist
3
- VERSION = "1.3.0"
3
+ VERSION = "1.3.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-gist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2014-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll