six-updater-web 0.24.12 → 0.24.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. data/LICENSE +78 -2
  2. data/Rakefile +1 -1
  3. data/lib/six-updater-web/app/helpers/mods_helper.rb +1 -1
  4. data/lib/six-updater-web/app/helpers/servers_helper.rb +1 -1
  5. data/lib/six-updater-web/app/models/arma2_appsetting.rb +2 -1
  6. data/lib/six-updater-web/app/models/arma2_mod.rb +1 -1
  7. data/lib/six-updater-web/app/models/mod.rb +9 -0
  8. data/lib/six-updater-web/app/models/rv2_appsetting.rb +3 -0
  9. data/lib/six-updater-web/app/models/rv2_mod.rb +2 -0
  10. data/lib/six-updater-web/app/models/rv3_appsetting.rb +3 -0
  11. data/lib/six-updater-web/app/models/rv3_mod.rb +2 -0
  12. data/lib/six-updater-web/app/models/rv_appsetting.rb +3 -0
  13. data/lib/six-updater-web/app/models/rv_mod.rb +2 -0
  14. data/lib/six-updater-web/app/models/system_setting.rb +15 -2
  15. data/lib/six-updater-web/app/models/takeonh_appsetting.rb +3 -0
  16. data/lib/six-updater-web/app/models/takeonh_mod.rb +2 -0
  17. data/lib/six-updater-web/app/models/takeonh_ra_a2_appsetting.rb +3 -0
  18. data/lib/six-updater-web/app/models/takeonh_ra_a2_mod.rb +2 -0
  19. data/lib/six-updater-web/app/models/takeonh_ra_appsetting.rb +3 -0
  20. data/lib/six-updater-web/app/models/takeonh_ra_co_appsetting.rb +3 -0
  21. data/lib/six-updater-web/app/models/takeonh_ra_co_mod.rb +2 -0
  22. data/lib/six-updater-web/app/models/takeonh_ra_mod.rb +2 -0
  23. data/lib/six-updater-web/app/models/takeonh_ra_oa_appsetting.rb +3 -0
  24. data/lib/six-updater-web/app/models/takeonh_ra_oa_mod.rb +2 -0
  25. data/lib/six-updater-web/app/models/takeonh_st_appsetting.rb +3 -0
  26. data/lib/six-updater-web/app/models/takeonh_st_mod.rb +2 -0
  27. data/lib/six-updater-web/app/views/main/_check.haml +2 -2
  28. data/lib/six-updater-web/app/views/main/_test.haml +2 -2
  29. data/lib/six-updater-web/config/six-updater-web.rb +1 -1
  30. data/lib/six-updater-web/vendor/plugins/six-import/lib/six/import.rb +4 -2
  31. data/lib/six-updater-web/vendor/plugins/six-network/lib/six/network.rb +2 -2
  32. metadata +129 -120
data/LICENSE CHANGED
@@ -1,3 +1,79 @@
1
- == six-updater-web
1
+ License (short)
2
+ ===============
2
3
 
