defoker 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 566abb39743a690c37d78d0d84803aa41d6b94c3
4
- data.tar.gz: 22935a2803580506ed809b539c96fa2ef0d1c7d8
3
+ metadata.gz: fb2b7961c1e61463048cfb58e75e1aed086ddc04
4
+ data.tar.gz: 8af9acf457c8468ab0a31f4b546e1858ec42a0a1
5
5
  SHA512:
6
- metadata.gz: 55d634319f4a080eb26d7c8c837134d14d7f59ce84c05415a085ee4d5c70caeead112b91b368ea6b6fed9bd2123e60ecc1750336cccd85a599821bc79ca08938
7
- data.tar.gz: bacaa8a01b56b9a4172b651cab594208ba5f73958963b7742e26339a771ff02db84dd7d5c5d8b3dbc7919a36e69655898d2ab1a800a01dde4163bdc6bc977125
6
+ metadata.gz: 170da57763f50b9bd714b3c1ffbb2f3f8448fc54e75eb2f8e2503b282f3e6a0b1f83310efb75baec9be83d0a8fe3e18db9df23f5361c65b7f90695d725980064
7
+ data.tar.gz: 43b090bc37769642db531a209b22d6cf48391ff33738a242cbdf1b925e341d6df61e6b602349853193ed8840679177e6a2218821f8e7845c6ea60396cdf62b60
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Defoker
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/defoker.svg)](http://badge.fury.io/rb/defoker)
3
4
  [![Build Status](https://travis-ci.org/tbpgr/defoker.png?branch=master)](https://travis-ci.org/tbpgr/defoker)
4
5
  [![Coverage Status](https://coveralls.io/repos/tbpgr/defoker/badge.png)](https://coveralls.io/r/tbpgr/defoker)
5
6
 
@@ -54,12 +55,12 @@ $ ls -F | grep /
54
55
  20141001_hoge/
55
56
  ~~~
56
57
 
57
- ### tommorow
58
+ ### tomorrow
58
59
  * no additional text
59
60
 
60
61
  ~~~bash
61
62
  # execute at 2014/10/01
62
- $ defoker tommorow
63
+ $ defoker tomorrow
63
64
  $ ls -F | grep /
64
65
  20141002/
65
66
  ~~~
@@ -68,7 +69,7 @@ $ ls -F | grep /
68
69
 
69
70
  ~~~bash
70
71
  # execute at 2014/10/01
71
- $ defoker tommorow -a hoge
72
+ $ defoker tomorrow -a hoge
72
73
  $ ls -F | grep /
73
74
  20141002_hoge/
74
75
  ~~~
@@ -273,6 +274,7 @@ $ ls -F | grep /
273
274
  ~~~
274
275
 
275
276
  ## History
277
+ * version 0.0.2 : Fix typo and change public interface tommorow to tomorrow.
276
278
  * version 0.0.1 : First release.
277
279
 
278
280
  ## Contributing
data/bin/defoker CHANGED
@@ -19,9 +19,9 @@ module Defoker
19
19
  end
20
20
 
21
21
  option :additional, aliases: 'a'
22
- desc 'tommorow', 'create tommorow folder. ex) 20140913, 20140913_hoge'
23
- def tommorow
24
- defoker_core_single_caller(:tommorow)
22
+ desc 'tomorrow', 'create tomorrow folder. ex) 20140913, 20140913_hoge'
23
+ def tomorrow
24
+ defoker_core_single_caller(:tomorrow)
25
25
  end
26
26
 
27
27
  option :additional, aliases: 'a'
@@ -1,3 +1,3 @@
1
1
  module Defoker
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
data/lib/defoker_core.rb CHANGED
@@ -15,11 +15,11 @@ module Defoker
15
15
  DateBaseName.new.to_yyyymmdd(Date.today, additional: additional)
16
16
  end
17
17
 
18
- # Get tommorow folder name
18
+ # Get tomorrow folder name
19
19
  #
20
20
  # @param [String] additional additional name
21
- # @return [String] tommorow folder name
22
- def tommorow(additional: '')
21
+ # @return [String] tomorrow folder name
22
+ def tomorrow(additional: '')
23
23
  DateBaseName.new.to_yyyymmdd(Date.today + 1, additional: additional)
24
24
  end
25
25
 
@@ -55,7 +55,7 @@ describe Defoker::Core do
55
55
  end
56
56
  end
57
57
 
58
- context :tommorow do
58
+ context :tomorrow do
59
59
  cases = [
60
60
  {
61
61
  case_no: 1,
@@ -87,7 +87,7 @@ describe Defoker::Core do
87
87
  Timecop.travel(Time.local(c[:dummy_year], c[:dummy_month], c[:dummy_day]))
88
88
 
89
89
  # -- when --
90
- actual = defoker_core.tommorow(additional: c[:additional])
90
+ actual = defoker_core.tomorrow(additional: c[:additional])
91
91
 
92
92
  # -- then --
93
93
  expect(actual).to eq(c[:expected])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: defoker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - tbpgr