alchemy_cms 3.6.5 → 3.6.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: ba7afc95ce56fa86c022c3491a6c54df8e54beb28c55ec985776c4f058d711e3
4
- data.tar.gz: 4de87182e062b2d0af03d0634446d5a351b57385887a662cd4d8077ace75d91d
2
+ SHA1:
3
+ metadata.gz: 2d08ddeba7c6d9ee72222fdbd1076a7e15bf0cd7
4
+ data.tar.gz: f1b8bf8976c1072862a962bbff039a9700aeea3e
5
5
  SHA512:
6
- metadata.gz: 6f16a6e5bbcdbf31cd12f7044f18916e3faa0a437c660b2626651ac01ef11b089cecf03109cf188a2d53d85327908ef697cafb66a4576d22df0fb6259245b87c
7
- data.tar.gz: 21f7e0f844dd8b4a2c2e3d49bdc92b7ac9aad2458ac9f47b813ece1468012732070f079bd30b1fb615a7ca7494a0d381ea69558a4cfb799e607a56114491ea18
6
+ metadata.gz: 20578df18e78b1f0d54bcaff824f6679b3f929d347d1c2316f85d5cbb956789c15804325cf3fdd7e3993bb9cb2ad8915ec95df157360ce6f4a675778afde1c51
7
+ data.tar.gz: 656afe41082692275283b7fb664490637f4a536c024bda2c0272525b032a0434c72808e954f6769e1e34cefe7cac9a3c6bcf603f53266aa6a73f55ed33a913e6
@@ -1,13 +1,15 @@
1
1
  language: ruby
2
2
  sudo: false
3
+ services:
4
+ - mysql
5
+ - postgresql
3
6
  cache:
4
7
  bundler: true
5
8
  directories:
6
9
  - "travis_phantomjs"
7
10
  rvm:
8
- - 2.1
9
- - 2.2
10
- - 2.3.0
11
+ - 2.3
12
+ - 2.4
11
13
  branches:
12
14
  only:
13
15
  - 3.6-stable
@@ -20,7 +22,7 @@ before_install:
20
22
  - "if [ $(phantomjs --version) != '2.1.1' ]; then wget https://assets.membergetmember.co/software/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
21
23
  - "if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
22
24
  - "phantomjs --version"
23
- - gem install bundler
25
+ - gem install bundler -v "< 2"
24
26
  before_script: bundle exec rake alchemy:spec:prepare
25
27
  script: bundle exec rspec
26
28
  after_success: bundle exec codeclimate-test-reporter