3
- Put appropriate LICENSE for your project here.
4
+ You are free:
5
+ - to Share � to copy, distribute and transmit the work
6
+
7
+ Under the following conditions:
8
+ - Attribution � You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
9
+ - Noncommercial � You may not use this work for commercial purposes.
10
+ - No Derivative Works � You may not alter, transform, or build upon this work.
11
+
12
+ With the understanding that:
13
+
14
+ Waiver � Any of the above conditions can be waived if you get permission from the copyright holder.
15
+
16
+ Public Domain � Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license.
17
+
18
+ Other Rights � In no way are any of the following rights affected by the license:
19
+ - Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations;
20
+ - The author's moral rights;
21
+ - Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
22
+
23
+ Notice � For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page.
24
+
25
+
26
+ Full license text
27
+ =================
28
+
29
+ THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
30
+
31
+ BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
32
+
33
+ 1. Definitions
34
+
35
+ "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License.
36
+ "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined above) for the purposes of this License.
37
+ "Distribute" means to make available to the public the original and copies of the Work through sale or other transfer of ownership.
38
+ "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License.
39
+ "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast.
40
+ "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work.
41
+ "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
42
+ "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images.
43
+ "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium.
44
+ 2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws.
45
+
46
+ 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:
47
+
48
+ to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; and,
49
+ to Distribute and Publicly Perform the Work including as incorporated in Collections.
50
+ The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats, but otherwise you have no rights to make Adaptations. Subject to 8(f), all rights not expressly granted by Licensor are hereby reserved, including but not limited to the rights set forth in Section 4(d).
51
+
52
+ 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:
53
+
54
+ You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested.
55
+ You may not exercise any of the rights granted to You in Section 3 above in any manner that is primarily intended for or directed toward commercial advantage or private monetary compensation. The exchange of the Work for other copyrighted works by means of digital file-sharing or otherwise shall not be considered to be intended for or directed toward commercial advantage or private monetary compensation, provided there is no payment of any monetary compensation in connection with the exchange of copyrighted works.
56
+ If You Distribute, or Publicly Perform the Work or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work. The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Collection, at a minimum such credit will appear, if a credit for all contributing authors of Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties.
57
+ For the avoidance of doubt:
58
+
59
+ Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License;
60
+ Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License if Your exercise of such rights is for a purpose or use which is otherwise than noncommercial as permitted under Section 4(b) and otherwise waives the right to collect royalties through any statutory or compulsory licensing scheme; and,
61
+ Voluntary License Schemes. The Licensor reserves the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License that is for a purpose or use which is otherwise than noncommercial as permitted under Section 4(b).
62
+ Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation.
63
+ 5. Representations, Warranties and Disclaimer
64
+
65
+ UNLESS OTHERWISE MUTUALLY AGREED BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
66
+
67
+ 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
68
+
69
+ 7. Termination
70
+
71
+ This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
72
+ Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.
73
+ 8. Miscellaneous
74
+
75
+ Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
76
+ If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
77
+ No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
78
+ This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.
79
+ The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law.
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.24.12'
10
+ s.version = '0.24.13'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -1,6 +1,6 @@
1
1
  module ModsHelper
2
2
  def remote_column(record, b = nil)
3
- link_to "nfo", "http://updater.dev-heaven.net/#{record.rema}/#{record.id}", :target => "_blank"
3
+ link_to "nfo", "http://stats.six-updater.net/#{record.rema}/#{record.id}", :target => "_blank"
4
4
  end
5
5
  def size_column(record, b = nil)
6
6
  if record.size
@@ -4,7 +4,7 @@ module ServersHelper
4
4
  end
5
5
 
6
6
  def remote_column(record, b = nil)
7
- link_to "nfo", "http://updater.dev-heaven.net/#{record.rema}/#{record.id}", :target => "_blank"
7
+ link_to "nfo", "http://stats.six-updater.net/#{record.rema}/#{record.id}", :target => "_blank"
8
8
  end
9
9
 
10
10
  def port_column(record, b = nil)
@@ -1,2 +1,3 @@
1
- class Arma2Appsetting < Appsetting
1
+ class Arma2Appsetting < Rv2Appsetting
2
+ FRIENDLY_NAME = "ArmA 2 (Any)"
2
3
  end
@@ -1,3 +1,3 @@
1
- class Arma2Mod < Mod
1
+ class Arma2Mod < Rv2Mod
2
2
  #Code here
3
3
  end
@@ -14,6 +14,15 @@ class Mod < ActiveRecord::Base
14
14
 
15
15
  OVERRIDE_MODEL = Mod
16
16
 
17
+ # TODO
18
+ # - fix dependencies
19
+ attr_accessor :dependencies
20
+
21
+ # Workaround for missing db fields
22
+ attr_accessor :homepage, :changelog, :readme, :license, :license_url, :details, :repository_yml,
23
+ :guid, :cpp_name, :full_name, :description, :author, :aliases, :mod_version, :size_wd,
24
+ :maxbuild, :minbuild
25
+
17
26
  def all_dependentmods(mods = [])
18
27
  mods += [self]
19
28
  self.mods.each do |mod|
