imagine_cms 4.0.1 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/README.rdoc +8 -7
- data/app/assets/javascripts/imagine.js +3 -2
- data/app/assets/javascripts/imagine_cms.js +1 -1394
- data/app/assets/stylesheets/{cropper.css → cropper.css.scss} +2 -2
- data/app/assets/stylesheets/{imagine_cms.css → imagine_cms.css.scss} +2 -2
- data/app/assets/stylesheets/{imagine_controls.css → imagine_controls.css.scss} +0 -0
- data/app/assets/stylesheets/{management.css → management.css.scss} +0 -0
- data/app/controllers/cms/content_controller.rb +3 -3
- data/app/controllers/management/cms_controller.rb +16 -11
- data/app/controllers/util_controller.rb +1 -1
- data/app/models/cms_page.rb +1 -1
- data/app/views/management/cms/_crop_feature_image.html.erb +2 -2
- data/app/views/management/cms/_crop_image.html.erb +2 -2
- data/app/views/management/cms/_crop_thumb.html.erb +2 -2
- data/app/views/management/cms/_image_details.html.erb +1 -1
- data/app/views/management/cms/_select_gallery.html.erb +1 -1
- data/app/views/management/users/index.html.erb +3 -3
- data/config/initializers/config_file.rb +3 -4
- data/imagine_cms.gemspec +4 -4
- data/lib/acts_as_versioned/test/versioned_test.rb +1 -1
- data/lib/extensions/{action_controller.rb → action_controller_extensions.rb} +4 -3
- data/lib/extensions/{array.rb → array_extensions.rb} +0 -0
- data/lib/imagine_cms/engine.rb +3 -3
- data/lib/imagine_cms/version.rb +1 -1
- data/test/dummy/config/imagine_cms.yml +5 -4
- metadata +24 -19
- data/vendor/.DS_Store +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbb42b1861f2db7db2704b150934135fa51145c4
|
4
|
+
data.tar.gz: 6ec23d6cbea4d1635c872100e0aeaaf0e1d48ae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bea586993f3de37aa8f9a86661a6c0ffeace09e7377d81a8644e64c61f8f5de778af287b89e237791e12c04948db33b2b36ee78299cf0f0e17da2eb03b0779f
|
7
|
+
data.tar.gz: 7999134849b43caa223e14644b05afb4d9228ab1c12ecdc98f917f9d731f96305e7eee6dde46fc3af11c41067f0d599bf0823724bbeebc673ef3b4d71b99af38
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.1.5
|
data/README.rdoc
CHANGED
@@ -14,9 +14,10 @@ All that is now firmly in the past. By extracting Imagine functionality into a g
|
|
14
14
|
|
15
15
|
* Imagine 3.0 (Rails 3.2, Ruby 1.9): [DONE] 90% restored functionality, no database changes.
|
16
16
|
* Imagine 3.1 (Rails 3.2, Ruby 1.9/2.0): [DONE, but released as 3.0.x] 100% restored functionality, plus a few extras and fixes.
|
17
|
-
* Imagine 4.0 (Rails 4.
|
18
|
-
* Imagine 4.1 (Rails 4.
|
19
|
-
* Imagine
|
17
|
+
* Imagine 4.0 (Rails 4.0, Ruby 2.1): [DONE] Compatibility with Rails 4.0
|
18
|
+
* Imagine 4.1 (Rails 4.1, Ruby 2.1): [DONE]
|
19
|
+
* Imagine 4.2 (Rails 4.2, Ruby 2.1): [in progress on master]
|
20
|
+
* Imagine 5.0 (Rails 5.0, Ruby 2.2): [PLANNED, Mid 2015] Compatibility with Rails 5.0, switch to a cross-browser editor
|
20
21
|
|
21
22
|
In the future, there are plans to:
|
22
23
|
* refactor & rewrite the worst parts (substitutions, galleries)
|
@@ -30,11 +31,11 @@ However, this will probably require forking off a separate project (imagine_cms_
|
|
30
31
|
|
31
32
|
=Current Status
|
32
33
|
|
33
|
-
Imagine
|
34
|
+
Imagine 4.0 is ready for production use (v4.0-stable branch). Imagine 3 is also available for apps tied to Rails 3.2 (v3.0-stable branch).
|
34
35
|
|
35
|
-
Imagine 4.
|
36
|
+
Imagine 4.1 is in progress on master.
|
36
37
|
|
37
|
-
One major feature is still missing: browser-based editing of view layouts and stylesheets. While convenient, this was probably not ever a good idea, so
|
38
|
+
One major feature from the old days is still missing: browser-based editing of view layouts and stylesheets. While convenient, this was probably not ever a good idea, so we're working on a better solution. We've also added a new feature, uploaded images and files can be stored on S3 (galleries still live on the local disk, so in a multiple app server setup, a shared filesystem is required).
|
38
39
|
|
39
40
|
Unless you are already familiar with Imagine and/or interested in contributing to development, this project is not suitable for wider use just yet. Why? Well, the purpose of the Imagine gem at this point is strictly to upgrade legacy sites to modern versions of Rails as simply as possible. Until imagine_cms_classic is forked, this project will be held back by its need to remain compatible with legacy installations dating back to 2006. The ERB templating language can be dangerous (it allows all Ruby, including shell escapes), and the editor (powered by an ancient version of Dojo) is still Firefox-only. It also uses Prototype, which has become a bit unfashionable these days.
|
40
41
|
|
@@ -42,7 +43,7 @@ If we can make a clean break from all of these "traditions," that will be a good
|
|
42
43
|
|
43
44
|
=Hosting
|
44
45
|
|
45
|
-
Imagine can run on most "standard" Rails hosting platforms, anything that uses Passenger, Unicorn, etc. On hosts that don't allow (or recommend) writing to the local filesystem (e.g. Heroku) you won't be able to use photo galleries or page caching, but other features should work (this has not been tested).
|
46
|
+
Imagine can run on most "standard" Rails hosting platforms, anything that uses Passenger, Unicorn, etc. On hosts that don't allow (or recommend) writing to the local filesystem (e.g. Heroku) you won't be able to use photo galleries or page caching, but other features should work (note: this has not been tested).
|
46
47
|
|
47
48
|
=Getting Help
|
48
49
|
|
@@ -826,9 +826,10 @@ function scanForPageObjects(page_id, parent_key, version) {
|
|
826
826
|
found = [];
|
827
827
|
|
828
828
|
var regex = /<%=\s*insert_object\(?\s*['"]([-\w\s\d]+)['"],\s*:(\w+)\s*(.*?)\)?\s*%>/gm;
|
829
|
-
|
829
|
+
if (!$('page_objects_' + parent_key).value) return;
|
830
830
|
|
831
|
-
matches
|
831
|
+
var matches = $('page_objects_' + parent_key).value.match(regex);
|
832
|
+
$A(matches).each(function (match) {
|
832
833
|
// regex2 should be exactly the same as regex. Global regexes have a lastIndex which is not reset.
|
833
834
|
var regex2 = /<%=\s*insert_object\(?\s*['"]([-\w\s\d]+)['"],\s*:(\w+)\s*(.*?)\)?\s*%>/gm;
|
834
835
|
if (regex2.test(match)) {
|