overnight 0.1.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.
- checksums.yaml +15 -0
- data/README.rdoc +28 -0
- data/lib/overnight/overnight_service.rb +29 -0
- data/lib/overnight/timer.rb +11 -0
- data/lib/overnight/timey.rb +11 -0
- data/lib/overnight.rb +5 -0
- metadata +77 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MjUzOWUxNDQ5ZjQ4NDNkNWM1YjZiMDY2NGZiMzY3NWZiODQ3OWUwYg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MzIxODk2OGUxMGUxN2QyZWM3OGE3ZWM5ZWQ5ZGZkNmU3YjE5ZjU0Zg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YWYxYjQzZjM5NzVmMWYwNzFiYjVjNTBiZTZhYjM4YjVmM2ExY2JhYjgxNjQ1
|
10
|
+
ZTNhYzI2MDBlZjMyOWExY2FmZmQzNTMyYmQ4Y2Y0ZGI5MWNhYTg2ODlmNGZj
|
11
|
+
NjQ4MWM2ZmQxNzYxZWY1MjgzZTg0OTdiNGE0MWE3MWNiMjYwYTY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YTI3MWI1MTA4OTZiNmMzNzRmZjA1MTI2NWZhZWExZTEzMDU5ZTNkMzM5MDYx
|
14
|
+
Njc2ZDBkODdjYmFlYmExMDU1YmRmNjhkZWFjYzE5OGRiMTY0MTRlMTg2MzE1
|
15
|
+
YzZkYTVlYmVhYjA4OTJjMGE2MzczZmJiOWE0NTM5NDg5YWIzOWY=
|
data/README.rdoc
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
== README
|
2
|
+
|
3
|
+
This README would normally document whatever steps are necessary to get the
|
4
|
+
application up and running.
|
5
|
+
|
6
|
+
Things you may want to cover:
|
7
|
+
|
8
|
+
* Ruby version
|
9
|
+
|
10
|
+
* System dependencies
|
11
|
+
|
12
|
+
* Configuration
|
13
|
+
|
14
|
+
* Database creation
|
15
|
+
|
16
|
+
* Database initialization
|
17
|
+
|
18
|
+
* How to run the test suite
|
19
|
+
|
20
|
+
* Services (job queues, cache servers, search engines, etc.)
|
21
|
+
|
22
|
+
* Deployment instructions
|
23
|
+
|
24
|
+
* ...
|
25
|
+
|
26
|
+
|
27
|
+
Please feel free to use a different markup language if you do not plan to run
|
28
|
+
<tt>rake doc:app</tt>.
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Overnight
|
2
|
+
class OvernightService
|
3
|
+
@@timers = {}
|
4
|
+
|
5
|
+
def self.start_timer(timer_name = nil)
|
6
|
+
timer_name ||= self.random_timer_name
|
7
|
+
@@timers[timer_name] = Timer.new.start
|
8
|
+
return @@timers[timer_name]
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.stop_timer(timer)
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.timers
|
16
|
+
return @@timers
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.get_timer(timer_name)
|
20
|
+
return @@timers[timer_name]
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def self.random_timer_name
|
26
|
+
(0...8).map { (65 + rand(26)).chr }.join.to_sym
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/lib/overnight.rb
ADDED
metadata
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: overnight
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alan L. Davis
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
version_requirements: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ! '>='
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '0'
|
19
|
+
prerelease: false
|
20
|
+
name: rspec
|
21
|
+
requirement: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ! '>='
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '0'
|
26
|
+
type: :development
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
prerelease: false
|
34
|
+
name: rspec-core
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :development
|
41
|
+
description: Mundane stopwatch with a cool name. Will be possible to use for logging
|
42
|
+
time slightly easier than finding puts statements hopefully
|
43
|
+
email:
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- README.rdoc
|
49
|
+
- lib/overnight.rb
|
50
|
+
- lib/overnight/overnight_service.rb
|
51
|
+
- lib/overnight/timer.rb
|
52
|
+
- lib/overnight/timey.rb
|
53
|
+
homepage: https://github.com/adavidev/overnight
|
54
|
+
licenses: []
|
55
|
+
metadata: {}
|
56
|
+
post_install_message:
|
57
|
+
rdoc_options: []
|
58
|
+
require_paths:
|
59
|
+
- lib
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ! '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
requirements: []
|
71
|
+
rubyforge_project:
|
72
|
+
rubygems_version: 2.2.2
|
73
|
+
signing_key:
|
74
|
+
specification_version: 4
|
75
|
+
summary: Mundane stopwatch with a cool name
|
76
|
+
test_files: []
|
77
|
+
has_rdoc:
|