@@ -0,0 +1,3 @@
1
+ class Rv2Appsetting < RvAppsetting
2
+ FRIENDLY_NAME = "Real Virtuality 2"
3
+ end
@@ -0,0 +1,2 @@
1
+ class Rv2Mod < RvMod
2
+ end
@@ -0,0 +1,3 @@
1
+ class Rv3Appsetting < RvAppsetting
2
+ FRIENDLY_NAME = "Real Virtuality 3"
3
+ end
@@ -0,0 +1,2 @@
1
+ class Rv3Mod < RvMod
2
+ end
@@ -0,0 +1,3 @@
1
+ class RvAppsetting < Appsetting
2
+ FRIENDLY_NAME = "Real Virtuality"
3
+ end
@@ -0,0 +1,2 @@
1
+ class RvMod < Mod
2
+ end
@@ -57,10 +57,23 @@ class SystemSetting < ActiveRecord::Base
57
57
  begin
58
58
  l += Category.imp
59
59
  rescue => e
60
- logger.info "ERROR: #{e.class} #{e.message} #{e.backtrace.join("\n")}"
60
+ logger.error "ERROR: #{e.class} #{e.message} #{e.backtrace.join("\n")}"
61
61
  end
62
62
  [Mod, Network, Server, Repository, Action, Appsetting, Sixconfig].each do |t|
63
- l += t.imp
63
+ r = t.imp
64
+
65
+ # Mod dependencies workaround
66
+ begin
67
+ r.each do |mod|
68
+ if mod.dependencies && !mod.dependencies.empty?
69
+ mod.mods = mod.dependencies.map{|m| Mod.find(:first, :conditions => ["name LIKE ?", m]) }.reject{|m| m.nil?}
70
+ mod.save
71
+ end
72
+ end
73
+ rescue => e
74
+ logger.error "ERROR: #{e.class} #{e.message} #{e.backtrace.join("\n")}"
75
+ end if t == Mod
76
+ l += r
64
77
  end
65
78
  rescue Timeout::Error
66
79
  logger.info "TIMEOUT while trying to synchronize!"
@@ -0,0 +1,3 @@
1
+ class TakeonhAppsetting < Rv2Appsetting
2
+ FRIENDLY_NAME = "Take on Helicopters (Any)"
3
+ end
@@ -0,0 +1,2 @@
1
+ class TakeonhMod < Rv2Mod
2
+ end
@@ -0,0 +1,3 @@
1
+ class TakeonhRaA2Appsetting < TakeonhRaAppsetting
2
+ FRIENDLY_NAME = "Take on Helicopters Rearmed (A2)"
3
+ end
@@ -0,0 +1,2 @@
1
+ class TakeonhRaA2Mod < TakeonhRaMod
2
+ end
@@ -0,0 +1,3 @@
1
+ class TakeonhRaAppsetting < TakeonhAppsetting
2
+ FRIENDLY_NAME = "Take on Helicopters Rearmed (Any)"
3
+ end
@@ -0,0 +1,3 @@
1
+ class TakeonhRaCoAppsetting < TakeonhRaAppsetting
2
+ FRIENDLY_NAME = "Take on Helicopters Rearmed (CO)"
3
+ end
@@ -0,0 +1,2 @@
1
+ class TakeonhRaCoMod < TakeonhRaMod
2
+ end
@@ -0,0 +1,2 @@
1
+ class TakeonhRaMod < TakeonhMod
2
+ end
@@ -0,0 +1,3 @@
1
+ class TakeonhRaOaAppsetting < TakeonhRaAppsetting
2
+ FRIENDLY_NAME = "Take on Helicopters Rearmed (OA)"
3
+ end
@@ -0,0 +1,2 @@
1
+ class TakeonhRaOaMod < TakeonhRaMod
2
+ end
@@ -0,0 +1,3 @@
1
+ class TakeonhStAppsetting < TakeonhAppsetting
2
+ FRIENDLY_NAME = "Take on Helicopters (Standalone)"
3
+ end
@@ -0,0 +1,2 @@
1
+ class TakeonhStMod < TakeonhMod
2
+ end
@@ -15,6 +15,6 @@
15
15
  %td{:class => if mod.version_local == mod.version; "green"; else; "red"; end}
