Merge branch 'rails_3_2_12'
BIN
.sass-cache/0969d4d7aefe84b00666c52e2b4cdb39b866b330/_form.sassc
Normal file
BIN
.sass-cache/0eea336093ad63c5b88144fcdb16070342eff84f/_new.sassc
Normal file
BIN
.sass-cache/4d4dbb3f699e777a1a139ac20bf2b4286169219f/_form.sassc
Normal file
BIN
.sass-cache/955c22916a21611dea32e57ab4dd27a87c57e02b/_show.sassc
Normal file
BIN
.sass-cache/cb524f05ec4c79ba09cd5002bd6bf2f00a0d4432/_icon.sassc
Normal file
BIN
.sass-cache/f18f68f7db8576b328ba95084f09bb9906cb2226/_new.sassc
Normal file
25
Gemfile
|
@ -1,16 +1,16 @@
|
||||||
source 'http://rubygems.org'
|
source 'http://rubygems.org'
|
||||||
|
|
||||||
gem 'rails', '3.0.20'
|
gem 'rails', '= 3.2.12'
|
||||||
#gem 'sqlite3-ruby', '~> 1.3.1', :require => 'sqlite3'
|
#gem 'sqlite3-ruby', '~> 1.3.1', :require => 'sqlite3'
|
||||||
|
gem 'mysql2', '>= 0.3.11'
|
||||||
|
|
||||||
# https://groups.google.com/d/topic/rubyonrails-security/4_YvCpLzL58/discussion
|
# https://groups.google.com/d/topic/rubyonrails-security/4_YvCpLzL58/discussion
|
||||||
gem 'json', '~> 1.7.7'
|
gem 'json', '~> 1.7.7'
|
||||||
|
|
||||||
gem 'compass', '~> 0.10.1'
|
gem 'haml', '~> 4.0.0'
|
||||||
gem 'haml', '~> 3.0.18'
|
|
||||||
gem 'rdiscount', '~> 1.6.5'
|
gem 'rdiscount', '~> 1.6.5'
|
||||||
gem 'will_paginate', '~> 3.0.pre2'
|
gem 'will_paginate', '~> 3.0.pre2'
|
||||||
gem 'devise', '~> 1.1.5'
|
gem 'devise', '~> 2.2.3'
|
||||||
|
|
||||||
# unstable version of RocketAMF interprets info registry as a hash instead of an array
|
# unstable version of RocketAMF interprets info registry as a hash instead of an array
|
||||||
gem 'RocketAMF', :git => 'git://github.com/rubyamf/rocketamf.git'
|
gem 'RocketAMF', :git => 'git://github.com/rubyamf/rocketamf.git'
|
||||||
|
@ -20,7 +20,7 @@ gem 'openneo-auth-signatory', '~> 0.1.0'
|
||||||
|
|
||||||
gem 'jammit', '~> 0.6.5'
|
gem 'jammit', '~> 0.6.5'
|
||||||
|
|
||||||
gem 'hoptoad_notifier'
|
gem 'airbrake', '~> 3.1.8'
|
||||||
|
|
||||||
gem 'addressable', :require => ['addressable/template', 'addressable/uri']
|
gem 'addressable', :require => ['addressable/template', 'addressable/uri']
|
||||||
|
|
||||||
|
@ -64,8 +64,17 @@ gem "rest-client", "~> 1.6.7"
|
||||||
|
|
||||||
gem "rails-i18n"
|
gem "rails-i18n"
|
||||||
|
|
||||||
|
# Needed for the new asset pipeline
|
||||||
|
group :assets do
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
gem 'sass-rails', "~> 3.2.6"
|
||||||
|
gem 'compass-rails', "~> 1.0.3"
|
||||||
|
gem 'uglifier', ">= 1.0.3"
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem "bullet", "~> 4.1.5"
|
#gem "bullet", "~> 4.1.5"
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development_async do
|
group :development_async do
|
||||||
|
@ -86,12 +95,10 @@ group :development_async do
|
||||||
end
|
end
|
||||||
|
|
||||||
group :production do
|
group :production do
|
||||||
gem 'mysql2', '< 0.3'
|
|
||||||
gem 'memcache-client', '~> 1.8.5', :require => 'memcache'
|
gem 'memcache-client', '~> 1.8.5', :require => 'memcache'
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
gem 'factory_girl_rails', '~> 1.0'
|
gem 'factory_girl_rails', '~> 1.0'
|
||||||
gem 'rspec-rails', '~> 2.0.0.beta.22'
|
gem 'rspec-rails', '~> 2.0.0.beta.22'
|
||||||
end
|
end
|
||||||
|
|
220
Gemfile.lock
|
@ -1,8 +1,8 @@
|
||||||
GIT
|
GIT
|
||||||
remote: git://github.com/eventmachine/eventmachine.git
|
remote: git://github.com/eventmachine/eventmachine.git
|
||||||
revision: d7c8a14dc494193a775add4b16c1e303cab5b285
|
revision: c520f9de3969f6f39aa5f4439f825a63dd8c0f85
|
||||||
specs:
|
specs:
|
||||||
eventmachine (1.0.0)
|
eventmachine (1.0.1)
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
remote: git://github.com/iain/http_accept_language.git
|
remote: git://github.com/iain/http_accept_language.git
|
||||||
|
@ -30,9 +30,9 @@ GIT
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
remote: git://github.com/igrigorik/em-synchrony.git
|
remote: git://github.com/igrigorik/em-synchrony.git
|
||||||
revision: fe592a4b9b5345bca329477cb8f2f8d186b6fc7f
|
revision: 44c3cea84baf13a29f03ddb15c5040ec7703506f
|
||||||
specs:
|
specs:
|
||||||
em-synchrony (1.0.2)
|
em-synchrony (1.0.3)
|
||||||
eventmachine (>= 1.0.0.beta.1)
|
eventmachine (>= 1.0.0.beta.1)
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
|
@ -68,7 +68,7 @@ GIT
|
||||||
|
|
||||||
GIT
|
GIT
|
||||||
remote: git://github.com/rubyamf/rocketamf.git
|
remote: git://github.com/rubyamf/rocketamf.git
|
||||||
revision: ed82db7659f624d6c3ca244e4127dad270a484c7
|
revision: 3f16cf841d9c36045f720b307bbffa61fb63a7ac
|
||||||
specs:
|
specs:
|
||||||
RocketAMF (1.0.0)
|
RocketAMF (1.0.0)
|
||||||
|
|
||||||
|
@ -79,56 +79,66 @@ GEM
|
||||||
Platform (>= 0.4.0)
|
Platform (>= 0.4.0)
|
||||||
open4
|
open4
|
||||||
Platform (0.4.0)
|
Platform (0.4.0)
|
||||||
abstract (1.0.0)
|
actionmailer (3.2.12)
|
||||||
actionmailer (3.0.20)
|
actionpack (= 3.2.12)
|
||||||
actionpack (= 3.0.20)
|
mail (~> 2.4.4)
|
||||||
mail (~> 2.2.19)
|
actionpack (3.2.12)
|
||||||
actionpack (3.0.20)
|
activemodel (= 3.2.12)
|
||||||
activemodel (= 3.0.20)
|
activesupport (= 3.2.12)
|
||||||
activesupport (= 3.0.20)
|
builder (~> 3.0.0)
|
||||||
builder (~> 2.1.2)
|
erubis (~> 2.7.0)
|
||||||
erubis (~> 2.6.6)
|
journey (~> 1.0.4)
|
||||||
i18n (~> 0.5.0)
|
rack (~> 1.4.5)
|
||||||
rack (~> 1.2.5)
|
rack-cache (~> 1.2)
|
||||||
rack-mount (~> 0.6.14)
|
rack-test (~> 0.6.1)
|
||||||
rack-test (~> 0.5.7)
|
sprockets (~> 2.2.1)
|
||||||
tzinfo (~> 0.3.23)
|
activemodel (3.2.12)
|
||||||
activemodel (3.0.20)
|
activesupport (= 3.2.12)
|
||||||
activesupport (= 3.0.20)
|
builder (~> 3.0.0)
|
||||||
builder (~> 2.1.2)
|
activerecord (3.2.12)
|
||||||
i18n (~> 0.5.0)
|
activemodel (= 3.2.12)
|
||||||
activerecord (3.0.20)
|
activesupport (= 3.2.12)
|
||||||
activemodel (= 3.0.20)
|
arel (~> 3.0.2)
|
||||||
activesupport (= 3.0.20)
|
tzinfo (~> 0.3.29)
|
||||||
arel (~> 2.0.10)
|
activeresource (3.2.12)
|
||||||
tzinfo (~> 0.3.23)
|
activemodel (= 3.2.12)
|
||||||
activeresource (3.0.20)
|
activesupport (= 3.2.12)
|
||||||
activemodel (= 3.0.20)
|
activesupport (3.2.12)
|
||||||
activesupport (= 3.0.20)
|
i18n (~> 0.6)
|
||||||
activesupport (3.0.20)
|
multi_json (~> 1.0)
|
||||||
addressable (2.3.2)
|
addressable (2.3.3)
|
||||||
arel (2.0.10)
|
airbrake (3.1.8)
|
||||||
bcrypt-ruby (2.1.4)
|
activesupport
|
||||||
builder (2.1.2)
|
builder
|
||||||
bullet (4.1.6)
|
json
|
||||||
uniform_notifier (~> 1.0.0)
|
arel (3.0.2)
|
||||||
|
bcrypt-ruby (3.0.1)
|
||||||
|
builder (3.0.4)
|
||||||
carrierwave (0.5.8)
|
carrierwave (0.5.8)
|
||||||
activesupport (~> 3.0)
|
activesupport (~> 3.0)
|
||||||
character-encodings (0.4.1)
|
character-encodings (0.4.1)
|
||||||
chronic (0.6.7)
|
chronic (0.6.7)
|
||||||
compass (0.10.6)
|
chunky_png (1.2.7)
|
||||||
haml (>= 3.0.4)
|
compass (0.12.2)
|
||||||
|
chunky_png (~> 1.2)
|
||||||
|
fssm (>= 0.2.7)
|
||||||
|
sass (~> 3.1)
|
||||||
|
compass-rails (1.0.3)
|
||||||
|
compass (>= 0.12.2, < 0.14)
|
||||||
cookiejar (0.3.0)
|
cookiejar (0.3.0)
|
||||||
devise (1.1.9)
|
devise (2.2.3)
|
||||||
bcrypt-ruby (~> 2.1.2)
|
bcrypt-ruby (~> 3.0)
|
||||||
warden (~> 1.0.2)
|
orm_adapter (~> 0.1)
|
||||||
diff-lcs (1.1.3)
|
railties (~> 3.1)
|
||||||
|
warden (~> 1.2.1)
|
||||||
|
diff-lcs (1.2.1)
|
||||||
dye (0.1.4)
|
dye (0.1.4)
|
||||||
em-socksify (0.2.1)
|
em-socksify (0.2.1)
|
||||||
eventmachine (>= 1.0.0.beta.4)
|
eventmachine (>= 1.0.0.beta.4)
|
||||||
erubis (2.6.6)
|
erubis (2.7.0)
|
||||||
abstract (>= 1.0.0)
|
excon (0.19.3)
|
||||||
excon (0.16.10)
|
execjs (1.4.0)
|
||||||
|
multi_json (~> 1.0)
|
||||||
factory_girl (2.6.4)
|
factory_girl (2.6.4)
|
||||||
activesupport (>= 2.3.9)
|
activesupport (>= 2.3.9)
|
||||||
factory_girl_rails (1.7.0)
|
factory_girl_rails (1.7.0)
|
||||||
|
@ -145,36 +155,37 @@ GEM
|
||||||
nokogiri (~> 1.5.0)
|
nokogiri (~> 1.5.0)
|
||||||
ruby-hmac
|
ruby-hmac
|
||||||
formatador (0.2.4)
|
formatador (0.2.4)
|
||||||
haml (3.0.25)
|
fssm (0.2.10)
|
||||||
hoptoad_notifier (2.4.11)
|
haml (4.0.0)
|
||||||
activesupport
|
tilt
|
||||||
builder
|
hike (1.2.1)
|
||||||
http_parser.rb (0.5.3)
|
http_parser.rb (0.5.3)
|
||||||
i18n (0.5.0)
|
i18n (0.6.4)
|
||||||
jammit (0.6.5)
|
jammit (0.6.5)
|
||||||
yui-compressor (>= 0.9.3)
|
yui-compressor (>= 0.9.3)
|
||||||
|
journey (1.0.4)
|
||||||
json (1.7.7)
|
json (1.7.7)
|
||||||
mail (2.2.19)
|
mail (2.4.4)
|
||||||
activesupport (>= 2.3.6)
|
|
||||||
i18n (>= 0.4.0)
|
i18n (>= 0.4.0)
|
||||||
mime-types (~> 1.16)
|
mime-types (~> 1.16)
|
||||||
treetop (~> 1.4.8)
|
treetop (~> 1.4.8)
|
||||||
memcache-client (1.8.5)
|
memcache-client (1.8.5)
|
||||||
mime-types (1.19)
|
mime-types (1.21)
|
||||||
mini_magick (3.4)
|
mini_magick (3.5.0)
|
||||||
subexec (~> 0.2.1)
|
subexec (~> 0.2.1)
|
||||||
msgpack (0.5.3)
|
msgpack (0.5.3)
|
||||||
multi_json (1.3.7)
|
multi_json (1.3.7)
|
||||||
mysql2 (0.2.18)
|
mysql2 (0.3.11)
|
||||||
net-scp (1.0.4)
|
net-scp (1.0.4)
|
||||||
net-ssh (>= 1.99.1)
|
net-ssh (>= 1.99.1)
|
||||||
net-ssh (2.6.3)
|
net-ssh (2.6.6)
|
||||||
newrelic_rpm (3.5.5.38)
|
newrelic_rpm (3.5.8.70)
|
||||||
nokogiri (1.5.6)
|
nokogiri (1.5.6)
|
||||||
open4 (1.3.0)
|
open4 (1.3.0)
|
||||||
openneo-auth-signatory (0.1.0)
|
openneo-auth-signatory (0.1.0)
|
||||||
ruby-hmac
|
ruby-hmac
|
||||||
paper_trail (2.7.0)
|
orm_adapter (0.4.0)
|
||||||
|
paper_trail (2.7.1)
|
||||||
activerecord (~> 3.0)
|
activerecord (~> 3.0)
|
||||||
railties (~> 3.0)
|
railties (~> 3.0)
|
||||||
parallel (0.5.21)
|
parallel (0.5.21)
|
||||||
|
@ -184,33 +195,38 @@ GEM
|
||||||
prompter (0.1.5)
|
prompter (0.1.5)
|
||||||
dye (>= 0.1.1)
|
dye (>= 0.1.1)
|
||||||
yard (>= 0.6.3)
|
yard (>= 0.6.3)
|
||||||
rack (1.2.7)
|
rack (1.4.5)
|
||||||
|
rack-cache (1.2)
|
||||||
|
rack (>= 0.4)
|
||||||
rack-fiber_pool (0.9.2)
|
rack-fiber_pool (0.9.2)
|
||||||
rack-mount (0.6.14)
|
rack-protection (1.4.0)
|
||||||
rack (>= 1.0.0)
|
rack
|
||||||
rack-test (0.5.7)
|
rack-ssl (1.3.3)
|
||||||
|
rack
|
||||||
|
rack-test (0.6.2)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
rails (3.0.20)
|
rails (3.2.12)
|
||||||
actionmailer (= 3.0.20)
|
actionmailer (= 3.2.12)
|
||||||
actionpack (= 3.0.20)
|
actionpack (= 3.2.12)
|
||||||
activerecord (= 3.0.20)
|
activerecord (= 3.2.12)
|
||||||
activeresource (= 3.0.20)
|
activeresource (= 3.2.12)
|
||||||
activesupport (= 3.0.20)
|
activesupport (= 3.2.12)
|
||||||
bundler (~> 1.0)
|
bundler (~> 1.0)
|
||||||
railties (= 3.0.20)
|
railties (= 3.2.12)
|
||||||
rails-i18n (0.7.2)
|
rails-i18n (0.7.2)
|
||||||
i18n (~> 0.5)
|
i18n (~> 0.5)
|
||||||
railties (3.0.20)
|
railties (3.2.12)
|
||||||
actionpack (= 3.0.20)
|
actionpack (= 3.2.12)
|
||||||
activesupport (= 3.0.20)
|
activesupport (= 3.2.12)
|
||||||
|
rack-ssl (~> 1.3.2)
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
rdoc (~> 3.4)
|
rdoc (~> 3.4)
|
||||||
thor (~> 0.14.4)
|
thor (>= 0.14.6, < 2.0)
|
||||||
rake (10.0.3)
|
rake (10.0.3)
|
||||||
rdiscount (1.6.8)
|
rdiscount (1.6.8)
|
||||||
rdoc (3.12)
|
rdoc (3.12.2)
|
||||||
json (~> 1.4)
|
json (~> 1.4)
|
||||||
redis (3.0.2)
|
redis (3.0.3)
|
||||||
redis-namespace (1.2.1)
|
redis-namespace (1.2.1)
|
||||||
redis (~> 3.0.0)
|
redis (~> 3.0.0)
|
||||||
resque (1.23.0)
|
resque (1.23.0)
|
||||||
|
@ -221,9 +237,9 @@ GEM
|
||||||
resque-retry (0.1.0)
|
resque-retry (0.1.0)
|
||||||
resque (>= 1.8.0)
|
resque (>= 1.8.0)
|
||||||
resque-scheduler (>= 1.8.0)
|
resque-scheduler (>= 1.8.0)
|
||||||
resque-scheduler (2.0.0.e)
|
resque-scheduler (2.0.0)
|
||||||
redis (>= 2.0.1)
|
redis (>= 2.0.1)
|
||||||
resque (>= 1.15.0)
|
resque (>= 1.20.0)
|
||||||
rufus-scheduler
|
rufus-scheduler
|
||||||
rest-client (1.6.7)
|
rest-client (1.6.7)
|
||||||
mime-types (>= 1.16)
|
mime-types (>= 1.16)
|
||||||
|
@ -247,27 +263,40 @@ GEM
|
||||||
tzinfo (>= 0.3.23)
|
tzinfo (>= 0.3.23)
|
||||||
sanitize (2.0.3)
|
sanitize (2.0.3)
|
||||||
nokogiri (>= 1.4.4, < 1.6)
|
nokogiri (>= 1.4.4, < 1.6)
|
||||||
sinatra (1.2.8)
|
sass (3.2.6)
|
||||||
rack (~> 1.1)
|
sass-rails (3.2.6)
|
||||||
tilt (>= 1.2.2, < 2.0)
|
railties (~> 3.2.0)
|
||||||
|
sass (>= 3.1.10)
|
||||||
|
tilt (~> 1.3)
|
||||||
|
sinatra (1.3.3)
|
||||||
|
rack (~> 1.3, >= 1.3.6)
|
||||||
|
rack-protection (~> 1.2)
|
||||||
|
tilt (~> 1.3, >= 1.3.3)
|
||||||
|
sprockets (2.2.2)
|
||||||
|
hike (~> 1.2)
|
||||||
|
multi_json (~> 1.0)
|
||||||
|
rack (~> 1.0)
|
||||||
|
tilt (~> 1.1, != 1.3.0)
|
||||||
subexec (0.2.2)
|
subexec (0.2.2)
|
||||||
swf_converter (0.0.3)
|
swf_converter (0.0.3)
|
||||||
thor (0.14.6)
|
thor (0.17.0)
|
||||||
tilt (1.3.3)
|
tilt (1.3.4)
|
||||||
treetop (1.4.12)
|
treetop (1.4.12)
|
||||||
polyglot
|
polyglot
|
||||||
polyglot (>= 0.3.1)
|
polyglot (>= 0.3.1)
|
||||||
tzinfo (0.3.35)
|
tzinfo (0.3.36)
|
||||||
uniform_notifier (1.0.2)
|
uglifier (1.3.0)
|
||||||
|
execjs (>= 0.3.0)
|
||||||
|
multi_json (~> 1.0, >= 1.0.2)
|
||||||
vegas (0.1.11)
|
vegas (0.1.11)
|
||||||
rack (>= 1.0.0)
|
rack (>= 1.0.0)
|
||||||
warden (1.0.6)
|
warden (1.2.1)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
whenever (0.7.3)
|
whenever (0.7.3)
|
||||||
activesupport (>= 2.3.4)
|
activesupport (>= 2.3.4)
|
||||||
chronic (~> 0.6.3)
|
chronic (~> 0.6.3)
|
||||||
will_paginate (3.0.4)
|
will_paginate (3.0.4)
|
||||||
yard (0.8.3)
|
yard (0.8.5.2)
|
||||||
yui-compressor (0.9.6)
|
yui-compressor (0.9.6)
|
||||||
POpen4 (>= 0.1.4)
|
POpen4 (>= 0.1.4)
|
||||||
|
|
||||||
|
@ -277,11 +306,11 @@ PLATFORMS
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
RocketAMF!
|
RocketAMF!
|
||||||
addressable
|
addressable
|
||||||
bullet (~> 4.1.5)
|
airbrake (~> 3.1.8)
|
||||||
carrierwave (~> 0.5.8)
|
carrierwave (~> 0.5.8)
|
||||||
character-encodings (~> 0.4.1)
|
character-encodings (~> 0.4.1)
|
||||||
compass (~> 0.10.1)
|
compass-rails (~> 1.0.3)
|
||||||
devise (~> 1.1.5)
|
devise (~> 2.2.3)
|
||||||
em-http-request!
|
em-http-request!
|
||||||
em-mysqlplus!
|
em-mysqlplus!
|
||||||
em-synchrony!
|
em-synchrony!
|
||||||
|
@ -290,15 +319,14 @@ DEPENDENCIES
|
||||||
flex!
|
flex!
|
||||||
fog (~> 1.8.0)
|
fog (~> 1.8.0)
|
||||||
globalize3!
|
globalize3!
|
||||||
haml (~> 3.0.18)
|
haml (~> 4.0.0)
|
||||||
hoptoad_notifier
|
|
||||||
http_accept_language!
|
http_accept_language!
|
||||||
jammit (~> 0.6.5)
|
jammit (~> 0.6.5)
|
||||||
json (~> 1.7.7)
|
json (~> 1.7.7)
|
||||||
memcache-client (~> 1.8.5)
|
memcache-client (~> 1.8.5)
|
||||||
mini_magick (~> 3.4)
|
mini_magick (~> 3.4)
|
||||||
msgpack (~> 0.5.3)
|
msgpack (~> 0.5.3)
|
||||||
mysql2 (< 0.3)
|
mysql2 (>= 0.3.11)
|
||||||
mysqlplus!
|
mysqlplus!
|
||||||
neopets (~> 0.2.0)!
|
neopets (~> 0.2.0)!
|
||||||
newrelic_rpm
|
newrelic_rpm
|
||||||
|
@ -307,7 +335,7 @@ DEPENDENCIES
|
||||||
parallel (~> 0.5.17)
|
parallel (~> 0.5.17)
|
||||||
patron (~> 0.4.18)
|
patron (~> 0.4.18)
|
||||||
rack-fiber_pool
|
rack-fiber_pool
|
||||||
rails (= 3.0.20)
|
rails (= 3.2.12)
|
||||||
rails-i18n
|
rails-i18n
|
||||||
rdiscount (~> 1.6.5)
|
rdiscount (~> 1.6.5)
|
||||||
resque (~> 1.23.0)
|
resque (~> 1.23.0)
|
||||||
|
@ -317,6 +345,8 @@ DEPENDENCIES
|
||||||
right_aws (~> 2.1.0)
|
right_aws (~> 2.1.0)
|
||||||
rspec-rails (~> 2.0.0.beta.22)
|
rspec-rails (~> 2.0.0.beta.22)
|
||||||
sanitize (~> 2.0.3)
|
sanitize (~> 2.0.3)
|
||||||
|
sass-rails (~> 3.2.6)
|
||||||
swf_converter (~> 0.0.3)
|
swf_converter (~> 0.0.3)
|
||||||
|
uglifier (>= 1.0.3)
|
||||||
whenever (~> 0.7.3)
|
whenever (~> 0.7.3)
|
||||||
will_paginate (~> 3.0.pre2)
|
will_paginate (~> 3.0.pre2)
|
||||||
|
|
Before Width: | Height: | Size: 135 B After Width: | Height: | Size: 135 B |
Before Width: | Height: | Size: 4 KiB After Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 142 KiB After Width: | Height: | Size: 142 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 516 B After Width: | Height: | Size: 516 B |
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 127 KiB |
Before Width: | Height: | Size: 7 KiB After Width: | Height: | Size: 7 KiB |
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 655 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 732 B After Width: | Height: | Size: 732 B |
Before Width: | Height: | Size: 754 B After Width: | Height: | Size: 754 B |
Before Width: | Height: | Size: 756 B After Width: | Height: | Size: 756 B |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 537 B After Width: | Height: | Size: 537 B |
Before Width: | Height: | Size: 670 B After Width: | Height: | Size: 670 B |
Before Width: | Height: | Size: 596 B After Width: | Height: | Size: 596 B |
Before Width: | Height: | Size: 671 B After Width: | Height: | Size: 671 B |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
|
@ -1,4 +1,5 @@
|
||||||
@import compass
|
@import compass
|
||||||
|
|
||||||
@import partials/clean/constants
|
@import partials/clean/constants
|
||||||
@import partials/clean/mixins
|
@import partials/clean/mixins
|
||||||
|
|
||||||
|
@ -24,5 +25,4 @@
|
||||||
@import static/donate
|
@import static/donate
|
||||||
@import static/image_mode
|
@import static/image_mode
|
||||||
@import static/terms
|
@import static/terms
|
||||||
@import users/top_contributors
|
@import users/top_contributors
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@import "partials/context_button"
|
@import "../partials/context_button"
|
||||||
@import "partials/icon"
|
@import "../partials/icon"
|
||||||
@import "partials/secondary_nav"
|
@import "../partials/secondary_nav"
|
||||||
|
|
||||||
body.closet_hangers-index
|
body.closet_hangers-index
|
||||||
+secondary-nav
|
+secondary-nav
|
||||||
|
@ -18,7 +18,7 @@ body.closet_hangers-index
|
||||||
input[name=q]
|
input[name=q]
|
||||||
&.loading
|
&.loading
|
||||||
background:
|
background:
|
||||||
image: url(/images/loading.gif)
|
image: image-url("loading.gif")
|
||||||
position: 2px center
|
position: 2px center
|
||||||
repeat: no-repeat
|
repeat: no-repeat
|
||||||
padding-left: $icon-width + 4px
|
padding-left: $icon-width + 4px
|
|
@ -1,4 +1,4 @@
|
||||||
@import ../shared/jquery.jgrowl
|
@import partials/jquery.jgrowl
|
||||||
@import partials/wardrobe
|
@import partials/wardrobe
|
||||||
|
|
||||||
@import "partials/context_button"
|
@import "partials/context_button"
|
||||||
|
@ -451,7 +451,7 @@ body.outfits-edit
|
||||||
.outfit-thumbnail-wrapper
|
.outfit-thumbnail-wrapper
|
||||||
+opacity(.5)
|
+opacity(.5)
|
||||||
background:
|
background:
|
||||||
image: url(/images/outfits/small_default.png)
|
image: image-url("small_default.png")
|
||||||
position: center center
|
position: center center
|
||||||
size: $outfit-inner-size $outfit-inner-size
|
size: $outfit-inner-size $outfit-inner-size
|
||||||
cursor: pointer
|
cursor: pointer
|
|
@ -1,4 +1,3 @@
|
||||||
@import "compass/css3/gradient"
|
|
||||||
@import "partials/campaign-progress"
|
@import "partials/campaign-progress"
|
||||||
|
|
||||||
body.outfits-new
|
body.outfits-new
|
|
@ -2,7 +2,7 @@
|
||||||
.campaign-progress-wrapper
|
.campaign-progress-wrapper
|
||||||
+border-radius(8px)
|
+border-radius(8px)
|
||||||
background: #aaa
|
background: #aaa
|
||||||
+linear-gradient(color-stops(#ccc, #aaa))
|
background-image: linear-gradient(color-stops(#ccc, #aaa))
|
||||||
|
|
||||||
border: 4px solid $module-border-color
|
border: 4px solid $module-border-color
|
||||||
clear: both
|
clear: both
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
.campaign-progress
|
.campaign-progress
|
||||||
background: $module-border-color
|
background: $module-border-color
|
||||||
+linear-gradient(color-stops($module-border-color + #222, $module-border-color))
|
background-image: linear-gradient(color-stops($module-border-color + #222, $module-border-color))
|
||||||
border-right: 1px solid $module-border-color
|
border-right: 1px solid $module-border-color
|
||||||
|
|
||||||
.campaign-progress-wrapper, .campaign-progress
|
.campaign-progress-wrapper, .campaign-progress
|
||||||
|
@ -41,5 +41,4 @@
|
||||||
|
|
||||||
&.campaign-loaded
|
&.campaign-loaded
|
||||||
.campaign-progress-wrapper
|
.campaign-progress-wrapper
|
||||||
visibility: visible
|
visibility: visible
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
@import "compass/css3/gradient"
|
|
||||||
@import "compass/css3/text-shadow"
|
@import "compass/css3/text-shadow"
|
||||||
|
|
||||||
@import "partials/campaign-progress"
|
@import "partials/campaign-progress"
|
|
@ -16,7 +16,7 @@ class ClosetHanger < ActiveRecord::Base
|
||||||
scope :alphabetical_by_item_name, lambda {
|
scope :alphabetical_by_item_name, lambda {
|
||||||
joins(:item => :translations).
|
joins(:item => :translations).
|
||||||
where(Item::Translation.arel_table[:locale].eq(I18n.locale)).
|
where(Item::Translation.arel_table[:locale].eq(I18n.locale)).
|
||||||
order(Item.arel_table[:name])
|
order(Item::Translation.arel_table[:name])
|
||||||
}
|
}
|
||||||
scope :newest, order(arel_table[:created_at].desc)
|
scope :newest, order(arel_table[:created_at].desc)
|
||||||
scope :owned_before_wanted, order(arel_table[:owned].desc)
|
scope :owned_before_wanted, order(arel_table[:owned].desc)
|
||||||
|
|
|
@ -5,8 +5,6 @@ class Contribution < ActiveRecord::Base
|
||||||
'PetType' => 15,
|
'PetType' => 15,
|
||||||
'PetState' => 10
|
'PetState' => 10
|
||||||
}
|
}
|
||||||
|
|
||||||
attr_accessor :contributed
|
|
||||||
|
|
||||||
belongs_to :contributed, :polymorphic => true
|
belongs_to :contributed, :polymorphic => true
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
@ -17,7 +15,9 @@ class Contribution < ActiveRecord::Base
|
||||||
@@per_page = 30
|
@@per_page = 30
|
||||||
|
|
||||||
def point_value
|
def point_value
|
||||||
POINT_VALUES[contributed_type]
|
POINT_VALUES[contributed_type] ||
|
||||||
|
raise("unexpected contributed type #{contributed_type.inspect} for " +
|
||||||
|
"contributed #{contributed.inspect}")
|
||||||
end
|
end
|
||||||
|
|
||||||
CONTRIBUTED_RELATIONSHIPS = {
|
CONTRIBUTED_RELATIONSHIPS = {
|
||||||
|
|
|
@ -9,7 +9,7 @@ class Item < ActiveRecord::Base
|
||||||
translates :name, :description, :rarity
|
translates :name, :description, :rarity
|
||||||
|
|
||||||
has_many :closet_hangers
|
has_many :closet_hangers
|
||||||
has_one :contribution, :as => :contributed
|
has_one :contribution, :as => :contributed, :inverse_of => :contributed
|
||||||
has_many :parent_swf_asset_relationships, :as => :parent
|
has_many :parent_swf_asset_relationships, :as => :parent
|
||||||
has_many :swf_assets, :through => :parent_swf_asset_relationships
|
has_many :swf_assets, :through => :parent_swf_asset_relationships
|
||||||
|
|
||||||
|
|
|
@ -23,20 +23,20 @@ class Pet < ActiveRecord::Base
|
||||||
|
|
||||||
I18n.with_locale(options[:locale]) do
|
I18n.with_locale(options[:locale]) do
|
||||||
viewer_data = fetch_viewer_data
|
viewer_data = fetch_viewer_data
|
||||||
pet_data = OpenStruct.new(viewer_data.custom_pet)
|
pet_data = viewer_data[:custom_pet]
|
||||||
|
|
||||||
self.pet_type = PetType.find_or_initialize_by_species_id_and_color_id(
|
self.pet_type = PetType.find_or_initialize_by_species_id_and_color_id(
|
||||||
pet_data.species_id.to_i,
|
pet_data[:species_id].to_i,
|
||||||
pet_data.color_id.to_i
|
pet_data[:color_id].to_i
|
||||||
)
|
)
|
||||||
self.pet_type.body_id = pet_data.body_id
|
self.pet_type.body_id = pet_data[:body_id]
|
||||||
self.pet_type.origin_pet = self
|
self.pet_type.origin_pet = self
|
||||||
biology = pet_data.biology_by_zone
|
biology = pet_data[:biology_by_zone]
|
||||||
biology[0] = nil # remove effects if present
|
biology[0] = nil # remove effects if present
|
||||||
@pet_state = self.pet_type.add_pet_state_from_biology! biology
|
@pet_state = self.pet_type.add_pet_state_from_biology! biology
|
||||||
@pet_state.label_by_pet(self, pet_data.owner)
|
@pet_state.label_by_pet(self, pet_data[:owner])
|
||||||
@items = Item.collection_from_pet_type_and_registries(self.pet_type,
|
@items = Item.collection_from_pet_type_and_registries(self.pet_type,
|
||||||
viewer_data.object_info_registry, viewer_data.object_asset_registry,
|
viewer_data[:object_info_registry], viewer_data[:object_asset_registry],
|
||||||
options[:item_scope])
|
options[:item_scope])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ class Pet < ActiveRecord::Base
|
||||||
rescue RocketAMF::RemoteGateway::ConnectionError => e
|
rescue RocketAMF::RemoteGateway::ConnectionError => e
|
||||||
raise DownloadError, e.message, e.backtrace
|
raise DownloadError, e.message, e.backtrace
|
||||||
end
|
end
|
||||||
OpenStruct.new(envelope.messages[0].data.body)
|
HashWithIndifferentAccess.new(envelope.messages[0].data.body)
|
||||||
end
|
end
|
||||||
|
|
||||||
def wardrobe_query
|
def wardrobe_query
|
||||||
|
@ -106,7 +106,7 @@ class Pet < ActiveRecord::Base
|
||||||
# Fetch registry data in parallel
|
# Fetch registry data in parallel
|
||||||
registries = Parallel.map(candidates.keys, :in_threads => 8) do |locale|
|
registries = Parallel.map(candidates.keys, :in_threads => 8) do |locale|
|
||||||
viewer_data = I18n.with_locale(locale) { fetch_viewer_data }
|
viewer_data = I18n.with_locale(locale) { fetch_viewer_data }
|
||||||
[locale, viewer_data.object_info_registry]
|
[locale, viewer_data[:object_info_registry]]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Look up any newly applied items on this pet, just in case
|
# Look up any newly applied items on this pet, just in case
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
class PetState < ActiveRecord::Base
|
class PetState < ActiveRecord::Base
|
||||||
SwfAssetType = 'biology'
|
SwfAssetType = 'biology'
|
||||||
|
|
||||||
has_many :contributions, :as => :contributed # in case of duplicates being merged
|
has_many :contributions, :as => :contributed,
|
||||||
|
:inverse_of => :contributed # in case of duplicates being merged
|
||||||
has_many :outfits
|
has_many :outfits
|
||||||
has_many :parent_swf_asset_relationships, :as => :parent,
|
has_many :parent_swf_asset_relationships, :as => :parent,
|
||||||
:autosave => false
|
:autosave => false
|
||||||
|
|
|
@ -5,7 +5,7 @@ class PetType < ActiveRecord::Base
|
||||||
|
|
||||||
belongs_to :species
|
belongs_to :species
|
||||||
belongs_to :color
|
belongs_to :color
|
||||||
has_one :contribution, :as => :contributed
|
has_one :contribution, :as => :contributed, :inverse_of => :contributed
|
||||||
has_many :pet_states
|
has_many :pet_states
|
||||||
has_many :pets
|
has_many :pets
|
||||||
|
|
||||||
|
|
|
@ -143,7 +143,7 @@ class SwfAsset < ActiveRecord::Base
|
||||||
|
|
||||||
attr_accessor :item
|
attr_accessor :item
|
||||||
|
|
||||||
has_one :contribution, :as => :contributed
|
has_one :contribution, :as => :contributed, :inverse_of => :contributed
|
||||||
has_many :parent_swf_asset_relationships
|
has_many :parent_swf_asset_relationships
|
||||||
|
|
||||||
delegate :depth, :to => :zone
|
delegate :depth, :to => :zone
|
||||||
|
@ -201,6 +201,7 @@ class SwfAsset < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def body_specific?
|
def body_specific?
|
||||||
|
Rails.logger.debug("my zone id is: #{zone_id}")
|
||||||
self.zone.type_id < 3 || (@item && @item.body_specific?)
|
self.zone.type_id < 3 || (@item && @item.body_specific?)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -209,6 +210,7 @@ class SwfAsset < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def origin_biology_data=(data)
|
def origin_biology_data=(data)
|
||||||
|
Rails.logger.debug("my biology data is: #{data.inspect}")
|
||||||
self.type = 'biology'
|
self.type = 'biology'
|
||||||
self.zone_id = data[:zone_id].to_i
|
self.zone_id = data[:zone_id].to_i
|
||||||
self.url = data[:asset_url]
|
self.url = data[:asset_url]
|
||||||
|
@ -216,6 +218,7 @@ class SwfAsset < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def origin_object_data=(data)
|
def origin_object_data=(data)
|
||||||
|
Rails.logger.debug("my object data is: #{data.inspect}")
|
||||||
self.type = 'object'
|
self.type = 'object'
|
||||||
self.zone_id = data[:zone_id].to_i
|
self.zone_id = data[:zone_id].to_i
|
||||||
self.url = data[:asset_url]
|
self.url = data[:asset_url]
|
||||||
|
|
|
@ -17,27 +17,33 @@ class User < ActiveRecord::Base
|
||||||
attr_accessible :neopets_username, :owned_closet_hangers_visibility,
|
attr_accessible :neopets_username, :owned_closet_hangers_visibility,
|
||||||
:wanted_closet_hangers_visibility
|
:wanted_closet_hangers_visibility
|
||||||
|
|
||||||
|
def admin?
|
||||||
|
name == 'matchu' # you know that's right.
|
||||||
|
end
|
||||||
|
|
||||||
def contribute!(pet)
|
def contribute!(pet)
|
||||||
new_contributions = []
|
new_contributions = []
|
||||||
new_points = 0
|
|
||||||
pet.contributables.each do |contributable|
|
pet.contributables.each do |contributable|
|
||||||
if contributable.new_record?
|
if contributable.new_record?
|
||||||
contribution = Contribution.new(:contributed => contributable,
|
contribution = Contribution.new
|
||||||
:user => self)
|
contribution.contributed = contributable
|
||||||
|
contribution.user = self
|
||||||
new_contributions << contribution
|
new_contributions << contribution
|
||||||
new_points += contribution.point_value
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
self.points += new_points
|
new_points = 0 # temp assignment for scoping
|
||||||
Pet.transaction do
|
Pet.transaction do
|
||||||
pet.save!
|
pet.save!
|
||||||
new_contributions.each do |contribution|
|
new_contributions.each do |contribution|
|
||||||
|
Rails.logger.debug("Saving contribution of #{contribution.contributed.inspect}: #{contribution.contributed_type.inspect}, #{contribution.contributed_id.inspect}")
|
||||||
begin
|
begin
|
||||||
contribution.save!
|
contribution.save!
|
||||||
rescue ActiveRecord::RecordNotSaved => e
|
rescue ActiveRecord::RecordNotSaved => e
|
||||||
raise ActiveRecord::RecordNotSaved, "#{e.message}, #{contribution.inspect}, #{contribution.valid?.inspect}, #{contribution.errors.inspect}"
|
raise ActiveRecord::RecordNotSaved, "#{e.message}, #{contribution.inspect}, #{contribution.valid?.inspect}, #{contribution.errors.inspect}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
new_points = new_contributions.map(&:point_value).inject(0, &:+)
|
||||||
|
self.points += new_points
|
||||||
begin
|
begin
|
||||||
save!
|
save!
|
||||||
rescue ActiveRecord::RecordNotSaved => e
|
rescue ActiveRecord::RecordNotSaved => e
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
/[if IE]
|
/[if IE]
|
||||||
= include_javascript_libraries :html5
|
= include_javascript_libraries :html5
|
||||||
= yield :stylesheets
|
= yield :stylesheets
|
||||||
= stylesheet_link_tag "compiled/screen"
|
= stylesheet_link_tag "application"
|
||||||
= yield :meta
|
= yield :meta
|
||||||
= open_graph_tags
|
= open_graph_tags
|
||||||
= csrf_meta_tag
|
= csrf_meta_tag
|
||||||
|
|
0
bundle
Normal file
|
@ -44,6 +44,10 @@ module OpenneoImpressItems
|
||||||
Mime::Type.register "image/gif", :gif
|
Mime::Type.register "image/gif", :gif
|
||||||
|
|
||||||
ActionController::Base.config.relative_url_root = ''
|
ActionController::Base.config.relative_url_root = ''
|
||||||
|
|
||||||
|
config.assets.enabled = true
|
||||||
|
config.assets.version = '1.0'
|
||||||
|
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
# This configuration file works with both the Compass command line tool and within Rails.
|
|
||||||
# Require any additional compass plugins here.
|
|
||||||
project_type = :rails
|
|
||||||
project_path = RAILS_ROOT if defined?(RAILS_ROOT)
|
|
||||||
# Set this to the root of your project when deployed:
|
|
||||||
http_path = "/"
|
|
||||||
css_dir = "public/stylesheets/compiled"
|
|
||||||
sass_dir = "app/stylesheets"
|
|
||||||
environment = Compass::AppIntegration::Rails.env
|
|
||||||
# To enable relative paths to assets via compass helper functions. Uncomment:
|
|
||||||
# relative_assets = true
|
|