ruby-seasons 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "rspec", "~> 2.8.0"
10
+ gem "rdoc", "~> 3.12"
11
+ gem "bundler", "~> 1.2"
12
+ gem "jeweler", "~> 1.8.4"
13
+ gem "simplecov"
14
+ end
@@ -0,0 +1,37 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ diff-lcs (1.1.3)
5
+ git (1.2.5)
6
+ jeweler (1.8.4)
7
+ bundler (~> 1.0)
8
+ git (>= 1.2.5)
9
+ rake
10
+ rdoc
11
+ json (1.7.7)
12
+ multi_json (1.6.0)
13
+ rake (10.0.3)
14
+ rdoc (3.12.1)
15
+ json (~> 1.4)
16
+ rspec (2.8.0)
17
+ rspec-core (~> 2.8.0)
18
+ rspec-expectations (~> 2.8.0)
19
+ rspec-mocks (~> 2.8.0)
20
+ rspec-core (2.8.0)
21
+ rspec-expectations (2.8.0)
22
+ diff-lcs (~> 1.1.2)
23
+ rspec-mocks (2.8.0)
24
+ simplecov (0.7.1)
25
+ multi_json (~> 1.0)
26
+ simplecov-html (~> 0.7.1)
27
+ simplecov-html (0.7.1)
28
+
29
+ PLATFORMS
30
+ ruby
31
+
32
+ DEPENDENCIES
33
+ bundler (~> 1.2)
34
+ jeweler (~> 1.8.4)
35
+ rdoc (~> 3.12)
36
+ rspec (~> 2.8.0)
37
+ simplecov
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Jules Copeland
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,31 @@
1
+ = ruby-seasons
2
+
3
+ `ruby-seasons` is a small gem that adds some methods to Date and DateTime objects in Ruby.
4
+
5
+ For a given date object, call `.season` on it, and it will return the season as a string.
6
+
7
+ For a parsible date string, use Date.get_season('2013/05/28') to return the season as a string.
8
+
9
+ The seasons are currently calculated from a lookup table pilfered from here: http://www.timeanddate.com/calendar/seasons.html
10
+
11
+ These are accurate for London, and only support 1900-2100
12
+
13
+ TODO: figure out how to calculate dates and times from a given location
14
+
15
+ TODO: add support for locale translations.
16
+
17
+ == Contributing to ruby-seasons
18
+
19
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
20
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
21
+ * Fork the project.
22
+ * Start a feature/bugfix branch.
23
+ * Commit and push until you are happy with your contribution.
24
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
25
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
26
+
27
+ == Copyright
28
+
29
+ Copyright (c) 2013 Jules Copeland. See LICENSE.txt for
30
+ further details.
31
+
@@ -0,0 +1,47 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'rake'
11
+
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
+ gem.name = "ruby-seasons"
16
+ gem.homepage = "http://github.com/julescopeland/ruby-seasons"
17
+ gem.license = "MIT"
18
+ gem.summary = %Q{Get the season name from a date or datetime object}
19
+ gem.description = %Q{Adds methods to Date and DateTime objects that returns the season as a string. Currently only accurately supports London from 1900-2100}
20
+ gem.email = "jules@julescopeland.com"
21
+ gem.authors = ["Jules Copeland"]
22
+ # dependencies defined in Gemfile
23
+ end
24
+ Jeweler::RubygemsDotOrgTasks.new
25
+
26
+ require 'rspec/core'
27
+ require 'rspec/core/rake_task'
28
+ RSpec::Core::RakeTask.new(:spec) do |spec|
29
+ spec.pattern = FileList['spec/**/*_spec.rb']
30
+ end
31
+
32
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
33
+ spec.pattern = 'spec/**/*_spec.rb'
34
+ spec.rcov = true
35
+ end
36
+
37
+ task :default => :spec
38
+
39
+ require 'rdoc/task'
40
+ Rake::RDocTask.new do |rdoc|
41
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
42
+
43
+ rdoc.rdoc_dir = 'rdoc'
44
+ rdoc.title = "ruby-seasons #{version}"
45
+ rdoc.rdoc_files.include('README*')
46
+ rdoc.rdoc_files.include('lib/**/*.rb')
47
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,200 @@
1
+ 1900,Mar-21 1:39 AM GMT,Jun-21 9:40 PM GMT,Sep-23 12:20 PM GMT,Dec-22 6:41 AM GMT
2
+ 1901,Mar-21 7:24 AM GMT,Jun-22 3:28 AM GMT,Sep-23 6:09 PM GMT,Dec-22 12:37 PM GMT
3
+ 1902,Mar-21 1:16 PM GMT,Jun-22 9:15 AM GMT,Sep-23 11:55 PM GMT,Dec-22 6:35 PM GMT
4
+ 1903,Mar-21 7:15 PM GMT,Jun-22 3:05 PM GMT,Sep-24 5:44 AM GMT,Dec-23 12:20 AM GMT
5
+ 1904,Mar-21 12:58 AM GMT,Jun-21 8:51 PM GMT,Sep-23 11:40 AM GMT,Dec-22 6:14 AM GMT
6
+ 1905,Mar-21 6:58 AM GMT,Jun-22 2:52 AM GMT,Sep-23 5:30 PM GMT,Dec-22 12:04 PM GMT
7
+ 1906,Mar-21 12:53 PM GMT,Jun-22 8:42 AM GMT,Sep-23 11:15 PM GMT,Dec-22 5:53 PM GMT
8
+ 1907,Mar-21 6:33 PM GMT,Jun-22 2:23 PM GMT,Sep-24 5:09 AM GMT,Dec-22 11:51 PM GMT
9
+ 1908,Mar-21 12:28 AM GMT,Jun-21 8:20 PM GMT,Sep-23 10:58 AM GMT,Dec-22 5:33 AM GMT
10
+ 1909,Mar-21 6:13 AM GMT,Jun-22 2:06 AM GMT,Sep-23 4:45 PM GMT,Dec-22 11:20 AM GMT
11
+ 1910,Mar-21 12:03 PM GMT,Jun-22 7:49 AM GMT,Sep-23 10:31 PM GMT,Dec-22 5:12 PM GMT
12
+ 1911,Mar-21 5:54 PM GMT,Jun-22 1:36 PM GMT,Sep-24 4:17 AM GMT,Dec-22 10:53 PM GMT
13
+ 1912,Mar-20 11:29 PM GMT,Jun-21 7:17 PM GMT,Sep-23 10:08 AM GMT,Dec-22 4:45 AM GMT
14
+ 1913,Mar-21 5:18 AM GMT,Jun-22 1:10 AM GMT,Sep-23 3:53 PM GMT,Dec-22 10:35 AM GMT
15
+ 1914,Mar-21 11:11 AM GMT,Jun-22 6:55 AM GMT,Sep-23 9:34 PM GMT,Dec-22 4:22 PM GMT
16
+ 1915,Mar-21 4:51 PM GMT,Jun-22 12:30 PM GMT,Sep-24 3:24 AM GMT,Dec-22 10:16 PM GMT
17
+ 1916,Mar-20 10:47 PM GMT,Jun-21 7:25 PM BST,Sep-23 10:15 AM BST,Dec-22 3:59 AM GMT
18
+ 1917,Mar-21 4:37 AM GMT,Jun-22 1:14 AM BST,Sep-23 3:00 PM GMT,Dec-22 9:46 AM GMT
19
+ 1918,Mar-21 10:25 AM GMT,Jun-22 7:00 AM BST,Sep-23 9:46 PM BST,Dec-22 3:41 PM GMT
20
+ 1919,Mar-21 4:19 PM GMT,Jun-22 12:54 PM BST,Sep-24 3:36 AM BST,Dec-22 9:27 PM GMT
21
+ 1920,Mar-20 9:59 PM GMT,Jun-21 6:40 PM BST,Sep-23 9:28 AM BST,Dec-22 3:17 AM GMT
22
+ 1921,Mar-21 3:51 AM GMT,Jun-22 12:36 AM BST,Sep-23 3:20 PM BST,Dec-22 9:08 AM GMT
23
+ 1922,Mar-21 9:48 AM GMT,Jun-22 6:27 AM BST,Sep-23 9:10 PM BST,Dec-22 2:57 PM GMT
24
+ 1923,Mar-21 3:29 PM GMT,Jun-22 12:03 PM BST,Sep-24 2:03 AM GMT,Dec-22 8:53 PM GMT
25
+ 1924,Mar-20 9:20 PM GMT,Jun-21 5:59 PM BST,Sep-23 7:59 AM GMT,Dec-22 2:45 AM GMT
26
+ 1925,Mar-21 3:12 AM GMT,Jun-21 11:50 PM BST,Sep-23 2:43 PM BST,Dec-22 8:37 AM GMT
27
+ 1926,Mar-21 9:01 AM GMT,Jun-22 5:30 AM BST,Sep-23 8:27 PM BST,Dec-22 2:33 PM GMT
28
+ 1927,Mar-21 2:59 PM GMT,Jun-22 11:22 AM BST,Sep-24 2:17 AM BST,Dec-22 8:18 PM GMT
29
+ 1928,Mar-20 8:44 PM GMT,Jun-21 5:06 PM BST,Sep-23 8:05 AM BST,Dec-22 2:04 AM GMT
30
+ 1929,Mar-21 2:35 AM GMT,Jun-21 11:01 PM BST,Sep-23 1:52 PM BST,Dec-22 7:53 AM GMT
31
+ 1930,Mar-21 8:29 AM GMT,Jun-22 4:53 AM BST,Sep-23 7:36 PM BST,Dec-22 1:39 PM GMT
32
+ 1931,Mar-21 2:06 PM GMT,Jun-22 10:28 AM BST,Sep-24 1:23 AM BST,Dec-22 7:29 PM GMT
33
+ 1932,Mar-20 7:54 PM GMT,Jun-21 4:23 PM BST,Sep-23 7:16 AM BST,Dec-22 1:14 AM GMT
34
+ 1933,Mar-21 1:43 AM GMT,Jun-21 10:12 PM BST,Sep-23 1:01 PM BST,Dec-22 6:58 AM GMT
35
+ 1934,Mar-21 7:27 AM GMT,Jun-22 3:48 AM BST,Sep-23 6:45 PM BST,Dec-22 12:49 PM GMT
36
+ 1935,Mar-21 1:18 PM GMT,Jun-22 9:38 AM BST,Sep-24 12:38 AM BST,Dec-22 6:37 PM GMT
37
+ 1936,Mar-20 6:57 PM GMT,Jun-21 3:21 PM BST,Sep-23 6:26 AM BST,Dec-22 12:27 AM GMT
38
+ 1937,Mar-21 12:45 AM GMT,Jun-21 9:12 PM BST,Sep-23 12:13 PM BST,Dec-22 6:22 AM GMT
39
+ 1938,Mar-21 6:43 AM GMT,Jun-22 3:03 AM BST,Sep-23 6:00 PM BST,Dec-22 12:13 PM GMT
40
+ 1939,Mar-21 12:28 PM GMT,Jun-22 8:39 AM BST,Sep-23 11:49 PM BST,Dec-22 6:06 PM GMT
41
+ 1940,Mar-20 7:24 PM BST,Jun-21 2:36 PM BST,Sep-23 5:45 AM BST,Dec-22 12:55 AM BST
42
+ 1941,Mar-21 1:20 AM BST,Jun-21 9:33 PM BDST,Sep-23 11:33 AM BST,Dec-22 6:44 AM BST
43
+ 1942,Mar-21 7:10 AM BST,Jun-22 3:16 AM BDST,Sep-23 5:17 PM BST,Dec-22 12:39 PM BST
44
+ 1943,Mar-21 1:03 PM BST,Jun-22 9:12 AM BDST,Sep-23 11:11 PM BST,Dec-22 6:29 PM BST
45
+ 1944,Mar-20 6:48 PM BST,Jun-21 3:02 PM BDST,Sep-23 5:01 AM BST,Dec-22 12:15 AM BST
46
+ 1945,Mar-21 12:37 AM BST,Jun-21 8:52 PM BDST,Sep-23 10:50 AM BST,Dec-22 5:03 AM GMT
47
+ 1946,Mar-21 5:33 AM GMT,Jun-22 1:45 AM BST,Sep-23 4:41 PM BST,Dec-22 10:53 AM GMT
48
+ 1947,Mar-21 12:13 PM BST,Jun-22 8:19 AM BDST,Sep-23 10:29 PM BST,Dec-22 4:43 PM GMT
49
+ 1948,Mar-20 5:57 PM BST,Jun-21 1:11 PM BST,Sep-23 4:22 AM BST,Dec-21 10:33 PM GMT
50
+ 1949,Mar-20 10:48 PM GMT,Jun-21 7:03 PM BST,Sep-23 10:06 AM BST,Dec-22 4:23 AM GMT
51
+ 1950,Mar-21 4:35 AM GMT,Jun-22 12:36 AM BST,Sep-23 3:44 PM BST,Dec-22 10:13 AM GMT
52
+ 1951,Mar-21 10:26 AM GMT,Jun-22 6:25 AM BST,Sep-23 9:37 PM BST,Dec-22 4:00 PM GMT
53
+ 1952,Mar-20 4:13 PM GMT,Jun-21 12:13 PM BST,Sep-23 3:24 AM BST,Dec-21 9:43 PM GMT
54
+ 1953,Mar-20 10:01 PM GMT,Jun-21 6:00 PM BST,Sep-23 9:06 AM BST,Dec-22 3:31 AM GMT
55
+ 1954,Mar-21 3:53 AM GMT,Jun-21 11:54 PM BST,Sep-23 2:56 PM BST,Dec-22 9:24 AM GMT
56
+ 1955,Mar-21 9:35 AM GMT,Jun-22 5:32 AM BST,Sep-23 8:41 PM BST,Dec-22 3:11 PM GMT
57
+ 1956,Mar-20 3:21 PM GMT,Jun-21 11:24 AM BST,Sep-23 2:35 AM BST,Dec-21 9:00 PM GMT
58
+ 1957,Mar-20 9:16 PM GMT,Jun-21 5:21 PM BST,Sep-23 8:26 AM BST,Dec-22 2:49 AM GMT
59
+ 1958,Mar-21 3:05 AM GMT,Jun-21 10:57 PM BST,Sep-23 2:09 PM BST,Dec-22 8:40 AM GMT
60
+ 1959,Mar-21 8:55 AM GMT,Jun-22 4:50 AM BST,Sep-23 8:08 PM BST,Dec-22 2:34 PM GMT
61
+ 1960,Mar-20 2:43 PM GMT,Jun-21 10:42 AM BST,Sep-23 1:59 AM BST,Dec-21 8:26 PM GMT
62
+ 1961,Mar-20 8:32 PM GMT,Jun-21 4:30 PM BST,Sep-23 7:42 AM BST,Dec-22 2:19 AM GMT
63
+ 1962,Mar-21 2:29 AM GMT,Jun-21 10:24 PM BST,Sep-23 1:36 PM BST,Dec-22 8:15 AM GMT
64
+ 1963,Mar-21 8:20 AM GMT,Jun-22 4:04 AM BST,Sep-23 7:24 PM BST,Dec-22 2:02 PM GMT
65
+ 1964,Mar-20 2:10 PM GMT,Jun-21 9:57 AM BST,Sep-23 1:17 AM BST,Dec-21 7:49 PM GMT
66
+ 1965,Mar-20 8:05 PM GMT,Jun-21 3:56 PM BST,Sep-23 7:06 AM BST,Dec-22 1:40 AM GMT
67
+ 1966,Mar-21 2:52 AM BST,Jun-21 9:33 PM BST,Sep-23 12:43 PM BST,Dec-22 7:28 AM GMT
68
+ 1967,Mar-21 8:37 AM BST,Jun-22 3:23 AM BST,Sep-23 6:38 PM BST,Dec-22 1:16 PM GMT
69
+ 1968,Mar-20 2:22 PM BST,Jun-21 9:13 AM BST,Sep-23 12:26 AM BST,Dec-21 8:00 PM BST
70
+ 1969,Mar-20 8:08 PM BST,Jun-21 2:55 PM BST,Sep-23 6:07 AM BST,Dec-22 1:44 AM BST
71
+ 1970,Mar-21 1:56 AM BST,Jun-21 8:43 PM BST,Sep-23 11:59 AM BST,Dec-22 7:36 AM BST
72
+ 1971,Mar-21 7:38 AM BST,Jun-22 2:19 AM BST,Sep-23 5:45 PM BST,Dec-22 12:24 PM GMT
73
+ 1972,Mar-20 1:21 PM BST,Jun-21 8:06 AM BST,Sep-22 11:33 PM BST,Dec-21 6:13 PM GMT
74
+ 1973,Mar-20 7:12 PM BST,Jun-21 2:01 PM BST,Sep-23 5:21 AM BST,Dec-22 12:08 AM GMT
75
+ 1974,Mar-21 1:06 AM BST,Jun-21 7:37 PM BST,Sep-23 10:59 AM BST,Dec-22 5:56 AM GMT
76
+ 1975,Mar-21 6:57 AM BST,Jun-22 1:26 AM BST,Sep-23 4:55 PM BST,Dec-22 11:45 AM GMT
77
+ 1976,Mar-20 11:49 AM GMT,Jun-21 7:24 AM BST,Sep-22 10:48 PM BST,Dec-21 5:35 PM GMT
78
+ 1977,Mar-20 6:42 PM BST,Jun-21 1:14 PM BST,Sep-23 4:29 AM BST,Dec-21 11:23 PM GMT
79
+ 1978,Mar-21 12:33 AM BST,Jun-21 7:10 PM BST,Sep-23 10:26 AM BST,Dec-22 5:21 AM GMT
80
+ 1979,Mar-21 6:22 AM BST,Jun-22 12:56 AM BST,Sep-23 4:16 PM BST,Dec-22 11:10 AM GMT
81
+ 1980,Mar-20 12:10 PM BST,Jun-21 6:47 AM BST,Sep-22 10:08 PM BST,Dec-21 4:56 PM GMT
82
+ 1981,Mar-20 5:03 PM GMT,Jun-21 12:45 PM BST,Sep-23 4:05 AM BST,Dec-21 10:51 PM GMT
83
+ 1982,Mar-20 10:55 PM GMT,Jun-21 6:23 PM BST,Sep-23 9:46 AM BST,Dec-22 4:38 AM GMT
84
+ 1983,Mar-21 4:39 AM GMT,Jun-22 12:08 AM BST,Sep-23 3:41 PM BST,Dec-22 10:30 AM GMT
85
+ 1984,Mar-20 10:24 AM GMT,Jun-21 6:02 AM BST,Sep-22 9:33 PM BST,Dec-21 4:23 PM GMT
86
+ 1985,Mar-20 4:14 PM GMT,Jun-21 11:44 AM BST,Sep-23 3:07 AM BST,Dec-21 10:08 PM GMT
87
+ 1986,Mar-20 10:03 PM GMT,Jun-21 5:30 PM BST,Sep-23 8:59 AM BST,Dec-22 4:02 AM GMT
88
+ 1987,Mar-21 3:52 AM GMT,Jun-21 11:11 PM BST,Sep-23 2:45 PM BST,Dec-22 9:46 AM GMT
89
+ 1988,Mar-20 9:39 AM GMT,Jun-21 4:56 AM BST,Sep-22 8:29 PM BST,Dec-21 3:28 PM GMT
90
+ 1989,Mar-20 3:28 PM GMT,Jun-21 10:53 AM BST,Sep-23 2:20 AM BST,Dec-21 9:22 PM GMT
91
+ 1990,Mar-20 9:19 PM GMT,Jun-21 4:33 PM BST,Sep-23 7:55 AM BST,Dec-22 3:07 AM GMT
92
+ 1991,Mar-21 3:02 AM GMT,Jun-21 10:19 PM BST,Sep-23 1:48 PM BST,Dec-22 8:53 AM GMT
93
+ 1992,Mar-20 8:48 AM GMT,Jun-21 4:14 AM BST,Sep-22 7:43 PM BST,Dec-21 2:43 PM GMT
94
+ 1993,Mar-20 2:41 PM GMT,Jun-21 10:00 AM BST,Sep-23 1:22 AM BST,Dec-21 8:26 PM GMT
95
+ 1994,Mar-20 8:28 PM GMT,Jun-21 3:48 PM BST,Sep-23 7:19 AM BST,Dec-22 2:23 AM GMT
96
+ 1995,Mar-21 2:15 AM GMT,Jun-21 9:34 PM BST,Sep-23 1:13 PM BST,Dec-22 8:17 AM GMT
97
+ 1996,Mar-20 8:03 AM GMT,Jun-21 3:24 AM BST,Sep-22 7:00 PM BST,Dec-21 2:06 PM GMT
98
+ 1997,Mar-20 1:55 PM GMT,Jun-21 9:20 AM BST,Sep-23 12:56 AM BST,Dec-21 8:07 PM GMT
99
+ 1998,Mar-20 7:54 PM GMT,Jun-21 3:03 PM BST,Sep-23 6:38 AM BST,Dec-22 1:56 AM GMT
100
+ 1999,Mar-21 1:46 AM GMT,Jun-21 8:49 PM BST,Sep-23 12:31 PM BST,Dec-22 7:44 AM GMT
101
+ 2000,Mar-20 7:35 AM GMT,Jun-21 2:48 AM BST,Sep-22 6:28 PM BST,Dec-21 1:38 PM GMT
102
+ 2001,Mar-20 1:31 PM GMT,Jun-21 8:38 AM BST,Sep-23 12:05 AM BST,Dec-21 7:21 PM GMT
103
+ 2002,Mar-20 7:16 PM GMT,Jun-21 2:25 PM BST,Sep-23 5:55 AM BST,Dec-22 1:14 AM GMT
104
+ 2003,Mar-21 1:00 AM GMT,Jun-21 8:11 PM BST,Sep-23 11:47 AM BST,Dec-22 7:04 AM GMT
105
+ 2004,Mar-20 6:48 AM GMT,Jun-21 1:57 AM BST,Sep-22 5:30 PM BST,Dec-21 12:42 PM GMT
106
+ 2005,Mar-20 12:33 PM GMT,Jun-21 7:46 AM BST,Sep-22 11:23 PM BST,Dec-21 6:35 PM GMT
107
+ 2006,Mar-20 6:25 PM GMT,Jun-21 1:26 PM BST,Sep-23 5:04 AM BST,Dec-22 12:22 AM GMT
108
+ 2007,Mar-21 12:07 AM GMT,Jun-21 7:06 PM BST,Sep-23 10:51 AM BST,Dec-22 6:07 AM GMT
109
+ 2008,Mar-20 5:48 AM GMT,Jun-21 12:59 AM BST,Sep-22 4:44 PM BST,Dec-21 12:04 PM GMT
110
+ 2009,Mar-20 11:44 AM GMT,Jun-21 6:46 AM BST,Sep-22 10:19 PM BST,Dec-21 5:47 PM GMT
111
+ 2010,Mar-20 5:32 PM GMT,Jun-21 12:29 PM BST,Sep-23 4:09 AM BST,Dec-21 11:38 PM GMT
112
+ 2011,Mar-20 11:21 PM GMT,Jun-21 6:16 PM BST,Sep-23 10:04 AM BST,Dec-22 5:30 AM GMT
113
+ 2012,Mar-20 5:14 AM GMT,Jun-21 12:08 AM BST,Sep-22 3:49 PM BST,Dec-21 11:12 AM GMT
114
+ 2013,Mar-20 11:02 AM GMT,Jun-21 6:04 AM BST,Sep-22 9:44 PM BST,Dec-21 5:11 PM GMT
115
+ 2014,Mar-20 4:57 PM GMT,Jun-21 11:51 AM BST,Sep-23 3:29 AM BST,Dec-21 11:03 PM GMT
116
+ 2015,Mar-20 10:45 PM GMT,Jun-21 5:38 PM BST,Sep-23 9:20 AM BST,Dec-22 4:48 AM GMT
117
+ 2016,Mar-20 4:30 AM GMT,Jun-20 11:34 PM BST,Sep-22 3:21 PM BST,Dec-21 10:44 AM GMT
118
+ 2017,Mar-20 10:29 AM GMT,Jun-21 5:24 AM BST,Sep-22 9:02 PM BST,Dec-21 4:28 PM GMT
119
+ 2018,Mar-20 4:15 PM GMT,Jun-21 11:07 AM BST,Sep-23 2:54 AM BST,Dec-21 10:22 PM GMT
120
+ 2019,Mar-20 9:58 PM GMT,Jun-21 4:54 PM BST,Sep-23 8:50 AM BST,Dec-22 4:19 AM GMT
121
+ 2020,Mar-20 3:50 AM GMT,Jun-20 10:43 PM BST,Sep-22 2:31 PM BST,Dec-21 10:02 AM GMT
122
+ 2021,Mar-20 9:37 AM GMT,Jun-21 4:32 AM BST,Sep-22 8:21 PM BST,Dec-21 3:59 PM GMT
123
+ 2022,Mar-20 3:33 PM GMT,Jun-21 10:14 AM BST,Sep-23 2:04 AM BST,Dec-21 9:48 PM GMT
124
+ 2023,Mar-20 9:24 PM GMT,Jun-21 3:57 PM BST,Sep-23 7:50 AM BST,Dec-22 3:27 AM GMT
125
+ 2024,Mar-20 3:06 AM GMT,Jun-20 9:51 PM BST,Sep-22 1:44 PM BST,Dec-21 9:20 AM GMT
126
+ 2025,Mar-20 9:01 AM GMT,Jun-21 3:42 AM BST,Sep-22 7:20 PM BST,Dec-21 3:03 PM GMT
127
+ 2026,Mar-20 2:45 PM GMT,Jun-21 9:25 AM BST,Sep-23 1:05 AM BST,Dec-21 8:50 PM GMT
128
+ 2027,Mar-20 8:25 PM GMT,Jun-21 3:11 PM BST,Sep-23 7:01 AM BST,Dec-22 2:42 AM GMT
129
+ 2028,Mar-20 2:17 AM GMT,Jun-20 9:02 PM BST,Sep-22 12:45 PM BST,Dec-21 8:20 AM GMT
130
+ 2029,Mar-20 8:01 AM GMT,Jun-21 2:48 AM BST,Sep-22 6:38 PM BST,Dec-21 2:14 PM GMT
131
+ 2030,Mar-20 1:52 PM GMT,Jun-21 8:31 AM BST,Sep-23 12:27 AM BST,Dec-21 8:09 PM GMT
132
+ 2031,Mar-20 7:41 PM GMT,Jun-21 2:17 PM BST,Sep-23 6:15 AM BST,Dec-22 1:55 AM GMT
133
+ 2032,Mar-20 1:22 AM GMT,Jun-20 8:09 PM BST,Sep-22 12:11 PM BST,Dec-21 7:56 AM GMT
134
+ 2033,Mar-20 7:23 AM GMT,Jun-21 2:01 AM BST,Sep-22 5:52 PM BST,Dec-21 1:45 PM GMT
135
+ 2034,Mar-20 1:17 PM GMT,Jun-21 7:44 AM BST,Sep-22 11:39 PM BST,Dec-21 7:34 PM GMT
136
+ 2035,Mar-20 7:03 PM GMT,Jun-21 1:33 PM BST,Sep-23 5:39 AM BST,Dec-22 1:31 AM GMT
137
+ 2036,Mar-20 1:02 AM GMT,Jun-20 7:32 PM BST,Sep-22 11:24 AM BST,Dec-21 7:13 AM GMT
138
+ 2037,Mar-20 6:50 AM GMT,Jun-21 1:22 AM BST,Sep-22 5:13 PM BST,Dec-21 1:07 PM GMT
139
+ 2038,Mar-20 12:40 PM GMT,Jun-21 7:09 AM BST,Sep-22 11:02 PM BST,Dec-21 7:02 PM GMT
140
+ 2039,Mar-20 6:32 PM GMT,Jun-21 12:57 PM BST,Sep-23 4:49 AM BST,Dec-22 12:40 AM GMT
141
+ 2040,Mar-20 12:11 AM GMT,Jun-20 6:46 PM BST,Sep-22 10:45 AM BST,Dec-21 6:33 AM GMT
142
+ 2041,Mar-20 6:06 AM GMT,Jun-21 12:36 AM BST,Sep-22 4:26 PM BST,Dec-21 12:18 PM GMT
143
+ 2042,Mar-20 11:53 AM GMT,Jun-21 6:16 AM BST,Sep-22 10:11 PM BST,Dec-21 6:04 PM GMT
144
+ 2043,Mar-20 5:27 PM GMT,Jun-21 11:58 AM BST,Sep-23 4:06 AM BST,Dec-22 12:01 AM GMT
145
+ 2044,Mar-19 11:20 PM GMT,Jun-20 5:51 PM BST,Sep-22 9:48 AM BST,Dec-21 5:44 AM GMT
146
+ 2045,Mar-20 5:07 AM GMT,Jun-20 11:33 PM BST,Sep-22 3:33 PM BST,Dec-21 11:35 AM GMT
147
+ 2046,Mar-20 10:58 AM GMT,Jun-21 5:15 AM BST,Sep-22 9:22 PM BST,Dec-21 5:28 PM GMT
148
+ 2047,Mar-20 4:52 PM GMT,Jun-21 11:03 AM BST,Sep-23 3:08 AM BST,Dec-21 11:07 PM GMT
149
+ 2048,Mar-19 10:33 PM GMT,Jun-20 4:54 PM BST,Sep-22 9:00 AM BST,Dec-21 5:02 AM GMT
150
+ 2049,Mar-20 4:28 AM GMT,Jun-20 10:47 PM BST,Sep-22 2:42 PM BST,Dec-21 10:52 AM GMT
151
+ 2050,Mar-20 10:19 AM GMT,Jun-21 4:33 AM BST,Sep-22 8:28 PM BST,Dec-21 4:38 PM GMT
152
+ 2051,Mar-20 3:59 PM GMT,Jun-21 10:18 AM BST,Sep-23 2:27 AM BST,Dec-21 10:33 PM GMT
153
+ 2052,Mar-19 9:56 PM GMT,Jun-20 4:16 PM BST,Sep-22 8:15 AM BST,Dec-21 4:17 AM GMT
154
+ 2053,Mar-20 3:46 AM GMT,Jun-20 10:04 PM BST,Sep-22 2:06 PM BST,Dec-21 10:09 AM GMT
155
+ 2054,Mar-20 9:34 AM GMT,Jun-21 3:47 AM BST,Sep-22 7:59 PM BST,Dec-21 4:09 PM GMT
156
+ 2055,Mar-20 3:28 PM GMT,Jun-21 9:39 AM BST,Sep-23 1:49 AM BST,Dec-21 9:55 PM GMT
157
+ 2056,Mar-19 9:10 PM GMT,Jun-20 3:28 PM BST,Sep-22 7:39 AM BST,Dec-21 3:51 AM GMT
158
+ 2057,Mar-20 3:08 AM GMT,Jun-20 9:19 PM BST,Sep-22 1:23 PM BST,Dec-21 9:42 AM GMT
159
+ 2058,Mar-20 9:04 AM GMT,Jun-21 3:04 AM BST,Sep-22 7:08 PM BST,Dec-21 3:25 PM GMT
160
+ 2059,Mar-20 2:44 PM GMT,Jun-21 8:46 AM BST,Sep-23 1:03 AM BST,Dec-21 9:18 PM GMT
161
+ 2060,Mar-19 8:38 PM GMT,Jun-20 2:45 PM BST,Sep-22 6:48 AM BST,Dec-21 3:01 AM GMT
162
+ 2061,Mar-20 2:25 AM GMT,Jun-20 8:32 PM BST,Sep-22 12:31 PM BST,Dec-21 8:48 AM GMT
163
+ 2062,Mar-20 8:07 AM GMT,Jun-21 2:11 AM BST,Sep-22 6:20 PM BST,Dec-21 2:42 PM GMT
164
+ 2063,Mar-20 1:59 PM GMT,Jun-21 8:02 AM BST,Sep-23 12:08 AM BST,Dec-21 8:21 PM GMT
165
+ 2064,Mar-19 7:38 PM GMT,Jun-20 1:45 PM BST,Sep-22 5:56 AM BST,Dec-21 2:08 AM GMT
166
+ 2065,Mar-20 1:28 AM GMT,Jun-20 7:32 PM BST,Sep-22 11:42 AM BST,Dec-21 8:00 AM GMT
167
+ 2066,Mar-20 7:19 AM GMT,Jun-21 1:16 AM BST,Sep-22 5:27 PM BST,Dec-21 1:45 PM GMT
168
+ 2067,Mar-20 12:54 PM GMT,Jun-21 6:55 AM BST,Sep-22 11:19 PM BST,Dec-21 7:43 PM GMT
169
+ 2068,Mar-19 6:49 PM GMT,Jun-20 12:53 PM BST,Sep-22 5:07 AM BST,Dec-21 1:32 AM GMT
170
+ 2069,Mar-20 12:44 AM GMT,Jun-20 6:41 PM BST,Sep-22 10:51 AM BST,Dec-21 7:22 AM GMT
171
+ 2070,Mar-20 6:34 AM GMT,Jun-21 12:22 AM BST,Sep-22 4:44 PM BST,Dec-21 1:19 PM GMT
172
+ 2071,Mar-20 12:34 PM GMT,Jun-21 6:20 AM BST,Sep-22 10:38 PM BST,Dec-21 7:03 PM GMT
173
+ 2072,Mar-19 6:20 PM GMT,Jun-20 12:14 PM BST,Sep-22 4:28 AM BST,Dec-21 12:56 AM GMT
174
+ 2073,Mar-20 12:13 AM GMT,Jun-20 6:07 PM BST,Sep-22 10:15 AM BST,Dec-21 6:50 AM GMT
175
+ 2074,Mar-20 6:08 AM GMT,Jun-20 11:58 PM BST,Sep-22 4:03 PM BST,Dec-21 12:35 PM GMT
176
+ 2075,Mar-20 11:46 AM GMT,Jun-21 5:40 AM BST,Sep-22 9:58 PM BST,Dec-21 6:27 PM GMT
177
+ 2076,Mar-19 5:38 PM GMT,Jun-20 11:36 AM BST,Sep-22 3:50 AM BST,Dec-21 12:13 AM GMT
178
+ 2077,Mar-19 11:30 PM GMT,Jun-20 5:23 PM BST,Sep-22 9:35 AM BST,Dec-21 6:00 AM GMT
179
+ 2078,Mar-20 5:10 AM GMT,Jun-20 10:58 PM BST,Sep-22 3:24 PM BST,Dec-21 11:57 AM GMT
180
+ 2079,Mar-20 11:00 AM GMT,Jun-21 4:49 AM BST,Sep-22 9:13 PM BST,Dec-21 5:44 PM GMT
181
+ 2080,Mar-19 4:44 PM GMT,Jun-20 10:34 AM BST,Sep-22 2:56 AM BST,Dec-20 11:32 PM GMT
182
+ 2081,Mar-19 10:34 PM GMT,Jun-20 4:16 PM BST,Sep-22 8:38 AM BST,Dec-21 5:22 AM GMT
183
+ 2082,Mar-20 4:30 AM GMT,Jun-20 10:03 PM BST,Sep-22 2:23 PM BST,Dec-21 11:04 AM GMT
184
+ 2083,Mar-20 10:10 AM GMT,Jun-21 3:43 AM BST,Sep-22 8:11 PM BST,Dec-21 4:53 PM GMT
185
+ 2084,Mar-19 3:59 PM GMT,Jun-20 9:40 AM BST,Sep-22 1:59 AM BST,Dec-20 10:41 PM GMT
186
+ 2085,Mar-19 9:53 PM GMT,Jun-20 3:32 PM BST,Sep-22 7:43 AM BST,Dec-21 4:28 AM GMT
187
+ 2086,Mar-20 3:35 AM GMT,Jun-20 9:09 PM BST,Sep-22 1:32 PM BST,Dec-21 10:22 AM GMT
188
+ 2087,Mar-20 9:28 AM GMT,Jun-21 3:06 AM BST,Sep-22 7:28 PM BST,Dec-21 4:08 PM GMT
189
+ 2088,Mar-19 3:16 PM GMT,Jun-20 8:57 AM BST,Sep-22 1:18 AM BST,Dec-20 9:56 PM GMT
190
+ 2089,Mar-19 9:06 PM GMT,Jun-20 2:43 PM BST,Sep-22 7:07 AM BST,Dec-21 3:52 AM GMT
191
+ 2090,Mar-20 3:01 AM GMT,Jun-20 8:36 PM BST,Sep-22 12:59 PM BST,Dec-21 9:43 AM GMT
192
+ 2091,Mar-20 8:41 AM GMT,Jun-21 2:18 AM BST,Sep-22 6:50 PM BST,Dec-21 3:38 PM GMT
193
+ 2092,Mar-19 2:33 PM GMT,Jun-20 8:14 AM BST,Sep-22 12:41 AM BST,Dec-20 9:31 PM GMT
194
+ 2093,Mar-19 8:34 PM GMT,Jun-20 2:07 PM BST,Sep-22 6:29 AM BST,Dec-21 3:20 AM GMT
195
+ 2094,Mar-20 2:21 AM GMT,Jun-20 7:42 PM BST,Sep-22 12:16 PM BST,Dec-21 9:13 AM GMT
196
+ 2095,Mar-20 8:15 AM GMT,Jun-21 1:38 AM BST,Sep-22 6:11 PM BST,Dec-21 3:00 PM GMT
197
+ 2096,Mar-19 2:02 PM GMT,Jun-20 7:30 AM BST,Sep-21 11:54 PM BST,Dec-20 8:46 PM GMT
198
+ 2097,Mar-19 7:48 PM GMT,Jun-20 1:13 PM BST,Sep-22 5:35 AM BST,Dec-21 2:36 AM GMT
199
+ 2098,Mar-20 1:40 AM GMT,Jun-20 7:03 PM BST,Sep-22 11:24 AM BST,Dec-21 8:20 AM GMT
200
+ 2099,Mar-20 7:17 AM GMT,Jun-21 12:41 AM BST,Sep-22 5:11 PM BST,Dec-21 2:04 PM GMT
@@ -0,0 +1,3 @@
1
+ require 'ruby_seasons/ruby_seasons'
2
+
3
+ Date.send(:include, RubySeasons)
@@ -0,0 +1,51 @@
1
+ require 'csv'
2
+ module RubySeasons
3
+ module ClassMethods
4
+ @@lookup_file = File.expand_path('lib/lookup_tables/london_seasons.csv')
5
+
6
+ def season_lookup_table
7
+ @@season_lookup_table ||= get_season_lookup_table
8
+ end
9
+
10
+ def get_season(date)
11
+ datetime = date.class == DateTime ? date : DateTime.parse(date.to_s)
12
+ year = datetime.strftime('%Y')
13
+ if (@@season_lookup_table[year][:spring_start]..@@season_lookup_table[year][:summer_start]).cover?(datetime)
14
+ 'spring'
15
+ elsif (@@season_lookup_table[year][:summer_start]..@@season_lookup_table[year][:autumn_start]).cover?(datetime)
16
+ 'summer'
17
+ elsif (@@season_lookup_table[year][:autumn_start]..@@season_lookup_table[year][:winter_start]).cover?(datetime)
18
+ 'autumn'
19
+ else
20
+ 'winter'
21
+ end
22
+ end
23
+
24
+ private
25
+ def get_season_lookup_table
26
+ @@season_lookup_table = {}
27
+
28
+ CSV.foreach(@@lookup_file) do |row|
29
+ @@season_lookup_table[row[0]] = {
30
+ spring_start: DateTime.parse(row[0] +' '+ row[1]),
31
+ summer_start: DateTime.parse(row[0] +' '+ row[2]),
32
+ autumn_start: DateTime.parse(row[0] +' '+ row[3]),
33
+ winter_start: DateTime.parse(row[0] +' '+ row[4])
34
+ }
35
+ end
36
+ @@season_lookup_table
37
+ end
38
+ extend ClassMethods
39
+ end
40
+
41
+ module InstanceMethods
42
+ def season
43
+ ClassMethods.get_season(self)
44
+ end
45
+ end
46
+
47
+ def self.included(receiver)
48
+ receiver.extend ClassMethods
49
+ receiver.send :include, InstanceMethods
50
+ end
51
+ end
@@ -0,0 +1,13 @@
1
+ require "spec_helper"
2
+
3
+ class DummyClass
4
+ include RubySeasons
5
+ end
6
+
7
+ describe RubySeasons do
8
+ it "have a lookup table for London Seasons" do
9
+ table = DummyClass.season_lookup_table
10
+ table.should be_a Hash
11
+ table['1900'][:spring_start].should == DateTime.parse('1900 Mar-21 1:39 AM GMT')
12
+ end
13
+ end
@@ -0,0 +1,23 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "RubySeasons" do
4
+ context "Date objects" do
5
+ it "should return 'spring' for my birthday" do
6
+ my_birthday = Date.parse('28th May 1980')
7
+ my_birthday.season.should == 'spring'
8
+ end
9
+ it "should parse my brother's birthday and return 'winter'" do
10
+ Date.get_season('28th December 1977').should == 'winter'
11
+ end
12
+ end
13
+
14
+ context "DateTime objects" do
15
+ it "should return 'summer' for my mum's birthday" do
16
+ my_birthday = DateTime.parse('12th September 1946 12:27PM')
17
+ my_birthday.season.should == 'summer'
18
+ end
19
+ it "should parse my dad's birthday and return 'autumn'" do
20
+ DateTime.get_season('5th November 1944 13:42PM').should == 'autumn'
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,12 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rspec'
4
+ require 'ruby-seasons'
5
+
6
+ # Requires supporting files with custom matchers and macros, etc,
7
+ # in ./support/ and its subdirectories.
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
+
10
+ RSpec.configure do |config|
11
+
12
+ end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby-seasons
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jules Copeland
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rspec
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 2.8.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: 2.8.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: rdoc
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '3.12'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.12'
46
+ - !ruby/object:Gem::Dependency
47
+ name: bundler
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '1.2'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.2'
62
+ - !ruby/object:Gem::Dependency
63
+ name: jeweler
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.8.4
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.8.4
78
+ - !ruby/object:Gem::Dependency
79
+ name: simplecov
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ description: Adds methods to Date and DateTime objects that returns the season as
95
+ a string. Currently only accurately supports London from 1900-2100
96
+ email: jules@julescopeland.com
97
+ executables: []
98
+ extensions: []
99
+ extra_rdoc_files:
100
+ - LICENSE.txt
101
+ - README.rdoc
102
+ files:
103
+ - .document
104
+ - .rspec
105
+ - Gemfile
106
+ - Gemfile.lock
107
+ - LICENSE.txt
108
+ - README.rdoc
109
+ - Rakefile
110
+ - VERSION
111
+ - lib/lookup_tables/london_seasons.csv
112
+ - lib/ruby-seasons.rb
113
+ - lib/ruby_seasons/ruby_seasons.rb
114
+ - spec/lib/ruby_seasons/ruby_seasons_spec.rb
115
+ - spec/ruby-seasons_spec.rb
116
+ - spec/spec_helper.rb
117
+ homepage: http://github.com/julescopeland/ruby-seasons
118
+ licenses:
119
+ - MIT
120
+ post_install_message:
121
+ rdoc_options: []
122
+ require_paths:
123
+ - lib
124
+ required_ruby_version: !ruby/object:Gem::Requirement
125
+ none: false
126
+ requirements:
127
+ - - ! '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ segments:
131
+ - 0
132
+ hash: -3729820967527438863
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ none: false
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ requirements: []
140
+ rubyforge_project:
141
+ rubygems_version: 1.8.25
142
+ signing_key:
143
+ specification_version: 3
144
+ summary: Get the season name from a date or datetime object
145
+ test_files: []