imagine_cms 3.0.5 → 3.0.6

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.
data/.rvmrc CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- ruby_string="ruby-1.9.3-p327"
3
+ ruby_string="ruby-1.9.3-p392"
4
4
  gemset_name="imagine_cms"
5
5
 
6
6
  alias rails='bundle exec rails'
@@ -1,4 +1,63 @@
1
- @import url(reset.css);
1
+ /* From Eric Meyer, Web coding guru, at http://meyerweb.com/eric/tools/css/reset/ */
2
+ /*
3
+ Any style rule denoted with [+] has been added.
4
+ Any rule with [*] has been modified.
5
+ */
6
+ /* v1.0 | 20080212 */
7
+
8
+ html, body, div, span, applet, object, iframe,
9
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
10
+ a, abbr, acronym, address, big, cite, code,
11
+ del, dfn, em, font, img, ins, kbd, q, s, samp,
12
+ small, strike, strong, sub, sup, tt, var, u, i, center,
13
+ dl, dt, dd, ol, ul, li,
14
+ fieldset, form, label, legend,
15
+ table, caption, tbody, tfoot, thead {
16
+ margin: 0;
17
+ padding: 0;
18
+ border: 0;
19
+ outline: 0;
20
+ font-size: 100%;
21
+ vertical-align: baseline;
22
+ background: transparent;
23
+ font-weight: normal; /* [+] */
24
+ }
25
+ strong { font-weight: bold; }
26
+ body {
27
+ line-height: 1;
28
+ }
29
+ ol, ul {
30
+ list-style: none;
31
+ }
32
+ blockquote, q {
33
+ quotes: none;
34
+ }
35
+ blockquote:before, blockquote:after,
36
+ q:before, q:after {
37
+ content: '';
38
+ content: none;
39
+ }
40
+
41
+ /* remember to define focus styles! */
42
+ :focus {
43
+ outline: 0;
44
+ }
45
+
46
+ /* remember to highlight inserts somehow! */
47
+ ins {
48
+ text-decoration: none;
49
+ }
50
+ del {
51
+ text-decoration: line-through;
52
+ }
53
+
54
+ /* tables still need 'cellspacing="0"' in the markup */
55
+ table {
56
+ border-collapse: collapse;
57
+ border-spacing: 0;
58
+ }
59
+
60
+
2
61
 
3
62
  /* Body, Text, Images */
4
63
 
@@ -77,23 +136,3 @@ div.auto_complete ul strong.highlight {
77
136
  color: white;
78
137
  background-color: #506D91;
79
138
  }
