read 0.1.1
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.
- data/README +36 -0
- data/Rakefile +17 -0
- data/VERSION +1 -0
- data/config.ru +18 -0
- data/read.gemspec +28 -0
- data/tmp/always_restart.txt +0 -0
- data/tmp/restart.txt +0 -0
- metadata +113 -0
data/README
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
.----------------. .----------------. .----------------. .----------------.
|
2
|
+
| .--------------. || .--------------. || .--------------. || .--------------. |
|
3
|
+
| | _______ | || | _________ | || | __ | || | ________ | |
|
4
|
+
| | |_ __ \ | || | |_ ___ | | || | / \ | || | |_ ___ `. | |
|
5
|
+
| | | |__) | | || | | |_ \_| | || | / /\ \ | || | | | `. \ | |
|
6
|
+
| | | __ / | || | | _| _ | || | / ____ \ | || | | | | | | |
|
7
|
+
| | _| | \ \_ | || | _| |___/ | | || | _/ / \ \_ | || | _| |___.' / | |
|
8
|
+
| | |____| |___| | || | |_________| | || ||____| |____|| || | |________.' | |
|
9
|
+
| | | || | | || | | || | | |
|
10
|
+
| '--------------' || '--------------' || '--------------' || '--------------' |
|
11
|
+
'----------------' '----------------' '----------------' '----------------'
|
12
|
+
|
13
|
+
Read is Rocco that runs in your browser.
|
14
|
+
|
15
|
+
REQUIRMENTS
|
16
|
+
|
17
|
+
1. Pow - http://pow.cx
|
18
|
+
2. Rubygems - http://rubygems.org
|
19
|
+
|
20
|
+
USAGE
|
21
|
+
|
22
|
+
1. Write ~/test.js
|
23
|
+
2. Visit http://read.dev/~/test.js
|
24
|
+
3. Read!
|
25
|
+
|
26
|
+
INSTALL
|
27
|
+
|
28
|
+
gem install read
|
29
|
+
|
30
|
+
KNOWN ISSUES
|
31
|
+
|
32
|
+
* Chokes if you do this in CoffeeScript:
|
33
|
+
|
34
|
+
#### Third-level markdown heading
|
35
|
+
|
36
|
+
# ### Do this instead
|
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
def gemfile
|
2
|
+
Dir['pkg/*'].sort.last
|
3
|
+
end
|
4
|
+
|
5
|
+
task :install do
|
6
|
+
sh 'gem build read.gemspec'
|
7
|
+
sh 'mv *.gem pkg/'
|
8
|
+
sh "gem install -l #{gemfile}"
|
9
|
+
end
|
10
|
+
|
11
|
+
task :release do
|
12
|
+
sh "gem push #{gemfile}"
|
13
|
+
end
|
14
|
+
|
15
|
+
task :tag do
|
16
|
+
sh "git tag -a v`cat VERSION` `git rev-parse HEAD` -m ''"
|
17
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.1
|
data/config.ru
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'sinatra'
|
3
|
+
require 'rocco'
|
4
|
+
|
5
|
+
get '/' do
|
6
|
+
'read!'
|
7
|
+
end
|
8
|
+
|
9
|
+
get '*' do |path|
|
10
|
+
# strip preceeding forward slash
|
11
|
+
path = path[1..-1] if path[0] == ?/
|
12
|
+
path = File.expand_path(path)
|
13
|
+
return 'illiterate' unless File.exists? path
|
14
|
+
|
15
|
+
Rocco.new(path).to_html
|
16
|
+
end
|
17
|
+
|
18
|
+
run Sinatra::Application
|
data/read.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
Gem::Specification.new do |gs|
|
2
|
+
gs.name = "read"
|
3
|
+
gs.version = File.read(File.dirname(__FILE__)+'/VERSION')
|
4
|
+
gs.homepage = "http://github.com/jonpliske/read"
|
5
|
+
gs.summary = "Read is Rocco that runs in your browser."
|
6
|
+
gs.description = "Read is Rocco that runs in your browser."
|
7
|
+
gs.authors = ["Myles Byrne", "Jon Pliske"]
|
8
|
+
|
9
|
+
gs.post_install_message = <<-END
|
10
|
+
**********************************
|
11
|
+
|
12
|
+
Now run this:
|
13
|
+
|
14
|
+
ln -s #{Gem.default_dir+"/gems/read-#{gs.version}"} #{ENV['HOME']}/.pow/read
|
15
|
+
|
16
|
+
Sorry.
|
17
|
+
|
18
|
+
**********************************
|
19
|
+
END
|
20
|
+
|
21
|
+
|
22
|
+
gs.files = Dir['**/**/*'].reject do |p|
|
23
|
+
p == 'TODO.md' or p =~ /^pkg/
|
24
|
+
end
|
25
|
+
|
26
|
+
gs.add_dependency 'rocco', '~>0.8.2'
|
27
|
+
gs.add_dependency 'sinatra', '~>1.2.6'
|
28
|
+
end
|
File without changes
|
data/tmp/restart.txt
ADDED
File without changes
|
metadata
ADDED
@@ -0,0 +1,113 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: read
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Myles Byrne
|
14
|
+
- Jon Pliske
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2011-09-09 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rocco
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 59
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 8
|
33
|
+
- 2
|
34
|
+
version: 0.8.2
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: sinatra
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 19
|
46
|
+
segments:
|
47
|
+
- 1
|
48
|
+
- 2
|
49
|
+
- 6
|
50
|
+
version: 1.2.6
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
53
|
+
description: Read is Rocco that runs in your browser.
|
54
|
+
email:
|
55
|
+
executables: []
|
56
|
+
|
57
|
+
extensions: []
|
58
|
+
|
59
|
+
extra_rdoc_files: []
|
60
|
+
|
61
|
+
files:
|
62
|
+
- config.ru
|
63
|
+
- Rakefile
|
64
|
+
- read.gemspec
|
65
|
+
- README
|
66
|
+
- tmp/always_restart.txt
|
67
|
+
- tmp/restart.txt
|
68
|
+
- VERSION
|
69
|
+
homepage: http://github.com/jonpliske/read
|
70
|
+
licenses: []
|
71
|
+
|
72
|
+
post_install_message: |
|
73
|
+
**********************************
|
74
|
+
|
75
|
+
Now run this:
|
76
|
+
|
77
|
+
ln -s /Users/jpliske/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/gems/1.8/gems/read-0.1.1 /Users/jpliske/.pow/read
|
78
|
+
|
79
|
+
Sorry.
|
80
|
+
|
81
|
+
**********************************
|
82
|
+
|
83
|
+
rdoc_options: []
|
84
|
+
|
85
|
+
require_paths:
|
86
|
+
- lib
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
hash: 3
|
93
|
+
segments:
|
94
|
+
- 0
|
95
|
+
version: "0"
|
96
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
hash: 3
|
102
|
+
segments:
|
103
|
+
- 0
|
104
|
+
version: "0"
|
105
|
+
requirements: []
|
106
|
+
|
107
|
+
rubyforge_project:
|
108
|
+
rubygems_version: 1.8.10
|
109
|
+
signing_key:
|
110
|
+
specification_version: 3
|
111
|
+
summary: Read is Rocco that runs in your browser.
|
112
|
+
test_files: []
|
113
|
+
|