pinbo 0.2.0 → 0.2.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.rdoc +38 -1
- data/VERSION +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -1,7 +1,44 @@
|
|
1
1
|
= pinbo
|
2
2
|
|
3
|
-
|
3
|
+
== Install
|
4
4
|
|
5
|
+
sudo gem install pinbo
|
6
|
+
|
7
|
+
== Rack middleware
|
8
|
+
|
9
|
+
#environment.rb - Rails
|
10
|
+
|
11
|
+
config.gem "pinbo"
|
12
|
+
config.middleware.use "Rack::Bug"
|
13
|
+
|
14
|
+
# or
|
15
|
+
|
16
|
+
use Pinbo::Middleware
|
17
|
+
|
18
|
+
== Daemons
|
19
|
+
|
20
|
+
Pinbo.start :script_name => name
|
21
|
+
|
22
|
+
Pinbo.stop :status => status, :server_name => server_name, :document_size => size
|
23
|
+
|
24
|
+
== Timers
|
25
|
+
|
26
|
+
Pinbo.timer :layout => :index, :action => :generate_all do
|
27
|
+
2 + 2 * 4
|
28
|
+
sleep rand
|
29
|
+
end
|
30
|
+
|
31
|
+
or you can
|
32
|
+
|
33
|
+
Object.send :include, Pinbo::Timer
|
34
|
+
|
35
|
+
and simply do
|
36
|
+
|
37
|
+
timer :layout => :index, :action => :generate_all do
|
38
|
+
2 + 2 * 4
|
39
|
+
sleep rand
|
40
|
+
end
|
41
|
+
|
5
42
|
== Note on Patches/Pull Requests
|
6
43
|
|
7
44
|
* Fork the project.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pinbo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Rudenko
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-15 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|