tarpaulin 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/Gemfile +1 -3
  2. data/README.rdoc +45 -8
  3. data/VERSION +1 -1
  4. data/lib/tarpaulin.rb +4 -6
  5. data/tarpaulin.gemspec +1 -1
  6. 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
- My small attempt to make the world a better place to live in.
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
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
9
- * Fork the project
10
- * Start a feature/bugfix branch
11
- * Commit and push until you are happy with your contribution
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
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.0
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 Kernel
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 Helpers
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 = File.read(version_file).strip
101
+ VERSION = IO.read(version_file).strip
104
102
  end
105
103
 
106
104
  require File.here "tarpaulin/logger"
data/tarpaulin.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "tarpaulin"
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Anthony Durity"]
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
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
- name: tilt
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
- name: lazy
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
- name: rack-flash
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
- name: shoulda
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
- name: bundler
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
- name: jeweler
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
- name: rcov
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
- name: rdoc
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: []