refinerycms 0.9.5.18 → 0.9.5.19

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.
@@ -6,51 +6,52 @@ unless RAILS_ROOT.nil? or RAILS_ROOT.length == 0
6
6
  # ensure asset directories exist.
7
7
  dirs = [%w(public stylesheets), %w(public javascripts), %w(db migrate), %w(lib tasks)]
8
8
  FileUtils::makedirs dirs.map {|dir| File.join(RAILS_ROOT, dir) }
9
-
9
+
10
10
  # copy in the new assets.
11
11
  assets = [%w(public stylesheets refinery), %w(public javascripts refinery)]
12
12
  assets.each do |asset|
13
13
  FileUtils::rm_rf File.join(RAILS_ROOT, asset), :secure => true # ensure the destination is clear.
14
14
  FileUtils::cp_r File.join(REFINERY_ROOT, asset), File.join(RAILS_ROOT, asset) # copy the new assets into the project.
15
15
  end
16
-
16
+
17
17
  # copy in any new migrations.
18
18
  FileUtils::cp Dir[File.join(REFINERY_ROOT, %w(db migrate *.rb))], File.join(RAILS_ROOT, %w(db migrate))
19
-
19
+
20
20
  # copy any rake tasks from plugins to the main lib directory so they can be run.
21
21
  FileUtils::cp Dir[File.join(REFINERY_ROOT, %w(** tasks *.rake))], File.join(RAILS_ROOT, %w(lib tasks))
22
-
22
+
23
23
  # read in the config files
24
24
  app_config = File.open(File.join(RAILS_ROOT, %w(config environment.rb)), "r").read
25
25
  environment_updated = false
26
-
26
+
27
27
  # backup app's environment.rb
