noodall-ui 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -3
- data/Gemfile.lock +1 -8
- data/app/controllers/noodall/admin/base_controller.rb +8 -0
- data/{demo → app}/models/home.rb +0 -1
- data/lib/noodall/ui/version.rb +1 -1
- metadata +5 -5
data/Gemfile
CHANGED
@@ -5,11 +5,8 @@ gemspec
|
|
5
5
|
|
6
6
|
# Required for running as demo rails app
|
7
7
|
gem 'rails', '3.0.1'
|
8
|
-
gem 'bson_ext', '~> 1.1.0'
|
9
8
|
gem 'rmagick', :require => 'RMagick'
|
10
9
|
gem 'dragonfly', '~> 0.7.6'
|
11
|
-
gem 'newbamboo-rvideo', '~> 0.9.6'
|
12
|
-
gem 'open4', '~> 0.9.5'
|
13
10
|
|
14
11
|
# Bundle gems for the local environment. Make sure to
|
15
12
|
# put test-only gems in this group so their generators
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
noodall-ui (0.0.
|
4
|
+
noodall-ui (0.0.6)
|
5
5
|
dynamic_form
|
6
6
|
noodall-core
|
7
7
|
thoughtbot-sortable_table (= 0.0.6)
|
@@ -41,7 +41,6 @@ GEM
|
|
41
41
|
arel (1.0.1)
|
42
42
|
activesupport (~> 3.0.0)
|
43
43
|
bson (1.1.1)
|
44
|
-
bson_ext (1.1.1)
|
45
44
|
builder (2.1.2)
|
46
45
|
canable (0.1.1)
|
47
46
|
capybara (0.4.0)
|
@@ -112,8 +111,6 @@ GEM
|
|
112
111
|
activesupport (>= 2.3.4)
|
113
112
|
jnunemaker-validatable (~> 1.8.4)
|
114
113
|
plucky (~> 0.3.6)
|
115
|
-
newbamboo-rvideo (0.9.6)
|
116
|
-
activesupport
|
117
114
|
nokogiri (1.4.3.1)
|
118
115
|
noodall-core (0.3.2)
|
119
116
|
canable (= 0.1.1)
|
@@ -121,7 +118,6 @@ GEM
|
|
121
118
|
mongo_mapper (~> 0.8.6)
|
122
119
|
ramdiv-mongo_mapper_acts_as_tree (~> 0.1.1)
|
123
120
|
ruby-stemmer
|
124
|
-
open4 (0.9.6)
|
125
121
|
plucky (0.3.6)
|
126
122
|
mongo (~> 1.1)
|
127
123
|
polyglot (0.3.1)
|
@@ -183,7 +179,6 @@ PLATFORMS
|
|
183
179
|
ruby
|
184
180
|
|
185
181
|
DEPENDENCIES
|
186
|
-
bson_ext (~> 1.1.0)
|
187
182
|
bundler (>= 1.0.0)
|
188
183
|
capybara
|
189
184
|
cucumber
|
@@ -196,10 +191,8 @@ DEPENDENCIES
|
|
196
191
|
haml
|
197
192
|
jeweler (~> 1.4.0)
|
198
193
|
launchy
|
199
|
-
newbamboo-rvideo (~> 0.9.6)
|
200
194
|
noodall-core
|
201
195
|
noodall-ui!
|
202
|
-
open4 (~> 0.9.5)
|
203
196
|
rails (= 3.0.1)
|
204
197
|
rmagick
|
205
198
|
rspec-rails (~> 2.0.0.beta.22)
|
@@ -3,6 +3,14 @@ module Noodall
|
|
3
3
|
class BaseController < ApplicationController
|
4
4
|
layout 'noodall_admin'
|
5
5
|
before_filter :authenticate_user!
|
6
|
+
|
7
|
+
rescue_from Canable::Transgression, :with => :permission_denied
|
8
|
+
|
9
|
+
private
|
10
|
+
def permission_denied
|
11
|
+
flash[:error] = "You do not have permission to do that"
|
12
|
+
redirect_to :back
|
13
|
+
end
|
6
14
|
end
|
7
15
|
end
|
8
16
|
end
|
data/{demo → app}/models/home.rb
RENAMED
data/lib/noodall/ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noodall-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steve England
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-05 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -124,6 +124,7 @@ files:
|
|
124
124
|
- app/helpers/noodall/layout_helper.rb
|
125
125
|
- app/helpers/noodall/nodes_helper.rb
|
126
126
|
- app/models/asset.rb
|
127
|
+
- app/models/home.rb
|
127
128
|
- app/views/layouts/noodall_admin.html.erb
|
128
129
|
- app/views/noodall/admin/assets/_browser.html.erb
|
129
130
|
- app/views/noodall/admin/assets/_form.html.erb
|
@@ -171,7 +172,6 @@ files:
|
|
171
172
|
- demo/initializers/secret_token.rb
|
172
173
|
- demo/initializers/session_store.rb
|
173
174
|
- demo/models/gallery.rb
|
174
|
-
- demo/models/home.rb
|
175
175
|
- demo/models/page_a.rb
|
176
176
|
- demo/models/page_b.rb
|
177
177
|
- demo/models/page_c.rb
|