refinerycms 0.9.4.4 → 0.9.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,8 +60,8 @@ eval("#{(defined? Refinery::Initializer) ? Refinery::Initializer : Rails::Initia
60
60
 
61
61
  config.gem "rake", :version => ">= 0.8.3", :lib => "rake"
62
62
  config.gem "friendly_id", :version => ">= 2.2.2", :lib => "friendly_id"
63
- config.gem "mislav-will_paginate", :version => ">= 2.3.11", :lib => "will_paginate", :source => "http://gems.github.com"
63
+ config.gem "will_paginate", :version => ">= 2.3.11", :lib => "will_paginate", :source => "http://gemcutter.org"
64
64
  config.gem "rails", :version => ">= 2.3.4", :lib => "rails"
65
- config.gem "rubyist-aasm", :version => ">= 2.1.1", :lib => "aasm", :source => "http://gems.github.com"
65
+ config.gem "aasm", :version => ">= 2.1.3", :lib => "aasm", :source => "http://gemcutter.org"
66
66
  config.gem "unicode", :version => ">= 0.1", :lib => "unicode"
67
67
  end
@@ -115,5 +115,16 @@ module Refinery::ApplicationHelper
115
115
 
116
116
  truncated
117
117
  end
118
+
119
+ # replace all system images with a thumbnail version of them (handy for all images inside a page part)
120
+ def content_fu(content, thumbnail)
121
+ content.scan(/\/system\/images([^\"\ ]*)/).flatten.each do |match|
122
+ parts = match.split(".")
123
+ extension = parts.pop
124
+ content.gsub!(match, "#{parts.join(".")}_#{thumbnail}.#{extension}")
125
+ end
126
+
127
+ return content
128
+ end
118
129
 
119
130
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4.4
4
+ version: 0.9.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Resolve Digital
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-10-20 00:00:00 +13:00
14
+ date: 2009-10-30 00:00:00 +13:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: 2.3.4
46
46
  version:
47
47
  - !ruby/object:Gem::Dependency
48
- name: mislav-will_paginate
48
+ name: will_paginate
49
49
  type: :runtime
50
50
  version_requirement:
51
51
  version_requirements: !ruby/object:Gem::Requirement
@@ -62,17 +62,17 @@ dependencies:
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: 2.1.4
65
+ version: 2.2.2
66
66
  version:
67
67
  - !ruby/object:Gem::Dependency
68
- name: rubyist-aasm
68
+ name: aasm
69
69
  type: :runtime
70
70
  version_requirement:
71
71
  version_requirements: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 2.1.1
75
+ version: 2.1.3
76
76
  version:
77
77
  description: A beautiful open source Ruby on Rails content manager for small business. Easy to extend, easy to use, lightweight and all wrapped up in a super slick UI.
78
78
  email: info@refinerycms.com