@@ -1,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.6.6 (2020-10-08)
4
+
5
+ - Allow AwesomeNestedSet >= 3.0 [#1619](https://github.com/AlchemyCMS/alchemy_cms/pull/1619) by [tvdeyen](https://github.com/tvdeyen)
6
+
7
+ ## 3.6.5 (2018-05-08)
8
+
9
+ - Fix for drag'n'drop trashed elements into pages with cells [#1430](https://github.com/AlchemyCMS/alchemy_cms/pull/1430) by [tvdeyen](https://github.com/tvdeyen)
10
+
11
+ ## 3.6.4 (2018-04-23)
12
+
13
+ - Allows `Symbol`, `Regexp` and `Date` in all YAML config files [#1333](https://github.com/AlchemyCMS/alchemy_cms/pull/1333) by [robinboening](https://github.com/robinboening)
14
+
3
15
  ## 3.6.3 (2017-10-24)
4
16
 
5
17
  * Remove `:display` cancan alias [#1318](https://github.com/AlchemyCMS/alchemy_cms/pull/1318) by [tvdeyen](https://github.com/tvdeyen)
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ gemspec
5
5
  # Profiling
6
6
  gem 'rack-mini-profiler', group: :development, require: false
7
7
 
8
- gem 'sqlite3' if ENV['DB'].nil? || ENV['DB'] == 'sqlite'
8
+ gem 'sqlite3', '~> 1.3.6' if ENV['DB'].nil? || ENV['DB'] == 'sqlite'
9
9
  gem 'mysql2', '~> 0.3.18' if ENV['DB'] == 'mysql'
10
10
  gem 'pg', '~> 0.21' if ENV['DB'] == 'postgresql'
11
11
  gem 'sassc-rails'
@@ -14,6 +14,7 @@ group :development, :test do
14
14
  gem 'jasmine-rails', github: 'searls/jasmine-rails'
15
15
  gem 'jasmine-jquery-rails', github: 'travisjeffery/jasmine-jquery-rails'
16
16
  gem 'simplecov', require: false
17
+ gem 'sassc', '~> 2.1.0'
17
18
  if ENV['TRAVIS']
18
19
  gem 'codeclimate-test-reporter', '~> 1.0', require: false
19
20
  end
@@ -41,9 +42,3 @@ end
41
42
  group :development, :production do
42
43
  gem 'quiet_assets'
43
44
  end
44
-
45
- # We need this if we want to start the dummy app in production, ie on Teatro.io
46
- group :production do
47
- gem 'uglifier', '>= 1.0.3'
48
- gem 'therubyracer'
49
- end
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
21
21
  gem.add_runtime_dependency 'active_model_serializers', ['~> 0.9.0']
22
22
  gem.add_runtime_dependency 'acts_as_list', ['~> 0.3']
23
23
  gem.add_runtime_dependency 'acts-as-taggable-on', ['~> 4.0']
24
- gem.add_runtime_dependency 'awesome_nested_set', ['~> 3.1']
24
+ gem.add_runtime_dependency 'awesome_nested_set', ['~> 3.0']
25
25
  gem.add_runtime_dependency 'bourbon', ['~> 4.2']
26
26
  gem.add_runtime_dependency 'cancancan', ['~> 1.9']
27
27
  gem.add_runtime_dependency 'coffee-rails', ['~> 4.0']
@@ -145,7 +145,10 @@ module Alchemy
145
145
 
146
146
  def paste_element_from_clipboard
147
147
  @source_element = Element.find(element_from_clipboard['id'])
148
- new_attributes = {page_id: @page.id}
148
+ new_attributes = {
149
+ parent_element_id: params[:element][:parent_element_id],
150
+ page_id: @page.id
151
+ }
149
152
  if @page.can_have_cells?
150
153
  new_attributes = new_attributes.merge({cell_id: find_or_create_cell.try(:id)})
151
154
  end
@@ -24,7 +24,7 @@ module Alchemy
24
24
  scope :published, -> { where(public: true) }
25
25
 
26
26
  # Callbacks
27
- before_create :create_default_language!, unless: -> { languages.any? }
27
+ before_create :create_default_language!
28
28
 
29
29
  # concerns
30
30
  include Alchemy::Site::Layout
@@ -11,7 +11,8 @@
11
11
  </div>
12
12
  <div id="paste_element_tab">
13
13
  <%= alchemy_form_for([:admin, @element]) do |f| %>
14
- <%= f.hidden_field(:page_id) %>
14
+ <%= f.hidden_field :page_id %>
15
+ <%= f.hidden_field :parent_element_id, value: @parent_element.try(:id) %>
15
16
  <div class="input select">
16
17
  <label for="paste_from_clipboard" class="control-label"><%= Alchemy.t("Element") %></label>
17
18
  <%= select_tag 'paste_from_clipboard',
@@ -1,5 +1,5 @@
1
1
  module Alchemy
2
- VERSION = "3.6.5"
2
+ VERSION = "3.6.6"
3
3
 
4
4
  def self.version
5
5
  VERSION
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: 3.6.5
4
+ version: 3.6.6
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: 2018-05-08 00:00:00.000000000 Z
16
+ date: 2020-10-08 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: active_model_serializers
@@ -63,14 +63,14 @@ dependencies:
63
63
  requirements:
64
64
  - - "~>"
65
65
  - !ruby/object:Gem::Version
66
- version: '3.1'
66
+ version: '3.0'
67
67
  type: :runtime
68
68
  prerelease: false
69
69
  version_requirements: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '3.1'
73
+ version: '3.0'
74
74
  - !ruby/object:Gem::Dependency
75
75
  name: bourbon
76
76
  requirement: !ruby/object:Gem::Requirement
@@ -994,9 +994,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
994
994
  version: '0'
995
995
  requirements:
996
996
  - ImageMagick (libmagick), v6.6 or greater.
997
- rubyforge_project:
998
- rubygems_version: 2.7.6
999
- signing_key:
997
+ rubyforge_project:
998
+ rubygems_version: 2.6.14.4
999
+ signing_key:
1000
1000
  specification_version: 4
1001
1001
  summary: A powerful, userfriendly and flexible CMS for Rails 4
1002
1002
  test_files: []
1003
+ ...