simple_calendar 3.0.4 → 3.1.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/lib/simple_calendar/calendar.rb +9 -1
- data/lib/simple_calendar/version.rb +1 -1
- data/lib/simple_calendar/week_calendar.rb +10 -3
- metadata +11 -97
- data/.github/FUNDING.yml +0 -12
- data/.github/workflows/ci.yml +0 -45
- data/.github/workflows/publish_gem.yml +0 -40
- data/.gitignore +0 -11
- data/.rspec +0 -2
- data/.standard.yml +0 -1
- data/Appraisals +0 -15
- data/CHANGELOG.md +0 -39
- data/Gemfile +0 -11
- data/Gemfile.lock +0 -258
- data/LICENSE.txt +0 -22
- data/bin/console +0 -8
- data/bin/rails +0 -16
- data/bin/setup +0 -5
- data/gemfiles/rails_6_1.gemfile +0 -12
- data/gemfiles/rails_6_1.gemfile.lock +0 -234
- data/gemfiles/rails_7_0.gemfile +0 -12
- data/gemfiles/rails_7_0.gemfile.lock +0 -231
- data/gemfiles/rails_7_1.gemfile +0 -12
- data/gemfiles/rails_7_1.gemfile.lock +0 -264
- data/gemfiles/rails_main.gemfile +0 -12
- data/gemfiles/rails_main.gemfile.lock +0 -263
- data/simple_calendar.gemspec +0 -20
- data/test/calendars/calendar_test.rb +0 -161
- data/test/calendars/month_calendar_test.rb +0 -16
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/config/manifest.js +0 -1
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/stylesheets/application.css +0 -1
- data/test/dummy/app/calendars/business_week_calendar.rb +0 -9
- data/test/dummy/app/channels/application_cable/channel.rb +0 -4
- data/test/dummy/app/channels/application_cable/connection.rb +0 -4
- data/test/dummy/app/controllers/application_controller.rb +0 -2
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/controllers/meetings_controller.rb +0 -63
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/helpers/meetings_helper.rb +0 -2
- data/test/dummy/app/jobs/application_job.rb +0 -7
- data/test/dummy/app/mailers/application_mailer.rb +0 -4
- data/test/dummy/app/models/application_record.rb +0 -7
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/models/meeting.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -15
- data/test/dummy/app/views/layouts/mailer.html.erb +0 -13
- data/test/dummy/app/views/layouts/mailer.text.erb +0 -1
- data/test/dummy/app/views/meetings/_business_week_calendar.html.erb +0 -33
- data/test/dummy/app/views/meetings/_form.html.erb +0 -32
- data/test/dummy/app/views/meetings/_meeting.html.erb +0 -17
- data/test/dummy/app/views/meetings/business_week.html.erb +0 -24
- data/test/dummy/app/views/meetings/edit.html.erb +0 -10
- data/test/dummy/app/views/meetings/index.html.erb +0 -24
- data/test/dummy/app/views/meetings/new.html.erb +0 -9
- data/test/dummy/app/views/meetings/show.html.erb +0 -10
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -33
- data/test/dummy/config/application.rb +0 -22
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/cable.yml +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -67
- data/test/dummy/config/environments/production.rb +0 -87
- data/test/dummy/config/environments/test.rb +0 -60
- data/test/dummy/config/initializers/content_security_policy.rb +0 -25
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -8
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/permissions_policy.rb +0 -11
- data/test/dummy/config/locales/en.yml +0 -33
- data/test/dummy/config/puma.rb +0 -43
- data/test/dummy/config/routes.rb +0 -11
- data/test/dummy/config/storage.yml +0 -34
- data/test/dummy/config.ru +0 -6
- data/test/dummy/db/migrate/20220930184313_create_meetings.rb +0 -11
- data/test/dummy/db/schema.rb +0 -21
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/storage/.keep +0 -0
- data/test/fixtures/meetings.yml +0 -36
- data/test/integrations/custom_calendar_test.rb +0 -33
- data/test/integrations/month_calendar_test.rb +0 -58
- data/test/simple_calendar_test.rb +0 -7
- data/test/test_helper.rb +0 -17
- /data/app/assets/stylesheets/{simple_calendar.scss → simple_calendar.css} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3df222c3d574cf3bbba06405c5552970bae59906ac0c791d97cc8f34fbe163ae
|
|
4
|
+
data.tar.gz: d07dcabf52be54fbfef5044f2b7f18cf67775927ca093d6dd24fe51cdbc6bb87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bdae22824856309b506f53182bc7763ca58328622b67635d157154dec4e2c31538225cb990509f59f8535a5a141a7c813a3b455b9b9d72b91d815cc268d0b861
|
|
7
|
+
data.tar.gz: 379e36d12c03683e64eed2e6e0e3d4a65629ce111776cbd0738724022c98c20b21347d90a271bb3da1d608d35dbc1e5635c6bced2c5d19c029330dc23a3aac14
|
|
@@ -125,7 +125,7 @@ module SimpleCalendar
|
|
|
125
125
|
if options.has_key?(:start_date)
|
|
126
126
|
options.fetch(:start_date).to_date
|
|
127
127
|
else
|
|
128
|
-
|
|
128
|
+
start_date_from_params || Date.current
|
|
129
129
|
end
|
|
130
130
|
end
|
|
131
131
|
|
|
@@ -136,5 +136,13 @@ module SimpleCalendar
|
|
|
136
136
|
def additional_days
|
|
137
137
|
options.fetch(:number_of_days, 4) - 1
|
|
138
138
|
end
|
|
139
|
+
|
|
140
|
+
private
|
|
141
|
+
|
|
142
|
+
def start_date_from_params
|
|
143
|
+
view_context.params[start_date_param].try(:to_date)
|
|
144
|
+
rescue ArgumentError # Date::Error inherits from ArgumentError
|
|
145
|
+
nil
|
|
146
|
+
end
|
|
139
147
|
end
|
|
140
148
|
end
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
module SimpleCalendar
|
|
2
2
|
class WeekCalendar < SimpleCalendar::Calendar
|
|
3
3
|
def week_number
|
|
4
|
-
|
|
5
|
-
start_date.beginning_of_week.strftime(format).to_i
|
|
4
|
+
week_number_for(start_date)
|
|
6
5
|
end
|
|
7
6
|
|
|
8
7
|
def number_of_weeks
|
|
9
8
|
options.fetch(:number_of_weeks, 1)
|
|
10
9
|
end
|
|
11
10
|
|
|
11
|
+
# Computed from the date, not week_number + n, so it wraps across a year boundary.
|
|
12
12
|
def end_week
|
|
13
|
-
|
|
13
|
+
week_number_for(date_range.last)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def date_range
|
|
@@ -23,5 +23,12 @@ module SimpleCalendar
|
|
|
23
23
|
def url_for_previous_view
|
|
24
24
|
view_context.url_for(@params.merge(start_date_param => (date_range.first - 1.day).iso8601))
|
|
25
25
|
end
|
|
26
|
+
|
|
27
|
+
private
|
|
28
|
+
|
|
29
|
+
def week_number_for(date)
|
|
30
|
+
format = (Date.beginning_of_week == :sunday) ? "%U" : "%V"
|
|
31
|
+
date.beginning_of_week.strftime(format).to_i
|
|
32
|
+
end
|
|
26
33
|
end
|
|
27
34
|
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: 3.
|
|
4
|
+
version: 3.1.1
|
|
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:
|
|
11
|
+
date: 2026-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -31,35 +31,13 @@ executables: []
|
|
|
31
31
|
extensions: []
|
|
32
32
|
extra_rdoc_files: []
|
|
33
33
|
files:
|
|
34
|
-
- ".github/FUNDING.yml"
|
|
35
|
-
- ".github/workflows/ci.yml"
|
|
36
|
-
- ".github/workflows/publish_gem.yml"
|
|
37
|
-
- ".gitignore"
|
|
38
|
-
- ".rspec"
|
|
39
|
-
- ".standard.yml"
|
|
40
|
-
- Appraisals
|
|
41
|
-
- CHANGELOG.md
|
|
42
|
-
- Gemfile
|
|
43
|
-
- Gemfile.lock
|
|
44
|
-
- LICENSE.txt
|
|
45
34
|
- README.md
|
|
46
35
|
- Rakefile
|
|
47
|
-
- app/assets/stylesheets/simple_calendar.
|
|
36
|
+
- app/assets/stylesheets/simple_calendar.css
|
|
48
37
|
- app/helpers/simple_calendar/calendar_helper.rb
|
|
49
38
|
- app/views/simple_calendar/_calendar.html.erb
|
|
50
39
|
- app/views/simple_calendar/_month_calendar.html.erb
|
|
51
40
|
- app/views/simple_calendar/_week_calendar.html.erb
|
|
52
|
-
- bin/console
|
|
53
|
-
- bin/rails
|
|
54
|
-
- bin/setup
|
|
55
|
-
- gemfiles/rails_6_1.gemfile
|
|
56
|
-
- gemfiles/rails_6_1.gemfile.lock
|
|
57
|
-
- gemfiles/rails_7_0.gemfile
|
|
58
|
-
- gemfiles/rails_7_0.gemfile.lock
|
|
59
|
-
- gemfiles/rails_7_1.gemfile
|
|
60
|
-
- gemfiles/rails_7_1.gemfile.lock
|
|
61
|
-
- gemfiles/rails_main.gemfile
|
|
62
|
-
- gemfiles/rails_main.gemfile.lock
|
|
63
41
|
- lib/generators/simple_calendar/views_generator.rb
|
|
64
42
|
- lib/simple_calendar.rb
|
|
65
43
|
- lib/simple_calendar/calendar.rb
|
|
@@ -67,78 +45,14 @@ files:
|
|
|
67
45
|
- lib/simple_calendar/month_calendar.rb
|
|
68
46
|
- lib/simple_calendar/version.rb
|
|
69
47
|
- lib/simple_calendar/week_calendar.rb
|
|
70
|
-
- simple_calendar.gemspec
|
|
71
|
-
- test/calendars/calendar_test.rb
|
|
72
|
-
- test/calendars/month_calendar_test.rb
|
|
73
|
-
- test/dummy/Rakefile
|
|
74
|
-
- test/dummy/app/assets/config/manifest.js
|
|
75
|
-
- test/dummy/app/assets/images/.keep
|
|
76
|
-
- test/dummy/app/assets/stylesheets/application.css
|
|
77
|
-
- test/dummy/app/calendars/business_week_calendar.rb
|
|
78
|
-
- test/dummy/app/channels/application_cable/channel.rb
|
|
79
|
-
- test/dummy/app/channels/application_cable/connection.rb
|
|
80
|
-
- test/dummy/app/controllers/application_controller.rb
|
|
81
|
-
- test/dummy/app/controllers/concerns/.keep
|
|
82
|
-
- test/dummy/app/controllers/meetings_controller.rb
|
|
83
|
-
- test/dummy/app/helpers/application_helper.rb
|
|
84
|
-
- test/dummy/app/helpers/meetings_helper.rb
|
|
85
|
-
- test/dummy/app/jobs/application_job.rb
|
|
86
|
-
- test/dummy/app/mailers/application_mailer.rb
|
|
87
|
-
- test/dummy/app/models/application_record.rb
|
|
88
|
-
- test/dummy/app/models/concerns/.keep
|
|
89
|
-
- test/dummy/app/models/meeting.rb
|
|
90
|
-
- test/dummy/app/views/layouts/application.html.erb
|
|
91
|
-
- test/dummy/app/views/layouts/mailer.html.erb
|
|
92
|
-
- test/dummy/app/views/layouts/mailer.text.erb
|
|
93
|
-
- test/dummy/app/views/meetings/_business_week_calendar.html.erb
|
|
94
|
-
- test/dummy/app/views/meetings/_form.html.erb
|
|
95
|
-
- test/dummy/app/views/meetings/_meeting.html.erb
|
|
96
|
-
- test/dummy/app/views/meetings/business_week.html.erb
|
|
97
|
-
- test/dummy/app/views/meetings/edit.html.erb
|
|
98
|
-
- test/dummy/app/views/meetings/index.html.erb
|
|
99
|
-
- test/dummy/app/views/meetings/new.html.erb
|
|
100
|
-
- test/dummy/app/views/meetings/show.html.erb
|
|
101
|
-
- test/dummy/bin/rails
|
|
102
|
-
- test/dummy/bin/rake
|
|
103
|
-
- test/dummy/bin/setup
|
|
104
|
-
- test/dummy/config.ru
|
|
105
|
-
- test/dummy/config/application.rb
|
|
106
|
-
- test/dummy/config/boot.rb
|
|
107
|
-
- test/dummy/config/cable.yml
|
|
108
|
-
- test/dummy/config/database.yml
|
|
109
|
-
- test/dummy/config/environment.rb
|
|
110
|
-
- test/dummy/config/environments/development.rb
|
|
111
|
-
- test/dummy/config/environments/production.rb
|
|
112
|
-
- test/dummy/config/environments/test.rb
|
|
113
|
-
- test/dummy/config/initializers/content_security_policy.rb
|
|
114
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
|
115
|
-
- test/dummy/config/initializers/inflections.rb
|
|
116
|
-
- test/dummy/config/initializers/permissions_policy.rb
|
|
117
|
-
- test/dummy/config/locales/en.yml
|
|
118
|
-
- test/dummy/config/puma.rb
|
|
119
|
-
- test/dummy/config/routes.rb
|
|
120
|
-
- test/dummy/config/storage.yml
|
|
121
|
-
- test/dummy/db/migrate/20220930184313_create_meetings.rb
|
|
122
|
-
- test/dummy/db/schema.rb
|
|
123
|
-
- test/dummy/lib/assets/.keep
|
|
124
|
-
- test/dummy/log/.keep
|
|
125
|
-
- test/dummy/public/404.html
|
|
126
|
-
- test/dummy/public/422.html
|
|
127
|
-
- test/dummy/public/500.html
|
|
128
|
-
- test/dummy/public/apple-touch-icon-precomposed.png
|
|
129
|
-
- test/dummy/public/apple-touch-icon.png
|
|
130
|
-
- test/dummy/public/favicon.ico
|
|
131
|
-
- test/dummy/storage/.keep
|
|
132
|
-
- test/fixtures/meetings.yml
|
|
133
|
-
- test/integrations/custom_calendar_test.rb
|
|
134
|
-
- test/integrations/month_calendar_test.rb
|
|
135
|
-
- test/simple_calendar_test.rb
|
|
136
|
-
- test/test_helper.rb
|
|
137
48
|
homepage: https://github.com/excid3/simple_calendar
|
|
138
49
|
licenses:
|
|
139
50
|
- MIT
|
|
140
|
-
metadata:
|
|
141
|
-
|
|
51
|
+
metadata:
|
|
52
|
+
homepage_uri: https://github.com/excid3/simple_calendar
|
|
53
|
+
source_code_uri: https://github.com/excid3/simple_calendar
|
|
54
|
+
changelog_uri: https://github.com/excid3/simple_calendar/blob/main/CHANGELOG.md
|
|
55
|
+
post_install_message:
|
|
142
56
|
rdoc_options: []
|
|
143
57
|
require_paths:
|
|
144
58
|
- lib
|
|
@@ -153,8 +67,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
153
67
|
- !ruby/object:Gem::Version
|
|
154
68
|
version: '0'
|
|
155
69
|
requirements: []
|
|
156
|
-
rubygems_version: 3.5.
|
|
157
|
-
signing_key:
|
|
70
|
+
rubygems_version: 3.5.22
|
|
71
|
+
signing_key:
|
|
158
72
|
specification_version: 4
|
|
159
73
|
summary: A simple Rails calendar
|
|
160
74
|
test_files: []
|
data/.github/FUNDING.yml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# These are supported funding model platforms
|
|
2
|
-
|
|
3
|
-
github: [excid3] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
|
4
|
-
patreon: # Replace with a single Patreon username
|
|
5
|
-
open_collective: # Replace with a single Open Collective username
|
|
6
|
-
ko_fi: # Replace with a single Ko-fi username
|
|
7
|
-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
8
|
-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
-
liberapay: # Replace with a single Liberapay username
|
|
10
|
-
issuehunt: # Replace with a single IssueHunt username
|
|
11
|
-
otechie: # Replace with a single Otechie username
|
|
12
|
-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
name: Tests
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches:
|
|
6
|
-
- '*'
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- main
|
|
10
|
-
jobs:
|
|
11
|
-
tests:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
strategy:
|
|
14
|
-
matrix:
|
|
15
|
-
ruby: ['3.1', '3.2', '3.3']
|
|
16
|
-
gemfile:
|
|
17
|
-
- rails_6_1
|
|
18
|
-
- rails_7_0
|
|
19
|
-
- rails_7_1
|
|
20
|
-
- rails_main
|
|
21
|
-
env:
|
|
22
|
-
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
|
|
23
|
-
BUNDLE_PATH_RELATIVE_TO_CWD: true
|
|
24
|
-
|
|
25
|
-
steps:
|
|
26
|
-
- uses: actions/checkout@v3
|
|
27
|
-
|
|
28
|
-
- name: Set up Ruby
|
|
29
|
-
uses: ruby/setup-ruby@v1
|
|
30
|
-
with:
|
|
31
|
-
ruby-version: ${{ matrix.ruby }}
|
|
32
|
-
bundler: default
|
|
33
|
-
bundler-cache: true
|
|
34
|
-
rubygems: latest
|
|
35
|
-
|
|
36
|
-
- name: StandardRb check
|
|
37
|
-
run: bundle exec standardrb
|
|
38
|
-
|
|
39
|
-
- name: Run tests
|
|
40
|
-
env:
|
|
41
|
-
DATABASE_URL: "sqlite3:noticed_test"
|
|
42
|
-
RAILS_ENV: test
|
|
43
|
-
run: |
|
|
44
|
-
bundle exec rails db:test:prepare
|
|
45
|
-
bundle exec rails test
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
name: Publish Gem
|
|
2
|
-
on:
|
|
3
|
-
workflow_dispatch:
|
|
4
|
-
inputs:
|
|
5
|
-
version:
|
|
6
|
-
description: "Version"
|
|
7
|
-
required: true
|
|
8
|
-
type: string
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
push:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
permissions:
|
|
15
|
-
contents: write
|
|
16
|
-
id-token: write
|
|
17
|
-
|
|
18
|
-
steps:
|
|
19
|
-
# Set up
|
|
20
|
-
- uses: actions/checkout@v4
|
|
21
|
-
- name: Set up Ruby
|
|
22
|
-
uses: ruby/setup-ruby@v1
|
|
23
|
-
with:
|
|
24
|
-
bundler-cache: true
|
|
25
|
-
ruby-version: ruby
|
|
26
|
-
|
|
27
|
-
- name: Update version
|
|
28
|
-
run: |
|
|
29
|
-
sed -i 's/".*"/"${{ inputs.version }}"/' lib/simple_calendar/version.rb
|
|
30
|
-
bundle config set frozen false
|
|
31
|
-
bundle
|
|
32
|
-
bundle exec appraisal
|
|
33
|
-
git config user.name 'GitHub Actions'
|
|
34
|
-
git config user.email github-actions@github.com
|
|
35
|
-
git add Gemfile.lock gemfiles lib
|
|
36
|
-
git commit -m "Version bump"
|
|
37
|
-
git push
|
|
38
|
-
|
|
39
|
-
# Release
|
|
40
|
-
- uses: rubygems/release-gem@v1
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.standard.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ruby_version: 2.7
|
data/Appraisals
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
appraise "rails-6-1" do
|
|
2
|
-
gem "rails", "~> 6.1.0"
|
|
3
|
-
end
|
|
4
|
-
|
|
5
|
-
appraise "rails-7-0" do
|
|
6
|
-
gem "rails", "~> 7.0.0"
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
appraise "rails-7-1" do
|
|
10
|
-
gem "rails", "~> 7.1.0.beta1"
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
appraise "rails-main" do
|
|
14
|
-
gem "rails", github: "rails/rails"
|
|
15
|
-
end
|
data/CHANGELOG.md
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
### Unreleased
|
|
2
|
-
|
|
3
|
-
### 3.0.2
|
|
4
|
-
|
|
5
|
-
* Handle `events: nil`
|
|
6
|
-
|
|
7
|
-
### 3.0.1
|
|
8
|
-
|
|
9
|
-
* Refactor to use block from `render_in` call to better support custom calendars
|
|
10
|
-
|
|
11
|
-
### 3.0.0
|
|
12
|
-
|
|
13
|
-
* Drop support for Rails 6.0 and earlier
|
|
14
|
-
* Add Today link to calendars to reset to current date
|
|
15
|
-
* Add `locals: {}` option when rendering calendars to add extra local variables
|
|
16
|
-
* Refactor to use `render_in`
|
|
17
|
-
|
|
18
|
-
### 2.4.3
|
|
19
|
-
|
|
20
|
-
* Fix deprecation warnings - @mbobin
|
|
21
|
-
|
|
22
|
-
### 2.4.2
|
|
23
|
-
|
|
24
|
-
* Translation improvements - @fwolfst
|
|
25
|
-
|
|
26
|
-
### 2.4.1
|
|
27
|
-
|
|
28
|
-
* [FIX] Use iso8601 format for start_date links in the header. Fixes any
|
|
29
|
-
customization to the Rails default date format that might cause the
|
|
30
|
-
parser to fail parsing that with `to_date`
|
|
31
|
-
|
|
32
|
-
### 2.4.0
|
|
33
|
-
|
|
34
|
-
* [BREAKING] Fixes Rails 4.2 by changing `block` to `passed_block`. A
|
|
35
|
-
security fix in Rails makes `block` a reserved local name that we can
|
|
36
|
-
no longer use.
|
|
37
|
-
|
|
38
|
-
**Upgrading**: If you've customized the simple_calendar views, rename
|
|
39
|
-
`block` to `passed_block`. Without this, calendar dates will be empty.
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
GIT
|
|
2
|
-
remote: https://github.com/thoughtbot/appraisal.git
|
|
3
|
-
revision: f5e31c48a1dda036a2c13663fad1b657a0953f5d
|
|
4
|
-
specs:
|
|
5
|
-
appraisal (2.5.0)
|
|
6
|
-
bundler
|
|
7
|
-
rake
|
|
8
|
-
thor (>= 0.14.0)
|
|
9
|
-
|
|
10
|
-
PATH
|
|
11
|
-
remote: .
|
|
12
|
-
specs:
|
|
13
|
-
simple_calendar (3.0.4)
|
|
14
|
-
rails (>= 6.1)
|
|
15
|
-
|
|
16
|
-
GEM
|
|
17
|
-
remote: http://rubygems.org/
|
|
18
|
-
specs:
|
|
19
|
-
actioncable (7.1.3.2)
|
|
20
|
-
actionpack (= 7.1.3.2)
|
|
21
|
-
activesupport (= 7.1.3.2)
|
|
22
|
-
nio4r (~> 2.0)
|
|
23
|
-
websocket-driver (>= 0.6.1)
|
|
24
|
-
zeitwerk (~> 2.6)
|
|
25
|
-
actionmailbox (7.1.3.2)
|
|
26
|
-
actionpack (= 7.1.3.2)
|
|
27
|
-
activejob (= 7.1.3.2)
|
|
28
|
-
activerecord (= 7.1.3.2)
|
|
29
|
-
activestorage (= 7.1.3.2)
|
|
30
|
-
activesupport (= 7.1.3.2)
|
|
31
|
-
mail (>= 2.7.1)
|
|
32
|
-
net-imap
|
|
33
|
-
net-pop
|
|
34
|
-
net-smtp
|
|
35
|
-
actionmailer (7.1.3.2)
|
|
36
|
-
actionpack (= 7.1.3.2)
|
|
37
|
-
actionview (= 7.1.3.2)
|
|
38
|
-
activejob (= 7.1.3.2)
|
|
39
|
-
activesupport (= 7.1.3.2)
|
|
40
|
-
mail (~> 2.5, >= 2.5.4)
|
|
41
|
-
net-imap
|
|
42
|
-
net-pop
|
|
43
|
-
net-smtp
|
|
44
|
-
rails-dom-testing (~> 2.2)
|
|
45
|
-
actionpack (7.1.3.2)
|
|
46
|
-
actionview (= 7.1.3.2)
|
|
47
|
-
activesupport (= 7.1.3.2)
|
|
48
|
-
nokogiri (>= 1.8.5)
|
|
49
|
-
racc
|
|
50
|
-
rack (>= 2.2.4)
|
|
51
|
-
rack-session (>= 1.0.1)
|
|
52
|
-
rack-test (>= 0.6.3)
|
|
53
|
-
rails-dom-testing (~> 2.2)
|
|
54
|
-
rails-html-sanitizer (~> 1.6)
|
|
55
|
-
actiontext (7.1.3.2)
|
|
56
|
-
actionpack (= 7.1.3.2)
|
|
57
|
-
activerecord (= 7.1.3.2)
|
|
58
|
-
activestorage (= 7.1.3.2)
|
|
59
|
-
activesupport (= 7.1.3.2)
|
|
60
|
-
globalid (>= 0.6.0)
|
|
61
|
-
nokogiri (>= 1.8.5)
|
|
62
|
-
actionview (7.1.3.2)
|
|
63
|
-
activesupport (= 7.1.3.2)
|
|
64
|
-
builder (~> 3.1)
|
|
65
|
-
erubi (~> 1.11)
|
|
66
|
-
rails-dom-testing (~> 2.2)
|
|
67
|
-
rails-html-sanitizer (~> 1.6)
|
|
68
|
-
activejob (7.1.3.2)
|
|
69
|
-
activesupport (= 7.1.3.2)
|
|
70
|
-
globalid (>= 0.3.6)
|
|
71
|
-
activemodel (7.1.3.2)
|
|
72
|
-
activesupport (= 7.1.3.2)
|
|
73
|
-
activerecord (7.1.3.2)
|
|
74
|
-
activemodel (= 7.1.3.2)
|
|
75
|
-
activesupport (= 7.1.3.2)
|
|
76
|
-
timeout (>= 0.4.0)
|
|
77
|
-
activestorage (7.1.3.2)
|
|
78
|
-
actionpack (= 7.1.3.2)
|
|
79
|
-
activejob (= 7.1.3.2)
|
|
80
|
-
activerecord (= 7.1.3.2)
|
|
81
|
-
activesupport (= 7.1.3.2)
|
|
82
|
-
marcel (~> 1.0)
|
|
83
|
-
activesupport (7.1.3.2)
|
|
84
|
-
base64
|
|
85
|
-
bigdecimal
|
|
86
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
87
|
-
connection_pool (>= 2.2.5)
|
|
88
|
-
drb
|
|
89
|
-
i18n (>= 1.6, < 2)
|
|
90
|
-
minitest (>= 5.1)
|
|
91
|
-
mutex_m
|
|
92
|
-
tzinfo (~> 2.0)
|
|
93
|
-
ast (2.4.2)
|
|
94
|
-
base64 (0.2.0)
|
|
95
|
-
bigdecimal (3.1.7)
|
|
96
|
-
bindex (0.8.1)
|
|
97
|
-
builder (3.2.4)
|
|
98
|
-
concurrent-ruby (1.2.3)
|
|
99
|
-
connection_pool (2.4.1)
|
|
100
|
-
crass (1.0.6)
|
|
101
|
-
date (3.3.4)
|
|
102
|
-
drb (2.2.1)
|
|
103
|
-
erubi (1.12.0)
|
|
104
|
-
globalid (1.2.1)
|
|
105
|
-
activesupport (>= 6.1)
|
|
106
|
-
i18n (1.14.4)
|
|
107
|
-
concurrent-ruby (~> 1.0)
|
|
108
|
-
io-console (0.7.2)
|
|
109
|
-
irb (1.12.0)
|
|
110
|
-
rdoc
|
|
111
|
-
reline (>= 0.4.2)
|
|
112
|
-
json (2.7.1)
|
|
113
|
-
language_server-protocol (3.17.0.3)
|
|
114
|
-
lint_roller (1.1.0)
|
|
115
|
-
loofah (2.22.0)
|
|
116
|
-
crass (~> 1.0.2)
|
|
117
|
-
nokogiri (>= 1.12.0)
|
|
118
|
-
mail (2.8.1)
|
|
119
|
-
mini_mime (>= 0.1.1)
|
|
120
|
-
net-imap
|
|
121
|
-
net-pop
|
|
122
|
-
net-smtp
|
|
123
|
-
marcel (1.0.4)
|
|
124
|
-
mini_mime (1.1.5)
|
|
125
|
-
minitest (5.22.3)
|
|
126
|
-
mutex_m (0.2.0)
|
|
127
|
-
net-imap (0.4.10)
|
|
128
|
-
date
|
|
129
|
-
net-protocol
|
|
130
|
-
net-pop (0.1.2)
|
|
131
|
-
net-protocol
|
|
132
|
-
net-protocol (0.2.2)
|
|
133
|
-
timeout
|
|
134
|
-
net-smtp (0.5.0)
|
|
135
|
-
net-protocol
|
|
136
|
-
nio4r (2.7.1)
|
|
137
|
-
nokogiri (1.16.3-x86_64-darwin)
|
|
138
|
-
racc (~> 1.4)
|
|
139
|
-
nokogiri (1.16.3-x86_64-linux)
|
|
140
|
-
racc (~> 1.4)
|
|
141
|
-
parallel (1.24.0)
|
|
142
|
-
parser (3.3.0.5)
|
|
143
|
-
ast (~> 2.4.1)
|
|
144
|
-
racc
|
|
145
|
-
psych (5.1.2)
|
|
146
|
-
stringio
|
|
147
|
-
puma (6.4.2)
|
|
148
|
-
nio4r (~> 2.0)
|
|
149
|
-
racc (1.7.3)
|
|
150
|
-
rack (3.0.10)
|
|
151
|
-
rack-session (2.0.0)
|
|
152
|
-
rack (>= 3.0.0)
|
|
153
|
-
rack-test (2.1.0)
|
|
154
|
-
rack (>= 1.3)
|
|
155
|
-
rackup (2.1.0)
|
|
156
|
-
rack (>= 3)
|
|
157
|
-
webrick (~> 1.8)
|
|
158
|
-
rails (7.1.3.2)
|
|
159
|
-
actioncable (= 7.1.3.2)
|
|
160
|
-
actionmailbox (= 7.1.3.2)
|
|
161
|
-
actionmailer (= 7.1.3.2)
|
|
162
|
-
actionpack (= 7.1.3.2)
|
|
163
|
-
actiontext (= 7.1.3.2)
|
|
164
|
-
actionview (= 7.1.3.2)
|
|
165
|
-
activejob (= 7.1.3.2)
|
|
166
|
-
activemodel (= 7.1.3.2)
|
|
167
|
-
activerecord (= 7.1.3.2)
|
|
168
|
-
activestorage (= 7.1.3.2)
|
|
169
|
-
activesupport (= 7.1.3.2)
|
|
170
|
-
bundler (>= 1.15.0)
|
|
171
|
-
railties (= 7.1.3.2)
|
|
172
|
-
rails-dom-testing (2.2.0)
|
|
173
|
-
activesupport (>= 5.0.0)
|
|
174
|
-
minitest
|
|
175
|
-
nokogiri (>= 1.6)
|
|
176
|
-
rails-html-sanitizer (1.6.0)
|
|
177
|
-
loofah (~> 2.21)
|
|
178
|
-
nokogiri (~> 1.14)
|
|
179
|
-
railties (7.1.3.2)
|
|
180
|
-
actionpack (= 7.1.3.2)
|
|
181
|
-
activesupport (= 7.1.3.2)
|
|
182
|
-
irb
|
|
183
|
-
rackup (>= 1.0.0)
|
|
184
|
-
rake (>= 12.2)
|
|
185
|
-
thor (~> 1.0, >= 1.2.2)
|
|
186
|
-
zeitwerk (~> 2.6)
|
|
187
|
-
rainbow (3.1.1)
|
|
188
|
-
rake (13.1.0)
|
|
189
|
-
rdoc (6.6.3.1)
|
|
190
|
-
psych (>= 4.0.0)
|
|
191
|
-
regexp_parser (2.9.0)
|
|
192
|
-
reline (0.5.0)
|
|
193
|
-
io-console (~> 0.5)
|
|
194
|
-
rexml (3.2.6)
|
|
195
|
-
rubocop (1.62.1)
|
|
196
|
-
json (~> 2.3)
|
|
197
|
-
language_server-protocol (>= 3.17.0)
|
|
198
|
-
parallel (~> 1.10)
|
|
199
|
-
parser (>= 3.3.0.2)
|
|
200
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
201
|
-
regexp_parser (>= 1.8, < 3.0)
|
|
202
|
-
rexml (>= 3.2.5, < 4.0)
|
|
203
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
|
204
|
-
ruby-progressbar (~> 1.7)
|
|
205
|
-
unicode-display_width (>= 2.4.0, < 3.0)
|
|
206
|
-
rubocop-ast (1.31.2)
|
|
207
|
-
parser (>= 3.3.0.4)
|
|
208
|
-
rubocop-performance (1.20.2)
|
|
209
|
-
rubocop (>= 1.48.1, < 2.0)
|
|
210
|
-
rubocop-ast (>= 1.30.0, < 2.0)
|
|
211
|
-
ruby-progressbar (1.13.0)
|
|
212
|
-
sqlite3 (1.7.3-x86_64-darwin)
|
|
213
|
-
sqlite3 (1.7.3-x86_64-linux)
|
|
214
|
-
standard (1.35.1)
|
|
215
|
-
language_server-protocol (~> 3.17.0.2)
|
|
216
|
-
lint_roller (~> 1.0)
|
|
217
|
-
rubocop (~> 1.62.0)
|
|
218
|
-
standard-custom (~> 1.0.0)
|
|
219
|
-
standard-performance (~> 1.3)
|
|
220
|
-
standard-custom (1.0.2)
|
|
221
|
-
lint_roller (~> 1.0)
|
|
222
|
-
rubocop (~> 1.50)
|
|
223
|
-
standard-performance (1.3.1)
|
|
224
|
-
lint_roller (~> 1.1)
|
|
225
|
-
rubocop-performance (~> 1.20.2)
|
|
226
|
-
stringio (3.1.0)
|
|
227
|
-
thor (1.3.1)
|
|
228
|
-
timeout (0.4.1)
|
|
229
|
-
tzinfo (2.0.6)
|
|
230
|
-
concurrent-ruby (~> 1.0)
|
|
231
|
-
unicode-display_width (2.5.0)
|
|
232
|
-
web-console (4.2.1)
|
|
233
|
-
actionview (>= 6.0.0)
|
|
234
|
-
activemodel (>= 6.0.0)
|
|
235
|
-
bindex (>= 0.4.0)
|
|
236
|
-
railties (>= 6.0.0)
|
|
237
|
-
webrick (1.8.1)
|
|
238
|
-
websocket-driver (0.7.6)
|
|
239
|
-
websocket-extensions (>= 0.1.0)
|
|
240
|
-
websocket-extensions (0.1.5)
|
|
241
|
-
zeitwerk (2.6.13)
|
|
242
|
-
|
|
243
|
-
PLATFORMS
|
|
244
|
-
x86_64-darwin-20
|
|
245
|
-
x86_64-darwin-22
|
|
246
|
-
x86_64-darwin-23
|
|
247
|
-
x86_64-linux
|
|
248
|
-
|
|
249
|
-
DEPENDENCIES
|
|
250
|
-
appraisal!
|
|
251
|
-
puma
|
|
252
|
-
simple_calendar!
|
|
253
|
-
sqlite3
|
|
254
|
-
standard
|
|
255
|
-
web-console (~> 4.2)
|
|
256
|
-
|
|
257
|
-
BUNDLED WITH
|
|
258
|
-
2.5.7
|
data/LICENSE.txt
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2015 Chris Oliver
|
|
2
|
-
|
|
3
|
-
MIT License
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
-
a copy of this software and associated documentation files (the
|
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
-
the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
|
14
|
-
included in all copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|