rack-rakeup 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +19 -0
- data/README.md +28 -0
- data/lib/rack-rakeup.rb +12 -0
- metadata +79 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 34bc669b9267281f994a60353d7dc88b1fcbeb07
|
4
|
+
data.tar.gz: 65a4c18083abcc51c8735a9fa3acc914d8392564
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d277a9d078d7c52ad09730bc487a7f7058a7d17bce7b1ea5dbb9d4f4d06b40953bc1b7adc7ddbe71739a246c207cefb92f45c780c7eaadf3b90fdeae390db719
|
7
|
+
data.tar.gz: 0289ded549cc40887f68cc845e60fc261884190007299bff6420544ef91d337e08a38f3bf1f354e96e22d0db2f132a3cf098a6b3d2f0f76452a2000a1c093979
|
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2013 Matthew Lanigan <rintaun@gmail.com>
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
8
|
+
so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# rack-rakeup
|
2
|
+
Run Rake tasks from config.ru
|
3
|
+
|
4
|
+
## Description
|
5
|
+
rack-rakeup adds a `rake` method to Rack's Builder DSL, allowing you to
|
6
|
+
execute Rake tasks when configuring your Rack application, which helps to
|
7
|
+
keep your code DRY.
|
8
|
+
|
9
|
+
## Motivation
|
10
|
+
I found that a lot of the configuration steps I was using in my Rakefile were
|
11
|
+
essentially duplicated from my project's `config.ru`. I decided to take the
|
12
|
+
DRY route of having all my configuration steps as Rake tasks, and needed a
|
13
|
+
solution to easily run those tasks from my config.ru
|
14
|
+
|
15
|
+
## Known Defects
|
16
|
+
I am currently not aware of any defects.
|
17
|
+
|
18
|
+
## Compatibility
|
19
|
+
This has been tests with rack 1.5.2 and rake 10.0.4 (the newest versions at
|
20
|
+
the time of this writing). I suspect that it will work with older versions, as
|
21
|
+
well, and I'd be glad to update the dependencies if notified of other working
|
22
|
+
versions.
|
23
|
+
|
24
|
+
## Future
|
25
|
+
I'm not sure how much more I want to do with this. It could be nice to allow
|
26
|
+
tasks to be defined easily from within the Rack configuration, but I'm not
|
27
|
+
really sure of the utility. I'm open to ideas, though, so please let me know
|
28
|
+
if you think of something you'd like to see.
|
data/lib/rack-rakeup.rb
ADDED
metadata
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rack-rakeup
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Matthew Lanigan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-04-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rack
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.5.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.5.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 10.0.4
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 10.0.4
|
41
|
+
description: |2
|
42
|
+
Adds a 'rake' method to Rack's Builder DSL, allowing you to execute
|
43
|
+
Rake tasks when configuring your Rack application. This helps to keep
|
44
|
+
your code DRY.
|
45
|
+
email: rintaun@gmail.com
|
46
|
+
executables: []
|
47
|
+
extensions: []
|
48
|
+
extra_rdoc_files:
|
49
|
+
- README.md
|
50
|
+
files:
|
51
|
+
- lib/rack-rakeup.rb
|
52
|
+
- LICENSE
|
53
|
+
- README.md
|
54
|
+
homepage: https://github.com/rintaun/rack-rakeup
|
55
|
+
licenses:
|
56
|
+
- MIT
|
57
|
+
metadata: {}
|
58
|
+
post_install_message:
|
59
|
+
rdoc_options:
|
60
|
+
- --charset=UTF-8
|
61
|
+
require_paths:
|
62
|
+
- lib
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
73
|
+
requirements: []
|
74
|
+
rubyforge_project:
|
75
|
+
rubygems_version: 2.0.0.rc.2
|
76
|
+
signing_key:
|
77
|
+
specification_version: 4
|
78
|
+
summary: Run Rake tasks from config.ru
|
79
|
+
test_files: []
|