28
- unless (app_refinery_gems_section = app_config.scan(/(#===REFINERY REQUIRED GEMS===)([^#]*)(#===REFINERY END OF REQUIRED GEMS===)/).join("")).length == 0
28
+ matcher = /(#===REFINERY REQUIRED GEMS===)(.+?)(#===REFINERY END OF REQUIRED GEMS===)/m
29
+ unless (app_refinery_gems_section = app_config.scan(matcher).join("")).length == 0
29
30
  # read in the config file in the gem
30
31
  refinery_config = File.open(File.join(REFINERY_ROOT, %w(config environment.rb)), "r").read
31
32
  FileUtils.cp File.join(RAILS_ROOT, %w(config environment.rb)), File.join(RAILS_ROOT, %w(config environment.autobackupbyrefinery.rb))
32
-
33
+
33
34
  # write the new content into the file.
34
35
  File.open(File.join(RAILS_ROOT, %w(config environment.rb)), "w").puts(app_config.gsub!(
35
- app_refinery_gems_section,
36
- refinery_config.scan(/(#===REFINERY REQUIRED GEMS===)([^#]*)(#===REFINERY END OF REQUIRED GEMS===)/).join("")
36
+ app_refinery_gems_section,
37
+ refinery_config.scan(matcher).join("")
37
38
  ))
38
-
39
+
39
40
  environment_updated = true
40
41
  end
41
-
42
+
42
43
  unless ARGV.include?("--from-refinery-installer")
43
44
  puts "---------"
44
45
  puts "Copied new Refinery core assets."
45
46
  if environment_updated
46
47
  puts "I've made a backup of your current config/environment.rb file as it has been updated with the latest Refinery RubyGem requirements."
47
48
  puts "The backup is located at config/environment.autobackupbyrefinery.rb incase you need it."
48
- end
49
+ end
49
50
  puts ""
50
51
  puts "=== ACTION REQUIRED ==="
51
52
  puts "Please run rake db:migrate to ensure your database is at the correct version."
52
53
  puts "Please also run rake gems:install to ensure you have the currently specified gems." if environment_updated
53
-
54
+
54
55
  puts ""
55
56
  end
56
57
  else
@@ -169,9 +169,9 @@ a:hover {
169
169
  }
170
170
 
171
171
  #page_container.login #page h1 {
172
- margin: 0;
173
- padding: 5px;
174
- font-size: 20px;
172
+ margin: 0;
173
+ padding: 5px;
174
+ font-size: 20px;
175
175
  line-height:22px
176
176
  }
177
177
 
@@ -243,10 +243,10 @@ pre {
243
243
  }
244
244
 
245
245
  .clearfix:after {
246
- content: ".";
247
- display: block;
248
- height: 0;
249
- clear: both;
246
+ content: ".";
247
+ display: block;
248
+ height: 0;
249
+ clear: both;
250
250
  visibility: hidden;
251
251
  }
252
252
 
@@ -257,7 +257,7 @@ pre {
257
257
  #header {
258
258
  background: url('/images/refinery/header_background.png') #50504B repeat-x bottom;
259
259
  padding: 26px 15px 0 15px;
260
- position: relative;
260
+ position: relative;
261
261
  }
262
262
 
263
263
  #page_container.login #header {
@@ -268,7 +268,7 @@ pre {
268
268
  display: block;
269
269
  color: #C2C2B3;
270
270
  float: left;
271
-
271
+
272
272
  }
273
273
 
274
274
  #site_link:hover {
@@ -317,9 +317,9 @@ pre {
317
317
 
318
318
  #submenu {
319
319
  clear: both;
320
- padding-left: 10px;
320
+ padding-left: 10px;
321
321
  background: url('/images/refinery/nav-3-background.gif') #EFEE8 repeat-x bottom;
322
- }
322
+ }
323
323
 
324
324
  #submenu ul {
325
325
  list-style: none;
@@ -498,7 +498,7 @@ label {
498
498
  display: block;
499
499
  }
500
500
 
501
- textarea {
501
+ textarea {
502
502
  padding: 5px;
503
503
  }
504
504
 
@@ -558,8 +558,8 @@ label.stripped {
558
558
  }
559
559
 
560
560
  #side_body_field {
561
- float: left;
562
- width: 38%;
561
+ float: left;
562
+ width: 38%;
563
563
  margin-left: 18px;
564
564
  }
565
565
 
@@ -630,7 +630,8 @@ label.stripped {
630
630
 
631
631
  #recent_activity td.time_ago {
632
632
  text-align: right;
633
- width: 80px;
633
+ min-width: 80px;
634
+ max-width: 135px;
634
635
  }
635
636
 
636
637
  #recent_activity tr.on {
@@ -1071,7 +1072,7 @@ ul#image_grid li {
1071
1072
  margin: 0px 13px 12px 0px;
1072
1073
  padding: 0px;
1073
1074
  width: 135px;
1074
- text-align: center;
1075
+ text-align: center;
1075
1076
  height: 176px;
1076
1077
  }
1077
1078
  ul#image_grid li.row-end {
@@ -27,4 +27,7 @@ class SessionsController < ApplicationController
27
27
  redirect_back_or_default(new_session_url)
28
28
  end
29
29
 
30
+ protected
31
+ def take_down_for_maintenance?;end
32
+
30
33
  end
@@ -74,6 +74,7 @@ class UsersController < ApplicationController
74
74
  end
75
75
 
76
76
  protected
77
+ def take_down_for_maintenance?;end
77
78
 
78
79
  def find_user
79
80
  @user = User.find(params[:id])
@@ -1,19 +1,19 @@
1
1
  module Admin::DashboardHelper
2
-
2
+
3
3
  def activity_message_for(record)
4
4
  unless (activity = Refinery::Plugins.active.find_activity_by_model(record.class)).nil? or activity.title.blank?
5
5
  title = eval "record.#{activity.title}"
6
- link = link_to truncate(title, :length => 60),
7
- eval("#{activity.url_prefix}admin_#{record.class.name.underscore.downcase}_url(record)"),
6
+ link = link_to truncate(title, :length => 45),
7
+ eval("#{activity.url_prefix}admin_#{record.class.name.underscore.downcase}_url(record)"),
8
8
  :title => "See '#{title}'"
9
-
9
+
10
10
  # next work out which action occured and how long ago it happened
11
11
  action = record.updated_at.eql?(record.created_at) ? "created" : "updated"
12
-
12
+
13
13
  message = "<td>#{refinery_icon_tag("#{eval("activity.#{action}_image")}")}</td>"
14
14
  message << "<td>#{link} #{record.class.name.titleize.downcase} was #{action}</td>"
15
15
  message << "<td class='time_ago'>#{time_ago_in_words(eval("record.#{action}_at")).gsub("about ", "")} ago</td>"
16
16
  end
17
17
  end
18
-
18
+
19
19
  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.5.18
4
+ version: 0.9.5.19
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-11-30 00:00:00 +13:00
14
+ date: 2009-12-01 00:00:00 +13:00
15
15
  default_executable: refinery
16
16
  dependencies: []
17
17