simple_calendar 0.0.3 → 0.0.4

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 SimpleCalendar
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -25,9 +25,9 @@ module SimpleCalendar
25
25
  previous_month = day.advance :months => -1
26
26
  next_month = day.advance :months => 1
27
27
  tags = []
28
- tags << link_to("<", calendar_path(:month => previous_month.month, :year => previous_month.year))
28
+ tags << link_to("<", request.fullpath.split('?').first + "?month=#{previous_month.month}&year=#{previous_month.year}")
29
29
  tags << day.strftime("%B %Y")
30
- tags << link_to(">", calendar_path(:month => next_month.month, :year => next_month.year))
30
+ tags << link_to(">", request.fullpath.split('?').first + "?month=#{next_month.month}&year=#{next_month.year}")
31
31
  tags.join.html_safe
32
32
  end
33
33
  end
@@ -18,7 +18,5 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- # specify any dependencies here; for example:
22
- # s.add_development_dependency "rspec"
23
- # s.add_runtime_dependency "rest-client"
21
+ s.add_dependency('rails', '>= 3.0')
24
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-22 00:00:00.000000000Z
13
- dependencies: []
12
+ date: 2012-03-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '3.0'
14
30
  description: A simple Rails 3 calendar
15
31
  email:
16
32
  - excid3@gmail.com
@@ -48,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
64
  version: '0'
49
65
  requirements: []
50
66
  rubyforge_project: simple_calendar
51
- rubygems_version: 1.8.10
67
+ rubygems_version: 1.8.21
52
68
  signing_key:
53
69
  specification_version: 3
54
70
  summary: A simple Rails 3 calendar