coderay 1.1.0.rc3 → 1.1.0.rc4
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 +4 -4
- data/lib/coderay/helpers/file_type.rb +2 -2
- 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: 4273da537d959978b502a11519c872c2b37bcd7d
|
|
4
|
+
data.tar.gz: dfddb0449f3b9deb01762e540229734ca9464080
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52854fead30d395a3850fe4d8648390aadda38a72c265e39eb5ccadcf65a34e5749793f385bb33a5481585291e5d3daf914d1897bf62af4be1e8bc89bc1964f8
|
|
7
|
+
data.tar.gz: 0c03faadff87b289ef853a2c4d1fb03ebf955b0a57e04ddd071160f6c9ad99e70fc7ba42d94e675c08e97089fef2849a08a22732dd6668569fb2abd916cf0c70
|
|
@@ -38,7 +38,7 @@ module CodeRay
|
|
|
38
38
|
(TypeFromExt[ext2.downcase] if ext2) ||
|
|
39
39
|
TypeFromName[name] ||
|
|
40
40
|
TypeFromName[name.downcase]
|
|
41
|
-
type ||=
|
|
41
|
+
type ||= type_from_shebang(filename) if read_shebang
|
|
42
42
|
|
|
43
43
|
type
|
|
44
44
|
end
|
|
@@ -63,7 +63,7 @@ module CodeRay
|
|
|
63
63
|
|
|
64
64
|
protected
|
|
65
65
|
|
|
66
|
-
def
|
|
66
|
+
def type_from_shebang filename
|
|
67
67
|
return unless File.exist? filename
|
|
68
68
|
File.open filename, 'r' do |f|
|
|
69
69
|
if first_line = f.gets
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: coderay
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.0.
|
|
4
|
+
version: 1.1.0.rc4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kornelius Kalnbach
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-08-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Fast and easy syntax highlighting for selected languages, written in
|
|
14
14
|
Ruby. Comes with RedCloth integration and LOC counter.
|