coderay_bash 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Bash scanner for highlighting scripts with CodeRay
2
2
  ==================================================
3
3
 
4
+ ### Instalation
5
+
6
+ gem install coderay_bash
7
+
4
8
  ### Usage
5
9
 
6
10
  require 'rubygems'
@@ -9,8 +13,8 @@ Bash scanner for highlighting scripts with CodeRay
9
13
  plain = File.read('some_script.sh')
10
14
  @body = CodeRay.scan(plain, :bash).div
11
15
 
12
- ### in your template then do some thing like
16
+ ### in your template then do something like
13
17
 
14
18
  <%= @body %>
15
19
 
16
- For more information see [CodeRay we pages](http://coderay.rubychan.de/)
20
+ For more information see [CodeRay web pages](http://coderay.rubychan.de/)
data/coderay_bash.gemspec CHANGED
@@ -13,7 +13,7 @@ spec = Gem::Specification.new do |s|
13
13
  s.email = "pejuko@gmail.com"
14
14
  s.authors = ["Petr Kovar"]
15
15
  s.name = 'coderay_bash'
16
- s.version = '0.1.2'
16
+ s.version = '0.1.3'
17
17
  s.date = Time.now.strftime("%Y-%m-%d")
18
18
  s.add_dependency('coderay', '< 1.0')
19
19
  s.require_path = 'lib'
@@ -63,7 +63,9 @@ module Scanners
63
63
  end
64
64
 
65
65
  if state == :initial
66
- if match = scan(/#.*/)
66
+ if match = scan(/\A#!.*/)
67
+ kind = :directive
68
+ elsif match = scan(/#.*/)
67
69
  kind = :comment
68
70
  elsif match = scan(/(?:\. |source ).*/)
69
71
  kind = :reserved
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coderay_bash
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Petr Kovar
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-29 00:00:00 +02:00
18
+ date: 2010-08-30 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -47,8 +47,8 @@ files:
47
47
  - README.md
48
48
  - coderay_bash.gemspec
49
49
  - Rakefile
50
- - lib/coderay/scanners/bash.rb
51
50
  - lib/coderay_bash.rb
51
+ - lib/coderay/scanners/bash.rb
52
52
  has_rdoc: true
53
53
  homepage: http://github.com/pejuko/coderay_bash
54
54
  licenses: []