laurem 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Laurem
2
2
 
3
- TODO: Write a gem description
3
+ This is my first gem. hop you enjoy it
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,7 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ Laurem.get_time #suprise
22
22
 
23
23
  ## Contributing
24
24
 
@@ -11,6 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.description = %q{nothing really}
12
12
  gem.summary = %q{nothing really}
13
13
  gem.homepage = ""
14
+ gem.add_development_dependency "tod"
14
15
 
15
16
  gem.files = `git ls-files`.split($/)
16
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -1,7 +1,24 @@
1
1
  require "laurem/version"
2
+ require "tod"
2
3
 
3
4
  module Laurem
4
- def self.do_it
5
- puts "sadfasdfsadf;lkjasdfl;kjasdlf;kjasdflkjasdflk;j"
6
- end
5
+ def self.get_time
6
+ if TimeOfDay.new(8) > Time.now.to_time_of_day
7
+ puts "Damn,It early"
8
+ elsif TimeOfDay.new(10) > Time.now.to_time_of_day
9
+ puts "got your coffee yet?"
10
+ elsif TimeOfDay.new(12) > Time.now.to_time_of_day
11
+ puts "you should be waking up by now"
12
+ elsif TimeOfDay.new(13) > Time.now.to_time_of_day
13
+ puts "had launch yet?"
14
+ elsif TimeOfDay.new(16) > Time.now.to_time_of_day
15
+ puts "Do some work, lazy!"
16
+ elsif TimeOfDay.new(19) > Time.now.to_time_of_day
17
+ puts "get some dinner"
18
+ elsif TimeOfDay.new(22) > Time.now.to_time_of_day
19
+ puts "get a cold one let's talk about your day"
20
+ elsif TimeOfDay.new(23,59) > Time.now.to_time_of_day
21
+ puts "Getting a little late"
22
+ end
23
+ end
7
24
  end
@@ -1,3 +1,3 @@
1
1
  module Laurem
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laurem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,23 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2013-06-08 00:00:00.000000000 Z
13
- dependencies: []
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: tod
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  description: nothing really
15
31
  email:
16
32
  - ohadpartuck@gmail.com