simple_calendar 2.2.7 → 2.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ class FakeEvent
2
+ attr_accessor :name, :start_time, :end_time
3
+
4
+ def initialize(name = "event", start_time = nil, end_time = nil)
5
+ @name = name
6
+ @start_time = start_time
7
+ @end_time = end_time
8
+ end
9
+ end
@@ -0,0 +1,20 @@
1
+ class ViewContext
2
+ attr_accessor :start_date, :start_date_param
3
+
4
+ def initialize(start_date = nil, options = {})
5
+ @start_date = start_date
6
+ @start_date_param = options.fetch(:start_date_param, :start_date)
7
+ end
8
+
9
+ def params
10
+ if @start_date.present?
11
+ ActionController::Parameters.new({start_date_param => @start_date})
12
+ else
13
+ ActionController::Parameters.new
14
+ end
15
+ end
16
+
17
+ def render(options = {})
18
+ options
19
+ end
20
+ end
@@ -2,6 +2,6 @@ require "spec_helper"
2
2
  require "generators/simple_calendar/views_generator"
3
3
 
4
4
  describe SimpleCalendar::Generators::ViewsGenerator do
5
- it 'copies the files to app/views/simple_calendar'
6
- it 'verifies the content'
7
- end
5
+ it "copies the files to app/views/simple_calendar"
6
+ it "verifies the content"
7
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.7
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-29 00:00:00.000000000 Z
11
+ date: 2021-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -45,10 +45,14 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - ".github/FUNDING.yml"
49
+ - ".github/workflows/ci.yml"
48
50
  - ".gitignore"
49
51
  - ".rspec"
50
- - ".travis.yml"
52
+ - Appraisals
53
+ - CHANGELOG.md
51
54
  - Gemfile
55
+ - Gemfile.lock
52
56
  - LICENSE.txt
53
57
  - README.md
54
58
  - Rakefile
@@ -58,6 +62,12 @@ files:
58
62
  - app/views/simple_calendar/_week_calendar.html.erb
59
63
  - bin/console
60
64
  - bin/setup
65
+ - gemfiles/rails_6.gemfile
66
+ - gemfiles/rails_6.gemfile.lock
67
+ - gemfiles/rails_6_1.gemfile
68
+ - gemfiles/rails_6_1.gemfile.lock
69
+ - gemfiles/rails_master.gemfile
70
+ - gemfiles/rails_master.gemfile.lock
61
71
  - lib/generators/simple_calendar/views_generator.rb
62
72
  - lib/simple_calendar.rb
63
73
  - lib/simple_calendar/calendar.rb
@@ -71,12 +81,14 @@ files:
71
81
  - spec/calendars/month_calendar_spec.rb
72
82
  - spec/simple_calendar_spec.rb
73
83
  - spec/spec_helper.rb
84
+ - spec/support/fake_event.rb
85
+ - spec/support/view_context.rb
74
86
  - spec/views_generators_spec.rb
75
87
  homepage: https://github.com/excid3/simple_calendar
76
88
  licenses:
77
89
  - MIT
78
90
  metadata: {}
79
- post_install_message:
91
+ post_install_message:
80
92
  rdoc_options: []
81
93
  require_paths:
82
94
  - lib
@@ -91,9 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
103
  - !ruby/object:Gem::Version
92
104
  version: '0'
93
105
  requirements: []
94
- rubyforge_project: simple_calendar
95
- rubygems_version: 2.6.11
96
- signing_key:
106
+ rubygems_version: 3.2.15
107
+ signing_key:
97
108
  specification_version: 4
98
109
  summary: A simple Rails calendar
99
110
  test_files:
@@ -101,4 +112,6 @@ test_files:
101
112
  - spec/calendars/month_calendar_spec.rb
102
113
  - spec/simple_calendar_spec.rb
103
114
  - spec/spec_helper.rb
115
+ - spec/support/fake_event.rb
116
+ - spec/support/view_context.rb
104
117
  - spec/views_generators_spec.rb
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3.1
4
- - 2.2.5