weekday 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.0.1 / 2011-02-15
2
+
3
+ * Documentation
4
+ * documented Weekday.mondays(yyyy,mm) .. Weekday.sundays(yyyy,mm)
5
+
1
6
  == 1.0.0 / 2010-12-04
2
7
 
3
8
  * 1 major enhancement
data/examples/termine.rb CHANGED
@@ -4,6 +4,12 @@ require 'rubygems'
4
4
  require 'weekday' # Weekday-Gem
5
5
  require 'date'
6
6
 
7
+ class Weekday
8
+ COUNTWORDS = %w(erster zweiter dritter vierter f�nfter)
9
+ DAYNAMES = %w(sonntag montag dienstag mittwoch donnerstag freitag samstag)
10
+ DAYNAMESS = %w(sonntage montage dienstage mittwoche donnerstage freitage samstage)
11
+ end # class Weekday
12
+
7
13
  NEXTDAYS = ['heute','morgen','uebermorgen']
8
14
 
9
15
  def heute?(day)
data/lib/wd.rb CHANGED
@@ -4,14 +4,14 @@ module Weekday
4
4
  # :stopdoc:
5
5
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
6
6
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
7
+ # Returns the version string for the library.
7
8
  # :startdoc:
8
9
 
9
- # Returns the version string for the library.
10
- #
11
10
  def self.version
12
11
  @version ||= File.read(path('version.txt')).strip
13
12
  end
14
13
 
14
+ # :stopdoc:
15
15
  # Returns the library path for the module. If any arguments are given,
16
16
  # they will be joined to the end of the libray path using
17
17
  # <tt>File.join</tt>.
data/lib/weekday.rb CHANGED
@@ -29,6 +29,7 @@ If a certain date like 'fifth_saturday' is not possible, nil is returned.
29
29
  # * Weekday.second_tuesday(2010,12) or
30
30
  # * Weekday.last_monday(2010,11)
31
31
  # The return value is a date object or nil if there is no Nth Xday in this month
32
+ # * Weekday.mondays(2011,2) returns an array of all mondays in this month
32
33
  def self.method_missing(m, *args)
33
34
  # self.mondays .. self.sundays
34
35
  if DAYNAMESS.include?(m.to_s)
data/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 0
9
- version: 1.0.0
8
+ - 1
9
+ version: 1.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Thomas Preymesser
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-14 00:00:00 +01:00
17
+ date: 2011-02-16 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency