rack-source 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +10 -14
  3. metadata +48 -69
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5380311a32900be9cf001ef3dd976f8b984b0155
4
+ data.tar.gz: 79e6ad1154aed1964f63d814864babdd161610a6
5
+ SHA512:
6
+ metadata.gz: f061319e2e06241e2016d1dd7f2d018e3288559a36d4160457b36ba15edf522cba5ebadad876d3684fec77577b64cec37ef1c2ee341c8e6d3c1b2b0c8af63e9a
7
+ data.tar.gz: 2bb044b61c266535d1157426371e3edcbd1eb082e2d40d9977dc6eafcca4efd83b9254c3bdeb7bdc0b1b83f06d56ea39fe22255a84af832b2bb2094f212f7c6d
data/README.md CHANGED
@@ -1,12 +1,8 @@
1
- # Rack Source
1
+ ## Rack Source
2
2
 
3
- Serves a file with syntax highlighting. Rack::Source has the simplicity of Rack::File, combined with the usefulness of Rack::CodeHighlighter, except using GitHub's Pygments gem under the hood.
3
+ Serves a file with syntax highlighting.
4
4
 
5
- # Setup
6
-
7
- ```
8
- gem install rack-source
9
- ```
5
+ ## Usage
10
6
 
11
7
  ```ruby
12
8
  # config.ru
@@ -15,11 +11,7 @@ require 'rack/source'
15
11
  run Rack::Source.new('path/to/file')
16
12
  ```
17
13
 
18
- ```
19
- rackup
20
- ```
21
-
22
- It usually does a good job of detecting the source language, but you can force it, i.e.
14
+ You can force the language if it isn't automatically detected:
23
15
 
24
16
  ```ruby
25
17
  run Rack::Source.new(__FILE__, :lexer => :ruby)
@@ -27,8 +19,12 @@ run Rack::Source.new(__FILE__, :lexer => :ruby)
27
19
 
28
20
  All parameters are passed through to [Pygments](https://github.com/tmm1/pygments.rb), so look there for additional options and supported lexers.
29
21
 
30
- # Contribution
22
+ ## Ruby 1.9+
23
+
24
+ If you're using a newer version of Ruby, you'll need to run a [thin](http://code.macournoyer.com/thin/) server instead. There is an [issue](https://github.com/tmm1/pygments.rb/issues/25) with [Pygments](https://github.com/tmm1/pygments.rb).
25
+
26
+ ## Contribution
31
27
 
32
28
  Feel free. No pull request is too small.
33
29
 
34
- [@cpatuzzo](https://twitter.com/#!/cpatuzzo)
30
+ Twitter: [@cpatuzzo](https://twitter.com/#!/cpatuzzo)
metadata CHANGED
@@ -1,94 +1,73 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rack-source
3
- version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
11
5
  platform: ruby
12
- authors:
13
- - Christopher Patuzzo
6
+ authors:
7
+ - Chris Patuzzo
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2012-06-01 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2012-06-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: rack
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
32
20
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: pygments.rb
36
21
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pygments.rb
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
46
34
  type: :runtime
47
- version_requirements: *id002
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
48
41
  description: Serves a file with syntax highlighting
49
- email: chris.patuzzo@gmail.com
42
+ email: chris@patuzzo.co.uk
50
43
  executables: []
51
-
52
44
  extensions: []
53
-
54
45
  extra_rdoc_files: []
55
-
56
- files:
46
+ files:
57
47
  - README.md
58
48
  - lib/rack/source.rb
59
49
  - lib/rack-source.rb
60
- homepage: https://github.com/cpatuzzo/rack-source
50
+ homepage: https://github.com/tuzz/rack-source
61
51
  licenses: []
62
-
52
+ metadata: {}
63
53
  post_install_message:
64
54
  rdoc_options: []
65
-
66
- require_paths:
55
+ require_paths:
67
56
  - lib
68
- required_ruby_version: !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
77
- required_rubygems_version: !ruby/object:Gem::Requirement
78
- none: false
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- hash: 3
83
- segments:
84
- - 0
85
- version: "0"
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
86
67
  requirements: []
87
-
88
68
  rubyforge_project:
89
- rubygems_version: 1.8.22
69
+ rubygems_version: 2.0.0
90
70
  signing_key:
91
- specification_version: 3
71
+ specification_version: 4
92
72
  summary: Rack Source
93
73
  test_files: []
94
-