roccofy 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ *.sw?
2
+ .DS_Store
3
+ coverage
4
+ rdoc
5
+ pkg
6
+ *.bundle
7
+ *.so
8
+ *.dll
9
+ *.o
10
+ Makefile
11
+ *.gemspec
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Burke Libbey, Thorkelson Consulting Ltd.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,46 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "roccofy"
8
+ gem.summary = "roccofy"
9
+ gem.description = "roccofy"
10
+ gem.email = "burke@burkelibbey.org"
11
+ gem.homepage = "http://github.com/burke/#{gem.name}"
12
+ gem.authors = ["Burke Libbey"]
13
+ gem.files.include '{bin,spec,lib}/**/*'
14
+ gem.add_dependency "sinatra"
15
+ gem.executables = ["roccofy"]
16
+ end
17
+ rescue LoadError
18
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
19
+ end
20
+
21
+ begin
22
+ require 'rcov/rcovtask'
23
+ Rcov::RcovTask.new do |test|
24
+ test.libs << 'spec'
25
+ test.pattern = 'spec/**/*_spec.rb'
26
+ test.verbose = true
27
+ end
28
+ rescue LoadError
29
+ task :rcov do
30
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
31
+ end
32
+ end
33
+
34
+ require 'rake/rdoctask'
35
+ Rake::RDocTask.new do |rdoc|
36
+ if File.exist?('VERSION')
37
+ version = File.read('VERSION')
38
+ else
39
+ version = ""
40
+ end
41
+
42
+ rdoc.rdoc_dir = 'rdoc'
43
+ rdoc.title = "multilogger #{version}"
44
+ rdoc.rdoc_files.include('README*')
45
+ rdoc.rdoc_files.include('lib/**/*.rb')
46
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.1
data/bin/roccofy ADDED
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'rubygems'
4
+ require 'sinatra'
5
+
6
+ SRC_PATH = ARGV[0] || "."
7
+
8
+ class Roccofy < Sinatra::Application
9
+ get '*' do
10
+ path = "#{SRC_PATH}#{params[:splat]}"
11
+ if File.exist?(path) and path =~ /\.rb$/
12
+ cmd = "rocco #{path}"
13
+ puts cmd
14
+ system cmd
15
+ p = path.sub(/\.rb$/,'.html')
16
+ x=File.read(p)
17
+ File.unlink(p)
18
+ x
19
+ else
20
+ "incorrect path."
21
+ end
22
+ end
23
+ end
24
+
25
+ Roccofy.run!
data/lib/.gitignore ADDED
File without changes
data/lib/roccofy.rb ADDED
File without changes
@@ -0,0 +1,11 @@
1
+ require 'rubygems'
2
+
3
+ # require something.
4
+
5
+ gem "rspec", ">=1.2.5"
6
+
7
+ Spec::Runner.configure do |config|
8
+
9
+ end
10
+
11
+
data/spec/spec_opts.rb ADDED
@@ -0,0 +1 @@
1
+ --colour
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: roccofy
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Burke Libbey
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-03-25 00:00:00 -05:00
18
+ default_executable: roccofy
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: sinatra
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ type: :runtime
31
+ version_requirements: *id001
32
+ description: roccofy
33
+ email: burke@burkelibbey.org
34
+ executables:
35
+ - roccofy
36
+ extensions: []
37
+
38
+ extra_rdoc_files:
39
+ - LICENSE
40
+ files:
41
+ - .gitignore
42
+ - LICENSE
43
+ - Rakefile
44
+ - VERSION
45
+ - bin/roccofy
46
+ - lib/.gitignore
47
+ - lib/roccofy.rb
48
+ - spec/spec_helper.rb
49
+ - spec/spec_opts.rb
50
+ has_rdoc: true
51
+ homepage: http://github.com/burke/roccofy
52
+ licenses: []
53
+
54
+ post_install_message:
55
+ rdoc_options:
56
+ - --charset=UTF-8
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ segments:
64
+ - 0
65
+ version: "0"
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ segments:
71
+ - 0
72
+ version: "0"
73
+ requirements: []
74
+
75
+ rubyforge_project:
76
+ rubygems_version: 1.3.6
77
+ signing_key:
78
+ specification_version: 3
79
+ summary: roccofy
80
+ test_files:
81
+ - spec/spec_helper.rb
82
+ - spec/spec_opts.rb