rocket_cms 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66562d5e44dc92ef98efa194f00200855d15bb2c
4
- data.tar.gz: 377d160f40e55aaaeeeb1c3f04b887da25324cb5
3
+ metadata.gz: 25bdc3ad604b34a751b5ba611e21dfd882ea172b
4
+ data.tar.gz: a5346587effddd63e5bceab9d9ad5117b63f52b2
5
5
  SHA512:
6
- metadata.gz: 41c2405d207f70dc8490776d1ba824489d5b2b266f92fffcc3495781b8eb51431d8914c67d110ce6699205239c1b1c4edae45c2a579d5725ba35adf25e9a4824
7
- data.tar.gz: d0d3814eecc0e0569421304ec473b84091d84b6fd80dad9030c2731d923afa54a7c65543a2aa29228c582a6e6543a114110113523763d199af686e960b4efb63
6
+ metadata.gz: 6081287c2d6a3bcfe2b817224126888f8836c61781074940030a9c242c1140f003e31214f0588b9553dbe66dcc52bcd5188eb2979a3518e5421aa52765aa6caf
7
+ data.tar.gz: 5b31c810a38e148a39d8e2be901ded50f9422303fcd757c0761f973b4ef795d16404d2fcf938a4c9d4b29f7759b452a12c66ac635595c7cc3f0dc2e9ccccdb2a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocket_cms (0.5.2)
4
+ rocket_cms (0.5.3)
5
5
  addressable
6
6
  coffee-rails
7
7
  devise
@@ -6,8 +6,13 @@ module RsErrors
6
6
  rescue_from ActionController::RoutingError, with: :render_404
7
7
  rescue_from ActionController::UnknownController, with: :render_404
8
8
  rescue_from AbstractController::ActionNotFound, with: :render_404
9
- rescue_from Mongoid::Errors::DocumentNotFound, with: :render_404
10
- rescue_from Mongoid::Errors::InvalidFind, with: :render_404
9
+ if RocketCMS.mongoid?
10
+ rescue_from Mongoid::Errors::DocumentNotFound, with: :render_404
11
+ rescue_from Mongoid::Errors::InvalidFind, with: :render_404
12
+ end
13
+ if RocketCMS.active_record?
14
+ rescue_from ActiveRecord::RecordNotFound., with: :render_404
15
+ end
11
16
  end
12
17
 
13
18
  if defined?(CanCan)
@@ -1,7 +1,6 @@
1
1
  rails_env = ENV['RAILS_ENV'] || 'production'
2
2
 
3
3
  deploy_to = '<%= deploy_to %>'
4
-
5
4
  rails_root = "#{deploy_to}/current"
6
5
 
7
6
  tmp_dir = "#{deploy_to}/shared/tmp"
@@ -1,3 +1,3 @@
1
1
  module RocketCMS
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
data/release.sh CHANGED
@@ -2,7 +2,8 @@
2
2
  bundle update
3
3
  gt 'release gem'
4
4
  rake release
5
- cd mongoid && bundle update && cd .. && cd activerecord && bundle update && cd ..
5
+ cd mongoid && bundle update && cd ..
6
+ cd activerecord && bundle update && cd ..
6
7
  gt 'gem update'
7
8
  cd mongoid && rake release && cd ..
8
9
  cd activerecord && rake release && cd ..
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-09 00:00:00.000000000 Z
11
+ date: 2014-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler