alchemy_cms 6.0.0.pre.b6 → 6.0.0.pre.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/brakeman-analysis.yml +46 -0
  3. data/.github/workflows/ci.yml +4 -3
  4. data/CHANGELOG.md +35 -0
  5. data/Gemfile +6 -1
  6. data/README.md +1 -1
  7. data/SECURITY.md +13 -0
  8. data/alchemy_cms.gemspec +3 -3
  9. data/app/assets/javascripts/alchemy/admin.js +0 -1
  10. data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +2 -2
  11. data/app/assets/javascripts/alchemy/alchemy.link_dialog.js.coffee +7 -6
  12. data/app/assets/stylesheets/alchemy/_extends.scss +4 -4
  13. data/app/assets/stylesheets/alchemy/flatpickr.scss +182 -232
  14. data/app/assets/stylesheets/tinymce/skins/alchemy/content.min.css.scss +3 -3
  15. data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +7 -7
  16. data/app/controllers/alchemy/admin/base_controller.rb +9 -3
  17. data/app/models/alchemy/attachment.rb +1 -1
  18. data/app/models/alchemy/element.rb +1 -1
  19. data/app/models/alchemy/node.rb +1 -1
  20. data/app/models/alchemy/page.rb +1 -1
  21. data/app/models/alchemy/picture.rb +1 -1
  22. data/app/views/alchemy/ingredients/_picture_editor.html.erb +2 -2
  23. data/config/brakeman.ignore +25 -5
  24. data/lib/alchemy/engine.rb +8 -1
  25. data/lib/alchemy/error_tracking/airbrake_handler.rb +13 -0
  26. data/lib/alchemy/error_tracking.rb +14 -0
  27. data/lib/alchemy/taggable.rb +11 -4
  28. data/lib/alchemy/upgrader.rb +6 -0
  29. data/lib/alchemy/version.rb +1 -1
  30. data/lib/alchemy_cms.rb +1 -0
  31. data/lib/generators/alchemy/install/install_generator.rb +2 -1
  32. data/lib/tasks/alchemy/upgrade.rake +6 -0
  33. data/package/admin.js +3 -1
  34. data/package/src/datepicker.js +39 -0
  35. data/package.json +2 -1
  36. metadata +44 -39
  37. data/app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee +0 -29
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0.pre.b6
4
+ version: 6.0.0.pre.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
@@ -10,10 +10,10 @@ authors:
10
10
  - Hendrik Mans
11
11
  - Carsten Fregin
12
12
  - Martin Meyerhoff
13
- autorequire:
13
+ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2021-09-02 00:00:00.000000000 Z
16
+ date: 2022-01-16 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: actionmailer
@@ -24,7 +24,7 @@ dependencies:
24
24
  version: '6.0'
25
25
  - - "<"
26
26
  - !ruby/object:Gem::Version
27
- version: '6.1'
27
+ version: '6.2'
28
28
  type: :runtime
29
29
  prerelease: false
30
30
  version_requirements: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: '6.0'
35
35
  - - "<"
36
36
  - !ruby/object:Gem::Version
37
- version: '6.1'
37
+ version: '6.2'
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: actionpack
40
40
  requirement: !ruby/object:Gem::Requirement
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '6.0'
45
45
  - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: '6.1'
47
+ version: '6.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '6.0'
55
55
  - - "<"
56
56
  - !ruby/object:Gem::Version
57
- version: '6.1'
57
+ version: '6.2'
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: actionview
60
60
  requirement: !ruby/object:Gem::Requirement
@@ -64,7 +64,7 @@ dependencies:
64
64
  version: '6.0'
65
65
  - - "<"
66
66
  - !ruby/object:Gem::Version
67
- version: '6.1'
67
+ version: '6.2'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  version: '6.0'
75
75
  - - "<"
76
76
  - !ruby/object:Gem::Version
77
- version: '6.1'
77
+ version: '6.2'
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: activejob
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -84,7 +84,7 @@ dependencies:
84
84
  version: '6.0'
85
85
  - - "<"
86
86
  - !ruby/object:Gem::Version
87
- version: '6.1'
87
+ version: '6.2'
88
88
  type: :runtime
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
@@ -94,7 +94,7 @@ dependencies:
94
94
  version: '6.0'
95
95
  - - "<"
96
96
  - !ruby/object:Gem::Version
97
- version: '6.1'
97
+ version: '6.2'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: activemodel
100
100
  requirement: !ruby/object:Gem::Requirement
@@ -104,7 +104,7 @@ dependencies:
104
104
  version: '6.0'
105
105
  - - "<"
106
106
  - !ruby/object:Gem::Version
