simple_calendar 1.1.0 → 1.1.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: 4ac05b82caf3c5475d9890349e7fe90fb9c536d1
4
- data.tar.gz: df0ee7c7ba1fc634b41aa703dde69b89ec1040a5
3
+ metadata.gz: cde59f7b5261410c7433f612f66497b2ca0d94b5
4
+ data.tar.gz: da698473ac70482bcee27cfcd9a8d9e52723bb1f
5
5
  SHA512:
6
- metadata.gz: af7ea6649813615d366c6915e883ee128a125526308e8caeb960da9552046d70407fe5c6dc87cf9f29effec7710064d181a2fb25f8e3f65782392ef2a1e7388c
7
- data.tar.gz: ae67ff184ff36292f9c6ab38a55159c0d390a439436d49b33f577aaa5e3ed4268e17e8075038c116dbd6e8ae206f8f13e9d1d8c2945d1c80dccc4784fa716063
6
+ metadata.gz: efad6cae850b219bbf67bed72472f907ae8167d85ce886c03d61b17fbeda60062e8133a32e0ac7a720f7cc65bde99605fe2316260ac34ec0bea9bf002aa4e602
7
+ data.tar.gz: 6f77fceea6cc6e61d8054b14080b05c425d409e7121505ea6cecffe5d00adf635dfdd000702578e5991572d83b462cb94da3d29f1ffcf38046b70a4335c2654a
@@ -1,3 +1,3 @@
1
1
  module SimpleCalendar
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -11,7 +11,7 @@ module SimpleCalendar
11
11
  end
12
12
 
13
13
  def default_previous_link
14
- ->(param, date_range) { link_to raw("«"), param => date_range.first - 8.days }
14
+ ->(param, date_range) { link_to raw("«"), param => date_range.first - (((options.fetch(:number_of_weeks, 1) - 1) * 7) + 1).days }
15
15
  end
16
16
 
17
17
  def default_next_link
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-13 00:00:00.000000000 Z
11
+ date: 2014-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  description: A simple Rails 3 and Rails 4 calendar
@@ -31,8 +31,8 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - .gitignore
35
- - .rspec
34
+ - ".gitignore"
35
+ - ".rspec"
36
36
  - Gemfile
37
37
  - README.md
38
38
  - Rakefile
@@ -54,12 +54,12 @@ require_paths:
54
54
  - lib
55
55
  required_ruby_version: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - '>='
57
+ - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: '0'
60
60
  required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - '>='
62
+ - - ">="
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  requirements: []