16
16
  = if mod.version_local.empty?; "none" else; mod.version_local; end
17
17
  %td= mod.version
18
- %td= link_to "Info", "http://updater.dev-heaven.net/mods/show/#{mod.id}", :target => "_blank"
19
- %td= link_to "Changes", "http://updater.dev-heaven.net/mods/changelog/#{mod.id}", :target => "_blank"
18
+ %td= link_to "Info", "http://stats.six-updater.net/mods/show/#{mod.id}", :target => "_blank"
19
+ %td= link_to "Changes", "http://stats.six-updater.net/mods/changelog/#{mod.id}", :target => "_blank"
20
20
  %td{:class => mod.version_match?(@current_setting) ? "green" : "red"}= "#{mod.version_match?(@current_setting) ? "Yes" : "No"} #{link_to mod.class.short, "", {:title => mod.class.label}}"
@@ -1,5 +1,5 @@
1
1
  %script
2
2
  stop_polling_logo = true;
3
- %a{:href => "http://updater.dev-heaven.net/stats", :target => "_blank", :title => "Six Updater Suite - Stats"}
4
- %img{:src => "http://updater.dev-heaven.net/images/stats.png", :alt => "Six Updater Suite - Stats"}
3
+ %a{:href => "http://stats.six-updater.net/stats", :target => "_blank", :title => "Six Updater Suite - Stats"}
4
+ %img{:src => "http://stats.six-updater.net/images/stats.png", :alt => "Six Updater Suite - Stats"}
5
5
  = link_to "v#{SixUpdaterWeb::VERSION}", "http://six.dev-heaven.net/wagn/Six_Updater_Suite", :target => "_blank"
@@ -24,7 +24,7 @@ end
24
24
  require 'open3'
25
25
 
26
26
  module SixUpdaterWeb
27
- VERSION = "0.24.12"
27
+ VERSION = "0.24.13"
28
28
  COMPONENT = "six-updater-web"
29
29
 
30
30
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
@@ -50,6 +50,7 @@ module Six
50
50
  end
51
51
 
52
52
  module Model
53
+ SYNC_VERSION = 7
53
54
  def self.included(base)
54
55
  base.extend(ClassMethods)
55
56
  end
@@ -77,7 +78,7 @@ module Six
77
78
  rescue ScriptError
78
79
  end
79
80
 
80
- path = "/#{self.to_s.pluralize.downcase}/exp/1.json"
81
+ path = "/#{self.to_s.pluralize.downcase}/exp/#{SYNC_VERSION}.json"
81
82
  logger.debug "Path: #{path}"
82
83
  res = Six::Network::Panel.get(path)
83
84
  h = ActiveSupport::JSON.decode res.body
@@ -101,7 +102,8 @@ module Six
101
102
  case value
102
103
  when Array
103
104
  h[key].map! { |e|
104
- Object.const_get(key.camelize.singularize).from_hash e }
105
+ e.is_a?(Hash) ? Object.const_get(key.camelize.singularize).from_hash(e) : e
106
+ }
105
107
  when Hash
106
108
  h[key] = Object.const_get(key.camelize).from_hash value
107
109
  end
@@ -14,7 +14,7 @@ require "singleton"
14
14
 
15
15
  module Six
16
16
  module Network
17
- # http://updater.dev-heaven.net/goldberg/auth/login
17
+ # http://stats.six-updater.net/goldberg/auth/login
18
18
 
19
19
  USERAGENT = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1'
20
20
 
@@ -33,7 +33,7 @@ module Six
33
33
  unless @headers.nil? || force
34
34
  raise ScriptError, "You should already be logged in!"
35
35
  end
36
- url = URI.parse("http://updater.dev-heaven.net/goldberg/auth/login")
36
+ url = URI.parse("http://stats.six-updater.net/goldberg/auth/login")
37
37
  @http = Net::HTTP.new(url.host, url.port)
38
38
  #@http.use_ssl = true
39
39
 
