calendar_walker 1.0.0 → 1.0.1

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: 9c40117316ae496c869335bdbf0dfcd7d92ed62d
4
- data.tar.gz: e264d50a4d896a600be0a7789fb7e87accba5c49
3
+ metadata.gz: 97123441dcb00428ba98dab4a70c0d7755604d1d
4
+ data.tar.gz: 4d43c5e6a00c8b3921cbb7526cdf8dc75ae0f070
5
5
  SHA512:
6
- metadata.gz: d87c7a4aaa81d7f0ef0a18ce47b7023faa286bdc6da9138b08beeb3321eee123553dae0c12ee529eb86ad1ffb4d2ca8a6b7e4693ef33f51cc1bddd51578c51ff
7
- data.tar.gz: 64c4b38c281cd0ace514ef8d9df9db8826ccafa31ea3a8241af867b93cdc7d685780e4ba452772fb1f699bb1f6e362b6cb1f407f07071625f1cc64bd64b08745
6
+ metadata.gz: 41fc028471f1a40c770d3e7e551da0d01416d1deb5f5fc56c4ed5ba6faae45de0cfd0766e5aafc8a91f2f5253208824cb30c901a8e67c6307e4432e78d31fb5d
7
+ data.tar.gz: 96eee278096ed63ba90453adf26d1f4e8d4fa0dbffe4f545f2a358e221eecd7b1367f6123b5a8d9870a055cd92c61b138fb32896ca9f321c88117db96e083d45
data/README.md CHANGED
@@ -62,11 +62,11 @@ Next code will go through all dates in received month. Each row is week. Row con
62
62
 
63
63
  When **CalendarWalker#month_walker_for** is called, objects of this class are used by default to manage grid of dates in month. You can use it itself for your own aims.
64
64
 
65
- CalendarWalker::Walker.new(Date.new(2014, 1, 1)).wday_list # => [0, 1, 2, 3, 4, 5, 6]
65
+ CalendarWalker::MonthGrid.new(Date.new(2014, 1, 1)).wday_list # => [0, 1, 2, 3, 4, 5, 6]
66
66
 
67
- walker = CalendarWalker::Walker.new(Date.new(2014, 5, 5), 6)
68
- walker.wday_list # => [6, 0, 1, 2, 3, 4, 5]
69
- walker.days_matrix # => [[Date.new(2014, 4, 28), Date.new(2014, 4, 29), ...], ..., [..., Date.new(2014, 6, 1)]]
67
+ grid = CalendarWalker::MonthGrid.new(Date.new(2014, 5, 5), 6)
68
+ grid.wday_list # => [6, 0, 1, 2, 3, 4, 5]
69
+ grid.days_matrix # => [[Date.new(2014, 4, 28), Date.new(2014, 4, 29), ...], ..., [..., Date.new(2014, 6, 1)]]
70
70
 
71
71
 
72
72
  #### CalendarWalker::MonthWalker
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = CalendarWalker::VERSION
9
9
  spec.authors = ["Pavel Makarov"]
10
10
  spec.email = ["metus.violarium@gmail.com"]
11
- spec.summary = %q{Simple gem to walk through calendar months.}
12
- spec.description = %q{Gem which allows you to walk through months in calendar, print them in proper order.}
11
+ spec.summary = %q{A simple gem to walk through calendar months.}
12
+ spec.description = %q{A simple gem to work with month dates in correct order and objects attached to them.}
13
13
  spec.homepage = "https://github.com/violarium/calendar_walker"
14
14
  spec.license = "MIT"
15
15
 
@@ -1,3 +1,3 @@
1
1
  module CalendarWalker
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calendar_walker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Makarov
@@ -52,8 +52,8 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.14'
55
- description: Gem which allows you to walk through months in calendar, print them in
56
- proper order.
55
+ description: A simple gem to work with month dates in correct order and objects attached
56
+ to them.
57
57
  email:
58
58
  - metus.violarium@gmail.com
59
59
  executables: []
@@ -102,7 +102,7 @@ rubyforge_project:
102
102
  rubygems_version: 2.2.2
103
103
  signing_key:
104
104
  specification_version: 4
105
- summary: Simple gem to walk through calendar months.
105
+ summary: A simple gem to walk through calendar months.
106
106
  test_files:
107
107
  - spec/calendar_walker/month_grid_spec.rb
108
108
  - spec/calendar_walker/month_walker/row_element_spec.rb