diff --git a/.gitignore b/.gitignore index d5a0e5f2f..0ac235089 100644 --- a/.gitignore +++ b/.gitignore @@ -6,8 +6,8 @@ /config/database.yml /files/* /log/* -/tmp/* -/cache/* +/public/tmp/* +/public/cache/* .gitignore /public/images/avatars/* /Gemfile diff --git a/app/helpers/expire_helper.rb b/app/helpers/expire_helper.rb new file mode 100644 index 000000000..0a9cab69c --- /dev/null +++ b/app/helpers/expire_helper.rb @@ -0,0 +1,16 @@ +module ExpireHelper + #index.html 中 “projects”塊 緩存過期 + def expire_project_cache + ActionController::Base.new.expire_fragment('projects') + end + + #index.html 中 “activities”塊 緩存過期 + def expire_activitie_cache + ActionController::Base.new.expire_fragment('activities') + end + + #welcome/index.html 中 “forums”塊 緩存過期 + def expire_forum_cache + ActionController::Base.new.expire_fragment('forums') + end +end diff --git a/app/models/bid.rb b/app/models/bid.rb index 3f21c451f..f423266b8 100644 --- a/app/models/bid.rb +++ b/app/models/bid.rb @@ -17,6 +17,7 @@ class Bid < ActiveRecord::Base HomeworkProject = 2 attr_accessible :author_id, :budget, :deadline, :name, :description, :homework_type, :password include Redmine::SafeAttributes + include ExpireHelper belongs_to :author, :class_name => 'User', :foreign_key => :author_id belongs_to :course @@ -34,9 +35,9 @@ class Bid < ActiveRecord::Base # has_many :fork_homework, :class_name => 'Bid', :conditions => "#{Bid.table_name}.parent_id = #{id}" - after_create :expire_cache - after_update :expire_cache - before_destroy :expire_cache + after_create :expire_activitie_cache + after_update :expire_activitie_cache + before_destroy :expire_activitie_cache acts_as_attachable @@ -154,7 +155,5 @@ class Bid < ActiveRecord::Base end end - def expire_cache - ActionController::Base.new.expire_fragment('activities') - end + end diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 5f3f2e03d..101647824 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -16,6 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. class Changeset < ActiveRecord::Base + include ExpireHelper belongs_to :repository belongs_to :user include UserScoreHelper @@ -64,9 +65,9 @@ class Changeset < ActiveRecord::Base includes(:repository => :project).where(Project.allowed_to_condition(args.shift || User.current, :view_changesets, *args)) } - after_create :scan_for_issues,:refresh_changests,:expire_cache#:be_user_score # user_score - after_update :be_user_score,:expire_cache - before_destroy :expire_cache + after_create :scan_for_issues,:refresh_changests,:expire_activitie_cache#:be_user_score # user_score + after_update :be_user_score,:expire_activitie_cache + before_destroy :expire_activitie_cache after_destroy :down_user_score before_create :before_create_cs @@ -329,9 +330,5 @@ class Changeset < ActiveRecord::Base self.repository.fetch_changesets if Setting.autofetch_changesets? end end - #added by lizanle - #设置活动过期 - def expire_cache - ActionController::Base.new.expire_fragment('activities') - end + end diff --git a/app/models/contest_notification.rb b/app/models/contest_notification.rb index cc23cffe0..0ccd0d5a7 100644 --- a/app/models/contest_notification.rb +++ b/app/models/contest_notification.rb @@ -1,11 +1,10 @@ class ContestNotification < ActiveRecord::Base + include ExpireHelper attr_accessible :content, :title validates :title, length: {maximum: 30} - after_create :expire_cache - after_update :expire_cache - before_destroy :expire_cache + after_create :expire_forum_cache + after_update :expire_forum_cache + before_destroy :expire_forum_cache + - def expire_cache - ActionController::Base.new.expire_fragment('forums') - end end diff --git a/app/models/document.rb b/app/models/document.rb index 29a761827..e607b9292 100644 --- a/app/models/document.rb +++ b/app/models/document.rb @@ -17,15 +17,16 @@ class Document < ActiveRecord::Base include Redmine::SafeAttributes + include ExpireHelper belongs_to :project belongs_to :user belongs_to :category, :class_name => "DocumentCategory", :foreign_key => "category_id" include UserScoreHelper after_save :be_user_score # user_score after_destroy :down_user_score - after_create :expire_cache - after_update :expire_cache - before_destroy :expire_cache + after_create :expire_activitie_cache + after_update :expire_activitie_cache + before_destroy :expire_activitie_cache acts_as_attachable :delete_permission => :delete_documents acts_as_searchable :columns => ['title', "#{table_name}.description"], :include => :project diff --git a/app/models/forum.rb b/app/models/forum.rb index 2157e638d..dc1603288 100644 --- a/app/models/forum.rb +++ b/app/models/forum.rb @@ -1,12 +1,13 @@ class Forum < ActiveRecord::Base include Redmine::SafeAttributes + include ExpireHelper has_many :topics, :class_name => 'Memo', :conditions => "#{Memo.table_name}.parent_id IS NULL", :order => "#{Memo.table_name}.created_at DESC", :dependent => :destroy has_many :memos, :dependent => :destroy, conditions: "parent_id IS NULL" belongs_to :creator, :class_name => "User", :foreign_key => 'creator_id' - after_create :expire_cache - after_update :expire_cache - before_destroy :expire_cache + after_create :expire_forum_cache + after_update :expire_forum_cache + before_destroy :expire_forum_cache safe_attributes 'name', 'description', 'topic_count', @@ -46,7 +47,5 @@ class Forum < ActiveRecord::Base ["id = ?", forum_id]) end - def expire_cache - ActionController::Base.new.expire_fragment('forums') - end + end diff --git a/app/models/issue.rb b/app/models/issue.rb index 17ef7b577..a7b1a5943 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -19,7 +19,7 @@ class Issue < ActiveRecord::Base include Redmine::SafeAttributes include Redmine::Utils::DateCalculation include UserScoreHelper - + include ExpireHelper belongs_to :project belongs_to :tracker belongs_to :status, :class_name => 'IssueStatus', :foreign_key => 'status_id' @@ -80,9 +80,9 @@ class Issue < ActiveRecord::Base after_create :act_as_activity,:be_user_score_new_issue after_update :be_user_score after_destroy :down_user_score - after_create :expire_cache - after_update :expire_cache - before_destroy :expire_cache + after_create :expire_activitie_cache + after_update :expire_activitie_cache + before_destroy :expire_activitie_cache # after_create :be_user_score # end @@ -1555,8 +1555,6 @@ class Issue < ActiveRecord::Base end - def expire_cache - ActionController::Base.new.expire_fragment('activities') - end + end diff --git a/app/models/journals_for_message.rb b/app/models/journals_for_message.rb index 720b0d914..c71fbaf47 100644 --- a/app/models/journals_for_message.rb +++ b/app/models/journals_for_message.rb @@ -4,6 +4,7 @@ class JournalsForMessage < ActiveRecord::Base include Redmine::SafeAttributes include UserScoreHelper + include ExpireHelper safe_attributes "jour_type", # 留言所属类型 "jour_id", # 留言所属类型的id "notes", # 留言内容 @@ -54,9 +55,9 @@ class JournalsForMessage < ActiveRecord::Base has_many :acts, :class_name => 'Activity', :as => :act, :dependent => :destroy validates :notes, presence: true - after_create :act_as_activity ,:expire_cache#huang - after_update :expire_cache - before_destroy :expire_cache + after_create :act_as_activity ,:expire_activitie_cache#huang + after_update :expire_activitie_cache + before_destroy :expire_activitie_cache after_create :reset_counters! after_destroy :reset_counters! after_save :be_user_score @@ -165,7 +166,5 @@ class JournalsForMessage < ActiveRecord::Base end end - def expire_cache - ActionController::Base.new.expire_fragment('activities') - end + end diff --git a/app/models/memo.rb b/app/models/memo.rb index 491f4e4a1..495f97ad3 100644 --- a/app/models/memo.rb +++ b/app/models/memo.rb @@ -1,6 +1,7 @@ class Memo < ActiveRecord::Base include Redmine::SafeAttributes include UserScoreHelper + include ExpireHelper belongs_to :forum belongs_to :author, :class_name => "User", :foreign_key => 'author_id' @@ -168,7 +169,7 @@ class Memo < ActiveRecord::Base update_replay_for_memo(User.current,1) end def expire_cache - ActionController::Base.new.expire_fragment('forums') - ActionController::Base.new.expire_fragment('activities') + expire_forum_cache + expire_activitie_cache end end diff --git a/app/models/message.rb b/app/models/message.rb index 21f34add2..9ce4d583a 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -18,7 +18,7 @@ class Message < ActiveRecord::Base include Redmine::SafeAttributes include UserScoreHelper - + include ExpireHelper belongs_to :board belongs_to :author, :class_name => 'User', :foreign_key => 'author_id' has_many :praise_tread, as: :praise_tread_object, dependent: :destroy @@ -59,9 +59,9 @@ class Message < ActiveRecord::Base validates_length_of :subject, :maximum => 255 validate :cannot_reply_to_locked_topic, :on => :create - after_create :add_author_as_watcher, :reset_counters!,:expire_cache - after_update :update_messages_board,:expire_cache - before_destroy :expire_cache + after_create :add_author_as_watcher, :reset_counters!,:expire_activitie_cache + after_update :update_messages_board,:expire_activitie_cache + before_destroy :expire_activitie_cache after_destroy :reset_counters!,:down_user_score # fq @@ -197,7 +197,5 @@ class Message < ActiveRecord::Base end end - def expire_cache - ActionController::Base.new.expire_fragment('activities') - end + end diff --git a/app/models/news.rb b/app/models/news.rb index 6567c4028..9c37719f3 100644 --- a/app/models/news.rb +++ b/app/models/news.rb @@ -17,6 +17,7 @@ class News < ActiveRecord::Base include Redmine::SafeAttributes + include ExpireHelper belongs_to :project #added by nwb belongs_to :course @@ -47,9 +48,9 @@ class News < ActiveRecord::Base # fq after_create :act_as_activity # end - after_create :expire_cache - after_update :expire_cache - before_destroy :expire_cache + after_create :expire_activitie_cache + after_update :expire_activitie_cache + before_destroy :expire_activitie_cache scope :visible, lambda {|*args| includes(:project).where(Project.allowed_to_condition(args.shift || User.current, :view_news, *args)) @@ -95,7 +96,5 @@ class News < ActiveRecord::Base self.acts << Activity.new(:user_id => self.author_id) end - def expire_cache - ActionController::Base.new.expire_fragment('activities') - end + end diff --git a/app/models/project.rb b/app/models/project.rb index aa24eb96d..c4d07a1ad 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -17,6 +17,7 @@ class Project < ActiveRecord::Base include Redmine::SafeAttributes + include ExpireHelper ProjectType_project = 0 ProjectType_course = 1 @@ -127,9 +128,9 @@ class Project < ActiveRecord::Base #after_save :update_position_under_parent, :if => Proc.new {|project| project.name_changed?} after_save :update_inherited_members, :if => Proc.new {|project| project.inherit_members_changed?} # 创建project之后默认创建一个board,之后的board去掉了board的概念 - after_create :create_board_sync,:expire_cache - after_update :expire_cache - before_destroy :delete_all_members,:expire_cache + after_create :create_board_sync,:expire_project_cache + after_update :expire_project_cache + before_destroy :delete_all_members,:expire_project_cache def remove_references_before_destroy return if self.id.nil? Watcher.delete_all ['watchable_id = ?', id] @@ -1150,8 +1151,6 @@ class Project < ActiveRecord::Base end end - def expire_cache - ActionController::Base.new.expire_fragment('projects') - end + end diff --git a/public/cache/1DB/8A2/http%3A%2F%2Flocalhost%3A3000%2Fthemes%2Fredpenny-master%2Fstylesheets%2Fapplication.css%3F1420357855%3D b/public/cache/1DB/8A2/http%3A%2F%2Flocalhost%3A3000%2Fthemes%2Fredpenny-master%2Fstylesheets%2Fapplication.css%3F1420357855%3D deleted file mode 100644 index 5dc67c6c1..000000000 Binary files a/public/cache/1DB/8A2/http%3A%2F%2Flocalhost%3A3000%2Fthemes%2Fredpenny-master%2Fstylesheets%2Fapplication.css%3F1420357855%3D and /dev/null differ diff --git a/public/cache/20C/451/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Flist-icon.png%3F b/public/cache/20C/451/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Flist-icon.png%3F deleted file mode 100644 index 69b6cab42..000000000 Binary files a/public/cache/20C/451/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Flist-icon.png%3F and /dev/null differ diff --git a/public/cache/2D3/CC1/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Flogo.png%3F1420357778%3D b/public/cache/2D3/CC1/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Flogo.png%3F1420357778%3D deleted file mode 100644 index 28cd6f462..000000000 Binary files a/public/cache/2D3/CC1/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Flogo.png%3F1420357778%3D and /dev/null differ diff --git a/public/cache/51F/CA1/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fnyan.css%3F1420357855%3D b/public/cache/51F/CA1/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fnyan.css%3F1420357855%3D deleted file mode 100644 index f5ad1a599..000000000 Binary files a/public/cache/51F/CA1/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fnyan.css%3F1420357855%3D and /dev/null differ diff --git a/public/cache/559/261/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fapplication.css%3F b/public/cache/559/261/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fapplication.css%3F deleted file mode 100644 index a209270d8..000000000 Binary files a/public/cache/559/261/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fapplication.css%3F and /dev/null differ diff --git a/public/cache/568/F80/views%2Fforums b/public/cache/568/F80/views%2Fforums deleted file mode 100644 index 726743bad..000000000 --- a/public/cache/568/F80/views%2Fforums +++ /dev/null @@ -1,145 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420532950.016201: @value"I"
  • -
    - [教程共享吧] - Log4j Best Practices -
    -
    - - 更新于 - 2015-01-06 16:29 - - - 楼主: - net - - - 最后回复: - lzl - - - 回复 - (1) - -
    -
  • -
  • -
    - [技术知识交流] - 转:MOOC如何改变学习 -
    -
    - - 更新于 - 2015-01-06 16:28 - - - 楼主: - xDong - - - 最后回复: - lzl - - - 回复 - (2) - -
    -
  • -
  • -
    - [互联网新闻] - 三星如何从称霸全球走向盛世危机 -
    -
    - - 更新于 - 2015-01-06 16:27 - - - 楼主: - jacknudt - - - 最后回复: - lzl - - - 回复 - (9) - -
    -
  • -
  • -
    - [创业吧] - 乔布斯的管理课 -
    -
    - - 更新于 - 2014-11-28 13:43 - - - 楼主: - jacknudt - - - 最后回复: - jacknudt - - - 回复 - (3) - -
    -
  • -
  • -
    - [新手讨论吧] - win7字体问题 -
    -
    - - 更新于 - 2014-11-27 06:22 - - - 楼主: - gaoli - - - 最后回复: - jacknudt - - - 回复 - (2) - -
    -
  • -
  • -
    - [新手讨论吧] - Trustie平台用户手册(2014年11月21日8点版本) -
    -
    - - 更新于 - 2014-11-25 18:48 - - - 楼主: - freedom - - - 最后回复: - jacknudt - - - 回复 - (1) - -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/5AA/681/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Favatars%2FUser%2F0%3F1420357778%3D b/public/cache/5AA/681/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Favatars%2FUser%2F0%3F1420357778%3D deleted file mode 100644 index c07b3d1fc..000000000 Binary files a/public/cache/5AA/681/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Favatars%2FUser%2F0%3F1420357778%3D and /dev/null differ diff --git a/public/cache/5D4/CE1/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Ftransparent.png%3F1420357778%3D b/public/cache/5D4/CE1/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Ftransparent.png%3F1420357778%3D deleted file mode 100644 index 700d98506..000000000 Binary files a/public/cache/5D4/CE1/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Ftransparent.png%3F1420357778%3D and /dev/null differ diff --git a/public/cache/5D6/771/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fwelcome.js%3F1420357855%3D b/public/cache/5D6/771/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fwelcome.js%3F1420357855%3D deleted file mode 100644 index 8b17495b2..000000000 Binary files a/public/cache/5D6/771/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fwelcome.js%3F1420357855%3D and /dev/null differ diff --git a/public/cache/636/EF0/views%2Fprojects b/public/cache/636/EF0/views%2Fprojects deleted file mode 100644 index 231045423..000000000 --- a/public/cache/636/EF0/views%2Fprojects +++ /dev/null @@ -1,185 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420531897.9176939: @value"3I"3
  • -
    - 0?1420357778 -
    - -
    - Trustie-Forge - (53人) -
    -
    - - SocialForge是TrustieForge的升级版,支持社交化协同开发与合作。 -SocialForge aims to provide a socialized an... - -
    -
    - 项目评分:28736 -
    -
  • -
  • -
    - 0?1420357778 -
    - -
    - Bench4Q - (7人) -
    -
    - - Bench4Q is a Cloud-Based software - -
    -
    - 项目评分:8158 -
    -
  • -
  • -
    - 0?1420357778 -
    - -
    - haflow - (5人) -
    -
    - - Hadoop has become the defacto standard of big data analysis, due to its scalability, fa... - -
    -
    - 项目评分:1535 -
    -
  • -
  • -
    - 0?1420357778 -
    - -
    - A better sandbox for BtrPlace (Entropy) - (1人) -
    -
    - - Btrplace is the flexible VM placement algorithm inside Entropy. It allows to compute th... - -
    -
    - 项目评分:1036 -
    -
  • -
  • -
    - 0?1420357778 -
    - -
    - Trustie-OSSEAN - (15人) -
    -
    - - This project is to build an platform for OSS Evaluating, Analying and Networking. This ... - -
    -
    - 项目评分:884 -
    -
  • -
  • -
    - 0?1420357778 -
    - -
    - R-Memcached for Service4All (RMCS) - (4人) -
    -
    - - To improve the performance of Service4All, we will employ the widely-used cache tools s... - -
    -
    - 项目评分:420 -
    -
  • -
  • -
    - 0?1420357778 -
    - -
    - WDMVC - (10人) -
    -
    - - 基于工作流的分布式MVC软件体系结构,支撑软件开发的“三线”工程(生产线、流水线和产品线)。 -详见项目Wiki。 - -
    -
    - 项目评分:359 -
    -
  • -
  • -
    - 0?1420357778 -
    - -
    - VMThunder - (1人) -
    -
    - - 数据中心中大规模快速部署虚拟机,达到秒级启动上千台虚拟机的目标 - -
    -
    - 项目评分:340 -
    -
  • -
  • -
    - 0?1420357778 -
    - -
    - FetchNetworks - (1人) -
    -
    - - forked 4rom webmagic - -
    -
    - 项目评分:284 -
    -
  • -
  • -
    - 0?1420357778 -
    - -
    - WSCRP - (5人) -
    -
    - - In order to meet the requirements of users, sorts of Web services coordination and reco... - -
    -
    - 项目评分:284 -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/655/921/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fwelcome.css%3F1420357855%3D b/public/cache/655/921/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fwelcome.css%3F1420357855%3D deleted file mode 100644 index 53fc3675a..000000000 Binary files a/public/cache/655/921/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fwelcome.css%3F1420357855%3D and /dev/null differ diff --git a/public/cache/6CA/670/views%2Fissues%2F2210 b/public/cache/6CA/670/views%2Fissues%2F2210 deleted file mode 100644 index 9a63c4acf..000000000 --- a/public/cache/6CA/670/views%2Fissues%2F2210 +++ /dev/null @@ -1,22 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420531924.17955: @value"I"
  • -
    - 0?1420357778 -
    -
    - - lzl - -  发表了缺陷缺陷 缓存测试1#1 (新增): 多发点 -

    - - 更新于 - 2015-01-06 16:11 - -       - - 回复(0) - -

    -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/6CB/680/views%2Fissues%2F2211 b/public/cache/6CB/680/views%2Fissues%2F2211 deleted file mode 100644 index 28133a2c0..000000000 --- a/public/cache/6CB/680/views%2Fissues%2F2211 +++ /dev/null @@ -1,22 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420531979.264571: @value"I"
  • -
    - 0?1420357778 -
    -
    - - lzl - -  发表了缺陷缺陷 缓存测试1#2 (新增): 哈哈哈 -

    - - 更新于 - 2015-01-06 16:12 - -       - - 回复(0) - -

    -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/6D1/6D0/views%2Fissues%2F2208 b/public/cache/6D1/6D0/views%2Fissues%2F2208 deleted file mode 100644 index 031a3fd44..000000000 --- a/public/cache/6D1/6D0/views%2Fissues%2F2208 +++ /dev/null @@ -1,22 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.359701: @value"I"
  • -
    - 0?1420357778 -
    -
    - - lizanle - -  发表了缺陷缺陷 缓存测试#1 (新增): 多发点 -

    - - 更新于 - 2015-01-05 14:20 - -       - - 回复(0) - -

    -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/6D2/6E0/views%2Fissues%2F2209 b/public/cache/6D2/6E0/views%2Fissues%2F2209 deleted file mode 100644 index 59eb90bdf..000000000 --- a/public/cache/6D2/6E0/views%2Fissues%2F2209 +++ /dev/null @@ -1,22 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.3486998: @value"I"
  • -
    - 0?1420357778 -
    -
    - - lizanle - -  发表了缺陷缺陷 缓存测试#2 (新增): 发货 -

    - - 更新于 - 2015-01-05 14:28 - -       - - 回复(3) - -

    -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/6E2/DF1/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Favatars%2FProject%2F0%3F1420357778%3D b/public/cache/6E2/DF1/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Favatars%2FProject%2F0%3F1420357778%3D deleted file mode 100644 index b83e413aa..000000000 Binary files a/public/cache/6E2/DF1/http%3A%2F%2Flocalhost%3A3000%2Fimages%2Favatars%2FProject%2F0%3F1420357778%3D and /dev/null differ diff --git a/public/cache/701/020/views%2Factivities b/public/cache/701/020/views%2Factivities deleted file mode 100644 index 3e6a324ff..000000000 --- a/public/cache/701/020/views%2Factivities +++ /dev/null @@ -1,127 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420532949.9541981: @value"!I"!
  • -
    - 0?1420357778 -
    -
    - - lzl - -  发表了缺陷缺陷 缓存测试1#2 (新增): 哈哈哈 -

    - - 更新于 - 2015-01-06 16:12 - -       - - 回复(0) - -

    -
    -
  • -
  • -
    - 0?1420357778 -
    -
    - - lzl - -  发表了缺陷缺陷 缓存测试1#1 (新增): 多发点 -

    - - 更新于 - 2015-01-06 16:11 - -       - - 回复(0) - -

    -
    -
  • -
  • -
    - 0?1420357778 -
    -
    - - lizanle - -  更新了问题说明缺陷 #2: 发货 -

    - - 更新于 - 2015-01-06 11:42 - -       - - - -

    -
    -
  • -
  • -
    - 0?1420357778 -
    -
    - - lizanle - -  更新了问题说明缺陷 #2: 发货 -

    - - 更新于 - 2015-01-06 11:17 - -       - - - -

    -
    -
  • -
  • -
    - 0?1420357778 -
    -
    - - lizanle - -  更新了问题说明缺陷 #2: 发货 -

    - - 更新于 - 2015-01-05 15:25 - -       - - - -

    -
    -
  • -
  • -
    - 0?1420357778 -
    -
    - - lizanle - -  发表了缺陷缺陷 缓存测试#2 (新增): 发货 -

    - - 更新于 - 2015-01-05 14:28 - -       - - 回复(3) - -

    -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/705/AF0/views%2Fprojects%2F2 b/public/cache/705/AF0/views%2Fprojects%2F2 deleted file mode 100644 index 90f86c1c2..000000000 --- a/public/cache/705/AF0/views%2Fprojects%2F2 +++ /dev/null @@ -1,21 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530700.9076748: @value"~I"r
  • -
    - 0?1420357778 -
    - -
    - Trustie-Forge - (53人) -
    -
    - - SocialForge是TrustieForge的升级版,支持社交化协同开发与合作。 -SocialForge aims to provide a socialized an... - -
    -
    - 项目评分:28736 -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/73B/E90/views%2Fprojects%2F17 b/public/cache/73B/E90/views%2Fprojects%2F17 deleted file mode 100644 index 50230b720..000000000 --- a/public/cache/73B/E90/views%2Fprojects%2F17 +++ /dev/null @@ -1,19 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530700.956678: @value""I"
  • -
    - 0?1420357778 -
    - -
    - Bench4Q - (7人) -
    -
    - - Bench4Q is a Cloud-Based software - -
    -
    - 项目评分:8158 -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/73D/EC0/views%2Fprojects%2F28 b/public/cache/73D/EC0/views%2Fprojects%2F28 deleted file mode 100644 index 43fd553d6..000000000 --- a/public/cache/73D/EC0/views%2Fprojects%2F28 +++ /dev/null @@ -1,19 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530700.988679: @value"DI"8
  • -
    - 0?1420357778 -
    - -
    - A better sandbox for BtrPlace (Entropy) - (1人) -
    -
    - - Btrplace is the flexible VM placement algorithm inside Entropy. It allows to compute th... - -
    -
    - 项目评分:1036 -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/73E/ED0/views%2Fprojects%2F29 b/public/cache/73E/ED0/views%2Fprojects%2F29 deleted file mode 100644 index c1b2bf3fb..000000000 --- a/public/cache/73E/ED0/views%2Fprojects%2F29 +++ /dev/null @@ -1,21 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.036682: @value" I"
  • -
    - 0?1420357778 -
    - -
    - WDMVC - (10人) -
    -
    - - 基于工作流的分布式MVC软件体系结构,支撑软件开发的“三线”工程(生产线、流水线和产品线)。 -详见项目Wiki。 - -
    -
    - 项目评分:359 -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/766/4C0/views%2Fprojects%2F300 b/public/cache/766/4C0/views%2Fprojects%2F300 deleted file mode 100644 index 2b128443f..000000000 --- a/public/cache/766/4C0/views%2Fprojects%2F300 +++ /dev/null @@ -1,19 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.1366882: @value"I"
  • -
    - 0?1420357778 -
    - -
    - FetchNetworks - (1人) -
    -
    - - forked 4rom webmagic - -
    -
    - 项目评分:284 -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/769/520/views%2Fprojects%2F330 b/public/cache/769/520/views%2Fprojects%2F330 deleted file mode 100644 index 6f0b5a3bf..000000000 --- a/public/cache/769/520/views%2Fprojects%2F330 +++ /dev/null @@ -1,19 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.159689: @value"YI"M
  • -
    - 0?1420357778 -
    - -
    - WSCRP - (5人) -
    -
    - - In order to meet the requirements of users, sorts of Web services coordination and reco... - -
    -
    - 项目评分:284 -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/76B/500/views%2Fprojects%2F134 b/public/cache/76B/500/views%2Fprojects%2F134 deleted file mode 100644 index 9499b1df1..000000000 --- a/public/cache/76B/500/views%2Fprojects%2F134 +++ /dev/null @@ -1,19 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.057683: @value"I"
  • -
    - 0?1420357778 -
    - -
    - VMThunder - (1人) -
    -
    - - 数据中心中大规模快速部署虚拟机,达到秒级启动上千台虚拟机的目标 - -
    -
    - 项目评分:340 -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/76C/530/views%2Fprojects%2F315 b/public/cache/76C/530/views%2Fprojects%2F315 deleted file mode 100644 index 05c521a66..000000000 --- a/public/cache/76C/530/views%2Fprojects%2F315 +++ /dev/null @@ -1,19 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530700.970678: @value"QI"E
  • -
    - 0?1420357778 -
    - -
    - haflow - (5人) -
    -
    - - Hadoop has become the defacto standard of big data analysis, due to its scalability, fa... - -
    -
    - 项目评分:1535 -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/76E/5B0/views%2Fprojects%2F290 b/public/cache/76E/5B0/views%2Fprojects%2F290 deleted file mode 100644 index 1c565e3c4..000000000 --- a/public/cache/76E/5B0/views%2Fprojects%2F290 +++ /dev/null @@ -1,19 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.020681: @value"I"
  • -
    - 0?1420357778 -
    - -
    - R-Memcached for Service4All (RMCS) - (4人) -
    -
    - - To improve the performance of Service4All, we will employ the widely-used cache tools s... - -
    -
    - 项目评分:420 -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/777/640/views%2Fprojects%2F299 b/public/cache/777/640/views%2Fprojects%2F299 deleted file mode 100644 index 2fcdf1bcf..000000000 --- a/public/cache/777/640/views%2Fprojects%2F299 +++ /dev/null @@ -1,19 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.00468: @value"%I"
  • -
    - 0?1420357778 -
    - -
    - Trustie-OSSEAN - (15人) -
    -
    - - This project is to build an platform for OSS Evaluating, Analying and Networking. This ... - -
    -
    - 项目评分:884 -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/77E/D81/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fapplication.js%3F1420357855%3D b/public/cache/77E/D81/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fapplication.js%3F1420357855%3D deleted file mode 100644 index ca5d797b7..000000000 Binary files a/public/cache/77E/D81/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fapplication.js%3F1420357855%3D and /dev/null differ diff --git a/public/cache/7AC/380/views%2Fjournals%2F5295 b/public/cache/7AC/380/views%2Fjournals%2F5295 deleted file mode 100644 index 6c1f6f32d..000000000 --- a/public/cache/7AC/380/views%2Fjournals%2F5295 +++ /dev/null @@ -1,22 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.596714: @value"I"
  • -
    - 0?1420357778 -
    -
    - - sw - -  更新了issue-edit缺陷 #1639 (已解决): 课程--加入课程:“加入课程”按钮显示问题 -

    - - 更新于 - 2014-12-02 17:36 - -       - - - -

    -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/7AD/390/views%2Fjournals%2F5296 b/public/cache/7AD/390/views%2Fjournals%2F5296 deleted file mode 100644 index fe3157fbe..000000000 --- a/public/cache/7AD/390/views%2Fjournals%2F5296 +++ /dev/null @@ -1,22 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.330699: @value"iI"]
  • -
    - 0?1420357778 -
    -
    - - lizanle - -  更新了问题说明缺陷 #2: 发货 -

    - - 更新于 - 2015-01-05 15:25 - -       - - - -

    -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/7AE/3A0/views%2Fjournals%2F5297 b/public/cache/7AE/3A0/views%2Fjournals%2F5297 deleted file mode 100644 index 20cf23406..000000000 --- a/public/cache/7AE/3A0/views%2Fjournals%2F5297 +++ /dev/null @@ -1,22 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.240694: @value"iI"]
  • -
    - 0?1420357778 -
    -
    - - lizanle - -  更新了问题说明缺陷 #2: 发货 -

    - - 更新于 - 2015-01-06 11:17 - -       - - - -

    -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/7AF/3B0/views%2Fjournals%2F5298 b/public/cache/7AF/3B0/views%2Fjournals%2F5298 deleted file mode 100644 index 562aa84ca..000000000 --- a/public/cache/7AF/3B0/views%2Fjournals%2F5298 +++ /dev/null @@ -1,22 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.232693: @value"iI"]
  • -
    - 0?1420357778 -
    -
    - - lizanle - -  更新了问题说明缺陷 #2: 发货 -

    - - 更新于 - 2015-01-06 11:42 - -       - - - -

    -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/911/800/views%2Fmemos%2F427-20150106032234 b/public/cache/911/800/views%2Fmemos%2F427-20150106032234 deleted file mode 100644 index a16d8d491..000000000 --- a/public/cache/911/800/views%2Fmemos%2F427-20150106032234 +++ /dev/null @@ -1,25 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.628716: @value"I"
  • -
    - [互联网新闻] - 三星如何从称霸全球走向盛世危机 -
    -
    - - 更新于 - 2015-01-06 11:22 - - - 楼主: - jacknudt - - - 最后回复: - lizanle - - - 回复 - (8) - -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/918/A60/views%2Fmemos%2F427-20150106082740 b/public/cache/918/A60/views%2Fmemos%2F427-20150106082740 deleted file mode 100644 index f389b06fb..000000000 --- a/public/cache/918/A60/views%2Fmemos%2F427-20150106082740 +++ /dev/null @@ -1,25 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420532863.155922: @value"I"
  • -
    - [互联网新闻] - 三星如何从称霸全球走向盛世危机 -
    -
    - - 更新于 - 2015-01-06 16:27 - - - 楼主: - jacknudt - - - 最后回复: - lzl - - - 回复 - (9) - -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/919/DB0/views%2Fmemos%2F582-20141129071403 b/public/cache/919/DB0/views%2Fmemos%2F582-20141129071403 deleted file mode 100644 index 26cb4e5e4..000000000 --- a/public/cache/919/DB0/views%2Fmemos%2F582-20141129071403 +++ /dev/null @@ -1,25 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.640717: @value"I"
  • -
    - [技术知识交流] - 转:MOOC如何改变学习 -
    -
    - - 更新于 - 2014-11-29 15:14 - - - 楼主: - xDong - - - 最后回复: - jacknudt - - - 回复 - (1) - -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/91A/D00/views%2Fmemos%2F574-20141125104842 b/public/cache/91A/D00/views%2Fmemos%2F574-20141125104842 deleted file mode 100644 index e101b51fd..000000000 --- a/public/cache/91A/D00/views%2Fmemos%2F574-20141125104842 +++ /dev/null @@ -1,25 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.720721: @value"I"
  • -
    - [新手讨论吧] - Trustie平台用户手册(2014年11月21日8点版本) -
    -
    - - 更新于 - 2014-11-25 18:48 - - - 楼主: - freedom - - - 最后回复: - jacknudt - - - 回复 - (1) - -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/91A/E50/views%2Fmemos%2F565-20141128054331 b/public/cache/91A/E50/views%2Fmemos%2F565-20141128054331 deleted file mode 100644 index 2bcd02c79..000000000 --- a/public/cache/91A/E50/views%2Fmemos%2F565-20141128054331 +++ /dev/null @@ -1,25 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.649717: @value"I"
  • -
    - [创业吧] - 乔布斯的管理课 -
    -
    - - 更新于 - 2014-11-28 13:43 - - - 楼主: - jacknudt - - - 最后回复: - jacknudt - - - 回复 - (3) - -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/91B/EF0/views%2Fmemos%2F576-20141126222236 b/public/cache/91B/EF0/views%2Fmemos%2F576-20141126222236 deleted file mode 100644 index 9615a9e21..000000000 --- a/public/cache/91B/EF0/views%2Fmemos%2F576-20141126222236 +++ /dev/null @@ -1,25 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.710721: @value"I"
  • -
    - [新手讨论吧] - win7字体问题 -
    -
    - - 更新于 - 2014-11-27 06:22 - - - 楼主: - gaoli - - - 最后回复: - jacknudt - - - 回复 - (2) - -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/91C/170/views%2Fmemos%2F579-20141127101435 b/public/cache/91C/170/views%2Fmemos%2F579-20141127101435 deleted file mode 100644 index 931c245b2..000000000 --- a/public/cache/91C/170/views%2Fmemos%2F579-20141127101435 +++ /dev/null @@ -1,23 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420530701.70172: @value"I" 
  • -
    - [教程共享吧] - Log4j Best Practices -
    -
    - - 更新于 - 2014-11-27 18:14 - - - 楼主: - net - - - - - 回复 - (0) - -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/91D/D30/views%2Fmemos%2F582-20150106082842 b/public/cache/91D/D30/views%2Fmemos%2F582-20150106082842 deleted file mode 100644 index 6532134a1..000000000 --- a/public/cache/91D/D30/views%2Fmemos%2F582-20150106082842 +++ /dev/null @@ -1,25 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420532924.8643541: @value"I"
  • -
    - [技术知识交流] - 转:MOOC如何改变学习 -
    -
    - - 更新于 - 2015-01-06 16:28 - - - 楼主: - xDong - - - 最后回复: - lzl - - - 回复 - (2) - -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/925/320/views%2Fmemos%2F579-20150106082907 b/public/cache/925/320/views%2Fmemos%2F579-20150106082907 deleted file mode 100644 index c21c69db0..000000000 --- a/public/cache/925/320/views%2Fmemos%2F579-20150106082907 +++ /dev/null @@ -1,25 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420532950.004201: @value"I"
  • -
    - [教程共享吧] - Log4j Best Practices -
    -
    - - 更新于 - 2015-01-06 16:29 - - - 楼主: - net - - - 最后回复: - lzl - - - 回复 - (1) - -
    -
  • -:ET \ No newline at end of file diff --git a/public/cache/9B3/1B0/cae6965b71862532cc646d5995119a5821980260 b/public/cache/9B3/1B0/cae6965b71862532cc646d5995119a5821980260 deleted file mode 100644 index 41e21d0e5..000000000 Binary files a/public/cache/9B3/1B0/cae6965b71862532cc646d5995119a5821980260 and /dev/null differ diff --git a/public/cache/9E6/E80/0906d39339d5f71e61207417e8c95f43c783442e b/public/cache/9E6/E80/0906d39339d5f71e61207417e8c95f43c783442e deleted file mode 100644 index e9b89fb59..000000000 Binary files a/public/cache/9E6/E80/0906d39339d5f71e61207417e8c95f43c783442e and /dev/null differ diff --git a/public/cache/A91/6A1/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fjquery.colorbox-min.js%3F1420357855%3D b/public/cache/A91/6A1/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fjquery.colorbox-min.js%3F1420357855%3D deleted file mode 100644 index 168798e84..000000000 Binary files a/public/cache/A91/6A1/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fjquery.colorbox-min.js%3F1420357855%3D and /dev/null differ diff --git a/public/cache/A95/AE0/f06dd67d6627069f7f7215df57898d9b29c4b869 b/public/cache/A95/AE0/f06dd67d6627069f7f7215df57898d9b29c4b869 deleted file mode 100644 index 77d6eb41d..000000000 Binary files a/public/cache/A95/AE0/f06dd67d6627069f7f7215df57898d9b29c4b869 and /dev/null differ diff --git a/public/cache/AA5/BD0/e8d35b3dc5255332a9a7f5c7d92c79635729fb41 b/public/cache/AA5/BD0/e8d35b3dc5255332a9a7f5c7d92c79635729fb41 deleted file mode 100644 index 6b24ea5e4..000000000 --- a/public/cache/AA5/BD0/e8d35b3dc5255332a9a7f5c7d92c79635729fb41 +++ /dev/null @@ -1,25 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420532735.173789: @value"["$(document).ready(function(){ - $(".rateable").jRating({ - //default options displayed below -> - - rateMax: 5, //Maximal rate - length : 5, //Number of stars - //decimalLength : 0, //Number of decimals in the rate - //type : 'big', //Big or small - //step : true, //If set to true, filling of the stars is done star by star (step by step). - //isDisabled: false, //Set true to display static rating - //showRateInfo:false, //Rate info panel, set true to display - //rateInfosX : 45, //In pixel - Absolute left position of the information box during mousemove. - //rateInfosY : 5, //In pixel - Absolute top position of the information box during mousemove. - path : '/rateable/ratings', - onSuccess : function(element, rate){ - //something like -> - //alert('本次打分成功!'); - //$('Thanks for rating!').insertAfter(element) - }, - onError : function(element, rate) { - $('You have already rated!').insertAfter(element) - } - }); - -}); diff --git a/public/cache/ABB/FD1/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fjquery.leanModal.min.js%3F1420357778%3D b/public/cache/ABB/FD1/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fjquery.leanModal.min.js%3F1420357778%3D deleted file mode 100644 index 8cb8c8bd2..000000000 Binary files a/public/cache/ABB/FD1/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fjquery.leanModal.min.js%3F1420357778%3D and /dev/null differ diff --git a/public/cache/AC2/540/4cea7ff935690a5e00f53017e2452eee8a0e6254 b/public/cache/AC2/540/4cea7ff935690a5e00f53017e2452eee8a0e6254 deleted file mode 100644 index 16ec306e0..000000000 --- a/public/cache/AC2/540/4cea7ff935690a5e00f53017e2452eee8a0e6254 +++ /dev/null @@ -1,232 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420532735.166788: @value"["/************************************************************************ -************************************************************************* -@Name : jRating - jQuery Plugin -@Revison : 3.0 -@Date : 28/01/2013 -@Author: ALPIXEL - (www.myjqueryplugins.com - www.alpixel.fr) -@License : Open Source - MIT License : http://www.opensource.org/licenses/mit-license.php - -************************************************************************** -*************************************************************************/ -(function($) { - $.fn.jRating = function(op) { - var defaults = { - /** String vars **/ - bigStarsPath : '/images/seems_rateable/stars.png', // path of the icon stars.png - smallStarsPath : '/images/seems_rateable/small.png', // path of the icon small.png - path : '/rateable/ratings', - type : 'big', // can be set to 'small' or 'big' - - /** Boolean vars **/ - step: true, // if true, mouseover binded star by star, - isDisabled:false, - showRateInfo: false, - canRateAgain : false, - - /** Integer vars **/ - length:5, // number of star to display - decimalLength : 0, // number of decimals.. Max 3, but you can complete the function 'getNote' - rateMax : 20, // maximal rate - integer from 0 to 9999 (or more) - rateInfosX : -45, // relative position in X axis of the info box when mouseover - rateInfosY : 5, // relative position in Y axis of the info box when mouseover - nbRates : 1, - - /** Functions **/ - onSuccess : null, - onError : null - }; - - if(this.length>0) - return this.each(function() { - /*vars*/ - var opts = $.extend(defaults, op), - newWidth = 0, - starWidth = 0, - starHeight = 0, - bgPath = '', - hasRated = false, - globalWidth = 0, - nbOfRates = opts.nbRates; - - if($(this).hasClass('jDisabled') || opts.isDisabled) - var jDisabled = true; - else - var jDisabled = false; - - getStarWidth(); - $(this).height(starHeight); - - - - var average = parseFloat($(this).attr('data-average')), // get the average of all rates - idBox = parseInt($(this).attr('data-id')), // get the id of the box - kls = $(this).attr('data-kls'), - dimension = $(this).attr('data-dimension'), - widthRatingContainer = starWidth*opts.length, // Width of the Container - widthColor = average/opts.rateMax*widthRatingContainer, // Width of the color Container - quotient = - $('
    ', - { - 'class' : 'jRatingColor', - css:{ - width:widthColor - } - }).appendTo($(this)), - - average = - $('
    ', - { - 'class' : 'jRatingAverage', - css:{ - width:0, - top:- starHeight - } - }).appendTo($(this)), - - jstar = - $('
    ', - { - 'class' : 'jStar', - css:{ - width:widthRatingContainer, - height:starHeight, - top:- (starHeight*2), - background: 'url('+bgPath+') repeat-x' - } - }).appendTo($(this)); - - $(this).css({width: widthRatingContainer,overflow:'hidden',zIndex:1,position:'relative'}); - - if(!jDisabled) - $(this).unbind().bind({ - mouseenter : function(e){ - var realOffsetLeft = findRealLeft(this); - var relativeX = e.pageX - realOffsetLeft; - if (opts.showRateInfo) - var tooltip = - $('

    ',{ - 'class' : 'jRatingInfos', - html : getNote(relativeX)+' / '+opts.rateMax+'', - css : { - top: (e.pageY + opts.rateInfosY), - left: (e.pageX + opts.rateInfosX) - } - }).appendTo('body').show(); - }, - mouseover : function(e){ - $(this).css('cursor','pointer'); - }, - mouseout : function(){ - $(this).css('cursor','default'); - if(hasRated) average.width(globalWidth); - else average.width(0); - }, - mousemove : function(e){ - var realOffsetLeft = findRealLeft(this); - var relativeX = e.pageX - realOffsetLeft; - if(opts.step) newWidth = Math.floor(relativeX/starWidth)*starWidth + starWidth; - else newWidth = relativeX; - average.width(newWidth); - if (opts.showRateInfo) - $("p.jRatingInfos") - .css({ - left: (e.pageX + opts.rateInfosX) - }) - .html(getNote(newWidth) +' / '+opts.rateMax+''); - }, - mouseleave : function(){ - $("p.jRatingInfos").remove(); - }, - click : function(e){ - var flag = confirm("确定评分?"); - if(!flag) - { - e.cancel(); - } - - - var element = this; - - /*set vars*/ - hasRated = true; - globalWidth = newWidth; - nbOfRates--; - - if(!opts.canRateAgain || parseInt(nbOfRates) <= 0) $(this).unbind().css('cursor','default').addClass('jDisabled'); - - if (opts.showRateInfo) $("p.jRatingInfos").fadeOut('fast',function(){$(this).remove();}); - e.preventDefault(); - var rate = getNote(newWidth); - average.width(newWidth); - - - $.post(defaults.path, - { - idBox : idBox, - rate : rate, - kls : kls, - dimension : dimension - /** action : 'rating' **/ - }, - function(data) { - if(!data.error) - { - /** Here you can display an alert box, - or use the jNotify Plugin :) http://www.myqjqueryplugins.com/jNotify - exemple : */ - if(opts.onSuccess) opts.onSuccess( element, rate ); - } - else - { - - /** Here you can display an alert box, - or use the jNotify Plugin :) http://www.myqjqueryplugins.com/jNotify - exemple : */ - if(opts.onError) opts.onError( element, rate ); - } - }, - 'json' - ); - } - }); - - function getNote(relativeX) { - var noteBrut = parseFloat((relativeX*100/widthRatingContainer)*opts.rateMax/100); - switch(opts.decimalLength) { - case 1 : - var note = Math.round(noteBrut*10)/10; - break; - case 2 : - var note = Math.round(noteBrut*100)/100; - break; - case 3 : - var note = Math.round(noteBrut*1000)/1000; - break; - default : - var note = Math.round(noteBrut*1)/1; - } - return note; - }; - - function getStarWidth(){ - switch(opts.type) { - case 'small' : - starWidth = 12; // width of the picture small.png - starHeight = 10; // height of the picture small.png - bgPath = opts.smallStarsPath; - break; - default : - starWidth = 23; // width of the picture stars.png - starHeight = 20; // height of the picture stars.png - bgPath = opts.bigStarsPath; - } - }; - - function findRealLeft(obj) { - if( !obj ) return 0; - return obj.offsetLeft + findRealLeft( obj.offsetParent ); - }; - }); - - } -})(jQuery); diff --git a/public/cache/AC2/A80/60567173164aa1f75c0f9517835ebc2fd5eb0ec5 b/public/cache/AC2/A80/60567173164aa1f75c0f9517835ebc2fd5eb0ec5 deleted file mode 100644 index 3b564199a..000000000 Binary files a/public/cache/AC2/A80/60567173164aa1f75c0f9517835ebc2fd5eb0ec5 and /dev/null differ diff --git a/public/cache/AC9/C70/bbefbac7540e09e1955cb47321965813266c7a8e b/public/cache/AC9/C70/bbefbac7540e09e1955cb47321965813266c7a8e deleted file mode 100644 index 866f94664..000000000 --- a/public/cache/AC9/C70/bbefbac7540e09e1955cb47321965813266c7a8e +++ /dev/null @@ -1,69 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420532735.222791: @value"6[".(function () { - window.onload = function(){ - function fixedBar(id, options){ - var ele = document.getElementById(id); - if(!ele) return; - if(/msie (\d+\.\d+)/i.test(navigator.userAgent)){ - var pageHeight=window.innerHeight; - var d=document; - if(typeof pageHeight!="number"){ - if(document.compatMode=="CSS1Compat"){ - pageHeight=document.documentElement.clientHeight; - }else{ - pageHeight=document.body.clientHeight; - } - } - var ieScrollTop=window.pageYOffset || d.documentElement.scrollTop || d.body.scrollTop; - if(options.addclass) ele.className = options.addclass; - ele.style.position= 'absolute'; - - if(options.show){ - ele.style.top = 0 + "px"; - ele.style.display= 'block'; - } - - window.attachEvent('onscroll' , function (){ - - var ieScrollTop=window.pageYOffset || d.documentElement.scrollTop || d.body.scrollTop; - - ele.style.top = 0 + "px"; - if(options.autoHidden){ - if(ieScrollTop==0){ - ele.style.display="none"; - }else{ - ele.style.display="block"; - } - } - }); - }else{ - var ele = document.getElementById(id); - if(typeof pageHeight!="number"){ - if(document.compatMode=="CSS1Compat"){ - pageHeight=document.documentElement.clientHeight; - }else{ - pageHeight=document.body.clientHeight; - } - } - if(options.show) ele.style.display= 'block'; - ele.style.top = 0 +'px'; - window.addEventListener('scroll',function (){ - if(options.autoHidden){ - if(baidu.page.getScrollTop()==0){ - ele.style.display="none"; - }else{ - ele.style.display="block"; - } - } - },false); - } - } - - fixedBar('backTopBtn' , {autoHidden: true, top : 186}); - fixedBar('identifier-pannel' , {autoHidden: false , top : 956 , show : true}); - //修改微信扫码样式布局后添加微信扫码跟随滚动处理 - $(window).scroll(function(){ - var vtop=$(document).scrollTop(); - $("#identifier-pannel").css('top',vtop+"px"); - }) - } -})(); \ No newline at end of file diff --git a/public/cache/AFF/300/57a7c6d86d2ad09012bac99d46b38f9f33a970a8 b/public/cache/AFF/300/57a7c6d86d2ad09012bac99d46b38f9f33a970a8 deleted file mode 100644 index 1e70f7d5d..000000000 --- a/public/cache/AFF/300/57a7c6d86d2ad09012bac99d46b38f9f33a970a8 +++ /dev/null @@ -1,6 +0,0 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1420532735.051782: @value" -["// leanModal v1.1 by Ray Stone - http://finelysliced.com.au -// Dual licensed under the MIT and GPL - -(function($){$.fn.extend({leanModal:function(options){var defaults={top:100,overlay:0.5,closeButton:null};var overlay=$("

    ");$("body").append(overlay);options=$.extend(defaults,options);return this.each(function(){var o=options;$(this).click(function(e){var modal_id=$(this).attr("href");$("#lean_overlay").click(function(){close_modal(modal_id)});$(o.closeButton).click(function(){close_modal(modal_id)});var modal_height=$(modal_id).outerHeight();var modal_width=$(modal_id).outerWidth(); -$("#lean_overlay").css({"display":"block",opacity:0});$("#lean_overlay").fadeTo(200,o.overlay);$(modal_id).css({"display":"block","position":"fixed","opacity":0,"z-index":100,"left":50+"%","margin-left":-(modal_width/2)+"px","top":o.top+"px"});$(modal_id).fadeTo(200,1);e.preventDefault()})});function close_modal(modal_id){$("#lean_overlay").fadeOut(200);$(modal_id).css({"display":"none"})}}})})(jQuery); diff --git a/public/cache/B2D/650/88eae75bf7b81a196ba38d86bf54e7162ab274c1 b/public/cache/B2D/650/88eae75bf7b81a196ba38d86bf54e7162ab274c1 deleted file mode 100644 index fdbb70040..000000000 Binary files a/public/cache/B2D/650/88eae75bf7b81a196ba38d86bf54e7162ab274c1 and /dev/null differ diff --git a/public/cache/B3B/DA0/e9938e23e7a85ff3d431e045384ccd84dea93ce8 b/public/cache/B3B/DA0/e9938e23e7a85ff3d431e045384ccd84dea93ce8 deleted file mode 100644 index 675388492..000000000 Binary files a/public/cache/B3B/DA0/e9938e23e7a85ff3d431e045384ccd84dea93ce8 and /dev/null differ diff --git a/public/cache/B4F/E50/afc8c0ba867511cd69e8b5d43542aad5a2e716c6 b/public/cache/B4F/E50/afc8c0ba867511cd69e8b5d43542aad5a2e716c6 deleted file mode 100644 index 800a1f0bd..000000000 Binary files a/public/cache/B4F/E50/afc8c0ba867511cd69e8b5d43542aad5a2e716c6 and /dev/null differ diff --git a/public/cache/B54/AB0/213cd47b5ee47b691425e1fcb6dffb207c707d8c b/public/cache/B54/AB0/213cd47b5ee47b691425e1fcb6dffb207c707d8c deleted file mode 100644 index 884419b66..000000000 Binary files a/public/cache/B54/AB0/213cd47b5ee47b691425e1fcb6dffb207c707d8c and /dev/null differ diff --git a/public/cache/B6B/0E0/6d2710e981a7dd596afcc77e54ff43b9d7f75cb2 b/public/cache/B6B/0E0/6d2710e981a7dd596afcc77e54ff43b9d7f75cb2 deleted file mode 100644 index d6cb37900..000000000 Binary files a/public/cache/B6B/0E0/6d2710e981a7dd596afcc77e54ff43b9d7f75cb2 and /dev/null differ diff --git a/public/cache/B76/7F1/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fjquery%2Fjquery-ui-1.9.2.css%3F1420357855%3D b/public/cache/B76/7F1/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fjquery%2Fjquery-ui-1.9.2.css%3F1420357855%3D deleted file mode 100644 index b5d794c29..000000000 Binary files a/public/cache/B76/7F1/http%3A%2F%2Flocalhost%3A3000%2Fstylesheets%2Fjquery%2Fjquery-ui-1.9.2.css%3F1420357855%3D and /dev/null differ diff --git a/public/cache/B7C/511/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fjquery-1.8.3-ui-1.9.2-ujs-2.0.3.js%3F1420357855%3D b/public/cache/B7C/511/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fjquery-1.8.3-ui-1.9.2-ujs-2.0.3.js%3F1420357855%3D deleted file mode 100644 index 313bdc57a..000000000 Binary files a/public/cache/B7C/511/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fjquery-1.8.3-ui-1.9.2-ujs-2.0.3.js%3F1420357855%3D and /dev/null differ diff --git a/public/cache/B7E/7C0/0e09a16c714ce54739affa1a4e945aa699b4baae b/public/cache/B7E/7C0/0e09a16c714ce54739affa1a4e945aa699b4baae deleted file mode 100644 index de9fe3690..000000000 Binary files a/public/cache/B7E/7C0/0e09a16c714ce54739affa1a4e945aa699b4baae and /dev/null differ diff --git a/public/cache/B8A/F50/dd147f7301bf4217fcb61f9e99d343f4f6ffbb1a b/public/cache/B8A/F50/dd147f7301bf4217fcb61f9e99d343f4f6ffbb1a deleted file mode 100644 index 982932afa..000000000 Binary files a/public/cache/B8A/F50/dd147f7301bf4217fcb61f9e99d343f4f6ffbb1a and /dev/null differ diff --git a/public/cache/BB1/DF0/f743173130fefc074fc3faadc21911a5f8ed7eff b/public/cache/BB1/DF0/f743173130fefc074fc3faadc21911a5f8ed7eff deleted file mode 100644 index e522ffa21..000000000 Binary files a/public/cache/BB1/DF0/f743173130fefc074fc3faadc21911a5f8ed7eff and /dev/null differ diff --git a/public/cache/BE0/BD0/0917fc42cb8dfbd8bc5add2088e60feb41c28e0f b/public/cache/BE0/BD0/0917fc42cb8dfbd8bc5add2088e60feb41c28e0f deleted file mode 100644 index 50be99779..000000000 Binary files a/public/cache/BE0/BD0/0917fc42cb8dfbd8bc5add2088e60feb41c28e0f and /dev/null differ diff --git a/public/cache/C12/DE1/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fseems_rateable%2FjRating.js%3F1420357855%3D b/public/cache/C12/DE1/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fseems_rateable%2FjRating.js%3F1420357855%3D deleted file mode 100644 index 98b7931ca..000000000 Binary files a/public/cache/C12/DE1/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fseems_rateable%2FjRating.js%3F1420357855%3D and /dev/null differ diff --git a/public/cache/C83/011/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fseems_rateable%2Frateable.js%3F1420357855%3D b/public/cache/C83/011/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fseems_rateable%2Frateable.js%3F1420357855%3D deleted file mode 100644 index d92ebe496..000000000 Binary files a/public/cache/C83/011/http%3A%2F%2Flocalhost%3A3000%2Fjavascripts%2Fseems_rateable%2Frateable.js%3F1420357855%3D and /dev/null differ diff --git a/test/unit/helpers/expire_helper_test.rb b/test/unit/helpers/expire_helper_test.rb new file mode 100644 index 000000000..318e451cc --- /dev/null +++ b/test/unit/helpers/expire_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class ExpireHelperTest < ActionView::TestCase +end diff --git a/tmp/plugins/README b/tmp/plugins/README deleted file mode 100644 index edef25679..000000000 --- a/tmp/plugins/README +++ /dev/null @@ -1 +0,0 @@ -Put your Redmine plugins here.