metadata CHANGED
@@ -1,153 +1,153 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: six-updater-web
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 24
8
- - 12
9
- version: 0.24.12
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.24.13
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Sickboy
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-01-02 00:00:00 +01:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-04-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: uuidtools
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- - 0
31
- - 0
20
+ - !ruby/object:Gem::Version
32
21
  version: 2.0.0
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: i18n
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 2.0.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: i18n
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
- requirements:
34
+ requirements:
41
35
  - - ~>
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 4
46
- - 0
36
+ - !ruby/object:Gem::Version
47
37
  version: 0.4.0
48
38
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: six-updater
52
39
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.4.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: six-updater
48
+ requirement: !ruby/object:Gem::Requirement
54
49
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 0
60
- - 22
61
- - 1
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
62
53
  version: 0.22.1
63
54
  type: :runtime
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: sqlite3-ruby
67
55
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.22.1
62
+ - !ruby/object:Gem::Dependency
63
+ name: sqlite3-ruby
64
+ requirement: !ruby/object:Gem::Requirement
69
65
  none: false
70
- requirements:
66
+ requirements:
71
67
  - - ~>
72
- - !ruby/object:Gem::Version
73
- segments:
74
- - 1
75
- - 3
76
- - 1
68
+ - !ruby/object:Gem::Version
77
69
  version: 1.3.1
78
70
  type: :runtime
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
81
- name: rails
82
71
  prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
84
73
  none: false
85
- requirements:
86
- - - "="
87
- - !ruby/object:Gem::Version
88
- segments:
89
- - 2
90
- - 3
91
- - 8
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.3.1
78
+ - !ruby/object:Gem::Dependency
79
+ name: rails
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - '='
84
+ - !ruby/object:Gem::Version
92
85
  version: 2.3.8
93
86
  type: :runtime
94
- version_requirements: *id005
95
- - !ruby/object:Gem::Dependency
96
- name: haml
97
87
  prerelease: false
98
- requirement: &id006 !ruby/object:Gem::Requirement
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - '='
92
+ - !ruby/object:Gem::Version
93
+ version: 2.3.8
94
+ - !ruby/object:Gem::Dependency
95
+ name: haml
96
+ requirement: !ruby/object:Gem::Requirement
99
97
  none: false
100
- requirements:
98
+ requirements:
101
99
  - - ~>
102
- - !ruby/object:Gem::Version
103
- segments:
104
- - 3
105
- - 0
106
- - 25
100
+ - !ruby/object:Gem::Version
107
101
  version: 3.0.25
108
102
  type: :runtime
109
- version_requirements: *id006
110
- - !ruby/object:Gem::Dependency
111
- name: coderay
112
103
  prerelease: false
113
- requirement: &id007 !ruby/object:Gem::Requirement
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: 3.0.25
110
+ - !ruby/object:Gem::Dependency
111
+ name: coderay
112
+ requirement: !ruby/object:Gem::Requirement
114
113
  none: false
115
- requirements:
114
+ requirements:
116
115
  - - ~>
117
- - !ruby/object:Gem::Version
118
- segments:
119
- - 0
120
- - 9
121
- - 3
116
+ - !ruby/object:Gem::Version
122
117
  version: 0.9.3
123
118
  type: :runtime
124
- version_requirements: *id007
125
- - !ruby/object:Gem::Dependency
126
- name: RedCloth
127
119
  prerelease: false
128
- requirement: &id008 !ruby/object:Gem::Requirement
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 0.9.3
126
+ - !ruby/object:Gem::Dependency
127
+ name: RedCloth
128
+ requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
- requirements:
130
+ requirements:
131
131
  - - ~>
132
- - !ruby/object:Gem::Version
133
- segments:
134
- - 4
135
- - 2
136
- - 2
132
+ - !ruby/object:Gem::Version
137
133
  version: 4.2.2
138
134
  type: :runtime
139
- version_requirements: *id008
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: 4.2.2
140
142
  description: Your summary here
141
143
  email: sb@dev-heaven.net
142
- executables:
144
+ executables:
143
145
  - six-updater-web
144
146
  - six-updater-web-rake
145
147
  - six-get
146
148
  extensions: []
147
-
148
149
  extra_rdoc_files: []
