comfortable_mexican_sofa 1.5.8 → 1.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/cms_admin/categories_controller.rb +4 -2
- data/app/controllers/cms_admin/files_controller.rb +2 -0
- data/app/controllers/cms_admin/layouts_controller.rb +2 -0
- data/app/controllers/cms_admin/pages_controller.rb +2 -0
- data/app/controllers/cms_admin/sites_controller.rb +2 -0
- data/app/controllers/cms_admin/snippets_controller.rb +2 -0
- data/comfortable_mexican_sofa.gemspec +2 -2
- data/lib/comfortable_mexican_sofa/authentication/http_auth.rb +2 -3
- data/lib/comfortable_mexican_sofa/extensions/rails.rb +7 -0
- metadata +9 -9
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.9
|
@@ -8,13 +8,15 @@ class CmsAdmin::CategoriesController < CmsAdmin::BaseController
|
|
8
8
|
|
9
9
|
def create
|
10
10
|
@category = Cms::Category.create!(params[:category])
|
11
|
-
rescue
|
11
|
+
rescue ActiveRecord::RecordInvalid
|
12
|
+
logger.detailed_error($!)
|
12
13
|
render :nothing => true
|
13
14
|
end
|
14
15
|
|
15
16
|
def update
|
16
17
|
@category.update_attributes!(params[:category])
|
17
|
-
rescue
|
18
|
+
rescue ActiveRecord::RecordInvalid
|
19
|
+
logger.detailed_error($!)
|
18
20
|
render :nothing => true
|
19
21
|
end
|
20
22
|
|
@@ -42,6 +42,7 @@ class CmsAdmin::FilesController < CmsAdmin::BaseController
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
rescue ActiveRecord::RecordInvalid
|
45
|
+
logger.detailed_error($!)
|
45
46
|
respond_to do |format|
|
46
47
|
format.html do
|
47
48
|
flash.now[:error] = I18n.t('cms.files.creation_failure')
|
@@ -58,6 +59,7 @@ class CmsAdmin::FilesController < CmsAdmin::BaseController
|
|
58
59
|
flash[:notice] = I18n.t('cms.files.updated')
|
59
60
|
redirect_to :action => :edit, :id => @file
|
60
61
|
rescue ActiveRecord::RecordInvalid
|
62
|
+
logger.detailed_error($!)
|
61
63
|
flash.now[:error] = I18n.t('cms.files.update_failure')
|
62
64
|
render :action => :edit
|
63
65
|
end
|
@@ -21,6 +21,7 @@ class CmsAdmin::LayoutsController < CmsAdmin::BaseController
|
|
21
21
|
flash[:notice] = I18n.t('cms.layouts.created')
|
22
22
|
redirect_to :action => :edit, :id => @layout
|
23
23
|
rescue ActiveRecord::RecordInvalid
|
24
|
+
logger.detailed_error($!)
|
24
25
|
flash.now[:error] = I18n.t('cms.layouts.creation_failure')
|
25
26
|
render :action => :new
|
26
27
|
end
|
@@ -30,6 +31,7 @@ class CmsAdmin::LayoutsController < CmsAdmin::BaseController
|
|
30
31
|
flash[:notice] = I18n.t('cms.layouts.updated')
|
31
32
|
redirect_to :action => :edit, :id => @layout
|
32
33
|
rescue ActiveRecord::RecordInvalid
|
34
|
+
logger.detailed_error($!)
|
33
35
|
flash.now[:error] = I18n.t('cms.layouts.update_failure')
|
34
36
|
render :action => :edit
|
35
37
|
end
|
@@ -28,6 +28,7 @@ class CmsAdmin::PagesController < CmsAdmin::BaseController
|
|
28
28
|
flash[:notice] = I18n.t('cms.pages.created')
|
29
29
|
redirect_to :action => :edit, :id => @page
|
30
30
|
rescue ActiveRecord::RecordInvalid
|
31
|
+
logger.detailed_error($!)
|
31
32
|
flash.now[:error] = I18n.t('cms.pages.creation_failure')
|
32
33
|
render :action => :new
|
33
34
|
end
|
@@ -37,6 +38,7 @@ class CmsAdmin::PagesController < CmsAdmin::BaseController
|
|
37
38
|
flash[:notice] = I18n.t('cms.pages.updated')
|
38
39
|
redirect_to :action => :edit, :id => @page
|
39
40
|
rescue ActiveRecord::RecordInvalid
|
41
|
+
logger.detailed_error($!)
|
40
42
|
flash.now[:error] = I18n.t('cms.pages.update_failure')
|
41
43
|
render :action => :edit
|
42
44
|
end
|
@@ -24,6 +24,7 @@ class CmsAdmin::SitesController < CmsAdmin::BaseController
|
|
24
24
|
flash[:notice] = I18n.t('cms.sites.created')
|
25
25
|
redirect_to cms_admin_site_layouts_path(@site)
|
26
26
|
rescue ActiveRecord::RecordInvalid
|
27
|
+
logger.detailed_error($!)
|
27
28
|
flash.now[:error] = I18n.t('cms.sites.creation_failure')
|
28
29
|
render :action => :new
|
29
30
|
end
|
@@ -33,6 +34,7 @@ class CmsAdmin::SitesController < CmsAdmin::BaseController
|
|
33
34
|
flash[:notice] = I18n.t('cms.sites.updated')
|
34
35
|
redirect_to :action => :edit, :id => @site
|
35
36
|
rescue ActiveRecord::RecordInvalid
|
37
|
+
logger.detailed_error($!)
|
36
38
|
flash.now[:error] = I18n.t('cms.sites.update_failure')
|
37
39
|
render :action => :edit
|
38
40
|
end
|
@@ -21,6 +21,7 @@ class CmsAdmin::SnippetsController < CmsAdmin::BaseController
|
|
21
21
|
flash[:notice] = I18n.t('cms.snippets.created')
|
22
22
|
redirect_to :action => :edit, :id => @snippet
|
23
23
|
rescue ActiveRecord::RecordInvalid
|
24
|
+
logger.detailed_error($!)
|
24
25
|
flash.now[:error] = I18n.t('cms.snippets.creation_failure')
|
25
26
|
render :action => :new
|
26
27
|
end
|
@@ -30,6 +31,7 @@ class CmsAdmin::SnippetsController < CmsAdmin::BaseController
|
|
30
31
|
flash[:notice] = I18n.t('cms.snippets.updated')
|
31
32
|
redirect_to :action => :edit, :id => @snippet
|
32
33
|
rescue ActiveRecord::RecordInvalid
|
34
|
+
logger.detailed_error($!)
|
33
35
|
flash.now[:error] = I18n.t('cms.snippets.update_failure')
|
34
36
|
render :action => :edit
|
35
37
|
end
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "comfortable_mexican_sofa"
|
8
|
-
s.version = "1.5.
|
8
|
+
s.version = "1.5.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Oleg Khabarov", "The Working Group Inc"]
|
12
|
-
s.date = "2011-10-
|
12
|
+
s.date = "2011-10-27"
|
13
13
|
s.description = ""
|
14
14
|
s.email = "oleg@theworkinggroup.ca"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module ComfortableMexicanSofa::HttpAuth
|
2
2
|
# Set username and password in config/initializers/comfortable_mexican_sofa.rb
|
3
3
|
# Like this:
|
4
|
-
#
|
5
|
-
#
|
4
|
+
# ComfortableMexicanSofa::HttpAuth.username = 'myname'
|
5
|
+
# ComfortableMexicanSofa::HttpAuth.password = 'mypassword'
|
6
6
|
mattr_accessor :username,
|
7
7
|
:password
|
8
8
|
|
@@ -14,5 +14,4 @@ module ComfortableMexicanSofa::HttpAuth
|
|
14
14
|
username == self.username && password == self.password
|
15
15
|
end
|
16
16
|
end
|
17
|
-
|
18
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comfortable_mexican_sofa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-10-
|
13
|
+
date: 2011-10-27 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
|
-
requirement: &
|
17
|
+
requirement: &70272731521480 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70272731521480
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: active_link_to
|
28
|
-
requirement: &
|
28
|
+
requirement: &70272731519060 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 1.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70272731519060
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: paperclip
|
39
|
-
requirement: &
|
39
|
+
requirement: &70272731517260 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: 2.3.0
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70272731517260
|
48
48
|
description: ''
|
49
49
|
email: oleg@theworkinggroup.ca
|
50
50
|
executables: []
|
@@ -359,7 +359,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
359
359
|
version: '0'
|
360
360
|
segments:
|
361
361
|
- 0
|
362
|
-
hash:
|
362
|
+
hash: -3075842276873054567
|
363
363
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
364
364
|
none: false
|
365
365
|
requirements:
|