google_holiday_calendar 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2d7daf762af6f01eeb55d3776af29583fd092f3e
4
+ data.tar.gz: 4dfe7151d30491d132f4ae187bd4fc19737cf167
5
+ SHA512:
6
+ metadata.gz: 528765e8b03de7d4a44be7a4b3156bdc45c3af108e9578ddf6b8c0ebde8bcd54964f499a5dc82146468089c939ddf4e677f7904636fc1d7205bf2c972aa46fbf
7
+ data.tar.gz: 776c6002ff00ac3b500c8d6421c5b75532b60bb909666d12556b6beb79f48e1df0f56eb6131a929d2afb732aca96ec1b811832b291da0790cd173a3c6bb33fba
@@ -0,0 +1 @@
1
+ repo_token: Me5W7nuOQJPCKNuKfVWrLwCtibo2w9CXb
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,11 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1.0
5
+ before_install:
6
+ - gem install bundler -v '= 1.5.2'
7
+ branches:
8
+ only:
9
+ - master
10
+ notifications:
11
+ email: false
@@ -0,0 +1,2 @@
1
+ --markup markdown
2
+ --no-private
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in google_holiday_calendar.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 sue445
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,88 @@
1
+ # GoogleHolidayCalendar [![Build Status](https://travis-ci.org/sue445/google_holiday_calendar.png?branch=master)](https://travis-ci.org/sue445/google_holiday_calendar) [![Coverage Status](https://coveralls.io/repos/sue445/google_holiday_calendar/badge.png)](https://coveralls.io/r/sue445/google_holiday_calendar) [![Dependency Status](https://gemnasium.com/sue445/google_holiday_calendar.png)](https://gemnasium.com/sue445/google_holiday_calendar) [![Code Climate](https://codeclimate.com/github/sue445/google_holiday_calendar.png)](https://codeclimate.com/github/sue445/google_holiday_calendar)
2
+
3
+ Get holidays via Google Calendar.
4
+
5
+ ## Requirements
6
+ * ruby 2.0.0+
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ gem 'google_holiday_calendar'
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install google_holiday_calendar
21
+
22
+ ## Usage (via ruby)
23
+
24
+ ```ruby
25
+ require "google_holiday_calendar"
26
+
27
+ usa_calendar = GoogleHolidayCalendar::Calendar.new(country: "usa", lang: "en")
28
+
29
+ usa_calendar.holidays(start_date: "2014-01-01", end_date: "2014-03-01, limit: 5")
30
+ # => {Wed, 01 Jan 2014=>"New Year's Day", Mon, 20 Jan 2014=>"Martin Luther King Day", Fri, 14 Feb 2014=>"Valentine's Day", Mon, 17 Feb 2014=>"Presidents' Day (Washington's Birthday)"}
31
+
32
+ japan_calendar = GoogleHolidayCalendar::Calendar.new(country: "japanese", lang: "ja")
33
+
34
+ japan_calendar.holidays(start_date: "2014-01-01", end_date: "2014-03-01, limit: 5")
35
+ # => {Wed, 01 Jan 2014=>"元日", Thu, 02 Jan 2014=>"銀行休業日", Fri, 03 Jan 2014=>"銀行休業日", Mon, 13 Jan 2014=>"成人の日", Tue, 11 Feb 2014=>"建国記念の日"}
36
+ ```
37
+
38
+ ## Usage (via bash)
39
+
40
+ ```sh
41
+ # get holidays (today - 1 month after)
42
+ $ date +"%Y-%m-%d"
43
+ 2014-02-24
44
+
45
+ $ google_holiday_calendar
46
+ 2014-03-09: Daylight Saving Time starts
47
+
48
+ # get holidays (2014/01/01 - 2014/07/01)
49
+ $ google_holiday_calendar --start-date=2014-01-01 --end-date=2014-07-01
50
+ 2014-01-01: New Year's Day
51
+ 2014-01-20: Martin Luther King Day
52
+ 2014-02-14: Valentine's Day
53
+ 2014-02-17: Presidents' Day (Washington's Birthday)
54
+ 2014-03-09: Daylight Saving Time starts
55
+ 2014-04-13: Thomas Jefferson's Birthday
56
+ 2014-04-20: Easter Sunday
57
+ 2014-05-11: Mothers' Day
58
+ 2014-05-26: Memorial Day
59
+ 2014-06-15: Fathers' Day
60
+
61
+ # get holidays (with limit)
62
+ $ google_holiday_calendar --start-date=2014-01-01 --end-date=2014-07-01 --limit=3
63
+ google_holiday_calendar --start-date=2014-01-01 --end-date=2014-07-01 --limit=3
64
+ 2014-02-14: Valentine's Day
65
+ 2014-02-17: Presidents' Day (Washington's Birthday)
66
+ 2014-04-13: Thomas Jefferson's Birthday
67
+
68
+ # get holidays (specify country and language)
69
+ $ google_holiday_calendar --start-date=2014-01-01 --end-date=2014-07-01 --country=japanese --lang=ja
70
+ 2014-01-01: 元日
71
+ 2014-01-02: 銀行休業日
72
+ 2014-01-03: 銀行休業日
73
+ 2014-01-13: 成人の日
74
+ 2014-02-11: 建国記念の日
75
+ 2014-03-21: 春分の日
76
+ 2014-04-29: 昭和の日
77
+ 2014-05-03: 憲法記念日
78
+ 2014-05-04: みどりの日
79
+ 2014-05-06: みどりの日 振替休日
80
+ ```
81
+
82
+ ## Contributing
83
+
84
+ 1. Fork it ( http://github.com/sue445/google_holiday_calendar/fork )
85
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
86
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
87
+ 4. Push to the branch (`git push origin my-new-feature`)
88
+ 5. Create new Pull Request
@@ -0,0 +1,11 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
8
+ require 'yard'
9
+
10
+ YARD::Rake::YardocTask.new
11
+
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'google_holiday_calendar'
4
+ require 'optparse'
5
+
6
+ options = {
7
+ start_date: nil,
8
+ end_date: nil,
9
+ limit: 10,
10
+ country: "usa",
11
+ lang: "en",
12
+ }
13
+
14
+ opt = OptionParser.new
15
+ opt.on('--start-date[=YYYY-MM-DD]', 'default: today') {|v| options[:start_date] = v }
16
+ opt.on('--end-date[=YYYY-MM-DD]' , 'default: 1 month after') {|v| options[:end_date] = v }
17
+ opt.on('--limit[=NUM]' , 'default; 10') {|v| options[:limit] = v.to_i }
18
+ opt.on('--country[=COUNTRY]' , 'default: usa') {|v| options[:country] = v }
19
+ opt.on('--lang[=LANG]' , 'default: en') {|v| options[:lang] = v }
20
+ opt.parse!(ARGV)
21
+
22
+ GoogleHolidayCalendar::Calendar.new(
23
+ country: options[:country],
24
+ lang: options[:lang],
25
+ ).holidays(
26
+ start_date: options[:start_date],
27
+ end_date: options[:end_date],
28
+ limit: options[:limit],
29
+ ).each do |date, title|
30
+ puts "#{date}: #{title}"
31
+ end
@@ -0,0 +1,34 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'google_holiday_calendar/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "google_holiday_calendar"
8
+ spec.version = GoogleHolidayCalendar::VERSION
9
+ spec.authors = ["sue445"]
10
+ spec.email = ["sue445@sue445.net"]
11
+ spec.summary = %q{Get holidays via Google Calendar.}
12
+ spec.description = %q{Get holidays via Google Calendar.}
13
+ spec.homepage = "https://github.com/sue445/google_holiday_calendar"
14
+ spec.license = "MIT"
15
+
16
+ spec.required_ruby_version = '>= 2.0.0'
17
+
18
+ spec.files = `git ls-files -z`.split("\x0")
19
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_dependency "activesupport", "~> 4.0.0"
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.5"
26
+ spec.add_development_dependency "rake"
27
+ spec.add_development_dependency "rspec", "3.0.0.beta1"
28
+ spec.add_development_dependency "rspec-its"
29
+ spec.add_development_dependency "rspec-collection_matchers"
30
+ spec.add_development_dependency "delorean"
31
+ spec.add_development_dependency "yard"
32
+ spec.add_development_dependency "memoist"
33
+ spec.add_development_dependency "coveralls"
34
+ end
@@ -0,0 +1,7 @@
1
+ require "google_holiday_calendar/version"
2
+ require "google_holiday_calendar/calendar"
3
+ require "active_support/core_ext"
4
+
5
+ module GoogleHolidayCalendar
6
+ # Your code goes here...
7
+ end
@@ -0,0 +1,70 @@
1
+ module GoogleHolidayCalendar
2
+ require 'open-uri'
3
+
4
+ class Calendar
5
+ attr_reader :country, :lang
6
+
7
+ # @param country [String]
8
+ # @param lang [String]
9
+ def initialize(country: "usa", lang: "en")
10
+ @country = country.downcase
11
+ @lang = lang.downcase
12
+ end
13
+
14
+ # get holidays via google calendar
15
+ # @param start_date [String,Date] start date ("YYYY-MM-DD" or Date). default: current date
16
+ # @param end_date [String,Date] end date ("YYYY-MM-DD" or Date). not contain this date. default: 1 month after the start_date
17
+ # @param limit [Integer]
18
+ # @return [Hash] key: date, value: holiday title
19
+ def holidays(start_date: nil, end_date: nil, limit: 10)
20
+ start_date = Date.today unless start_date
21
+ end_date = to_date(start_date) + 1.month unless end_date
22
+
23
+ url = "http://www.google.com/calendar/feeds/#{@country}__#{@lang}@holiday.calendar.google.com/public/full?"
24
+ params = {
25
+ "alt" => "json",
26
+ "start-min" => to_ymd(start_date),
27
+ "start-max" => to_ymd(end_date),
28
+ "max-results" => limit,
29
+ }
30
+ url += params.to_query
31
+
32
+ calendar_response = fetch(url)
33
+
34
+ holidays = calendar_response["feed"]["entry"].inject({}){ |res, entry|
35
+ date = Date.parse(entry["gd$when"][0]["startTime"])
36
+ title = entry["title"]["$t"]
37
+ res[date] =title
38
+ res
39
+ }
40
+
41
+ Hash[holidays.sort_by{|k,v| k }]
42
+ end
43
+
44
+ private
45
+
46
+ # @param url [String]
47
+ # @return [Hash]
48
+ def fetch(url)
49
+ json_response = URI.parse(url).read
50
+ JSON.parse(json_response)
51
+ end
52
+
53
+ # @param arg [Date,String]
54
+ # @return [String] YYYY-MM-DD
55
+ def to_ymd(arg)
56
+ date = to_date(arg)
57
+ date.strftime("%Y-%m-%d")
58
+ end
59
+
60
+ # @param arg [Date,String]
61
+ # @return [Date]
62
+ def to_date(arg)
63
+ if arg.is_a?(String)
64
+ Date.parse(arg)
65
+ else
66
+ arg
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,3 @@
1
+ module GoogleHolidayCalendar
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,56 @@
1
+ describe GoogleHolidayCalendar::Calendar do
2
+ describe "#holidays" do
3
+ subject{ calendar.holidays(start_date: start_date, end_date: end_date, limit: limit) }
4
+
5
+ let(:limit) { 10 }
6
+ let(:start_date){ "2014-01-01" }
7
+ let(:end_date) { "2014-01-31" }
8
+
9
+ context "Without country and lang" do
10
+ let(:calendar){ GoogleHolidayCalendar::Calendar.new }
11
+
12
+ its(:count){ should > 0 }
13
+ end
14
+
15
+ context "With country and lang" do
16
+ let(:calendar){ GoogleHolidayCalendar::Calendar.new(country: country, lang: lang) }
17
+
18
+ context "When holidays in Japan" do
19
+ let(:country) { "japanese" }
20
+ let(:lang) { "ja" }
21
+
22
+ context "When args are YYYY-MM-DD" do
23
+ let(:start_date){ "2014-01-01" }
24
+ let(:end_date) { "2014-01-31" }
25
+
26
+ it_behaves_like :holidays_in_japan_at_jan
27
+ end
28
+
29
+ context "When args are instance" do
30
+ let(:start_date){ date("2014-01-01") }
31
+ let(:end_date) { date("2014-01-31") }
32
+
33
+ it_behaves_like :holidays_in_japan_at_jan
34
+ end
35
+
36
+ context "Without start_date and end_date" do
37
+ let(:start_date){ nil }
38
+ let(:end_date) { nil }
39
+
40
+ before do
41
+ time_travel_to "2014-01-01"
42
+ end
43
+
44
+ it_behaves_like :holidays_in_japan_at_jan
45
+ end
46
+ end
47
+
48
+ context "When holidays in America" do
49
+ let(:country) { "usa" }
50
+ let(:lang) { "en" }
51
+
52
+ it_behaves_like :holidays_in_usa_at_jan
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,5 @@
1
+ describe GoogleHolidayCalendar do
2
+ it 'should have a version number' do
3
+ expect(GoogleHolidayCalendar::VERSION).not_to be_nil
4
+ end
5
+ end
@@ -0,0 +1,30 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+ require 'google_holiday_calendar'
3
+
4
+ require 'rspec'
5
+ require 'rspec/its'
6
+ require 'rspec/collection_matchers'
7
+ require 'delorean'
8
+ require 'memoist'
9
+
10
+ require 'coveralls'
11
+ Coveralls.wear!
12
+
13
+ # Requires supporting ruby files with custom matchers and macros, etc,
14
+ # in spec/support/ and its subdirectories.
15
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
16
+
17
+ RSpec.configure do |config|
18
+ config.include Delorean
19
+
20
+ config.after(:each) do
21
+ back_to_the_present
22
+ end
23
+
24
+ config.before(:suite) do
25
+ class GoogleHolidayCalendar::Calendar
26
+ extend Memoist
27
+ memoize :fetch
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,7 @@
1
+ shared_examples :holidays_in_japan_at_jan do
2
+ its(:count){ should == 4 }
3
+ it{ should include(date("2014-01-01") => "元日") }
4
+ it{ should include(date("2014-01-02") => "銀行休業日") }
5
+ it{ should include(date("2014-01-03") => "銀行休業日") }
6
+ it{ should include(date("2014-01-13") => "成人の日") }
7
+ end
@@ -0,0 +1,5 @@
1
+ shared_examples :holidays_in_usa_at_jan do
2
+ its(:count){ should == 2 }
3
+ it{ should include(date("2014-01-01") => "New Year's Day") }
4
+ it{ should include(date("2014-01-20") => "Martin Luther King Day") }
5
+ end
@@ -0,0 +1,3 @@
1
+ def date(str)
2
+ Date.parse(str)
3
+ end
metadata ADDED
@@ -0,0 +1,212 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google_holiday_calendar
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - sue445
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-02-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 4.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 4.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.5'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 3.0.0.beta1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 3.0.0.beta1
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec-its
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec-collection_matchers
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: delorean
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: yard
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: memoist
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: coveralls
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Get holidays via Google Calendar.
154
+ email:
155
+ - sue445@sue445.net
156
+ executables:
157
+ - google_holiday_calendar
158
+ extensions: []
159
+ extra_rdoc_files: []
160
+ files:
161
+ - ".coveralls.yml"
162
+ - ".gitignore"
163
+ - ".rspec"
164
+ - ".travis.yml"
165
+ - ".yardopts"
166
+ - Gemfile
167
+ - LICENSE.txt
168
+ - README.md
169
+ - Rakefile
170
+ - bin/google_holiday_calendar
171
+ - google_holiday_calendar.gemspec
172
+ - lib/google_holiday_calendar.rb
173
+ - lib/google_holiday_calendar/calendar.rb
174
+ - lib/google_holiday_calendar/version.rb
175
+ - spec/google_holiday_calendar/calendar_spec.rb
176
+ - spec/google_holiday_calendar_spec.rb
177
+ - spec/spec_helper.rb
178
+ - spec/support/examples/holidays_in_japan_at_jan.rb
179
+ - spec/support/examples/holidays_in_usa_at_jan.rb
180
+ - spec/support/utils/util.rb
181
+ homepage: https://github.com/sue445/google_holiday_calendar
182
+ licenses:
183
+ - MIT
184
+ metadata: {}
185
+ post_install_message:
186
+ rdoc_options: []
187
+ require_paths:
188
+ - lib
189
+ required_ruby_version: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: 2.0.0
194
+ required_rubygems_version: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ version: '0'
199
+ requirements: []
200
+ rubyforge_project:
201
+ rubygems_version: 2.2.0
202
+ signing_key:
203
+ specification_version: 4
204
+ summary: Get holidays via Google Calendar.
205
+ test_files:
206
+ - spec/google_holiday_calendar/calendar_spec.rb
207
+ - spec/google_holiday_calendar_spec.rb
208
+ - spec/spec_helper.rb
209
+ - spec/support/examples/holidays_in_japan_at_jan.rb
210
+ - spec/support/examples/holidays_in_usa_at_jan.rb
211
+ - spec/support/utils/util.rb
212
+ has_rdoc: