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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8bff592dbd8aa41d4ddeb5670a64cd73885d82c2
4
- data.tar.gz: 662f10398eb79840e188251c077a62985a68ee2e
3
+ metadata.gz: 4273da537d959978b502a11519c872c2b37bcd7d
4
+ data.tar.gz: dfddb0449f3b9deb01762e540229734ca9464080
5
5
  SHA512:
6
- metadata.gz: 937b65024bdd37d6ebd39af906f12d3f4e8a43b58631ad72c48c310ef4802828cda9c4c74a9a644799bf59c56c7bafeae86d559e39833bf61f50e4a59893a861
7
- data.tar.gz: da3ae5dd02dfa9df53d1d22f99ec133c1823df1c657afa34c77f34fb152cbe426fe4869464200f4ce4fd7da66c3aff6b37611da8d2ef38ea94756421b14ad3c7
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 ||= shebang(filename) if read_shebang
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 shebang filename
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.rc3
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-07-25 00:00:00.000000000 Z
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.