80
-
81
-
82
- /** color keys **/
83
- h1 { border-width: 0 0 2px 0; border-style: solid; }
84
- h1.signup { border-color: #C34D00; }
85
- h1.volunteer { border-color: #5E14CD; }
86
- h1.booth { border-color: #0AC153; }
87
- h1.shift { border-color: #0A612C; }
88
-
89
- .colorbox { height: 18px; width: 18px; margin: 2px 4px 0 0; float: left; }
90
- h1 .signup { background-color: #C34D00; }
91
- h1 .volunteer { background-color: #5E14CD; }
92
- h1 .booth { background-color: #0AC153; }
93
- h1 .shift { background-color: #0A612C; }
94
-
95
- table.imagine-management tr:hover { background-color: #fff8c6; }
96
- table.imagine-management th { background-color: #dedede; text-transform: uppercase; }
97
-
98
- table.stats th { text-align: center; padding: 1px 8px; border: 1px solid gray; border-collapse: true; }
99
- table.stats td { text-align: center; padding: 4px 8px; border: 1px solid gray; border-collapse: true; }
@@ -242,7 +242,7 @@ module Cms # :nodoc:
242
242
  # table just for search. (this would be better because it would sort by relevance)
243
243
  # @pages.concat CmsPage.find(:all, :conditions => [ 'match (title, search_index) against (?)', params[:q] ])
244
244
  end
245
- @pages = @pages.uniq.reject { |pg| pg.search_index.blank? }
245
+ @pages = @pages.uniq.reject { |pg| pg.search_index.blank? }.first(100)
246
246
 
247
247
  @pg = CmsPage.new
248
248
  @pg.template = CmsTemplate.find_by_name('Search') || CmsTemplate.new
data/imagine_cms.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
28
28
  s.require_paths = ["lib"]
29
29
 
30
- s.add_dependency "rails", "~> 3.2.0"
30
+ s.add_dependency "rails", "~> 3.2.12"
31
31
  s.add_dependency "prototype-rails", "~> 3.2.0"
32
32
  s.add_dependency "aws-s3", "~> 0.6.3"
33
33
  s.add_dependency "rmagick"
@@ -10,6 +10,17 @@ module ImagineCms
10
10
  Rails.application.config.assets.precompile += %w( codepress/** dojo/** management.css reset.css )
11
11
  end
12
12
 
13
+ def self.activate
14
+ Dir.glob(File.join(Rails.root, "app/overrides/*.rb")) do |c|
15
+ Rails.application.config.cache_classes ? require(c) : load(c)
16
+ end
17
+ Dir.glob(File.join(Rails.root, "app/**/*_decorator*.rb")) do |c|
18
+ Rails.configuration.cache_classes ? require(c) : load(c)
19
+ end
20
+ end
21
+
22
+ config.to_prepare &method(:activate).to_proc
23
+
13
24
  #
14
25
  # activate gems as needed
15
26
  #
@@ -1,3 +1,3 @@
1
1
  module ImagineCms
2
- VERSION = "3.0.5"
2
+ VERSION = "3.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imagine_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.5
4
+ version: 3.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-21 00:00:00.000000000 Z
12
+ date: 2013-02-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.2.0
21
+ version: 3.2.12
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 3.2.0
29
+ version: 3.2.12
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: prototype-rails
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -330,7 +330,6 @@ files:
330
330
  - app/assets/stylesheets/codepress/languages/text.css
331
331
  - app/assets/stylesheets/cropper.css
332
332
  - app/assets/stylesheets/management.css
333
- - app/assets/stylesheets/reset.css
334
333
  - app/controllers/cms/content_controller.rb
335
334
  - app/controllers/management/application_controller.rb
336
335
  - app/controllers/management/cms_controller.rb
@@ -537,7 +536,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
537
536
  version: 1.8.11
538
537
  requirements: []
539
538
  rubyforge_project: imagine_cms
540
- rubygems_version: 1.8.24
539
+ rubygems_version: 1.8.25
541
540
  signing_key:
542
541
  specification_version: 3
543
542
  summary: Imagine Content Management System for Rails
@@ -1,58 +0,0 @@
1
- /* From Eric Meyer, Web coding guru, at http://meyerweb.com/eric/tools/css/reset/ */
2
- /*
3
- Any style rule denoted with [+] has been added.
4
- Any rule with [*] has been modified.
5
- */
6
- /* v1.0 | 20080212 */
7
-
8
- html, body, div, span, applet, object, iframe,
9
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
10
- a, abbr, acronym, address, big, cite, code,
11
- del, dfn, em, font, img, ins, kbd, q, s, samp,
12
- small, strike, strong, sub, sup, tt, var, u, i, center,
13
- dl, dt, dd, ol, ul, li,
14
- fieldset, form, label, legend,
15
- table, caption, tbody, tfoot, thead {
16
- margin: 0;
17
- padding: 0;
18
- border: 0;
19
- outline: 0;
20
- font-size: 100%;
21
- vertical-align: baseline;
22
- background: transparent;
23
- font-weight: normal; /* [+] */
24
- }
25
- strong { font-weight: bold; }
26
- body {
27
- line-height: 1;
28
- }
29
- ol, ul {
30
- list-style: none;
31
- }
32
- blockquote, q {
33
- quotes: none;
34
- }
35
- blockquote:before, blockquote:after,
36
- q:before, q:after {
37
- content: '';
38
- content: none;
39
- }
40
-
41
- /* remember to define focus styles! */
42
- :focus {
43
- outline: 0;
44
- }
45
-
46
- /* remember to highlight inserts somehow! */
47
- ins {
48
- text-decoration: none;
49
- }
50
- del {
51
- text-decoration: line-through;
52
- }
53
-
54
- /* tables still need 'cellspacing="0"' in the markup */
55
- table {
56
- border-collapse: collapse;
57
- border-spacing: 0;
58
- }