easy_admin_ui 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +37 -35
- data/lib/easy_admin_ui/version.rb +1 -1
- data/lib/resourceful/builder.rb +21 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ff5c818e82fb4e127f7a45bddd8384ed1c8a5be
|
4
|
+
data.tar.gz: caf75cd356eb6260363927e93a6e2024b7fa6e16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 648fc1784e9ef06bcd154f3c3378583ec5605542a9dade63c9e76ce5ae70435ae7e1db079eb4dc69fc00d7342baa7d4de316d018463c435cb08bfdf385727bc7
|
7
|
+
data.tar.gz: d13401f8efd265a6c901967f5fc9be2d5f3b798b90cc7117c4a4453661214c97dd5c3d5a4ac05ae7ad66b4fd507999b149cedbd434d27486c6cd84a0e465951c
|
data/Gemfile.lock
CHANGED
@@ -1,34 +1,34 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
easy_admin_ui (0.8.
|
4
|
+
easy_admin_ui (0.8.4)
|
5
5
|
kaminari (>= 0.12.4)
|
6
6
|
rails (>= 4.0.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionmailer (4.1.
|
12
|
-
actionpack (= 4.1.
|
13
|
-
actionview (= 4.1.
|
11
|
+
actionmailer (4.1.16)
|
12
|
+
actionpack (= 4.1.16)
|
13
|
+
actionview (= 4.1.16)
|
14
14
|
mail (~> 2.5, >= 2.5.4)
|
15
|
-
actionpack (4.1.
|
16
|
-
actionview (= 4.1.
|
17
|
-
activesupport (= 4.1.
|
15
|
+
actionpack (4.1.16)
|
16
|
+
actionview (= 4.1.16)
|
17
|
+
activesupport (= 4.1.16)
|
18
18
|
rack (~> 1.5.2)
|
19
19
|
rack-test (~> 0.6.2)
|
20
|
-
actionview (4.1.
|
21
|
-
activesupport (= 4.1.
|
20
|
+
actionview (4.1.16)
|
21
|
+
activesupport (= 4.1.16)
|
22
22
|
builder (~> 3.1)
|
23
23
|
erubis (~> 2.7.0)
|
24
|
-
activemodel (4.1.
|
25
|
-
activesupport (= 4.1.
|
24
|
+
activemodel (4.1.16)
|
25
|
+
activesupport (= 4.1.16)
|
26
26
|
builder (~> 3.1)
|
27
|
-
activerecord (4.1.
|
28
|
-
activemodel (= 4.1.
|
29
|
-
activesupport (= 4.1.
|
27
|
+
activerecord (4.1.16)
|
28
|
+
activemodel (= 4.1.16)
|
29
|
+
activesupport (= 4.1.16)
|
30
30
|
arel (~> 5.0.0)
|
31
|
-
activesupport (4.1.
|
31
|
+
activesupport (4.1.16)
|
32
32
|
i18n (~> 0.6, >= 0.6.9)
|
33
33
|
json (~> 1.7, >= 1.7.7)
|
34
34
|
minitest (~> 5.1)
|
@@ -36,7 +36,7 @@ GEM
|
|
36
36
|
tzinfo (~> 1.1)
|
37
37
|
arel (5.0.1.20140414130214)
|
38
38
|
builder (3.1.4)
|
39
|
-
concurrent-ruby (1.0.
|
39
|
+
concurrent-ruby (1.0.4)
|
40
40
|
diff-lcs (1.2.5)
|
41
41
|
erubis (2.7.0)
|
42
42
|
geminabox (0.12.2)
|
@@ -47,32 +47,34 @@ GEM
|
|
47
47
|
httpclient (2.3.4.1)
|
48
48
|
i18n (0.7.0)
|
49
49
|
json (1.8.3)
|
50
|
-
kaminari (0.
|
50
|
+
kaminari (0.17.0)
|
51
51
|
actionpack (>= 3.0.0)
|
52
52
|
activesupport (>= 3.0.0)
|
53
|
-
mail (2.6.
|
54
|
-
mime-types (>= 1.16, <
|
55
|
-
mime-types (
|
56
|
-
|
53
|
+
mail (2.6.4)
|
54
|
+
mime-types (>= 1.16, < 4)
|
55
|
+
mime-types (3.1)
|
56
|
+
mime-types-data (~> 3.2015)
|
57
|
+
mime-types-data (3.2016.0521)
|
58
|
+
minitest (5.10.1)
|
57
59
|
nesty (1.0.2)
|
58
60
|
rack (1.5.2)
|
59
61
|
rack-protection (1.5.2)
|
60
62
|
rack
|
61
63
|
rack-test (0.6.3)
|
62
64
|
rack (>= 1.0)
|
63
|
-
rails (4.1.
|
64
|
-
actionmailer (= 4.1.
|
65
|
-
actionpack (= 4.1.
|
66
|
-
actionview (= 4.1.
|
67
|
-
activemodel (= 4.1.
|
68
|
-
activerecord (= 4.1.
|
69
|
-
activesupport (= 4.1.
|
65
|
+
rails (4.1.16)
|
66
|
+
actionmailer (= 4.1.16)
|
67
|
+
actionpack (= 4.1.16)
|
68
|
+
actionview (= 4.1.16)
|
69
|
+
activemodel (= 4.1.16)
|
70
|
+
activerecord (= 4.1.16)
|
71
|
+
activesupport (= 4.1.16)
|
70
72
|
bundler (>= 1.3.0, < 2.0)
|
71
|
-
railties (= 4.1.
|
73
|
+
railties (= 4.1.16)
|
72
74
|
sprockets-rails (~> 2.0)
|
73
|
-
railties (4.1.
|
74
|
-
actionpack (= 4.1.
|
75
|
-
activesupport (= 4.1.
|
75
|
+
railties (4.1.16)
|
76
|
+
actionpack (= 4.1.16)
|
77
|
+
activesupport (= 4.1.16)
|
76
78
|
rake (>= 0.8.7)
|
77
79
|
thor (>= 0.18.1, < 2.0)
|
78
80
|
rake (10.1.1)
|
@@ -88,14 +90,14 @@ GEM
|
|
88
90
|
rack (~> 1.4)
|
89
91
|
rack-protection (~> 1.4)
|
90
92
|
tilt (~> 1.3, >= 1.3.4)
|
91
|
-
sprockets (3.
|
93
|
+
sprockets (3.7.1)
|
92
94
|
concurrent-ruby (~> 1.0)
|
93
95
|
rack (> 1, < 3)
|
94
96
|
sprockets-rails (2.3.3)
|
95
97
|
actionpack (>= 3.0)
|
96
98
|
activesupport (>= 3.0)
|
97
99
|
sprockets (>= 2.8, < 4.0)
|
98
|
-
thor (0.19.
|
100
|
+
thor (0.19.4)
|
99
101
|
thread_safe (0.3.5)
|
100
102
|
tilt (1.4.1)
|
101
103
|
tzinfo (1.2.2)
|
@@ -112,4 +114,4 @@ DEPENDENCIES
|
|
112
114
|
rspec (~> 2.12)
|
113
115
|
|
114
116
|
BUNDLED WITH
|
115
|
-
1.
|
117
|
+
1.12.5
|
data/lib/resourceful/builder.rb
CHANGED
@@ -40,7 +40,7 @@ module Resourceful
|
|
40
40
|
apply_publish
|
41
41
|
|
42
42
|
kontroller = @controller
|
43
|
-
|
43
|
+
|
44
44
|
Resourceful::ACTIONS.each do |action_named|
|
45
45
|
# See if this is a method listed by #actions
|
46
46
|
unless @ok_actions.include? action_named
|
@@ -50,7 +50,7 @@ module Resourceful
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
kontroller.hidden_actions.reject! &@ok_actions.method(:include?)
|
53
|
+
# kontroller.hidden_actions.reject! &@ok_actions.method(:include?)
|
54
54
|
kontroller.send :include, @action_module
|
55
55
|
|
56
56
|
kontroller.resourceful_callbacks.merge! @callbacks
|
@@ -58,15 +58,15 @@ module Resourceful
|
|
58
58
|
kontroller.made_resourceful = true
|
59
59
|
|
60
60
|
kontroller.parents = @parents
|
61
|
-
kontroller.
|
62
|
-
kontroller.
|
63
|
-
kontroller.
|
61
|
+
kontroller.before_action :load_object, :only => (@ok_actions & SINGULAR_PRELOADED_ACTIONS) + @custom_member_actions
|
62
|
+
kontroller.before_action :load_objects, :only => (@ok_actions & PLURAL_ACTIONS) + @custom_collection_actions
|
63
|
+
kontroller.before_action :load_parent_object, :only => @ok_actions + @custom_member_actions + @custom_collection_actions
|
64
64
|
end
|
65
65
|
|
66
66
|
# :call-seq:
|
67
67
|
# actions(*available_actions)
|
68
68
|
# actions :all
|
69
|
-
#
|
69
|
+
#
|
70
70
|
# Adds the default RESTful actions to the controller.
|
71
71
|
#
|
72
72
|
# If the only argument is <tt>:all</tt>,
|
@@ -102,19 +102,19 @@ module Resourceful
|
|
102
102
|
available_actions.each { |action| @ok_actions << action.to_sym }
|
103
103
|
end
|
104
104
|
alias build actions
|
105
|
-
|
105
|
+
|
106
106
|
# :call-seq:
|
107
107
|
# member_actions(*available_actions)
|
108
|
-
#
|
108
|
+
#
|
109
109
|
# Registers custom member actions which will use the load_object before_filter.
|
110
110
|
# These actions are not created, but merely registered for filtering.
|
111
111
|
def member_actions(*available_actions)
|
112
112
|
available_actions.each { |action| @custom_member_actions << action.to_sym }
|
113
113
|
end
|
114
|
-
|
114
|
+
|
115
115
|
# :call-seq:
|
116
116
|
# collection_actions(*available_actions)
|
117
|
-
#
|
117
|
+
#
|
118
118
|
# Registers custom collection actions which will use the load_objects before_filter.
|
119
119
|
# These actions are not created, but merely registered for filtering.
|
120
120
|
def collection_actions(*available_actions)
|
@@ -142,11 +142,11 @@ module Resourceful
|
|
142
142
|
# to the current object's title
|
143
143
|
# for the show and edit actions.
|
144
144
|
#
|
145
|
-
# Successive before blocks for the same action will be chained and executed
|
145
|
+
# Successive before blocks for the same action will be chained and executed
|
146
146
|
# in order when the event occurs.
|
147
147
|
#
|
148
148
|
# For example:
|
149
|
-
#
|
149
|
+
#
|
150
150
|
# before :show, :edit do
|
151
151
|
# @page_title = current_object.title
|
152
152
|
# end
|
@@ -155,7 +155,7 @@ module Resourceful
|
|
155
155
|
# @side_bar = true
|
156
156
|
# end
|
157
157
|
#
|
158
|
-
# These before blocks will both be executed for the show action and in the
|
158
|
+
# These before blocks will both be executed for the show action and in the
|
159
159
|
# same order as they were defined.
|
160
160
|
def before(*events, &block)
|
161
161
|
add_callback :before, *events, &block
|
@@ -224,7 +224,7 @@ module Resourceful
|
|
224
224
|
# end
|
225
225
|
#
|
226
226
|
# This is the same as
|
227
|
-
#
|
227
|
+
#
|
228
228
|
# response_for :new do |format|
|
229
229
|
# format.html { render :action => 'edit' }
|
230
230
|
# end
|
@@ -271,8 +271,8 @@ module Resourceful
|
|
271
271
|
#
|
272
272
|
# Then GET /posts/12.yaml would render
|
273
273
|
#
|
274
|
-
# ---
|
275
|
-
# post:
|
274
|
+
# ---
|
275
|
+
# post:
|
276
276
|
# title: Cool Stuff
|
277
277
|
# rendered_content: |-
|
278
278
|
# <p>This is a post.</p>
|
@@ -325,7 +325,7 @@ module Resourceful
|
|
325
325
|
:only => [:show, :index]
|
326
326
|
}.merge(Hash === formats.last ? formats.pop : {})
|
327
327
|
raise "Must specify :attributes option" unless options[:attributes]
|
328
|
-
|
328
|
+
|
329
329
|
Array(options.delete(:only)).each do |action|
|
330
330
|
@publish[action] ||= []
|
331
331
|
formats.each do |format|
|
@@ -358,7 +358,7 @@ module Resourceful
|
|
358
358
|
def belongs_to(*parents)
|
359
359
|
@parents = parents.map(&:to_s)
|
360
360
|
end
|
361
|
-
|
361
|
+
|
362
362
|
# This method is only meant to be called internally.
|
363
363
|
#
|
364
364
|
# Returns whether or not the Builder's controller
|
@@ -368,7 +368,7 @@ module Resourceful
|
|
368
368
|
end
|
369
369
|
|
370
370
|
private
|
371
|
-
|
371
|
+
|
372
372
|
def apply_publish
|
373
373
|
@publish.each do |action, types|
|
374
374
|
@responses[action.to_sym] ||= []
|
@@ -376,10 +376,10 @@ module Resourceful
|
|
376
376
|
end
|
377
377
|
end
|
378
378
|
|
379
|
-
def add_callback(type, *events, &block)
|
379
|
+
def add_callback(type, *events, &block)
|
380
380
|
events.each do |event|
|
381
381
|
@callbacks[type][event.to_sym] ||= []
|
382
|
-
@callbacks[type][event.to_sym] << block
|
382
|
+
@callbacks[type][event.to_sym] << block
|
383
383
|
end
|
384
384
|
end
|
385
385
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_admin_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Moen Wulffeld
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|