calendar_walker 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/calendar_walker.gemspec +2 -2
- data/lib/calendar_walker/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97123441dcb00428ba98dab4a70c0d7755604d1d
|
4
|
+
data.tar.gz: 4d43c5e6a00c8b3921cbb7526cdf8dc75ae0f070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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::
|
65
|
+
CalendarWalker::MonthGrid.new(Date.new(2014, 1, 1)).wday_list # => [0, 1, 2, 3, 4, 5, 6]
|
66
66
|
|
67
|
-
|
68
|
-
|
69
|
-
|
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
|
data/calendar_walker.gemspec
CHANGED
@@ -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{
|
12
|
-
spec.description = %q{
|
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
|
|
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.
|
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:
|
56
|
-
|
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:
|
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
|