tarpaulin 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -3
- data/README.rdoc +45 -8
- data/VERSION +1 -1
- data/lib/tarpaulin.rb +4 -6
- data/tarpaulin.gemspec +1 -1
- metadata +19 -19
data/Gemfile
CHANGED
@@ -1,7 +1,4 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
|
-
# Add dependencies required to use your gem here.
|
3
|
-
# Example:
|
4
|
-
# gem "activesupport", ">= 2.3.5"
|
5
2
|
|
6
3
|
# http://twiddlewakka.com/
|
7
4
|
# http://robots.thoughtbot.com/post/2508037841/twiddle-wakka
|
@@ -13,6 +10,7 @@ source "http://rubygems.org"
|
|
13
10
|
gem 'tilt', '~> 1.3.1' # https://github.com/rtomayko/tilt
|
14
11
|
gem 'lazy', '~> 0.9.6' # http://moonbase.rydia.net/software/lazy.rb/
|
15
12
|
gem 'rack-flash' # https://github.com/nakajima/rack-flash
|
13
|
+
|
16
14
|
# gem 'erubis', '~> 2.7.0' # http://www.kuwata-lab.com/erubis/
|
17
15
|
|
18
16
|
# Add dependencies to develop your gem here.
|
data/README.rdoc
CHANGED
@@ -1,16 +1,53 @@
|
|
1
1
|
= Tarpaulin
|
2
2
|
|
3
|
-
|
3
|
+
== The Lowdown
|
4
|
+
|
5
|
+
My small attempt to make the world a better place to live in. Tarpaulin is a set of utilities to
|
6
|
+
use when you are Camping. Whenever I coded something that I felt could live in any Camping app
|
7
|
+
rather than solely in the web app I'm developing (Poetify) I broke it out and placed it into Tarpaulin.
|
8
|
+
I would have called it Bivouac but somebody beat me to it :) Here is a list of the things in Tarpaulin
|
9
|
+
at the moment:
|
10
|
+
|
11
|
+
* ClearSilver templating library integration with Tilt ... this should be pushed towards the Tilt project when I am sure it is robust
|
12
|
+
* Rack-Flash integration to bring Camping to a par with Sinatra and vanilla Rack apps (contains a tiny monkey patch for Camping)
|
13
|
+
* Before and after filters robbed from judofyr but stored here as it is just one file
|
14
|
+
* a html5 #r403 and #r404 (should be many more) and #stylesheet_link_tag and #javascript_link_tag
|
15
|
+
* a class called Endless that can work with a magic controller in your app to pattern match any length URL
|
16
|
+
* a context class that helps give a bit of introspection to the call stack
|
17
|
+
* a nifty logger that uses this context
|
18
|
+
* File.here
|
4
19
|
|
5
20
|
== Contributing to Tarpaulin
|
6
21
|
|
7
|
-
*
|
8
|
-
*
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
*
|
13
|
-
|
22
|
+
* install the gem and use it
|
23
|
+
* email me patches
|
24
|
+
|
25
|
+
== How to achieve Gem Goodness, step by step howto
|
26
|
+
|
27
|
+
* http://sirupsen.com/create-your-first-ruby-gem-and-release-it-to-gemcutter/
|
28
|
+
|
29
|
+
* - gem install jeweler
|
30
|
+
* cd to where you want it
|
31
|
+
* - jeweler proj
|
32
|
+
* (optional) create Eclipse/Your Fave IDE project based off of proj folder
|
33
|
+
* edit Rakefile
|
34
|
+
* edit proj.rb
|
35
|
+
* - rake
|
36
|
+
* uh oh (make tests)
|
37
|
+
* - bundle install
|
38
|
+
* - bundle show [gemname]
|
39
|
+
* - bundle install --binstubs
|
40
|
+
* now bin/... bin/rake bin/jeweler bin/rcov
|
41
|
+
* bin/rake -T
|
42
|
+
* bin/rake version:write
|
43
|
+
* bin/rake install
|
44
|
+
|
45
|
+
* hackety hack
|
46
|
+
|
47
|
+
* bin/rake version:bump:X
|
48
|
+
* bin/rake gemspec
|
49
|
+
* git commit -m "all my hackz r kool"
|
50
|
+
* bin/rake gemcutter:release
|
14
51
|
|
15
52
|
== Copyright
|
16
53
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/lib/tarpaulin.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# = About lib/tarpaulin.rb
|
2
2
|
#
|
3
3
|
# By requiring <tt>lib/tarpaulin</tt>, you can load Tarpaulin's dependencies
|
4
|
-
# (the lazy library,)
|
4
|
+
# (the lazy library, the flash hash, and whatever else)
|
5
5
|
# (,)
|
6
6
|
# as well as the full set of Tarpaulin classes.
|
7
7
|
#
|
@@ -12,8 +12,6 @@
|
|
12
12
|
require 'rubygems'
|
13
13
|
require "bundler/setup"
|
14
14
|
|
15
|
-
# because this uses caller, let's place it in Kernel
|
16
|
-
# it's got a long name, nothing will conflict
|
17
15
|
# http://grosser.it/2009/07/01/getting-the-caller-method-in-ruby/
|
18
16
|
# this is like parse_caller() in ActionMailer apparently
|
19
17
|
module Context
|
@@ -64,7 +62,7 @@ module Context
|
|
64
62
|
end # begin
|
65
63
|
end # determine()
|
66
64
|
|
67
|
-
end # module
|
65
|
+
end # module Context
|
68
66
|
|
69
67
|
# Recognizing that Dir.getwd is not always the dir of the file being interpreted
|
70
68
|
#
|
@@ -94,13 +92,13 @@ end
|
|
94
92
|
#
|
95
93
|
# * catch all class Endless
|
96
94
|
#
|
97
|
-
# * Tarpaulin main module and
|
95
|
+
# * Tarpaulin main module and helpers and include modules
|
98
96
|
#
|
99
97
|
# * Tilt template for ClearSilver
|
100
98
|
#
|
101
99
|
module Tarpaulin
|
102
100
|
version_file = File.expand_path(File.here "/../VERSION")
|
103
|
-
VERSION =
|
101
|
+
VERSION = IO.read(version_file).strip
|
104
102
|
end
|
105
103
|
|
106
104
|
require File.here "tarpaulin/logger"
|
data/tarpaulin.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tarpaulin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Anthony Durity
|
@@ -29,10 +29,10 @@ dependencies:
|
|
29
29
|
- 3
|
30
30
|
- 1
|
31
31
|
version: 1.3.1
|
32
|
-
|
32
|
+
requirement: *id001
|
33
33
|
prerelease: false
|
34
|
+
name: tilt
|
34
35
|
type: :runtime
|
35
|
-
requirement: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
38
38
|
none: false
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
- 9
|
46
46
|
- 6
|
47
47
|
version: 0.9.6
|
48
|
-
|
48
|
+
requirement: *id002
|
49
49
|
prerelease: false
|
50
|
+
name: lazy
|
50
51
|
type: :runtime
|
51
|
-
requirement: *id002
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
53
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
54
|
none: false
|
@@ -59,10 +59,10 @@ dependencies:
|
|
59
59
|
segments:
|
60
60
|
- 0
|
61
61
|
version: "0"
|
62
|
-
|
62
|
+
requirement: *id003
|
63
63
|
prerelease: false
|
64
|
+
name: rack-flash
|
64
65
|
type: :runtime
|
65
|
-
requirement: *id003
|
66
66
|
- !ruby/object:Gem::Dependency
|
67
67
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
68
|
none: false
|
@@ -75,10 +75,10 @@ dependencies:
|
|
75
75
|
- 11
|
76
76
|
- 1
|
77
77
|
version: 2.11.1
|
78
|
-
|
78
|
+
requirement: *id004
|
79
79
|
prerelease: false
|
80
|
+
name: shoulda
|
80
81
|
type: :development
|
81
|
-
requirement: *id004
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
@@ -91,10 +91,10 @@ dependencies:
|
|
91
91
|
- 0
|
92
92
|
- 0
|
93
93
|
version: 1.0.0
|
94
|
-
|
94
|
+
requirement: *id005
|
95
95
|
prerelease: false
|
96
|
+
name: bundler
|
96
97
|
type: :development
|
97
|
-
requirement: *id005
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
100
100
|
none: false
|
@@ -107,10 +107,10 @@ dependencies:
|
|
107
107
|
- 6
|
108
108
|
- 1
|
109
109
|
version: 1.6.1
|
110
|
-
|
110
|
+
requirement: *id006
|
111
111
|
prerelease: false
|
112
|
+
name: jeweler
|
112
113
|
type: :development
|
113
|
-
requirement: *id006
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
115
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
@@ -123,10 +123,10 @@ dependencies:
|
|
123
123
|
- 9
|
124
124
|
- 7
|
125
125
|
version: 0.9.7
|
126
|
-
|
126
|
+
requirement: *id007
|
127
127
|
prerelease: false
|
128
|
+
name: rcov
|
128
129
|
type: :development
|
129
|
-
requirement: *id007
|
130
130
|
- !ruby/object:Gem::Dependency
|
131
131
|
version_requirements: &id008 !ruby/object:Gem::Requirement
|
132
132
|
none: false
|
@@ -139,10 +139,10 @@ dependencies:
|
|
139
139
|
- 9
|
140
140
|
- 1
|
141
141
|
version: 3.9.1
|
142
|
-
|
142
|
+
requirement: *id008
|
143
143
|
prerelease: false
|
144
|
+
name: rdoc
|
144
145
|
type: :development
|
145
|
-
requirement: *id008
|
146
146
|
description: So I don't have to copy and paste a million times.
|
147
147
|
email: github@jollyrotten.org
|
148
148
|
executables: []
|