six-updater-web 0.17.6 → 0.17.7

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/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/testtask'
7
7
 
8
8
  spec = Gem::Specification.new do |s|
9
9
  s.name = 'six-updater-web'
10
- s.version = '0.17.6'
10
+ s.version = '0.17.7'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -10,4 +10,24 @@ module ApplicationHelper
10
10
  def updated_version_column(record, b = nil)
11
11
  time_ago_in_words(record.updated_version) + "_ago" if record.updated_version
12
12
  end
13
+
14
+ def chrome
15
+ <<STREND
16
+ <!--[if IE]>
17
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
18
+ <style>
19
+ </style>
20
+
21
+ <script>
22
+ // The conditional ensures that this code will only execute in IE,
23
+ // Therefore we can use the IE-specific attachEvent without worry
24
+ window.attachEvent("onload", function() {
25
+ CFInstall.check({
26
+ mode: "overlay"
27
+ });
28
+ });
29
+ </script>
30
+ <![endif]-->
31
+ STREND
32
+ end
13
33
  end
@@ -54,7 +54,11 @@ class Mod < ActiveRecord::Base
54
54
  if File.exists?(cfg)
55
55
  conf = YAML::load_file(cfg)
56
56
  if conf
57
- conf[:version]
57
+ begin
58
+ conf[:version]
59
+ rescue
60
+ nil
61
+ end
58
62
  else
59
63
  nil
60
64
  end
@@ -1,8 +1,8 @@
1
1
  !!! Strict
2
2
  %html{ "xml:lang" => "en", :lang => "en", :xmlns => "http://www.w3.org/1999/xhtml" }
3
3
  %head
4
- %title
5
- = "#{Goldberg.settings.site_name} - #{goldberg_title}"
4
+ %meta{"http-equiv" => "X-UA-Compatible", :content => "chrome=1"}
5
+ %title= "#{Goldberg.settings.site_name} - #{goldberg_title}"
6
6
  = auto_discovery_link_tag(:rss, :controller => :mods, :action => 'feed')
7
7
  %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "content-type" }
8
8
  %link{ :href => "/goldberg/stylesheets/goldberg.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
@@ -16,6 +16,7 @@
16
16
  stop_polling_logo = false;
17
17
  = periodically_call_remote(:url => '/main/test', :frequency => '1', :condition => 'stop_polling_logo == false')
18
18
  %body
19
+ =# chrome
19
20
  #mainContainerBg
20
21
  #mainContainer
21
22
  #container
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.17.6"
25
+ VERSION = "0.17.7"
26
26
  COMPONENT = "six-updater-web"
27
27
 
28
28
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
@@ -32,8 +32,6 @@ module SixUpdaterWeb
32
32
  DEFAULT_PORT
33
33
  end
34
34
 
35
- p ARGV
36
-
37
35
  module_function
38
36
  def prepare_data_path
39
37
  # Arrange appdata!
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 17
8
- - 6
9
- version: 0.17.6
8
+ - 7
9
+ version: 0.17.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-23 00:00:00 +02:00
17
+ date: 2010-07-06 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency