mk_calendar 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module MkCalendar
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
data/lib/mk_calendar.rb CHANGED
@@ -1,13 +1,14 @@
1
1
  require "mk_calendar/version"
2
2
  require "mk_calendar/argument"
3
- require "mk_calendar/const"
4
3
  require "mk_calendar/calendar"
4
+ require "mk_calendar/compute"
5
+ require "mk_calendar/const"
5
6
 
6
7
  module MkCalendar
7
8
  def self.new(arg = ARGV[0])
8
9
  arg ||= Time.now.strftime("%Y%m%d")
9
10
  ymd = MkCalendar::Argument.new(arg).get_ymd
10
- return if ymd == ""
11
+ return if ymd == []
11
12
  return MkCalendar::Calendar.new(ymd)
12
13
  end
13
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mk_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - komasaru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-09 00:00:00.000000000 Z
11
+ date: 2016-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -73,6 +73,7 @@ files:
73
73
  - lib/mk_calendar.rb
74
74
  - lib/mk_calendar/argument.rb
75
75
  - lib/mk_calendar/calendar.rb
76
+ - lib/mk_calendar/compute.rb
76
77
  - lib/mk_calendar/const.rb
77
78
  - lib/mk_calendar/version.rb
78
79
  - mk_calendar.gemspec