107
- version: '6.1'
107
+ version: '6.2'
108
108
  type: :runtime
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
@@ -114,7 +114,7 @@ dependencies:
114
114
  version: '6.0'
115
115
  - - "<"
116
116
  - !ruby/object:Gem::Version
117
- version: '6.1'
117
+ version: '6.2'
118
118
  - !ruby/object:Gem::Dependency
119
119
  name: activerecord
120
120
  requirement: !ruby/object:Gem::Requirement
@@ -124,7 +124,7 @@ dependencies:
124
124
  version: '6.0'
125
125
  - - "<"
126
126
  - !ruby/object:Gem::Version
127
- version: '6.1'
127
+ version: '6.2'
128
128
  type: :runtime
129
129
  prerelease: false
130
130
  version_requirements: !ruby/object:Gem::Requirement
@@ -134,7 +134,7 @@ dependencies:
134
134
  version: '6.0'
135
135
  - - "<"
136
136
  - !ruby/object:Gem::Version
137
- version: '6.1'
137
+ version: '6.2'
138
138
  - !ruby/object:Gem::Dependency
139
139
  name: activesupport
140
140
  requirement: !ruby/object:Gem::Requirement
@@ -144,7 +144,7 @@ dependencies:
144
144
  version: '6.0'
145
145
  - - "<"
146
146
  - !ruby/object:Gem::Version
147
- version: '6.1'
147
+ version: '6.2'
148
148
  type: :runtime
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
@@ -154,7 +154,7 @@ dependencies:
154
154
  version: '6.0'
155
155
  - - "<"
156
156
  - !ruby/object:Gem::Version
157
- version: '6.1'
157
+ version: '6.2'
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: railties
160
160
  requirement: !ruby/object:Gem::Requirement
@@ -164,7 +164,7 @@ dependencies:
164
164
  version: '6.0'
165
165
  - - "<"
166
166
  - !ruby/object:Gem::Version
167
- version: '6.1'
167
+ version: '6.2'
168
168
  type: :runtime
169
169
  prerelease: false
170
170
  version_requirements: !ruby/object:Gem::Requirement
@@ -174,7 +174,7 @@ dependencies:
174
174
  version: '6.0'
175
175
  - - "<"
176
176
  - !ruby/object:Gem::Version
177
- version: '6.1'
177
+ version: '6.2'
178
178
  - !ruby/object:Gem::Dependency
179
179
  name: active_model_serializers
180
180
  requirement: !ruby/object:Gem::Requirement
@@ -408,9 +408,9 @@ dependencies:
408
408
  - - ">="
409
409
  - !ruby/object:Gem::Version
410
410
  version: '1.8'
411
- - - "<"
411
+ - - "<="
412
412
  - !ruby/object:Gem::Version
413
- version: 2.4.2
413
+ version: 2.5.0
414
414
  type: :runtime
415
415
  prerelease: false
416
416
  version_requirements: !ruby/object:Gem::Requirement
@@ -418,9 +418,9 @@ dependencies:
418
418
  - - ">="
419
419
  - !ruby/object:Gem::Version
420
420
  version: '1.8'
421
- - - "<"
421
+ - - "<="
422
422
  - !ruby/object:Gem::Version
423
- version: 2.4.2
423
+ version: 2.5.0
424
424
  - !ruby/object:Gem::Dependency
425
425
  name: request_store
426
426
  requirement: !ruby/object:Gem::Requirement
@@ -571,6 +571,20 @@ dependencies:
571
571
  - - "~>"
572
572
  - !ruby/object:Gem::Version
573
573
  version: '1.0'
574
+ - !ruby/object:Gem::Dependency
575
+ name: cuprite
576
+ requirement: !ruby/object:Gem::Requirement
577
+ requirements:
578
+ - - "~>"
579
+ - !ruby/object:Gem::Version
580
+ version: '0.13'
581
+ type: :development
582
+ prerelease: false
583
+ version_requirements: !ruby/object:Gem::Requirement
584
+ requirements:
585
+ - - "~>"
586
+ - !ruby/object:Gem::Version
587
+ version: '0.13'
574
588
  - !ruby/object:Gem::Dependency
575
589
  name: factory_bot_rails
576
590
  requirement: !ruby/object:Gem::Requirement
@@ -655,20 +669,6 @@ dependencies:
655
669
  - - "~>"
656
670
  - !ruby/object:Gem::Version
657
671
  version: '0.20'
