suite
This commit is contained in:
parent
41de696a45
commit
c3e8a4e4ff
9
Gemfile
9
Gemfile
@ -1,7 +1,7 @@
|
|||||||
source 'http://rubygems.org'
|
source 'http://rubygems.org'
|
||||||
|
|
||||||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
||||||
gem 'rails', '4.0.9'
|
gem 'rails', '4.2.10'
|
||||||
|
|
||||||
|
|
||||||
gem 'bcrypt-ruby', '~> 3.1.2'
|
gem 'bcrypt-ruby', '~> 3.1.2'
|
||||||
@ -43,7 +43,7 @@ gem 'formtastic-bootstrap'
|
|||||||
|
|
||||||
|
|
||||||
gem 'kaminari'
|
gem 'kaminari'
|
||||||
gem 'bootstrap3-kaminari-views'
|
#gem 'bootstrap3-kaminari-views'
|
||||||
|
|
||||||
|
|
||||||
gem 'carrierwave'
|
gem 'carrierwave'
|
||||||
@ -54,11 +54,6 @@ group :doc do
|
|||||||
gem 'sdoc', require: false
|
gem 'sdoc', require: false
|
||||||
end
|
end
|
||||||
|
|
||||||
gem "capistrano", group: :development
|
|
||||||
gem "rvm-capistrano", group: :development
|
|
||||||
gem 'net-ssh', '~>2.7.0'
|
|
||||||
# Use ActiveModel has_secure_password
|
|
||||||
# gem 'bcrypt-ruby', '~> 3.0.0'
|
|
||||||
|
|
||||||
# Use unicorn as the app server
|
# Use unicorn as the app server
|
||||||
gem "unicorn"
|
gem "unicorn"
|
||||||
|
163
Gemfile.lock
163
Gemfile.lock
@ -1,46 +1,47 @@
|
|||||||
GEM
|
GEM
|
||||||
remote: http://rubygems.org/
|
remote: http://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actionmailer (4.0.9)
|
actionmailer (4.2.10)
|
||||||
actionpack (= 4.0.9)
|
actionpack (= 4.2.10)
|
||||||
mail (~> 2.5.4)
|
actionview (= 4.2.10)
|
||||||
actionpack (4.0.9)
|
activejob (= 4.2.10)
|
||||||
activesupport (= 4.0.9)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
builder (~> 3.1.0)
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||||
erubis (~> 2.7.0)
|
actionpack (4.2.10)
|
||||||
rack (~> 1.5.2)
|
actionview (= 4.2.10)
|
||||||
|
activesupport (= 4.2.10)
|
||||||
|
rack (~> 1.6)
|
||||||
rack-test (~> 0.6.2)
|
rack-test (~> 0.6.2)
|
||||||
activemodel (4.0.9)
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||||
activesupport (= 4.0.9)
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||||
builder (~> 3.1.0)
|
actionview (4.2.10)
|
||||||
activerecord (4.0.9)
|
activesupport (= 4.2.10)
|
||||||
activemodel (= 4.0.9)
|
builder (~> 3.1)
|
||||||
activerecord-deprecated_finders (~> 1.0.2)
|
erubis (~> 2.7.0)
|
||||||
activesupport (= 4.0.9)
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
||||||
arel (~> 4.0.0)
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
||||||
activerecord-deprecated_finders (1.0.4)
|
activejob (4.2.10)
|
||||||
activesupport (4.0.9)
|
activesupport (= 4.2.10)
|
||||||
i18n (~> 0.6, >= 0.6.9)
|
globalid (>= 0.3.0)
|
||||||
minitest (~> 4.2)
|
activemodel (4.2.10)
|
||||||
multi_json (~> 1.3)
|
activesupport (= 4.2.10)
|
||||||
thread_safe (~> 0.1)
|
builder (~> 3.1)
|
||||||
tzinfo (~> 0.3.37)
|
activerecord (4.2.10)
|
||||||
|
activemodel (= 4.2.10)
|
||||||
|
activesupport (= 4.2.10)
|
||||||
|
arel (~> 6.0)
|
||||||
|
activesupport (4.2.10)
|
||||||
|
i18n (~> 0.7)
|
||||||
|
minitest (~> 5.1)
|
||||||
|
thread_safe (~> 0.3, >= 0.3.4)
|
||||||
|
tzinfo (~> 1.1)
|
||||||
acts_as_tree (2.9.1)
|
acts_as_tree (2.9.1)
|
||||||
activerecord (>= 3.0.0)
|
activerecord (>= 3.0.0)
|
||||||
arel (4.0.2)
|
arel (6.0.4)
|
||||||
bcrypt (3.1.16)
|
bcrypt (3.1.16)
|
||||||
bcrypt-ruby (3.1.5)
|
bcrypt-ruby (3.1.5)
|
||||||
bcrypt (>= 3.1.3)
|
bcrypt (>= 3.1.3)
|
||||||
bootstrap3-kaminari-views (0.0.1)
|
builder (3.2.4)
|
||||||
kaminari
|
|
||||||
rails (~> 4.0.0)
|
|
||||||
builder (3.1.4)
|
|
||||||
capistrano (2.15.9)
|
|
||||||
highline
|
|
||||||
net-scp (>= 1.0.0)
|
|
||||||
net-sftp (>= 2.0.0)
|
|
||||||
net-ssh (>= 2.0.14)
|
|
||||||
net-ssh-gateway (>= 1.1.0)
|
|
||||||
carrierwave (1.3.2)
|
carrierwave (1.3.2)
|
||||||
activemodel (>= 4.0.0)
|
activemodel (>= 4.0.0)
|
||||||
activesupport (>= 4.0.0)
|
activesupport (>= 4.0.0)
|
||||||
@ -55,12 +56,15 @@ GEM
|
|||||||
coffee-script-source (1.12.2)
|
coffee-script-source (1.12.2)
|
||||||
commonjs (0.2.7)
|
commonjs (0.2.7)
|
||||||
concurrent-ruby (1.1.8)
|
concurrent-ruby (1.1.8)
|
||||||
|
crass (1.0.6)
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
execjs (2.8.1)
|
execjs (2.8.1)
|
||||||
formtastic (3.1.5)
|
formtastic (3.1.5)
|
||||||
actionpack (>= 3.2.13)
|
actionpack (>= 3.2.13)
|
||||||
formtastic-bootstrap (3.1.1)
|
formtastic-bootstrap (3.1.1)
|
||||||
formtastic (>= 3.0)
|
formtastic (>= 3.0)
|
||||||
|
globalid (0.4.2)
|
||||||
|
activesupport (>= 4.2.0)
|
||||||
haml (5.2.1)
|
haml (5.2.1)
|
||||||
temple (>= 0.8.0)
|
temple (>= 0.8.0)
|
||||||
tilt
|
tilt
|
||||||
@ -70,7 +74,6 @@ GEM
|
|||||||
haml (>= 4.0.6, < 6.0)
|
haml (>= 4.0.6, < 6.0)
|
||||||
html2haml (>= 1.0.1)
|
html2haml (>= 1.0.1)
|
||||||
railties (>= 4.0.1)
|
railties (>= 4.0.1)
|
||||||
highline (2.0.3)
|
|
||||||
hike (1.2.3)
|
hike (1.2.3)
|
||||||
html2haml (2.2.0)
|
html2haml (2.2.0)
|
||||||
erubis (~> 2.7.0)
|
erubis (~> 2.7.0)
|
||||||
@ -81,12 +84,22 @@ GEM
|
|||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
jbuilder (1.0.2)
|
jbuilder (1.0.2)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
jquery-rails (3.1.5)
|
jquery-rails (4.4.0)
|
||||||
railties (>= 3.0, < 5.0)
|
rails-dom-testing (>= 1, < 3)
|
||||||
|
railties (>= 4.2.0)
|
||||||
thor (>= 0.14, < 2.0)
|
thor (>= 0.14, < 2.0)
|
||||||
kaminari (0.17.0)
|
kaminari (1.2.1)
|
||||||
actionpack (>= 3.0.0)
|
activesupport (>= 4.1.0)
|
||||||
activesupport (>= 3.0.0)
|
kaminari-actionview (= 1.2.1)
|
||||||
|
kaminari-activerecord (= 1.2.1)
|
||||||
|
kaminari-core (= 1.2.1)
|
||||||
|
kaminari-actionview (1.2.1)
|
||||||
|
actionview
|
||||||
|
kaminari-core (= 1.2.1)
|
||||||
|
kaminari-activerecord (1.2.1)
|
||||||
|
activerecord
|
||||||
|
kaminari-core (= 1.2.1)
|
||||||
|
kaminari-core (1.2.1)
|
||||||
kgio (2.11.3)
|
kgio (2.11.3)
|
||||||
less (2.6.0)
|
less (2.6.0)
|
||||||
commonjs (~> 0.2.7)
|
commonjs (~> 0.2.7)
|
||||||
@ -95,38 +108,46 @@ GEM
|
|||||||
less (~> 2.6.0)
|
less (~> 2.6.0)
|
||||||
sprockets (>= 2)
|
sprockets (>= 2)
|
||||||
libv8 (3.16.14.19)
|
libv8 (3.16.14.19)
|
||||||
mail (2.5.5)
|
loofah (2.9.1)
|
||||||
mime-types (~> 1.16)
|
crass (~> 1.0.2)
|
||||||
treetop (~> 1.4.8)
|
nokogiri (>= 1.5.9)
|
||||||
mime-types (1.25.1)
|
mail (2.7.1)
|
||||||
|
mini_mime (>= 0.1.1)
|
||||||
|
mime-types (3.3.1)
|
||||||
|
mime-types-data (~> 3.2015)
|
||||||
|
mime-types-data (3.2021.0225)
|
||||||
|
mini_mime (1.1.0)
|
||||||
mini_portile2 (2.4.0)
|
mini_portile2 (2.4.0)
|
||||||
minitest (4.7.5)
|
minitest (5.14.4)
|
||||||
multi_json (1.15.0)
|
multi_json (1.15.0)
|
||||||
mysql2 (0.4.10)
|
mysql2 (0.4.10)
|
||||||
net-scp (3.0.0)
|
|
||||||
net-ssh (>= 2.6.5, < 7.0.0)
|
|
||||||
net-sftp (2.1.2)
|
|
||||||
net-ssh (>= 2.6.5)
|
|
||||||
net-ssh (2.7.0)
|
|
||||||
net-ssh-gateway (1.3.0)
|
|
||||||
net-ssh (>= 2.6.5)
|
|
||||||
nokogiri (1.10.10)
|
nokogiri (1.10.10)
|
||||||
mini_portile2 (~> 2.4.0)
|
mini_portile2 (~> 2.4.0)
|
||||||
polyglot (0.3.5)
|
rack (1.6.13)
|
||||||
rack (1.5.5)
|
|
||||||
rack-test (0.6.3)
|
rack-test (0.6.3)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
rails (4.0.9)
|
rails (4.2.10)
|
||||||
actionmailer (= 4.0.9)
|
actionmailer (= 4.2.10)
|
||||||
actionpack (= 4.0.9)
|
actionpack (= 4.2.10)
|
||||||
activerecord (= 4.0.9)
|
actionview (= 4.2.10)
|
||||||
activesupport (= 4.0.9)
|
activejob (= 4.2.10)
|
||||||
|
activemodel (= 4.2.10)
|
||||||
|
activerecord (= 4.2.10)
|
||||||
|
activesupport (= 4.2.10)
|
||||||
bundler (>= 1.3.0, < 2.0)
|
bundler (>= 1.3.0, < 2.0)
|
||||||
railties (= 4.0.9)
|
railties (= 4.2.10)
|
||||||
sprockets-rails (~> 2.0)
|
sprockets-rails
|
||||||
railties (4.0.9)
|
rails-deprecated_sanitizer (1.0.4)
|
||||||
actionpack (= 4.0.9)
|
activesupport (>= 4.2.0.alpha)
|
||||||
activesupport (= 4.0.9)
|
rails-dom-testing (1.0.9)
|
||||||
|
activesupport (>= 4.2.0, < 5.0)
|
||||||
|
nokogiri (~> 1.6)
|
||||||
|
rails-deprecated_sanitizer (>= 1.0.1)
|
||||||
|
rails-html-sanitizer (1.3.0)
|
||||||
|
loofah (~> 2.3)
|
||||||
|
railties (4.2.10)
|
||||||
|
actionpack (= 4.2.10)
|
||||||
|
activesupport (= 4.2.10)
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.18.1, < 2.0)
|
thor (>= 0.18.1, < 2.0)
|
||||||
raindrops (0.19.1)
|
raindrops (0.19.1)
|
||||||
@ -136,8 +157,6 @@ GEM
|
|||||||
rmagick (4.2.2)
|
rmagick (4.2.2)
|
||||||
ruby_parser (3.15.1)
|
ruby_parser (3.15.1)
|
||||||
sexp_processor (~> 4.9)
|
sexp_processor (~> 4.9)
|
||||||
rvm-capistrano (1.5.6)
|
|
||||||
capistrano (~> 2.15.4)
|
|
||||||
sass (3.2.19)
|
sass (3.2.19)
|
||||||
sass-rails (4.0.5)
|
sass-rails (4.0.5)
|
||||||
railties (>= 4.0.0, < 5.0)
|
railties (>= 4.0.0, < 5.0)
|
||||||
@ -165,9 +184,6 @@ GEM
|
|||||||
thor (1.1.0)
|
thor (1.1.0)
|
||||||
thread_safe (0.3.6)
|
thread_safe (0.3.6)
|
||||||
tilt (1.4.1)
|
tilt (1.4.1)
|
||||||
treetop (1.4.15)
|
|
||||||
polyglot
|
|
||||||
polyglot (>= 0.3.1)
|
|
||||||
turbolinks (5.2.1)
|
turbolinks (5.2.1)
|
||||||
turbolinks-source (~> 5.2)
|
turbolinks-source (~> 5.2)
|
||||||
turbolinks-source (5.2.0)
|
turbolinks-source (5.2.0)
|
||||||
@ -176,7 +192,8 @@ GEM
|
|||||||
execjs (>= 2.2.2, >= 2.2)
|
execjs (>= 2.2.2, >= 2.2)
|
||||||
less-rails (>= 2.5.0)
|
less-rails (>= 2.5.0)
|
||||||
railties (>= 3.1)
|
railties (>= 3.1)
|
||||||
tzinfo (0.3.60)
|
tzinfo (1.2.9)
|
||||||
|
thread_safe (~> 0.1)
|
||||||
uglifier (4.2.0)
|
uglifier (4.2.0)
|
||||||
execjs (>= 0.3.0, < 3)
|
execjs (>= 0.3.0, < 3)
|
||||||
unicorn (6.0.0)
|
unicorn (6.0.0)
|
||||||
@ -189,8 +206,6 @@ PLATFORMS
|
|||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
acts_as_tree
|
acts_as_tree
|
||||||
bcrypt-ruby (~> 3.1.2)
|
bcrypt-ruby (~> 3.1.2)
|
||||||
bootstrap3-kaminari-views
|
|
||||||
capistrano
|
|
||||||
carrierwave
|
carrierwave
|
||||||
coffee-rails (~> 4.0.0)
|
coffee-rails (~> 4.0.0)
|
||||||
formtastic
|
formtastic
|
||||||
@ -200,11 +215,9 @@ DEPENDENCIES
|
|||||||
jquery-rails
|
jquery-rails
|
||||||
kaminari
|
kaminari
|
||||||
mysql2 (= 0.4.10)
|
mysql2 (= 0.4.10)
|
||||||
net-ssh (~> 2.7.0)
|
|
||||||
nokogiri
|
nokogiri
|
||||||
rails (= 4.0.9)
|
rails (= 4.2.10)
|
||||||
rmagick
|
rmagick
|
||||||
rvm-capistrano
|
|
||||||
sass-rails (~> 4.0.3)
|
sass-rails (~> 4.0.3)
|
||||||
sdoc
|
sdoc
|
||||||
sqlite3
|
sqlite3
|
||||||
|
@ -5,7 +5,7 @@ class Article < ActiveRecord::Base
|
|||||||
has_one :block, :as => :blockable
|
has_one :block, :as => :blockable
|
||||||
has_many :comments, :as => :commentable
|
has_many :comments, :as => :commentable
|
||||||
belongs_to :category
|
belongs_to :category
|
||||||
has_many :enabled_comments,:conditions => {:enabled => true}, :source => :comments, :as => :commentable
|
has_many :enabled_comments, :source => :comments, :as => :commentable
|
||||||
after_create :after_creation
|
after_create :after_creation
|
||||||
|
|
||||||
before_validation do
|
before_validation do
|
||||||
@ -30,7 +30,7 @@ class Article < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
scope :recents, where("enabled = ?",true ).order("published_at DESC")
|
scope :recents, lambda { where("enabled = ?",true ).order("published_at DESC") }
|
||||||
|
|
||||||
scope :between, lambda { |start, stop|
|
scope :between, lambda { |start, stop|
|
||||||
after(start).before(stop)
|
after(start).before(stop)
|
||||||
|
@ -19,7 +19,7 @@ class Block < ActiveRecord::Base
|
|||||||
|
|
||||||
belongs_to :blockable, :polymorphic => true
|
belongs_to :blockable, :polymorphic => true
|
||||||
|
|
||||||
has_many :portlets, :order => :position, :dependent => :destroy
|
has_many :portlets,-> { order :position }, :dependent => :destroy
|
||||||
accepts_nested_attributes_for :portlets
|
accepts_nested_attributes_for :portlets
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
class GalleryContent < ActiveRecord::Base
|
class GalleryContent < ActiveRecord::Base
|
||||||
has_many :gallery_images, :order => :position
|
has_many :gallery_images,-> { order :position }
|
||||||
|
|
||||||
has_one :portlet, :as => :content, :dependent => :destroy
|
has_one :portlet, :as => :content, :dependent => :destroy
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
class Portfolio < ActiveRecord::Base
|
class Portfolio < ActiveRecord::Base
|
||||||
belongs_to :artwork
|
belongs_to :artwork
|
||||||
has_many :artworks, :order => "position", :dependent => :destroy
|
has_many :artworks,-> { order :position }, :dependent => :destroy
|
||||||
|
|
||||||
before_validation do
|
before_validation do
|
||||||
self.slug = self.title.to_slug
|
self.slug = self.title.to_slug
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
class TableContent < ActiveRecord::Base
|
class TableContent < ActiveRecord::Base
|
||||||
has_one :portlet, :as => :content, :dependent => :destroy
|
has_one :portlet, :as => :content, :dependent => :destroy
|
||||||
has_many :table_rows, :include => :cel_tables, :order => :position
|
has_many :table_rows,-> { order :position }
|
||||||
has_many :cel_tables, :through => :table_rows
|
has_many :cel_tables, :through => :table_rows
|
||||||
|
|
||||||
STYLES = [["avec bordures",1],["sans bordures",2]]
|
STYLES = [["avec bordures",1],["sans bordures",2]]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
class TableRow < ActiveRecord::Base
|
class TableRow < ActiveRecord::Base
|
||||||
has_many :cel_tables, :order => :position
|
has_many :cel_tables,-> { order :position }
|
||||||
belongs_to :table_content
|
belongs_to :table_content
|
||||||
|
|
||||||
attr_accessor :skip_before_update
|
attr_accessor :skip_before_update
|
||||||
|
Loading…
x
Reference in New Issue
Block a user