jekyll-highlight 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1c937d8c8bfd2ca89319de6020dab4862c3a4e3
4
- data.tar.gz: 55fe13f8f4ddb163cbf364df12825a21fb8a6854
3
+ metadata.gz: 3ce2bd4220981d61f17d901f415d2233d66616d2
4
+ data.tar.gz: bf59b3f71e3c49546f6ca62a0fbd6f65f9a1e332
5
5
  SHA512:
6
- metadata.gz: 663bc41edd1f6b4c10c6f4920c226e3a9f992c65e2edb8fb473b9a198eac5b996b7ba0c391dd7dbbf440ab13741518a51fae04a209fb497af7f16e112d04aee2
7
- data.tar.gz: 5690285ae2a2f383875d66087dfbea5a78e981f7b6475fcc6f0e2865d4d076a217df42aa12d15a87e0a3e35569617f506037f47e2327f92ef0386a9268099ae1
6
+ metadata.gz: c0a2bd7482f2d509163a8e73bda3d03b71916a1f3ae1cb15852661fdc43991561e4acda58ae3f8a6358bcea1869994632eb82ac2c9da67010a2f069ec4b5560c
7
+ data.tar.gz: 41827231e999802e802c020d82a799bf276bf69197717fee6207e0e831cdd78089f4063d181495b5714944afb8d85bed19950d817ba5d870943d06c7e99adb5a
data/README.md CHANGED
@@ -12,11 +12,15 @@ gem 'jekyll-highlight'
12
12
 
13
13
  And then execute:
14
14
 
15
- $ bundle
15
+ ```shell
16
+ $ bundle
17
+ ```
16
18
 
17
19
  Or install it yourself as:
18
20
 
19
- $ gem install jekyll-highlight
21
+ ```shell
22
+ $ gem install jekyll-highlight
23
+ ```
20
24
 
21
25
  Finally, add the following to your `_config.yml` file:
22
26
 
@@ -40,6 +44,18 @@ end
40
44
  {% endhighlight %}
41
45
  ```
42
46
 
47
+ You can also specify the `filename` option to render a filename at the top of the code block.
48
+
49
+ ```erb
50
+ {% highlight ruby filename="demo.rb" %}
51
+ def print_hi(name)
52
+ puts "Hi, #{name}"
53
+ end
54
+ print_hi('Tom')
55
+ #=> prints 'Hi, Tom' to STDOUT.
56
+ {% endhighlight %}
57
+ ```
58
+
43
59
  ## Development
44
60
 
45
61
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -48,10 +64,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
48
64
 
49
65
  ## Contributing
50
66
 
51
- Bug reports and pull requests are welcome on GitHub at https://github.com/tbjers/jekyll-highlight. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
52
-
67
+ Bug reports and pull requests are welcome on GitHub at <https://github.com/tbjers/jekyll-highlight>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
53
68
 
54
69
  ## License
55
70
 
56
71
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
57
-
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Highlight
3
- VERSION = "1.0.5".freeze
3
+ VERSION = "1.0.6".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-highlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torgny Bjers