six-updater-web 0.14.4 → 0.14.5

Sign up to get free protection for your applications and to get access to all the features.
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.14.4'
10
+ s.version = '0.14.5'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -37,7 +37,7 @@ class SystemSetting < ActiveRecord::Base
37
37
  status = Timeout::timeout(TIMEOUT) do
38
38
  Six::Network::Panel.login(self.server_username, self.server_password, true)
39
39
  end
40
- [Network, Mod, Server, Repository, Action, Appsetting, Sixconfig].each do |t|
40
+ [Mod, Network, Server, Repository, Action, Appsetting, Sixconfig].each do |t|
41
41
  l += t.imp
42
42
  end
43
43
  rescue Timeout::Error
@@ -1,6 +1,4 @@
1
1
  # encoding: utf-8
2
- # Set default encoding
3
- Encoding.default_internal, Encoding.default_external = ['utf-8'] * 2
4
2
 
5
3
  require 'fileutils'
6
4
 
@@ -1,5 +1,8 @@
1
1
  # encoding: utf-8
2
2
 
3
+ # Set default encoding
4
+ Encoding.default_internal, Encoding.default_external = ['utf-8'] * 2
5
+
3
6
  case RUBY_PLATFORM
4
7
  when /-mingw32$/, /-mswin32$/
5
8
  gem 'win32-process'
@@ -19,7 +22,7 @@ case RUBY_VERSION
19
22
  end
20
23
 
21
24
  module SixUpdaterWeb
22
- VERSION = "0.14.4"
25
+ VERSION = "0.14.5"
23
26
  COMPONENT = "six-updater-web"
24
27
 
25
28
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
@@ -100,7 +100,11 @@ module Six
100
100
  if h["id"]
101
101
  id = h["id"]
102
102
  h.delete "id"
103
- r = self.find(id)
103
+ r = nil
104
+ begin
105
+ r = self.find(id)
106
+ rescue
107
+ end
104
108
  if r
105
109
  previous = r.inspect
106
110
  r.attributes = h
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 14
8
- - 4
9
- version: 0.14.4
8
+ - 5
9
+ version: 0.14.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy