Merge pull request #710 from diogob/rails_41

Rails 41
Esse commit está contido em:
Diogo Biazus
2014-06-06 10:18:53 -04:00
14 arquivos alterados com 240 adições e 183 exclusões
+1 -1
Ver Arquivo
@@ -1,5 +1,5 @@
rvm: rvm:
- 2.1.0 - 2.1.2
before_install: before_install:
- "gem install bundler -v '= 1.5.1'" - "gem install bundler -v '= 1.5.1'"
+4 -4
Ver Arquivo
@@ -1,8 +1,8 @@
source 'https://rubygems.org' source 'https://rubygems.org'
ruby '2.1.0' ruby '2.1.2'
gem 'rails', '4.0.3' gem 'rails', '~> 4.1.1'
gem 'protected_attributes', '~> 1.0.5' # When upgrade to strong_parameters, remove this gem. gem 'protected_attributes', '~> 1.0.5' # When upgrade to strong_parameters, remove this gem.
gem 'rails-observers', '~> 0.1.2' gem 'rails-observers', '~> 0.1.2'
@@ -70,7 +70,7 @@ gem 'rmagick', :require => 'RMagick'
# Other Tools # Other Tools
gem 'to_xls' gem 'to_xls'
gem 'ranked-model' gem 'ranked-model'
gem 'feedzirra' gem 'feedjira'
gem 'inherited_resources', '~> 1.4.1' gem 'inherited_resources', '~> 1.4.1'
gem 'has_scope', '~> 0.6.0.rc' gem 'has_scope', '~> 0.6.0.rc'
gem 'spectator-validates_email', require: 'validates_email' gem 'spectator-validates_email', require: 'validates_email'
@@ -82,7 +82,7 @@ gem 'http_accept_language'
gem 'routing-filter', '~> 0.4.0.pre' gem 'routing-filter', '~> 0.4.0.pre'
# Payment # Payment
gem 'moip', github: 'catarse/moip-ruby' gem 'moip', github: 'catarse/moip-ruby', ref: 'c0225ad71645cd1df35dafa1e45c9f092b3abb9e'
gem 'httpclient', '>= 2.2.5' gem 'httpclient', '>= 2.2.5'
group :production do group :production do
+159 -143
Ver Arquivo
@@ -10,6 +10,7 @@ GIT
GIT GIT
remote: git://github.com/catarse/moip-ruby.git remote: git://github.com/catarse/moip-ruby.git
revision: c0225ad71645cd1df35dafa1e45c9f092b3abb9e revision: c0225ad71645cd1df35dafa1e45c9f092b3abb9e
ref: c0225ad71645cd1df35dafa1e45c9f092b3abb9e
specs: specs:
moip (1.0.2) moip (1.0.2)
activesupport (>= 2.3.2) activesupport (>= 2.3.2)
@@ -20,19 +21,23 @@ GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
RedCloth (4.2.9) RedCloth (4.2.9)
actionmailer (4.0.3) actionmailer (4.1.1)
actionpack (= 4.0.3) actionpack (= 4.1.1)
actionview (= 4.1.1)
mail (~> 2.5.4) mail (~> 2.5.4)
actionpack (4.0.3) actionpack (4.1.1)
activesupport (= 4.0.3) actionview (= 4.1.1)
builder (~> 3.1.0) activesupport (= 4.1.1)
erubis (~> 2.7.0)
rack (~> 1.5.2) rack (~> 1.5.2)
rack-test (~> 0.6.2) rack-test (~> 0.6.2)
active_utils (2.0.2) actionview (4.1.1)
activesupport (= 4.1.1)
builder (~> 3.1)
erubis (~> 2.7.0)
active_utils (2.2.1)
activesupport (>= 2.3.11) activesupport (>= 2.3.11)
i18n i18n
activemerchant (1.42.6) activemerchant (1.43.1)
active_utils (~> 2.0, >= 2.0.1) active_utils (~> 2.0, >= 2.0.1)
activesupport (>= 2.3.14, < 5.0.0) activesupport (>= 2.3.14, < 5.0.0)
builder (>= 2.1.2, < 4.0.0) builder (>= 2.1.2, < 4.0.0)
@@ -40,23 +45,21 @@ GEM
json (~> 1.7) json (~> 1.7)
money (< 7.0.0) money (< 7.0.0)
nokogiri (~> 1.4) nokogiri (~> 1.4)
activemodel (4.0.3) activemodel (4.1.1)
activesupport (= 4.0.3) activesupport (= 4.1.1)
builder (~> 3.1.0) builder (~> 3.1)
activerecord (4.0.3) activerecord (4.1.1)
activemodel (= 4.0.3) activemodel (= 4.1.1)
activerecord-deprecated_finders (~> 1.0.2) activesupport (= 4.1.1)
activesupport (= 4.0.3) arel (~> 5.0.0)
arel (~> 4.0.0) activesupport (4.1.1)
activerecord-deprecated_finders (1.0.3) i18n (~> 0.6, >= 0.6.9)
activesupport (4.0.3) json (~> 1.7, >= 1.7.7)
i18n (~> 0.6, >= 0.6.4) minitest (~> 5.1)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1) thread_safe (~> 0.1)
tzinfo (~> 0.3.37) tzinfo (~> 1.1)
addressable (2.3.5) addressable (2.3.6)
arel (4.0.2) arel (5.0.1.20140414130214)
auto_html (1.4.2) auto_html (1.4.2)
RedCloth RedCloth
redcarpet redcarpet
@@ -68,8 +71,8 @@ GEM
erubis (>= 2.6.6) erubis (>= 2.6.6)
binding_of_caller (0.7.2) binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1) debug_inspector (>= 0.0.1)
browser (0.3.2) browser (0.5.0)
builder (3.1.4) builder (3.2.2)
capybara (2.1.0) capybara (2.1.0)
mime-types (>= 1.16) mime-types (>= 1.16)
nokogiri (>= 1.3.3) nokogiri (>= 1.3.3)
@@ -85,21 +88,21 @@ GEM
enumerate_it enumerate_it
libxml-ruby (~> 2.6.0) libxml-ruby (~> 2.6.0)
rails (~> 4.0) rails (~> 4.0)
catarse_monkeymail (0.1.2) catarse_monkeymail (0.1.3)
mailchimp-api (~> 2.0.4) mailchimp-api (~> 2.0.4)
rails (~> 4.0.3) rails (>= 4.0.3)
catarse_paypal_express (2.2.3) catarse_paypal_express (2.2.3)
activemerchant (>= 1.34.0) activemerchant (>= 1.34.0)
rails (~> 4.0) rails (~> 4.0)
slim-rails slim-rails
catarse_settings_db (0.0.1) catarse_settings_db (0.0.2)
rails (~> 4.0.3) rails (~> 4.1.1)
celluloid (0.15.2) celluloid (0.15.2)
timers (~> 1.1.0) timers (~> 1.1.0)
chartkick (1.2.1) chartkick (1.2.4)
childprocess (0.4.0) childprocess (0.5.3)
ffi (~> 1.0, >= 1.0.11) ffi (~> 1.0, >= 1.0.11)
chunky_png (1.2.9) chunky_png (1.3.1)
cliver (0.3.2) cliver (0.3.2)
coderay (1.1.0) coderay (1.1.0)
coffee-rails (4.0.1) coffee-rails (4.0.1)
@@ -108,16 +111,17 @@ GEM
coffee-script (2.2.0) coffee-script (2.2.0)
coffee-script-source coffee-script-source
execjs execjs
coffee-script-source (1.6.3) coffee-script-source (1.7.0)
compass (0.12.2) compass (0.12.6)
chunky_png (~> 1.2) chunky_png (~> 1.2)
fssm (>= 0.2.7) fssm (>= 0.2.7)
sass (~> 3.1) sass (~> 3.2.19)
compass-960-plugin (0.10.4) compass-960-plugin (0.10.4)
compass (>= 0.10.0) compass (>= 0.10.0)
compass-rails (1.1.3) compass-rails (1.1.7)
compass (>= 0.12.2) compass (>= 0.12.2)
connection_pool (1.2.0) sprockets (<= 2.11.0)
connection_pool (2.0.0)
coveralls (0.7.0) coveralls (0.7.0)
multi_json (~> 1.3) multi_json (~> 1.3)
rest-client rest-client
@@ -126,7 +130,7 @@ GEM
thor thor
crack (0.1.8) crack (0.1.8)
curb (0.8.5) curb (0.8.5)
database_cleaner (1.2.0) database_cleaner (1.3.0)
debug_inspector (0.0.2) debug_inspector (0.0.2)
devise (3.2.4) devise (3.2.4)
bcrypt (~> 3.0) bcrypt (~> 3.0)
@@ -135,8 +139,10 @@ GEM
thread_safe (~> 0.1) thread_safe (~> 0.1)
warden (~> 1.2.3) warden (~> 1.2.3)
diff-lcs (1.2.5) diff-lcs (1.2.5)
docile (1.1.1) docile (1.1.3)
dotenv (0.9.0) dotenv (0.11.1)
dotenv-deployment (~> 0.0.2)
dotenv-deployment (0.0.2)
draper (1.3.0) draper (1.3.0)
actionpack (>= 3.0) actionpack (>= 3.0)
activemodel (>= 3.0) activemodel (>= 3.0)
@@ -145,80 +151,89 @@ GEM
enumerate_it (1.2.1) enumerate_it (1.2.1)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
erubis (2.7.0) erubis (2.7.0)
excon (0.31.0) excon (0.36.0)
execjs (2.0.2) execjs (2.1.0)
ezcrypto (0.7.2) ezcrypto (0.7.2)
factory_girl (4.3.0) factory_girl (4.4.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
factory_girl_rails (4.3.0) factory_girl_rails (4.4.1)
factory_girl (~> 4.3.0) factory_girl (~> 4.4.0)
railties (>= 3.0.0) railties (>= 3.0.0)
fakeweb (1.3.0) fakeweb (1.3.0)
faraday (0.8.8) faraday (0.9.0)
multipart-post (~> 1.2.0) multipart-post (>= 1.2, < 3)
feedzirra (0.7.0) feedjira (1.3.0)
curb (~> 0.8.1) curb (~> 0.8.1)
loofah (~> 1.2.1) loofah (~> 2.0.0)
sax-machine (~> 0.2.1) sax-machine (~> 0.2.1)
ffi (1.9.3) ffi (1.9.3)
fog (1.19.0) fog (1.22.1)
fog-brightbox
fog-core (~> 1.22)
fog-json
ipaddress (~> 0.5)
nokogiri (~> 1.5, >= 1.5.11)
fog-brightbox (0.0.2)
fog-core
fog-json
fog-core (1.22.0)
builder builder
excon (~> 0.31.0) excon (~> 0.33)
formatador (~> 0.2.0) formatador (~> 0.2)
mime-types mime-types
multi_json (~> 1.0)
net-scp (~> 1.1) net-scp (~> 1.1)
net-ssh (>= 2.1.3) net-ssh (>= 2.1.3)
nokogiri (~> 1.5) fog-json (1.0.0)
ruby-hmac multi_json (~> 1.0)
foreman (0.63.0) foreman (0.71.0)
dotenv (>= 0.7) dotenv (~> 0.11.1)
thor (>= 0.13.6) thor (~> 0.19.1)
formatador (0.2.4) formatador (0.2.5)
formtastic (2.2.1) formtastic (2.2.1)
actionpack (>= 3.0) actionpack (>= 3.0)
fssm (0.2.10) fssm (0.2.10)
has_scope (0.6.0.rc) has_scope (0.6.0.rc)
actionpack (>= 3.2, < 5) actionpack (>= 3.2, < 5)
activesupport (>= 3.2, < 5) activesupport (>= 3.2, < 5)
hashie (2.0.5) hashie (2.1.1)
heroku-deflater (0.5.3) heroku-deflater (0.5.3)
rack (>= 1.4.5) rack (>= 1.4.5)
high_voltage (2.1.0) high_voltage (2.1.0)
hike (1.2.3) hike (1.2.3)
htmlentities (4.3.1) htmlentities (4.3.2)
http_accept_language (2.0.0) http_accept_language (2.0.1)
httparty (0.6.1) httparty (0.6.1)
crack (= 0.1.8) crack (= 0.1.8)
httpauth (0.2.0) httpauth (0.2.1)
httpclient (2.3.4.1) httpclient (2.3.4.1)
i18n (0.6.9) i18n (0.6.9)
inherited_resources (1.4.1) inherited_resources (1.4.1)
has_scope (~> 0.6.0.rc) has_scope (~> 0.6.0.rc)
responders (~> 1.0.0.rc) responders (~> 1.0.0.rc)
ipaddress (0.8.0)
jasmine-core (2.0.0) jasmine-core (2.0.0)
jasmine-rails (0.6.0) jasmine-rails (0.9.0)
jasmine-core (>= 1.3, < 3.0) jasmine-core (>= 1.3, < 3.0)
phantomjs phantomjs
rails (>= 3.1.0) railties (>= 3.1.0)
sprockets-rails sprockets-rails
jquery-rails (3.0.4) jquery-rails (3.1.0)
railties (>= 3.0, < 5.0) railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0) thor (>= 0.14, < 2.0)
json (1.8.1) json (1.8.1)
jwt (0.1.8) jwt (0.1.13)
multi_json (>= 1.5) multi_json (>= 1.5)
kaminari (0.15.0) kaminari (0.15.1)
actionpack (>= 3.0.0) actionpack (>= 3.0.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
kgio (2.8.1) kgio (2.9.2)
launchy (2.4.2) launchy (2.4.2)
addressable (~> 2.3) addressable (~> 2.3)
letter_opener (1.2.0) letter_opener (1.2.0)
launchy (~> 2.2) launchy (~> 2.2)
libxml-ruby (2.6.0) libxml-ruby (2.6.0)
loofah (1.2.1) loofah (2.0.0)
nokogiri (>= 1.4.4) nokogiri (>= 1.5.9)
mail (2.5.4) mail (2.5.4)
mime-types (~> 1.16) mime-types (~> 1.16)
treetop (~> 1.4.8) treetop (~> 1.4.8)
@@ -227,21 +242,19 @@ GEM
json (>= 1.7.7) json (>= 1.7.7)
method_source (0.8.2) method_source (0.8.2)
mime-types (1.25.1) mime-types (1.25.1)
mini_portile (0.5.2) mini_portile (0.6.0)
minitest (4.7.5) minitest (5.3.4)
mixpanel-ruby (1.4.0) mixpanel-ruby (1.4.0)
monetize (0.1.4) money (6.1.1)
money (6.0.1)
i18n (~> 0.6.4) i18n (~> 0.6.4)
monetize (~> 0.1.3)
multi_json (1.10.1) multi_json (1.10.1)
multipart-post (1.2.0) multipart-post (2.0.0)
net-scp (1.1.2) net-scp (1.2.1)
net-ssh (>= 2.6.5) net-ssh (>= 2.6.5)
net-ssh (2.7.0) net-ssh (2.9.1)
newrelic_rpm (3.6.5.130) newrelic_rpm (3.6.5.130)
nokogiri (1.6.1) nokogiri (1.6.2.1)
mini_portile (~> 0.5.0) mini_portile (= 0.6.0)
oauth (0.4.7) oauth (0.4.7)
oauth2 (0.8.1) oauth2 (0.8.1)
faraday (~> 0.8) faraday (~> 0.8)
@@ -249,9 +262,9 @@ GEM
jwt (~> 0.1.4) jwt (~> 0.1.4)
multi_json (~> 1.0) multi_json (~> 1.0)
rack (~> 1.2) rack (~> 1.2)
omniauth (1.1.4) omniauth (1.2.1)
hashie (>= 1.2, < 3) hashie (>= 1.2, < 3)
rack rack (~> 1.0)
omniauth-facebook (1.4.0) omniauth-facebook (1.4.0)
omniauth-oauth2 (~> 1.0.2) omniauth-oauth2 (~> 1.0.2)
omniauth-oauth (1.0.1) omniauth-oauth (1.0.1)
@@ -265,12 +278,12 @@ GEM
omniauth-oauth (~> 1.0) omniauth-oauth (~> 1.0)
orm_adapter (0.5.0) orm_adapter (0.5.0)
pg (0.17.1) pg (0.17.1)
pg_search (0.7.2) pg_search (0.7.4)
activerecord (>= 3.1) activerecord (>= 3.1)
activesupport (>= 3.1) activesupport (>= 3.1)
arel arel
phantomjs (1.9.7.0) phantomjs (1.9.7.1)
poltergeist (1.5.0) poltergeist (1.5.1)
capybara (~> 2.1) capybara (~> 2.1)
cliver (~> 0.3.1) cliver (~> 0.3.1)
multi_json (~> 1.0) multi_json (~> 1.0)
@@ -281,27 +294,29 @@ GEM
pg pg
rails (~> 4.0) rails (~> 4.0)
responders responders
protected_attributes (1.0.5) protected_attributes (1.0.7)
activemodel (>= 4.0.1, < 5.0) activemodel (>= 4.0.1, < 5.0)
pry (0.9.12.4) pry (0.9.12.6)
coderay (~> 1.0) coderay (~> 1.0)
method_source (~> 0.8) method_source (~> 0.8)
slop (~> 3.4) slop (~> 3.4)
pundit (0.2.1) pundit (0.2.3)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
rack (1.5.2) rack (1.5.2)
rack-protection (1.5.1) rack-protection (1.5.3)
rack rack
rack-test (0.6.2) rack-test (0.6.2)
rack (>= 1.0) rack (>= 1.0)
rails (4.0.3) rails (4.1.1)
actionmailer (= 4.0.3) actionmailer (= 4.1.1)
actionpack (= 4.0.3) actionpack (= 4.1.1)
activerecord (= 4.0.3) actionview (= 4.1.1)
activesupport (= 4.0.3) activemodel (= 4.1.1)
activerecord (= 4.1.1)
activesupport (= 4.1.1)
bundler (>= 1.3.0, < 2.0) bundler (>= 1.3.0, < 2.0)
railties (= 4.0.3) railties (= 4.1.1)
sprockets-rails (~> 2.0.0) sprockets-rails (~> 2.0)
rails-observers (0.1.2) rails-observers (0.1.2)
activemodel (~> 4.0) activemodel (~> 4.0)
rails_12factor (0.0.2) rails_12factor (0.0.2)
@@ -309,17 +324,17 @@ GEM
rails_stdout_logging rails_stdout_logging
rails_serve_static_assets (0.0.2) rails_serve_static_assets (0.0.2)
rails_stdout_logging (0.0.3) rails_stdout_logging (0.0.3)
railties (4.0.3) railties (4.1.1)
actionpack (= 4.0.3) actionpack (= 4.1.1)
activesupport (= 4.0.3) activesupport (= 4.1.1)
rake (>= 0.8.7) rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0) thor (>= 0.18.1, < 2.0)
raindrops (0.12.0) raindrops (0.13.0)
rake (10.3.2) rake (10.3.2)
ranked-model (0.3) ranked-model (0.4.0)
activerecord (>= 3.1.12) activerecord (>= 3.1.12)
redcarpet (3.0.0) redcarpet (3.1.2)
redis (3.0.6) redis (3.0.7)
redis-namespace (1.4.1) redis-namespace (1.4.1)
redis (~> 3.0.4) redis (~> 3.0.4)
request_store (1.0.5) request_store (1.0.5)
@@ -331,11 +346,11 @@ GEM
rmagick (2.13.2) rmagick (2.13.2)
routing-filter (0.4.0.pre) routing-filter (0.4.0.pre)
actionpack actionpack
rspec-core (2.14.7) rspec-core (2.14.8)
rspec-expectations (2.14.4) rspec-expectations (2.14.5)
diff-lcs (>= 1.1.3, < 2.0) diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.4) rspec-mocks (2.14.6)
rspec-rails (2.14.1) rspec-rails (2.14.2)
actionpack (>= 3.0) actionpack (>= 3.0)
activemodel (>= 3.0) activemodel (>= 3.0)
activesupport (>= 3.0) activesupport (>= 3.0)
@@ -343,31 +358,31 @@ GEM
rspec-core (~> 2.14.0) rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0) rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0) rspec-mocks (~> 2.14.0)
ruby-hmac (0.4.0)
ruby-ole (1.2.11.7) ruby-ole (1.2.11.7)
rubyzip (1.1.0) rubyzip (1.1.4)
sass (3.2.13) sass (3.2.19)
sass-rails (4.0.1) sass-rails (4.0.3)
railties (>= 4.0.0, < 5.0) railties (>= 4.0.0, < 5.0)
sass (>= 3.1.10) sass (~> 3.2.0)
sprockets-rails (~> 2.0.0) sprockets (~> 2.8, <= 2.11.0)
sprockets-rails (~> 2.0)
sax-machine (0.2.1) sax-machine (0.2.1)
nokogiri (~> 1.6.0) nokogiri (~> 1.6.0)
schema_associations (1.2.0) schema_associations (1.2.0)
schema_plus (>= 1.2.0) schema_plus (>= 1.2.0)
schema_plus (1.3.2) schema_plus (1.5.1)
rails (>= 3.2) activerecord (>= 3.2)
valuable valuable
selenium-webdriver (2.39.0) selenium-webdriver (2.42.0)
childprocess (>= 0.2.5) childprocess (>= 0.5.0)
multi_json (~> 1.0) multi_json (~> 1.0)
rubyzip (~> 1.0) rubyzip (~> 1.0)
websocket (~> 1.0.4) websocket (~> 1.0.4)
shoulda (3.5.0) shoulda (3.5.0)
shoulda-context (~> 1.0, >= 1.0.1) shoulda-context (~> 1.0, >= 1.0.1)
shoulda-matchers (>= 1.4.1, < 3.0) shoulda-matchers (>= 1.4.1, < 3.0)
shoulda-context (1.1.6) shoulda-context (1.2.1)
shoulda-matchers (2.4.0) shoulda-matchers (2.6.1)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
sidekiq (2.15.2) sidekiq (2.15.2)
celluloid (>= 0.15.2) celluloid (>= 0.15.2)
@@ -375,72 +390,73 @@ GEM
json json
redis (>= 3.0.4) redis (>= 3.0.4)
redis-namespace (>= 1.3.1) redis-namespace (>= 1.3.1)
simple_form (3.0.1) simple_form (3.0.2)
actionpack (>= 4.0.0, < 4.1) actionpack (~> 4.0)
activemodel (>= 4.0.0, < 4.1) activemodel (~> 4.0)
simplecov (0.8.2) simplecov (0.8.2)
docile (~> 1.1.0) docile (~> 1.1.0)
multi_json multi_json
simplecov-html (~> 0.8.0) simplecov-html (~> 0.8.0)
simplecov-html (0.8.0) simplecov-html (0.8.0)
sinatra (1.4.4) sinatra (1.4.5)
rack (~> 1.4) rack (~> 1.4)
rack-protection (~> 1.4) rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4) tilt (~> 1.3, >= 1.3.4)
slim (2.0.2) slim (2.0.2)
temple (~> 0.6.6) temple (~> 0.6.6)
tilt (>= 1.3.3, < 2.1) tilt (>= 1.3.3, < 2.1)
slim-rails (2.1.2) slim-rails (2.1.4)
actionpack (>= 3.0, < 4.1) actionpack (>= 3.0, < 4.2)
activesupport (>= 3.0, < 4.1) activesupport (>= 3.0, < 4.2)
railties (>= 3.0, < 4.1) railties (>= 3.0, < 4.2)
slim (~> 2.0) slim (~> 2.0)
slop (3.4.7) slop (3.5.0)
spectator-validates_email (0.2.0) spectator-validates_email (0.2.0)
activemodel (>= 3.0.0) activemodel (>= 3.0.0)
spreadsheet (0.9.6) spreadsheet (0.9.7)
ruby-ole (>= 1.0) ruby-ole (>= 1.0)
sprockets (2.10.1) sprockets (2.10.1)
hike (~> 1.2) hike (~> 1.2)
multi_json (~> 1.0) multi_json (~> 1.0)
rack (~> 1.0) rack (~> 1.0)
tilt (~> 1.1, != 1.3.0) tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.0.1) sprockets-rails (2.1.3)
actionpack (>= 3.0) actionpack (>= 3.0)
activesupport (>= 3.0) activesupport (>= 3.0)
sprockets (~> 2.8) sprockets (~> 2.8)
state_machine (1.2.0) state_machine (1.2.0)
tag_helper (0.0.3) tag_helper (0.0.3)
temple (0.6.7) temple (0.6.7)
term-ansicolor (1.2.2) term-ansicolor (1.3.0)
tins (~> 0.8) tins (~> 1.0)
thor (0.19.1) thor (0.19.1)
thread_safe (0.3.4) thread_safe (0.3.4)
tilt (1.4.1) tilt (1.4.1)
timers (1.1.0) timers (1.1.0)
tins (0.13.1) tins (1.3.0)
to_xls (1.5.2) to_xls (1.5.3)
spreadsheet spreadsheet
treetop (1.4.15) treetop (1.4.15)
polyglot polyglot
polyglot (>= 0.3.1) polyglot (>= 0.3.1)
tzinfo (0.3.39) tzinfo (1.2.1)
uglifier (2.4.0) thread_safe (~> 0.1)
uglifier (2.5.0)
execjs (>= 0.3.0) execjs (>= 0.3.0)
json (>= 1.8.0) json (>= 1.8.0)
unicorn (4.7.0) unicorn (4.8.3)
kgio (~> 2.6) kgio (~> 2.6)
rack rack
raindrops (~> 0.7) raindrops (~> 0.7)
valuable (0.9.8) valuable (0.9.8)
video_info (2.0.2) video_info (2.3.1)
addressable addressable
htmlentities htmlentities
multi_json multi_json
warden (1.2.3) warden (1.2.3)
rack (>= 1.0) rack (>= 1.0)
websocket (1.0.7) websocket (1.0.7)
websocket-driver (0.3.2) websocket-driver (0.3.3)
weekdays (1.0.2) weekdays (1.0.2)
xpath (2.0.0) xpath (2.0.0)
nokogiri (~> 1.3) nokogiri (~> 1.3)
@@ -472,7 +488,7 @@ DEPENDENCIES
ezcrypto ezcrypto
factory_girl_rails factory_girl_rails
fakeweb fakeweb
feedzirra feedjira
fog (>= 1.3.1) fog (>= 1.3.1)
foreman foreman
formtastic (~> 2.2.1) formtastic (~> 2.2.1)
@@ -501,7 +517,7 @@ DEPENDENCIES
protected_attributes (~> 1.0.5) protected_attributes (~> 1.0.5)
pry pry
pundit pundit
rails (= 4.0.3) rails (~> 4.1.1)
rails-observers (~> 0.1.2) rails-observers (~> 0.1.2)
rails_12factor rails_12factor
ranked-model ranked-model
+1 -3
Ver Arquivo
@@ -15,8 +15,6 @@ div.project
height: 110px height: 110px
overflow: hidden overflow: hidden
position: absolute position: absolute
&.pt
background: image-url("redesign/success_pt110x110.png") left top no-repeat
.box .box
.project_content .project_content
padding: 5px padding: 5px
@@ -127,7 +125,7 @@ div.project
color: black color: black
+opacity(0.5) +opacity(0.5)
+border-radius(3px) +border-radius(3px)
background: image-url("redesign/follow_project_start12x11.png") 4px 4px no-repeat $minimal_gryn background: $minimal_gryn
text-transform: uppercase text-transform: uppercase
&:hover &:hover
+box-shadow($grafiti 0 0 6px) +box-shadow($grafiti 0 0 6px)
@@ -612,6 +612,12 @@
width: 92% width: 92%
+border-radius (0) +border-radius (0)
.bootstrap-form .bootstrap-form
div
margin-bottom: 20px
border-bottom: dotted 1px #cccccc
padding: 25px 0
display: inline-block
width: 100%
.inputs .inputs
li.input li.input
margin-bottom: 20px margin-bottom: 20px
@@ -631,7 +637,7 @@
text-align: center text-align: center
width: 160px width: 160px
margin-right: 10px margin-right: 10px
p.inline-hints span.hint
color: #777777 color: #777777
float: right float: right
margin-right: 20px margin-right: 20px
+1 -1
Ver Arquivo
@@ -9,7 +9,7 @@ class Channel < ActiveRecord::Base
validates_uniqueness_of :permalink validates_uniqueness_of :permalink
has_and_belongs_to_many :projects, -> { order_for_search } has_and_belongs_to_many :projects, -> { order_for_search }
has_and_belongs_to_many :subscribers, class_name: 'User', join_table: :channels_subscribers has_many :subscribers, class_name: 'User', through: :channels_subscribers, source: :user
has_many :subscriber_reports has_many :subscriber_reports
catarse_auto_html_for field: :how_it_works, video_width: 560, video_height: 340 catarse_auto_html_for field: :how_it_works, video_width: 560, video_height: 340
+1 -1
Ver Arquivo
@@ -14,7 +14,7 @@ module Shared::VideoHandler
def display_video_embed_url def display_video_embed_url
if self.video_embed_url if self.video_embed_url
"//#{self.video_embed_url}?title=0&byline=0&portrait=0&autoplay=0" "#{self.video_embed_url}?title=0&byline=0&portrait=0&autoplay=0"
end end
end end
+1 -1
Ver Arquivo
@@ -133,7 +133,7 @@ class Project < ActiveRecord::Base
end end
def self.order_by(sort_field) def self.order_by(sort_field)
return scoped unless sort_field =~ /^\w+(\.\w+)?\s(desc|asc)$/i return self.all unless sort_field =~ /^\w+(\.\w+)?\s(desc|asc)$/i
order(sort_field) order(sort_field)
end end
+25 -26
Ver Arquivo
@@ -3,30 +3,29 @@
p p
= "Para saber tudo sobre como estruturar o seu projeto, baixe o #{link_to 'Guia Completo', "#{CatarseSettings[:base_url]}/guia_realizadores.pdf", target: '_blank'}".html_safe = "Para saber tudo sobre como estruturar o seu projeto, baixe o #{link_to 'Guia Completo', "#{CatarseSettings[:base_url]}/guia_realizadores.pdf", target: '_blank'}".html_safe
.bootstrap-form .bootstrap-form
= semantic_form_for @project do |form| = simple_form_for @project do |form|
= form.inputs do - if current_user.admin
- if current_user.admin = form.input :user_id
= form.input :user_id = form.input :permalink, as: :string
= form.input :permalink, as: :string - if policy(@project).permitted_for?(:name, :update)
- if policy(@project).permitted_for?(:name, :update) = form.input :name, as: :string, required: false
= form.input :name, as: :string, required: false - if policy(@project).permitted_for?(:headline, :update)
- if policy(@project).permitted_for?(:headline, :update) = form.input :headline, as: :string, required: false
= form.input :headline, as: :string, required: false - if policy(@project).permitted_for?(:category_id, :update)
- if policy(@project).permitted_for?(:category_id, :update) = form.input :category, as: :select, required: false
= form.input :category, as: :select, required: false - if policy(@project).permitted_for?(:video_url, :update)
- if policy(@project).permitted_for?(:video_url, :update) = form.input :video_url, as: :string, hint: t('formtastic.hints.project.video_url_edit'),required: false
= form.input :video_url, as: :string, hint: t('formtastic.hints.project.video_url_edit'),required: false - if policy(@project).permitted_for?(:uploaded_image, :update)
- if policy(@project).permitted_for?(:uploaded_image, :update) = form.input :uploaded_image, as: :file, required: false,
= form.input :uploaded_image, as: :file, required: false, hint: (@project.uploaded_image.present? ? image_tag(@project.uploaded_image.project_thumb.url, size: '220x172') : t('formtastic.hints.project.uploaded_image') )
hint: (@project.uploaded_image.present? ? image_tag(@project.uploaded_image.project_thumb.url, size: '220x172') : t('formtastic.hints.project.uploaded_image') ) - if policy(@project).permitted_for?(:online_days, :update)
- if policy(@project).permitted_for?(:online_days, :update) = form.input :online_days, as: :numeric, required: false
= form.input :online_days, as: :number, required: false - if policy(@project).permitted_for?(:goal, :update)
- if policy(@project).permitted_for?(:goal, :update) = form.input :goal, as: :numeric, required: false, hint: t('formtastic.hints.project.goal').html_safe
= form.input :goal, as: :number, required: false, hint: t('formtastic.hints.project.goal').html_safe - if policy(@project).permitted_for?(:about, :update)
- if policy(@project).permitted_for?(:about, :update) = form.input :about, required: false
= form.input :about, required: false = render 'formatting_tips'
= render 'formatting_tips'
.clearfix .clearfix
.form-actions.bootstrap-twitter .form-actions.bootstrap-twitter
= form.submit class: 'btn' = form.submit class: 'btn'
+17
Ver Arquivo
@@ -0,0 +1,17 @@
# Fix issue with render_to_string in Rails 4.1.1
# Done according to https://github.com/rails/rails/issues/14125
module AbstractController
module Rendering
# Normalize args and options.
# :api: private
def _normalize_render(*args, &block)
options = _normalize_args(*args, &block)
# TODO: remove defined? when we restore AP <=> AV dependency
if defined?(request) && request && request.variant.present?
options[:variant] = request.variant
end
_normalize_options(options)
options
end
end
end
+14
Ver Arquivo
@@ -0,0 +1,14 @@
# Rails 4.1.0 and StateMachine don't play nice
# https://github.com/pluginaweek/state_machine/issues/295
require 'state_machine/version'
unless StateMachine::VERSION == '1.2.0'
# If you see this message, please test removing this file
# If it's still required, please bump up the version above
Rails.logger.warn "Please remove me, StateMachine version has changed"
end
module StateMachine::Integrations::ActiveModel
public :around_validation
end
@@ -0,0 +1,7 @@
class FixVideEmbedUrls < ActiveRecord::Migration
def change
execute "
UPDATE projects SET video_embed_url = regexp_replace(video_embed_url, '^(\\w)', '//\\1');
"
end
end
+1 -1
Ver Arquivo
@@ -3,7 +3,7 @@ class Blog
def fetch_last_posts def fetch_last_posts
Rails.cache.fetch('blog_posts', expires_in: 10.minutes) do Rails.cache.fetch('blog_posts', expires_in: 10.minutes) do
begin begin
feed = Feedzirra::Feed.fetch_and_parse("#{CatarseSettings[:blog_url]}?feed=rss2") feed = Feedjira::Feed.fetch_and_parse("#{CatarseSettings[:blog_url]}?feed=rss2")
feed.entries feed.entries
rescue rescue
[] []
@@ -24,7 +24,7 @@ describe Project::VideoHandler do
end end
it "should store the new embed url" do it "should store the new embed url" do
project.video_embed_url.should == 'player.vimeo.com/video/49584778' project.video_embed_url.should == '//player.vimeo.com/video/49584778'
end end
end end
end end