summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bundle/config2
-rw-r--r--.ruby-gemset2
-rw-r--r--.ruby-version2
-rw-r--r--Gemfile17
-rw-r--r--Gemfile.lock246
-rw-r--r--config/environments/test.rb3
-rw-r--r--config/initializers/assets.rb1
-rw-r--r--db/migrate/20260625031409_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb23
8 files changed, 185 insertions, 111 deletions
diff --git a/.bundle/config b/.bundle/config
new file mode 100644
index 0000000..71be015
--- /dev/null
+++ b/.bundle/config
@@ -0,0 +1,2 @@
1---
2BUNDLE_BUNDLER_VERSION: "2.3.27"
diff --git a/.ruby-gemset b/.ruby-gemset
index c100f88..48fed33 100644
--- a/.ruby-gemset
+++ b/.ruby-gemset
@@ -1 +1 @@
rails3-upgrade rails5-upgrade
diff --git a/.ruby-version b/.ruby-version
index 5304f06..56b1397 100644
--- a/.ruby-version
+++ b/.ruby-version
@@ -1 +1 @@
ruby-2.4.10 ruby-2.5.8
diff --git a/Gemfile b/Gemfile
index f00395b..b43b986 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,18 +1,18 @@
1source 'https://rubygems.org' 1source 'https://rubygems.org'
2 2
3gem 'rails', '4.2.11.3' 3gem 'rails', '5.2.8.1'
4 4
5gem 'pg', '~> 0.17.0' 5gem 'pg', '~> 1.0'
6 6
7gem 'acts-as-taggable-on', '~> 3.5' 7gem 'acts-as-taggable-on', '~> 6.0'
8gem 'awesome_nested_set', '~> 3.1' 8gem 'awesome_nested_set', '~> 3.4.0'
9gem 'acts_as_list' 9gem 'acts_as_list'
10gem 'globalize', '~> 5.0' 10gem 'globalize', '~> 5.2.0'
11gem 'routing-filter', '~> 0.6' 11gem 'routing-filter', '~> 0.6'
12gem 'paperclip', '~> 3.5' 12gem 'paperclip', '~> 3.5'
13gem 'will_paginate', '~> 3.0' 13gem 'will_paginate', '~> 3.0'
14gem 'exception_notification' 14gem 'exception_notification', '~> 4.5'
15gem 'libxml-ruby', :require => 'xml' 15gem 'libxml-ruby', '~> 3.2', :require => 'xml'
16 16
17gem 'nokogiri', '~> 1.10.10' 17gem 'nokogiri', '~> 1.10.10'
18gem 'loofah', '~> 2.20.0' 18gem 'loofah', '~> 2.20.0'
@@ -22,13 +22,14 @@ gem 'jquery-rails'
22gem 'unicorn', '~> 1.1' 22gem 'unicorn', '~> 1.1'
23 23
24group :assets do 24group :assets do
25 gem 'sass-rails', '~> 4.0' 25 gem 'sass-rails', '~> 5.0'
26 gem 'coffee-rails', '~> 4.0' 26 gem 'coffee-rails', '~> 4.0'
27 gem 'uglifier', '>= 1.0.3' 27 gem 'uglifier', '>= 1.0.3'
28end 28end
29 29
30group :test do 30group :test do
31 gem 'test-unit', '~> 3.5' 31 gem 'test-unit', '~> 3.5'
32 gem 'rails-controller-testing'
32end 33end
33 34
34gem 'chaos_calendar', :git => 'https://github.com/erdgeist/chaoscalendar.git', 35gem 'chaos_calendar', :git => 'https://github.com/erdgeist/chaoscalendar.git',
diff --git a/Gemfile.lock b/Gemfile.lock
index 6350f67..74b71e7 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,6 +1,6 @@
1GIT 1GIT
2 remote: https://github.com/erdgeist/chaoscalendar.git 2 remote: https://github.com/erdgeist/chaoscalendar.git
3 revision: a1a84e0a1b05f2b64ea7fefb5fa159fccf43abce 3 revision: 0a46bdf537e691f06e8e486e035866682f77f511
4 branch: erdgeist-ruby1.9 4 branch: erdgeist-ruby1.9
5 specs: 5 specs:
6 chaos_calendar (0.1.3) 6 chaos_calendar (0.1.3)
@@ -8,47 +8,55 @@ GIT
8GEM 8GEM
9 remote: https://rubygems.org/ 9 remote: https://rubygems.org/
10 specs: 10 specs:
11 actionmailer (4.2.11.3) 11 actioncable (5.2.8.1)
12 actionpack (= 4.2.11.3) 12 actionpack (= 5.2.8.1)
13 actionview (= 4.2.11.3) 13 nio4r (~> 2.0)
14 activejob (= 4.2.11.3) 14 websocket-driver (>= 0.6.1)
15 actionmailer (5.2.8.1)
16 actionpack (= 5.2.8.1)
17 actionview (= 5.2.8.1)
18 activejob (= 5.2.8.1)
15 mail (~> 2.5, >= 2.5.4) 19 mail (~> 2.5, >= 2.5.4)
16 rails-dom-testing (~> 1.0, >= 1.0.5) 20 rails-dom-testing (~> 2.0)
17 actionpack (4.2.11.3) 21 actionpack (5.2.8.1)
18 actionview (= 4.2.11.3) 22 actionview (= 5.2.8.1)
19 activesupport (= 4.2.11.3) 23 activesupport (= 5.2.8.1)
20 rack (~> 1.6) 24 rack (~> 2.0, >= 2.0.8)
21 rack-test (~> 0.6.2) 25 rack-test (>= 0.6.3)
22 rails-dom-testing (~> 1.0, >= 1.0.5) 26 rails-dom-testing (~> 2.0)
23 rails-html-sanitizer (~> 1.0, >= 1.0.2) 27 rails-html-sanitizer (~> 1.0, >= 1.0.2)
24 actionview (4.2.11.3) 28 actionview (5.2.8.1)
25 activesupport (= 4.2.11.3) 29 activesupport (= 5.2.8.1)
26 builder (~> 3.1) 30 builder (~> 3.1)
27 erubis (~> 2.7.0) 31 erubi (~> 1.4)
28 rails-dom-testing (~> 1.0, >= 1.0.5) 32 rails-dom-testing (~> 2.0)
29 rails-html-sanitizer (~> 1.0, >= 1.0.3) 33 rails-html-sanitizer (~> 1.0, >= 1.0.3)
30 activejob (4.2.11.3) 34 activejob (5.2.8.1)
31 activesupport (= 4.2.11.3) 35 activesupport (= 5.2.8.1)
32 globalid (>= 0.3.0) 36 globalid (>= 0.3.6)
33 activemodel (4.2.11.3) 37 activemodel (5.2.8.1)
34 activesupport (= 4.2.11.3) 38 activesupport (= 5.2.8.1)
35 builder (~> 3.1) 39 activerecord (5.2.8.1)
36 activerecord (4.2.11.3) 40 activemodel (= 5.2.8.1)
37 activemodel (= 4.2.11.3) 41 activesupport (= 5.2.8.1)
38 activesupport (= 4.2.11.3) 42 arel (>= 9.0)
39 arel (~> 6.0) 43 activestorage (5.2.8.1)
40 activesupport (4.2.11.3) 44 actionpack (= 5.2.8.1)
41 i18n (~> 0.7) 45 activerecord (= 5.2.8.1)
46 marcel (~> 1.0.0)
47 activesupport (5.2.8.1)
48 concurrent-ruby (~> 1.0, >= 1.0.2)
49 i18n (>= 0.7, < 2)
42 minitest (~> 5.1) 50 minitest (~> 5.1)
43 thread_safe (~> 0.3, >= 0.3.4)
44 tzinfo (~> 1.1) 51 tzinfo (~> 1.1)
45 acts-as-taggable-on (3.5.0) 52 acts-as-taggable-on (6.5.0)
46 activerecord (>= 3.2, < 5) 53 activerecord (>= 5.0, < 6.1)
47 acts_as_list (1.1.0) 54 acts_as_list (1.1.0)
48 activerecord (>= 4.2) 55 activerecord (>= 4.2)
49 arel (6.0.4) 56 arel (9.0.0)
50 awesome_nested_set (3.9.0) 57 awesome_nested_set (3.4.0)
51 activerecord (>= 4.0.0, < 8.2) 58 activerecord (>= 4.0.0, < 7.0)
59 base64 (0.3.0)
52 builder (3.3.0) 60 builder (3.3.0)
53 climate_control (0.2.0) 61 climate_control (0.2.0)
54 cocaine (0.5.8) 62 cocaine (0.5.8)
@@ -62,31 +70,39 @@ GEM
62 coffee-script-source (1.12.2) 70 coffee-script-source (1.12.2)
63 concurrent-ruby (1.3.7) 71 concurrent-ruby (1.3.7)
64 crass (1.0.6) 72 crass (1.0.6)
65 erubis (2.7.0) 73 digest (3.2.1)
66 exception_notification (4.4.3) 74 erubi (1.13.1)
67 actionmailer (>= 4.0, < 7) 75 exception_notification (4.6.0)
68 activesupport (>= 4.0, < 7) 76 actionmailer (>= 5.2, < 9)
69 execjs (2.9.0) 77 activesupport (>= 5.2, < 9)
70 globalid (0.4.2) 78 execjs (2.10.1)
71 activesupport (>= 4.2.0) 79 ffi (1.17.4)
72 globalize (5.3.1) 80 globalid (1.1.0)
73 activemodel (>= 4.2, < 6.1) 81 activesupport (>= 5.0)
74 activerecord (>= 4.2, < 6.1) 82 globalize (5.2.0)
83 activemodel (>= 4.2, < 5.3)
84 activerecord (>= 4.2, < 5.3)
75 request_store (~> 1.0) 85 request_store (~> 1.0)
76 hike (1.2.3) 86 i18n (1.14.8)
77 i18n (0.9.5)
78 concurrent-ruby (~> 1.0) 87 concurrent-ruby (~> 1.0)
88 io-wait (0.3.1)
79 jquery-rails (4.6.1) 89 jquery-rails (4.6.1)
80 rails-dom-testing (>= 1, < 3) 90 rails-dom-testing (>= 1, < 3)
81 railties (>= 4.2.0) 91 railties (>= 4.2.0)
82 thor (>= 0.14, < 2.0) 92 thor (>= 0.14, < 2.0)
83 libxml-ruby (3.1.0) 93 libxml-ruby (3.2.4)
84 logger (1.5.3) 94 logger (1.7.0)
85 loofah (2.20.0) 95 loofah (2.20.0)
86 crass (~> 1.0.2) 96 crass (~> 1.0.2)
87 nokogiri (>= 1.5.9) 97 nokogiri (>= 1.5.9)
88 mail (2.7.1) 98 mail (2.9.0)
99 logger
89 mini_mime (>= 0.1.1) 100 mini_mime (>= 0.1.1)
101 net-imap
102 net-pop
103 net-smtp
104 marcel (1.0.4)
105 method_source (1.1.0)
90 mime-types (3.7.0) 106 mime-types (3.7.0)
91 logger 107 logger
92 mime-types-data (~> 3.2025, >= 3.2025.0507) 108 mime-types-data (~> 3.2025, >= 3.2025.0507)
@@ -94,7 +110,20 @@ GEM
94 mini_mime (1.1.2) 110 mini_mime (1.1.2)
95 mini_portile2 (2.4.0) 111 mini_portile2 (2.4.0)
96 minitest (5.15.0) 112 minitest (5.15.0)
97 multi_json (1.15.0) 113 net-imap (0.2.2)
114 digest
115 net-protocol
116 strscan
117 net-pop (0.1.2)
118 net-protocol
119 net-protocol (0.1.2)
120 io-wait
121 timeout
122 net-smtp (0.3.0)
123 digest
124 net-protocol
125 timeout
126 nio4r (2.7.3)
98 nokogiri (1.10.10) 127 nokogiri (1.10.10)
99 mini_portile2 (~> 2.4.0) 128 mini_portile2 (~> 2.4.0)
100 paperclip (3.5.4) 129 paperclip (3.5.4)
@@ -102,94 +131,113 @@ GEM
102 activesupport (>= 3.0.0) 131 activesupport (>= 3.0.0)
103 cocaine (~> 0.5.3) 132 cocaine (~> 0.5.3)
104 mime-types 133 mime-types
105 pg (0.17.1) 134 pg (1.5.9)
106 power_assert (3.0.1) 135 power_assert (3.0.1)
107 rack (1.6.13) 136 rack (2.2.23)
108 rack-test (0.6.3) 137 rack-test (2.2.0)
109 rack (>= 1.0) 138 rack (>= 1.3)
110 rails (4.2.11.3) 139 rails (5.2.8.1)
111 actionmailer (= 4.2.11.3) 140 actioncable (= 5.2.8.1)
112 actionpack (= 4.2.11.3) 141 actionmailer (= 5.2.8.1)
113 actionview (= 4.2.11.3) 142 actionpack (= 5.2.8.1)
114 activejob (= 4.2.11.3) 143 actionview (= 5.2.8.1)
115 activemodel (= 4.2.11.3) 144 activejob (= 5.2.8.1)
116 activerecord (= 4.2.11.3) 145 activemodel (= 5.2.8.1)
117 activesupport (= 4.2.11.3) 146 activerecord (= 5.2.8.1)
118 bundler (>= 1.3.0, < 2.0) 147 activestorage (= 5.2.8.1)
119 railties (= 4.2.11.3) 148 activesupport (= 5.2.8.1)
120 sprockets-rails 149 bundler (>= 1.3.0)
121 rails-deprecated_sanitizer (1.0.4) 150 railties (= 5.2.8.1)
122 activesupport (>= 4.2.0.alpha) 151 sprockets-rails (>= 2.0.0)
123 rails-dom-testing (1.0.9) 152 rails-controller-testing (1.0.5)
124 activesupport (>= 4.2.0, < 5.0) 153 actionpack (>= 5.0.1.rc1)
125 nokogiri (~> 1.6) 154 actionview (>= 5.0.1.rc1)
126 rails-deprecated_sanitizer (>= 1.0.1) 155 activesupport (>= 5.0.1.rc1)
156 rails-dom-testing (2.3.0)
157 activesupport (>= 5.0.0)
158 minitest
159 nokogiri (>= 1.6)
127 rails-html-sanitizer (1.4.4) 160 rails-html-sanitizer (1.4.4)
128 loofah (~> 2.19, >= 2.19.1) 161 loofah (~> 2.19, >= 2.19.1)
129 railties (4.2.11.3) 162 railties (5.2.8.1)
130 actionpack (= 4.2.11.3) 163 actionpack (= 5.2.8.1)
131 activesupport (= 4.2.11.3) 164 activesupport (= 5.2.8.1)
165 method_source
132 rake (>= 0.8.7) 166 rake (>= 0.8.7)
133 thor (>= 0.18.1, < 2.0) 167 thor (>= 0.19.0, < 2.0)
134 rake (13.4.2) 168 rake (13.4.2)
169 rb-fsevent (0.11.2)
170 rb-inotify (0.11.1)
171 ffi (~> 1.0)
135 request_store (1.7.0) 172 request_store (1.7.0)
136 rack (>= 1.4) 173 rack (>= 1.4)
137 routing-filter (0.6.3) 174 routing-filter (0.6.3)
138 actionpack (>= 4.2) 175 actionpack (>= 4.2)
139 activesupport (>= 4.2) 176 activesupport (>= 4.2)
140 sass (3.2.19) 177 sass (3.7.4)
141 sass-rails (4.0.5) 178 sass-listen (~> 4.0.0)
142 railties (>= 4.0.0, < 5.0) 179 sass-listen (4.0.0)
143 sass (~> 3.2.2) 180 rb-fsevent (~> 0.9, >= 0.9.4)
144 sprockets (~> 2.8, < 3.0) 181 rb-inotify (~> 0.9, >= 0.9.7)
145 sprockets-rails (~> 2.0) 182 sass-rails (5.1.0)
146 sprockets (2.12.5) 183 railties (>= 5.2.0)
147 hike (~> 1.2) 184 sass (~> 3.1)
148 multi_json (~> 1.0)
149 rack (~> 1.0)
150 tilt (~> 1.1, != 1.3.0)
151 sprockets-rails (2.3.3)
152 actionpack (>= 3.0)
153 activesupport (>= 3.0)
154 sprockets (>= 2.8, < 4.0) 185 sprockets (>= 2.8, < 4.0)
186 sprockets-rails (>= 2.0, < 4.0)
187 tilt (>= 1.1, < 3)
188 sprockets (3.7.5)
189 base64
190 concurrent-ruby (~> 1.0)
191 rack (> 1, < 3)
192 sprockets-rails (3.4.2)
193 actionpack (>= 5.2)
194 activesupport (>= 5.2)
195 sprockets (>= 3.0.0)
196 strscan (3.1.8)
155 test-unit (3.7.8) 197 test-unit (3.7.8)
156 power_assert 198 power_assert
157 thor (1.2.2) 199 thor (1.2.2)
158 thread_safe (0.3.6) 200 thread_safe (0.3.6)
159 tilt (1.4.1) 201 tilt (2.7.0)
202 timeout (0.4.0)
160 tzinfo (1.2.11) 203 tzinfo (1.2.11)
161 thread_safe (~> 0.1) 204 thread_safe (~> 0.1)
162 uglifier (4.2.1) 205 uglifier (4.2.1)
163 execjs (>= 0.3.0, < 3) 206 execjs (>= 0.3.0, < 3)
164 unicorn (1.1.7) 207 unicorn (1.1.7)
165 rack 208 rack
209 websocket-driver (0.8.2)
210 base64
211 websocket-extensions (>= 0.1.0)
212 websocket-extensions (0.1.5)
166 will_paginate (3.3.1) 213 will_paginate (3.3.1)
167 214
168PLATFORMS 215PLATFORMS
169 ruby 216 ruby
170 217
171DEPENDENCIES 218DEPENDENCIES
172 acts-as-taggable-on (~> 3.5) 219 acts-as-taggable-on (~> 6.0)
173 acts_as_list 220 acts_as_list
174 awesome_nested_set (~> 3.1) 221 awesome_nested_set (~> 3.4.0)
175 chaos_calendar! 222 chaos_calendar!
176 coffee-rails (~> 4.0) 223 coffee-rails (~> 4.0)
177 exception_notification 224 exception_notification (~> 4.5)
178 globalize (~> 5.0) 225 globalize (~> 5.2.0)
179 jquery-rails 226 jquery-rails
180 libxml-ruby 227 libxml-ruby (~> 3.2)
181 loofah (~> 2.20.0) 228 loofah (~> 2.20.0)
182 nokogiri (~> 1.10.10) 229 nokogiri (~> 1.10.10)
183 paperclip (~> 3.5) 230 paperclip (~> 3.5)
184 pg (~> 0.17.0) 231 pg (~> 1.0)
185 rails (= 4.2.11.3) 232 rails (= 5.2.8.1)
233 rails-controller-testing
186 rails-html-sanitizer (~> 1.4.4) 234 rails-html-sanitizer (~> 1.4.4)
187 routing-filter (~> 0.6) 235 routing-filter (~> 0.6)
188 sass-rails (~> 4.0) 236 sass-rails (~> 5.0)
189 test-unit (~> 3.5) 237 test-unit (~> 3.5)
190 uglifier (>= 1.0.3) 238 uglifier (>= 1.0.3)
191 unicorn (~> 1.1) 239 unicorn (~> 1.1)
192 will_paginate (~> 3.0) 240 will_paginate (~> 3.0)
193 241
194BUNDLED WITH 242BUNDLED WITH
195 1.17.3 243 2.3.27
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 3b2413e..858bebb 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -15,9 +15,8 @@ Cccms::Application.configure do
15 config.active_support.deprecation = :log 15 config.active_support.deprecation = :log
16 config.active_support.test_order = :sorted 16 config.active_support.test_order = :sorted
17 17
18 config.active_record.raise_in_transactional_callbacks = true
19
20 config.eager_load = false 18 config.eager_load = false
21 config.serve_static_files = true 19 config.serve_static_files = true
22 config.static_cache_control = "public, max-age=3600" 20 config.static_cache_control = "public, max-age=3600"
21 config.assets.compile = true
23end 22end
diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb
new file mode 100644
index 0000000..938e89d
--- /dev/null
+++ b/config/initializers/assets.rb
@@ -0,0 +1 @@
Rails.application.config.assets.precompile += %w( jquery.js jquery_ujs.js )
diff --git a/db/migrate/20260625031409_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb b/db/migrate/20260625031409_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb
new file mode 100644
index 0000000..7c39589
--- /dev/null
+++ b/db/migrate/20260625031409_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb
@@ -0,0 +1,23 @@
1# This migration comes from acts_as_taggable_on_engine (originally 6)
2if ActiveRecord.gem_version >= Gem::Version.new('5.0')
3 class AddMissingIndexesOnTaggings < ActiveRecord::Migration[4.2]; end
4else
5 class AddMissingIndexesOnTaggings < ActiveRecord::Migration; end
6end
7AddMissingIndexesOnTaggings.class_eval do
8 def change
9 add_index ActsAsTaggableOn.taggings_table, :tag_id unless index_exists? ActsAsTaggableOn.taggings_table, :tag_id
10 add_index ActsAsTaggableOn.taggings_table, :taggable_id unless index_exists? ActsAsTaggableOn.taggings_table, :taggable_id
11 add_index ActsAsTaggableOn.taggings_table, :taggable_type unless index_exists? ActsAsTaggableOn.taggings_table, :taggable_type
12 add_index ActsAsTaggableOn.taggings_table, :tagger_id unless index_exists? ActsAsTaggableOn.taggings_table, :tagger_id
13 add_index ActsAsTaggableOn.taggings_table, :context unless index_exists? ActsAsTaggableOn.taggings_table, :context
14
15 unless index_exists? ActsAsTaggableOn.taggings_table, [:tagger_id, :tagger_type]
16 add_index ActsAsTaggableOn.taggings_table, [:tagger_id, :tagger_type]
17 end
18
19 unless index_exists? ActsAsTaggableOn.taggings_table, [:taggable_id, :taggable_type, :tagger_id, :context], name: 'taggings_idy'
20 add_index ActsAsTaggableOn.taggings_table, [:taggable_id, :taggable_type, :tagger_id, :context], name: 'taggings_idy'
21 end
22 end
23end