149
-
150
- files:
150
+ files:
151
151
  - LICENSE
152
152
  - README
153
153
  - Rakefile
@@ -207,9 +207,27 @@ files:
207
207
  - lib/six-updater-web/app/models/network.rb
208
208
  - lib/six-updater-web/app/models/queryserver.rb
209
209
  - lib/six-updater-web/app/models/repository.rb
210
+ - lib/six-updater-web/app/models/rv2_appsetting.rb
211
+ - lib/six-updater-web/app/models/rv2_mod.rb
212
+ - lib/six-updater-web/app/models/rv3_appsetting.rb
213
+ - lib/six-updater-web/app/models/rv3_mod.rb
214
+ - lib/six-updater-web/app/models/rv_appsetting.rb
215
+ - lib/six-updater-web/app/models/rv_mod.rb
210
216
  - lib/six-updater-web/app/models/server.rb
211
217
  - lib/six-updater-web/app/models/sixconfig.rb
212
218
  - lib/six-updater-web/app/models/system_setting.rb
219
+ - lib/six-updater-web/app/models/takeonh_appsetting.rb
220
+ - lib/six-updater-web/app/models/takeonh_mod.rb
221
+ - lib/six-updater-web/app/models/takeonh_ra_a2_appsetting.rb
222
+ - lib/six-updater-web/app/models/takeonh_ra_a2_mod.rb
223
+ - lib/six-updater-web/app/models/takeonh_ra_appsetting.rb
224
+ - lib/six-updater-web/app/models/takeonh_ra_co_appsetting.rb
225
+ - lib/six-updater-web/app/models/takeonh_ra_co_mod.rb
226
+ - lib/six-updater-web/app/models/takeonh_ra_mod.rb
227
+ - lib/six-updater-web/app/models/takeonh_ra_oa_appsetting.rb
228
+ - lib/six-updater-web/app/models/takeonh_ra_oa_mod.rb
229
+ - lib/six-updater-web/app/models/takeonh_st_appsetting.rb
230
+ - lib/six-updater-web/app/models/takeonh_st_mod.rb
213
231
  - lib/six-updater-web/app/views/active_scaffold_overrides/_list.html.erb
214
232
  - lib/six-updater-web/app/views/appsettings/manage.erb
215
233
  - lib/six-updater-web/app/views/config/edit.haml
@@ -974,37 +992,28 @@ files:
974
992
  - lib/six-updater-web/vendor/plugins/six-query/lib/six/query.rb
975
993
  - lib/six-updater-web/vendor/plugins/six-query/Rakefile
976
994
  - lib/six-updater-web/_rake.rb
977
- has_rdoc: true
978
995
  homepage:
979
996
  licenses: []
980
-
981
997
  post_install_message:
982
998
  rdoc_options: []
983
-
984
- require_paths:
999
+ require_paths:
985
1000
  - lib
986
- required_ruby_version: !ruby/object:Gem::Requirement
1001
+ required_ruby_version: !ruby/object:Gem::Requirement
987
1002
  none: false
988
- requirements:
989
- - - ">="
990
- - !ruby/object:Gem::Version
991
- segments:
992
- - 0
993
- version: "0"
994
- required_rubygems_version: !ruby/object:Gem::Requirement
1003
+ requirements:
1004
+ - - ! '>='
1005
+ - !ruby/object:Gem::Version
1006
+ version: '0'
1007
+ required_rubygems_version: !ruby/object:Gem::Requirement
995
1008
  none: false
996
- requirements:
997
- - - ">="
998
- - !ruby/object:Gem::Version
999
- segments:
1000
- - 0
1001
- version: "0"
1009
+ requirements:
1010
+ - - ! '>='
1011
+ - !ruby/object:Gem::Version
1012
+ version: '0'
1002
1013
  requirements: []
1003
-
1004
1014
  rubyforge_project:
1005
- rubygems_version: 1.3.7
1015
+ rubygems_version: 1.8.19
1006
1016
  signing_key:
1007
1017
  specification_version: 3
1008
1018
  summary: Your summary here
1009
1019
  test_files: []
1010
-