658
- - !ruby/object:Gem::Dependency
659
- name: webdrivers
660
- requirement: !ruby/object:Gem::Requirement
661
- requirements:
662
- - - "~>"
663
- - !ruby/object:Gem::Version
664
- version: '4.0'
665
- type: :development
666
- prerelease: false
667
- version_requirements: !ruby/object:Gem::Requirement
668
- requirements:
669
- - - "~>"
670
- - !ruby/object:Gem::Version
671
- version: '4.0'
672
672
  - !ruby/object:Gem::Dependency
673
673
  name: webmock
674
674
  requirement: !ruby/object:Gem::Requirement
@@ -724,6 +724,7 @@ files:
724
724
  - ".github/ISSUE_TEMPLATE/Bug_report.md"
725
725
  - ".github/ISSUE_TEMPLATE/Feature_request.md"
726
726
  - ".github/PULL_REQUEST_TEMPLATE.md"
727
+ - ".github/workflows/brakeman-analysis.yml"
727
728
  - ".github/workflows/ci.yml"
728
729
  - ".github/workflows/stale.yml"
729
730
  - ".gitignore"
@@ -739,6 +740,7 @@ files:
739
740
  - LICENSE
740
741
  - README.md
741
742
  - Rakefile
743
+ - SECURITY.md
742
744
  - alchemy_cms.gemspec
743
745
  - app/assets/config/alchemy_manifest.js
744
746
  - app/assets/images/alchemy/alchemy-logo.png
@@ -755,7 +757,6 @@ files:
755
757
  - app/assets/javascripts/alchemy/alchemy.buttons.js.coffee
756
758
  - app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee
757
759
  - app/assets/javascripts/alchemy/alchemy.confirm_dialog.js.coffee
758
- - app/assets/javascripts/alchemy/alchemy.datepicker.js.coffee
759
760
  - app/assets/javascripts/alchemy/alchemy.dialog.js.coffee
760
761
  - app/assets/javascripts/alchemy/alchemy.dirty.js.coffee
761
762
  - app/assets/javascripts/alchemy/alchemy.dragndrop.js.coffee
@@ -1306,6 +1307,8 @@ files:
1306
1307
  - lib/alchemy/element_definition.rb
1307
1308
  - lib/alchemy/elements_finder.rb
1308
1309
  - lib/alchemy/engine.rb
1310
+ - lib/alchemy/error_tracking.rb
1311
+ - lib/alchemy/error_tracking/airbrake_handler.rb
1309
1312
  - lib/alchemy/errors.rb
1310
1313
  - lib/alchemy/essence.rb
1311
1314
  - lib/alchemy/filetypes.rb
@@ -1422,6 +1425,7 @@ files:
1422
1425
  - package.json
1423
1426
  - package/admin.js
1424
1427
  - package/src/__tests__/i18n.spec.js
1428
+ - package/src/datepicker.js
1425
1429
  - package/src/file_editors.js
1426
1430
  - package/src/i18n.js
1427
1431
  - package/src/image_cropper.js
@@ -1517,7 +1521,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1517
1521
  requirements:
1518
1522
  - ImageMagick (libmagick), v6.6 or greater.
1519
1523
  rubygems_version: 3.1.6
1520
- signing_key:
1524
+ signing_key:
1521
1525
  specification_version: 4
1522
1526
  summary: A powerful, userfriendly and flexible CMS for Rails
1523
1527
  test_files: []
1528
+ ...
@@ -1,29 +0,0 @@
1
- window.Alchemy = {} if typeof(window.Alchemy) is 'undefined'
2
-
3
- $.extend Alchemy,
4
-
5
- Datepicker: (scope) ->
6
- $datepicker_inputs = $('input[data-datepicker-type]', scope)
7
-
8
- # Initializes the datepickers on the text inputs and sets the proper type
9
- # to enable browsers default datepicker if the current OS is iOS.
10
- if Alchemy.isiOS
11
- $datepicker_inputs.prop "type", ->
12
- return $(this).data('datepicker-type')
13
- else
14
- $datepicker_inputs.each ->
15
- type = $(this).data('datepicker-type')
16
- options =
17
- # alchemy_i18n supports `zh_CN` etc., but flatpickr only has two-letter codes (`zh`)
18
- locale: Alchemy.locale.slice(0, 2)
19
- altInput: true
20
- altFormat: Alchemy.t("formats.#{type}")
21
- altInputClass: ""
22
- enableTime: /time/.test(type)
23
- noCalendar: type == "time"
24
- time_24hr: Alchemy.t("formats.time_24hr")
25
- onValueUpdate: (_selectedDates, _dateStr, instance) ->
26
- Alchemy.setElementDirty $(instance.element).closest(".element-editor")
27
- $(this).flatpickr(options)
28
-
29
- return