parent
a09a3dc378
commit
10cde37582
@ -1,2 +1,2 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<connections/>
|
<connections/>
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<connection>
|
<connection>
|
||||||
<connection>
|
<connection>
|
||||||
<name>Default</name>
|
<name>Default</name>
|
||||||
<source>file:/C:/Users/nudt</source>
|
<source>file:/C:/Users/Administrator</source>
|
||||||
</connection>
|
</connection>
|
||||||
</connection>
|
</connection>
|
@ -1,2 +1,2 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<sites/>
|
<sites/>
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<servers>
|
<servers>
|
||||||
<server host="0.0.0.0" port="3000" project="E:/code/demo" type="org.radrails.rails.railsServer">
|
<server host="0.0.0.0" port="3000" project="E:/code/demo" type="org.radrails.rails.railsServer">
|
||||||
<name>demo</name>
|
<name>demo</name>
|
||||||
</server>
|
</server>
|
||||||
</servers>
|
</servers>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
#safe table
|
||||||
|
#Mon Jan 05 10:27:54 CST 2015
|
||||||
|
connections=connections.15
|
@ -1,3 +0,0 @@
|
|||||||
#safe table
|
|
||||||
#Tue Mar 11 17:27:27 CST 2014
|
|
||||||
connections=connections.9
|
|
@ -0,0 +1,4 @@
|
|||||||
|
#safe table
|
||||||
|
#Mon Jan 05 10:27:54 CST 2015
|
||||||
|
defaultConnection=defaultConnection.15
|
||||||
|
sites=sites.15
|
@ -1,4 +0,0 @@
|
|||||||
#safe table
|
|
||||||
#Tue Mar 11 17:27:27 CST 2014
|
|
||||||
defaultConnection=defaultConnection.9
|
|
||||||
sites=sites.9
|
|
@ -0,0 +1,3 @@
|
|||||||
|
#safe table
|
||||||
|
#Mon Jan 05 10:27:28 CST 2015
|
||||||
|
webservers=webservers.12
|
@ -1,3 +0,0 @@
|
|||||||
#safe table
|
|
||||||
#Tue Mar 11 17:27:27 CST 2014
|
|
||||||
webservers=webservers.8
|
|
Binary file not shown.
@ -1,2 +1,2 @@
|
|||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
last_known_studio_version=3.4.0.1358388620
|
last_known_studio_version=3.4.2.1368863613
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<session version="1.0">
<refactoring comment="Delete resource 'trustie2'" deleteContents="false" description="Delete resource 'trustie2'" element1="/trustie2" flags="7" id="org.eclipse.ltk.core.refactoring.delete.resources" resources="1" stamp="1420424676858"/>
<refactoring comment="Delete resource 'trustie2'" deleteContents="false" description="Delete resource 'trustie2'" element1="/trustie2" flags="7" id="org.eclipse.ltk.core.refactoring.delete.resources" resources="1" stamp="1420424775104"/>
|
||||||
|
</session>
|
@ -0,0 +1,2 @@
|
|||||||
|
1420424676858 Delete resource 'trustie2'
|
||||||
|
1420424775104 Delete resource 'trustie2'
|
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<section name="Workbench">
|
||||||
|
<section name="RefactoringWizard.preview">
|
||||||
|
<item value="400" key="height"/>
|
||||||
|
<item value="600" key="width"/>
|
||||||
|
</section>
|
||||||
|
</section>
|
@ -1,14 +1,26 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<section name="Workbench">
|
<section name="Workbench">
|
||||||
<list key="installedFeatures">
|
<list key="installedFeatures">
|
||||||
<item value="com.aptana.feature.rcp:3.4.0.201304151603-7o7nFDBFFeFt3XrpXNucaz0uIWkY"/>
|
<item value="com.aptana.feature.rcp:3.4.2.201308081805-7o7nFDFFFcLz-2l0rkQ0UYz0u_Wm"/>
|
||||||
<item value="com.aptana.feature.studio:3.4.0.201304151542-7E7G-7MEMVKUHgFcLgFbkKoz0t-7"/>
|
<item value="com.aptana.feature.studio:3.4.2.201308081736-7W7I57boG98RAi489ctbvKi7VXbq"/>
|
||||||
<item value="com.aptana.feature:3.4.0.1365900908-BW7R8FBu-Ylk0DFYW1DC44EXt-dS"/>
|
<item value="com.aptana.feature:3.4.2.1376005939-B87T88BWOnwWRYdZO1DC44EXtPxS"/>
|
||||||
<item value="com.aptana.php.feature:3.3.0.201304151524-7J7E-7IOW_UXOSJY"/>
|
<item value="com.aptana.php.feature:3.4.2.201308081728-7J7E-7IOYXVXXUJS"/>
|
||||||
<item value="com.aptana.pydev.feature:2.7.0.2013032300-7g9I-8Jez0cfdJcee"/>
|
<item value="com.aptana.pydev.feature:2.7.0.2013032300-7g9I-8Jez0cfdJcee"/>
|
||||||
<item value="org.eclipse.help:1.3.0.v20110530-0844-7i7uFFmFFl8nvqbDpEqTvx"/>
|
<item value="org.eclipse.help:1.3.0.v20110530-0844-7i7uFFmFFl8nvqbDpEqTvx"/>
|
||||||
<item value="org.eclipse.platform:3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q"/>
|
<item value="org.eclipse.platform:3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q"/>
|
||||||
<item value="org.eclipse.rcp:3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272"/>
|
<item value="org.eclipse.rcp:3.7.2.v20120120-1424-9DB5FmnFq5JCf1UA38R-kz0S0272"/>
|
||||||
<item value="org.radrails.rails:3.3.0.201304151525-7e-7Q7f5GRKMDENR"/>
|
<item value="org.radrails.rails:3.4.2.201308081726-7n-7Z7oKfjkqlemv"/>
|
||||||
</list>
|
</list>
|
||||||
|
<section name="ChooseWorkspaceDialogSettings">
|
||||||
|
<item value="316" key="DIALOG_Y_ORIGIN"/>
|
||||||
|
<item value="656" key="DIALOG_X_ORIGIN"/>
|
||||||
|
</section>
|
||||||
|
<section name="WORKBENCH_SETTINGS">
|
||||||
|
<list key="ENABLED_TRANSFERS">
|
||||||
|
</list>
|
||||||
|
</section>
|
||||||
|
<section name="ExternalProjectImportWizard">
|
||||||
|
<item value="false" key="WizardProjectsImportPage.STORE_ARCHIVE_SELECTED"/>
|
||||||
|
<item value="false" key="WizardProjectsImportPage.STORE_COPY_PROJECT_ID"/>
|
||||||
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,136 +1,125 @@
|
|||||||
source 'http://ruby.taobao.org'
|
source 'https://rubygems.org'
|
||||||
#source 'http://ruby.sdutlinux.org/'
|
|
||||||
|
unless RUBY_PLATFORM =~ /w32/
|
||||||
unless RUBY_PLATFORM =~ /w32/
|
# unix-like only
|
||||||
# unix-like only
|
gem 'iconv'
|
||||||
gem 'iconv'
|
gem 'rubyzip'
|
||||||
gem 'rubyzip'
|
gem 'zip-zip'
|
||||||
gem 'zip-zip'
|
end
|
||||||
end
|
|
||||||
|
gem 'seems_rateable', path: 'lib/seems_rateable'
|
||||||
gem 'seems_rateable', path: 'lib/seems_rateable'
|
gem "rails", "3.2.13"
|
||||||
gem "rails", "3.2.13"
|
gem "jquery-rails", "~> 2.0.2"
|
||||||
gem "jquery-rails", "~> 2.0.2"
|
gem "i18n", "~> 0.6.0"
|
||||||
gem "i18n", "~> 0.6.0"
|
gem "coderay", "~> 1.0.6"
|
||||||
gem "coderay", "~> 1.0.6"
|
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
|
||||||
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
|
gem "builder", "3.0.0"
|
||||||
gem "builder", "3.0.0"
|
gem 'acts-as-taggable-on', '2.4.1'
|
||||||
gem 'acts-as-taggable-on', '2.4.1'
|
|
||||||
gem 'spreadsheet'
|
group :development do
|
||||||
gem 'ruby-ole'
|
gem 'better_errors', path: 'lib/better_errors'
|
||||||
|
gem 'rack-mini-profiler', path: 'lib/rack-mini-profiler'
|
||||||
group :development do
|
if ENV['PRY']
|
||||||
gem 'better_errors', path: 'lib/better_errors'
|
gem 'pry'
|
||||||
gem 'rack-mini-profiler', path: 'lib/rack-mini-profiler'
|
gem 'pry-nav'
|
||||||
end
|
end
|
||||||
|
end
|
||||||
group :test do
|
|
||||||
gem "shoulda", "~> 3.5.0"
|
# group :test do
|
||||||
gem "mocha", "~> 1.1.0"
|
# # shoulda的版本做了改动
|
||||||
gem 'capybara', '~> 2.4.1'
|
# #gem "shoulda", "~> 3.3.2"
|
||||||
gem 'nokogiri', '~> 1.6.3'
|
# gem "shoulda", "> 3.3.2"
|
||||||
gem 'factory_girl', '~> 4.4.0'
|
# gem "mocha", "~> 0.13.3"
|
||||||
gem 'selenium-webdriver', '~> 2.42.0'
|
# gem 'capybara', '~> 2.0.0'
|
||||||
|
# gem 'nokogiri', '< 1.6.0'
|
||||||
|
# end
|
||||||
platforms :mri, :mingw do
|
|
||||||
group :rmagick do
|
|
||||||
# RMagick 2 supports ruby 1.9
|
# Gems used only for assets and not required
|
||||||
# RMagick 1 would be fine for ruby 1.8 but Bundler does not support
|
# in production environments by default.
|
||||||
# different requirements for the same gem on different platforms
|
group :assets do
|
||||||
gem "rmagick", ">= 2.0.0"
|
gem 'sass-rails', '~> 3.2.3'
|
||||||
end
|
gem 'coffee-rails', '~> 3.2.1'
|
||||||
end
|
|
||||||
end
|
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
||||||
|
gem 'therubyracer', :platforms => :ruby
|
||||||
group :development, :test do
|
|
||||||
gem "guard-rails", '~> 0.5.3'
|
gem 'uglifier', '>= 1.0.3'
|
||||||
gem 'spork-testunit', '~> 0.0.8'
|
end
|
||||||
gem 'guard-spork', '~> 1.5.1'
|
|
||||||
gem 'guard-test', '~> 1.0.0'
|
# Optional gem for LDAP authentication
|
||||||
gem 'ruby-prof', '~> 0.15.1' unless RUBY_PLATFORM =~ /w32/
|
group :ldap do
|
||||||
gem 'pry'
|
gem "net-ldap", "~> 0.3.1"
|
||||||
gem 'pry-nav'
|
end
|
||||||
|
|
||||||
end
|
|
||||||
|
# platforms :mri, :mingw do
|
||||||
|
# group :rmagick do
|
||||||
# Gems used only for assets and not required
|
# # RMagick 2 supports ruby 1.9
|
||||||
# in production environments by default.
|
# # RMagick 1 would be fine for ruby 1.8 but Bundler does not support
|
||||||
group :assets do
|
# # different requirements for the same gem on different platforms
|
||||||
gem 'sass-rails', '~> 3.2.3'
|
# gem "rmagick", ">= 2.0.0"
|
||||||
gem 'coffee-rails', '~> 3.2.1'
|
# end
|
||||||
|
# end
|
||||||
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
|
||||||
gem 'therubyracer', :platforms => :ruby
|
# Optional gem for OpenID authentication
|
||||||
|
group :openid do
|
||||||
gem 'uglifier', '>= 1.0.3'
|
gem "ruby-openid", "~> 2.1.4", :require => "openid"
|
||||||
end
|
gem "rack-openid"
|
||||||
|
end
|
||||||
# Optional gem for LDAP authentication
|
|
||||||
group :ldap do
|
# Optional gem for exporting the gantt to a PNG file, not supported with jruby
|
||||||
gem "net-ldap", "~> 0.3.1"
|
platforms :jruby do
|
||||||
end
|
# jruby-openssl is bundled with JRuby 1.7.0
|
||||||
|
gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
|
||||||
|
gem "activerecord-jdbc-adapter", "1.2.5"
|
||||||
# Optional gem for OpenID authentication
|
end
|
||||||
group :openid do
|
|
||||||
gem "ruby-openid", "~> 2.1.4", :require => "openid"
|
# Include database gems for the adapters found in the database
|
||||||
gem "rack-openid"
|
# configuration file
|
||||||
end
|
require 'erb'
|
||||||
|
require 'yaml'
|
||||||
# Optional gem for exporting the gantt to a PNG file, not supported with jruby
|
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
|
||||||
platforms :jruby do
|
if File.exist?(database_file)
|
||||||
# jruby-openssl is bundled with JRuby 1.7.0
|
database_config = YAML::load(ERB.new(IO.read(database_file)).result)
|
||||||
gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
|
adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
|
||||||
gem "activerecord-jdbc-adapter", "1.2.5"
|
if adapters.any?
|
||||||
end
|
adapters.each do |adapter|
|
||||||
|
case adapter
|
||||||
# Include database gems for the adapters found in the database
|
when 'mysql2'
|
||||||
# configuration file
|
gem "mysql2", "= 0.3.11", :platforms => [:mri, :mingw]
|
||||||
require 'erb'
|
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
|
||||||
require 'yaml'
|
when 'mysql'
|
||||||
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
|
gem "mysql", "~> 2.8.1", :platforms => [:mri, :mingw]
|
||||||
if File.exist?(database_file)
|
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
|
||||||
database_config = YAML::load(ERB.new(IO.read(database_file)).result)
|
when /postgresql/
|
||||||
adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
|
gem "pg", ">= 0.11.0", :platforms => [:mri, :mingw]
|
||||||
if adapters.any?
|
gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
|
||||||
adapters.each do |adapter|
|
when /sqlite3/
|
||||||
case adapter
|
gem "sqlite3", :platforms => [:mri, :mingw]
|
||||||
when 'mysql2'
|
gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
|
||||||
gem "mysql2", "= 0.3.11", :platforms => [:mri, :mingw]
|
when /sqlserver/
|
||||||
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
|
gem "tiny_tds", "~> 0.5.1", :platforms => [:mri, :mingw]
|
||||||
when 'mysql'
|
gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw]
|
||||||
gem "mysql", "~> 2.8.1", :platforms => [:mri, :mingw]
|
else
|
||||||
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
|
warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
|
||||||
when /postgresql/
|
end
|
||||||
gem "pg", ">= 0.11.0", :platforms => [:mri, :mingw]
|
end
|
||||||
gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
|
else
|
||||||
when /sqlite3/
|
warn("No adapter found in config/database.yml, please configure it first")
|
||||||
gem "sqlite3", :platforms => [:mri, :mingw]
|
end
|
||||||
gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
|
else
|
||||||
when /sqlserver/
|
warn("Please configure your config/database.yml first")
|
||||||
gem "tiny_tds", "~> 0.5.1", :platforms => [:mri, :mingw]
|
end
|
||||||
gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw]
|
|
||||||
else
|
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
||||||
warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
|
if File.exists?(local_gemfile)
|
||||||
end
|
puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
|
||||||
end
|
instance_eval File.read(local_gemfile)
|
||||||
else
|
end
|
||||||
warn("No adapter found in config/database.yml, please configure it first")
|
|
||||||
end
|
# Load plugins' Gemfiles
|
||||||
else
|
Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
|
||||||
warn("Please configure your config/database.yml first")
|
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
|
||||||
end
|
instance_eval File.read(file)
|
||||||
|
end
|
||||||
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
|
||||||
if File.exists?(local_gemfile)
|
|
||||||
puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
|
|
||||||
instance_eval File.read(local_gemfile)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Load plugins' Gemfiles
|
|
||||||
Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
|
|
||||||
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
|
|
||||||
instance_eval File.read(file)
|
|
||||||
end
|
|
||||||
|
@ -1,4 +1,11 @@
|
|||||||
class ContestNotification < ActiveRecord::Base
|
class ContestNotification < ActiveRecord::Base
|
||||||
attr_accessible :content, :title
|
attr_accessible :content, :title
|
||||||
validates :title, length: {maximum: 30}
|
validates :title, length: {maximum: 30}
|
||||||
|
after_create :expire_cache
|
||||||
|
after_update :expire_cache
|
||||||
|
before_destroy :expire_cache
|
||||||
|
|
||||||
|
def expire_cache
|
||||||
|
ActionController::Base.new.expire_fragment('forums')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue