public
Description: A gem adding convenience methods for creating specific times on specific dates.
Clone URL: git://github.com/flogic/timely.git
Filling out README, fixing Manifest, hoe config, blah blah.
ymendel (author)
Thu May 08 11:46:25 -0700 2008
commit  793451c69701345f813bab11079104e551d61dbe
tree    54049cb5e32f7ecfb59d1962b499cf82f0bcf63f
parent  17a4b249303d1476aed6ddd36be96bed877bfb1d
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-Copyright (c) 2008 FIXME full name
0
+Copyright (c) 2008 Flawed Logic, OG Consulting, Yossef Mendelssohn
0
 
0
 Permission is hereby granted, free of charge, to any person obtaining
0
 a copy of this software and associated documentation files (the
...
1
2
3
4
5
6
7
8
9
10
11
 
 
12
13
14
15
16
17
18
 
 
19
20
21
...
1
2
3
 
4
5
 
6
7
8
9
10
11
12
13
14
15
16
17
 
18
19
20
21
22
0
@@ -1,21 +1,22 @@
0
 History.txt
0
 License.txt
0
 Manifest.txt
0
-PostInstall.txt
0
 README.txt
0
 Rakefile
0
-bin/timely
0
 config/hoe.rb
0
 config/requirements.rb
0
 lib/timely.rb
0
 lib/timely/version.rb
0
+lib/timely/date.rb
0
+lib/timely/time.rb
0
 script/console
0
 script/destroy
0
 script/generate
0
 setup.rb
0
 spec/spec.opts
0
 spec/spec_helper.rb
0
-spec/timely_spec.rb
0
+spec/date_spec.rb
0
+spec/time_spec.rb
0
 tasks/deployment.rake
0
 tasks/environment.rake
0
 tasks/rspec.rake
...
1
2
3
4
5
6
7
8
9
10
11
 
12
13
14
15
16
17
18
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
41
42
43
44
45
46
47
48
49
...
1
2
 
 
3
4
 
 
 
 
 
5
6
7
8
 
 
 
 
 
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
31
 
 
 
 
 
 
 
32
0
@@ -1,48 +1,31 @@
0
 = timely
0
 
0
-* FIX (url)
0
-
0
 == DESCRIPTION:
0
 
0
-FIX (describe your package)
0
-
0
-== FEATURES/PROBLEMS:
0
-
0
-* FIX (list of features or problems)
0
+Timely adds some convenience methods to Date and Time to easily create times on specific dates.
0
 
0
 == SYNOPSIS:
0
 
0
- FIX (code sample of usage)
0
-
0
-== REQUIREMENTS:
0
-
0
-* FIX (list of requirements)
0
+ require 'timely'
0
+
0
+ some_date = Date.today - 5 # => 2008-05-03
0
+ some_date.at_time(3, 5, 13) # => Sat May 03 03:05:13 -0500 2008
0
+
0
+ # arguments are optional
0
+ some_date.at_time(13) # => Sat May 03 13:00:00 -0500 2008
0
+
0
+ some_time = Time.now - 345678 # => Sun May 04 13:40:22 -0500 2008
0
+ some_time.on_date(2001, 6, 18) # => Mon Jun 18 13:40:22 -0500 2001
0
+
0
+ # if you have objects corresponding to the times/dates you want
0
+ some_time.on_date(some_date) # => Sat May 03 13:40:22 -0500 2008
0
+ some_date.at_time(some_time) # => Sat May 03 13:40:22 -0500 2008
0
+
0
+ # if you like typing less
0
+ some_time.on(some_date) # => Sat May 03 13:40:22 -0500 2008
0
+ some_date.at(some_time) # => Sat May 03 13:40:22 -0500 2008
0
 
0
 == INSTALL:
0
 
0
-* FIX (sudo gem install, anything else)
0
-
0
-== LICENSE:
0
-
0
-(The MIT License)
0
-
0
-Copyright (c) 2008 FIX
0
-
0
-Permission is hereby granted, free of charge, to any person obtaining
0
-a copy of this software and associated documentation files (the
0
-'Software'), to deal in the Software without restriction, including
0
-without limitation the rights to use, copy, modify, merge, publish,
0
-distribute, sublicense, and/or sell copies of the Software, and to
0
-permit persons to whom the Software is furnished to do so, subject to
0
-the following conditions:
0
-
0
-The above copyright notice and this permission notice shall be
0
-included in all copies or substantial portions of the Software.
0
+* sudo gem install timely
0
 
0
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
0
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
0
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
0
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
0
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
0
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0
\ No newline at end of file
...
1
2
3
 
4
5
 
6
7
 
8
9
10
...
1
2
 
3
4
 
5
6
 
7
8
9
10
0
@@ -1,10 +1,10 @@
0
 require 'timely/version'
0
 
0
-AUTHOR = 'FIXME full name' # can also be an array of Authors
0
+AUTHOR = 'Yossef Mendelssohn' # can also be an array of Authors
0
 EMAIL = "ymendel@pobox.com"
0
-DESCRIPTION = "description of gem"
0
+DESCRIPTION = "adds some convenience methods to Date and Time to easily create times on specific dates"
0
 GEM_NAME = 'timely' # what ppl will type to install your gem
0
-RUBYFORGE_PROJECT = 'timely' # The unix name for your project
0
+RUBYFORGE_PROJECT = 'yomendel' # The unix name for your project
0
 HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
0
 DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
0
 EXTRA_DEPENDENCIES = [

Comments

    No one has commented yet.