rails_admin_toggleable 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +55 -47
- data/README.md +4 -0
- data/lib/rails_admin_toggleable/field.rb +2 -0
- data/lib/rails_admin_toggleable/version.rb +1 -1
- data/rails_admin_toggleable.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d0538e356fd000afc0123ff2ae6ff636b4a3f48b5e56e3ad79e82cc4ba1326d
|
4
|
+
data.tar.gz: 91d11a31541b7fe3b497c6e634f6f2b0042e0b5b9b426df0ede60171dc8be654
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6e39dbb32f787045247bf3c3b26902657e75892cafb5f81f492131e25cd4b468f148eceda714ffa699886d4c138a2e719b4b31fc54346e57139d7392ead3411
|
7
|
+
data.tar.gz: 69b05069b268560e6d717d2e0f816101050eb9090bc66ac90071f26231c1b110ef1bf3d16c5ce65e828f396b8118bc0fabadc5f7b2229cf3f4a092c781b6609a
|
data/Gemfile.lock
CHANGED
@@ -1,50 +1,54 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rails_admin_toggleable (0.8.
|
4
|
+
rails_admin_toggleable (0.8.3)
|
5
5
|
rails_admin
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actioncable (5.
|
11
|
-
actionpack (= 5.
|
10
|
+
actioncable (5.2.0)
|
11
|
+
actionpack (= 5.2.0)
|
12
12
|
nio4r (~> 2.0)
|
13
|
-
websocket-driver (
|
14
|
-
actionmailer (5.
|
15
|
-
actionpack (= 5.
|
16
|
-
actionview (= 5.
|
17
|
-
activejob (= 5.
|
13
|
+
websocket-driver (>= 0.6.1)
|
14
|
+
actionmailer (5.2.0)
|
15
|
+
actionpack (= 5.2.0)
|
16
|
+
actionview (= 5.2.0)
|
17
|
+
activejob (= 5.2.0)
|
18
18
|
mail (~> 2.5, >= 2.5.4)
|
19
19
|
rails-dom-testing (~> 2.0)
|
20
|
-
actionpack (5.
|
21
|
-
actionview (= 5.
|
22
|
-
activesupport (= 5.
|
20
|
+
actionpack (5.2.0)
|
21
|
+
actionview (= 5.2.0)
|
22
|
+
activesupport (= 5.2.0)
|
23
23
|
rack (~> 2.0)
|
24
24
|
rack-test (>= 0.6.3)
|
25
25
|
rails-dom-testing (~> 2.0)
|
26
26
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
-
actionview (5.
|
28
|
-
activesupport (= 5.
|
27
|
+
actionview (5.2.0)
|
28
|
+
activesupport (= 5.2.0)
|
29
29
|
builder (~> 3.1)
|
30
30
|
erubi (~> 1.4)
|
31
31
|
rails-dom-testing (~> 2.0)
|
32
32
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
-
activejob (5.
|
34
|
-
activesupport (= 5.
|
33
|
+
activejob (5.2.0)
|
34
|
+
activesupport (= 5.2.0)
|
35
35
|
globalid (>= 0.3.6)
|
36
|
-
activemodel (5.
|
37
|
-
activesupport (= 5.
|
38
|
-
activerecord (5.
|
39
|
-
activemodel (= 5.
|
40
|
-
activesupport (= 5.
|
41
|
-
arel (
|
42
|
-
|
36
|
+
activemodel (5.2.0)
|
37
|
+
activesupport (= 5.2.0)
|
38
|
+
activerecord (5.2.0)
|
39
|
+
activemodel (= 5.2.0)
|
40
|
+
activesupport (= 5.2.0)
|
41
|
+
arel (>= 9.0)
|
42
|
+
activestorage (5.2.0)
|
43
|
+
actionpack (= 5.2.0)
|
44
|
+
activerecord (= 5.2.0)
|
45
|
+
marcel (~> 0.3.1)
|
46
|
+
activesupport (5.2.0)
|
43
47
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
|
-
i18n (
|
48
|
+
i18n (>= 0.7, < 2)
|
45
49
|
minitest (~> 5.1)
|
46
50
|
tzinfo (~> 1.1)
|
47
|
-
arel (
|
51
|
+
arel (9.0.0)
|
48
52
|
builder (3.2.3)
|
49
53
|
coffee-rails (4.2.2)
|
50
54
|
coffee-script (>= 2.2.0)
|
@@ -54,20 +58,20 @@ GEM
|
|
54
58
|
execjs
|
55
59
|
coffee-script-source (1.12.2)
|
56
60
|
concurrent-ruby (1.0.5)
|
57
|
-
crass (1.0.
|
61
|
+
crass (1.0.4)
|
58
62
|
erubi (1.7.1)
|
59
63
|
execjs (2.7.0)
|
60
|
-
ffi (1.9.
|
61
|
-
font-awesome-rails (4.7.0.
|
62
|
-
railties (>= 3.2, <
|
64
|
+
ffi (1.9.25)
|
65
|
+
font-awesome-rails (4.7.0.4)
|
66
|
+
railties (>= 3.2, < 6.0)
|
63
67
|
globalid (0.4.1)
|
64
68
|
activesupport (>= 4.2.0)
|
65
69
|
haml (5.0.4)
|
66
70
|
temple (>= 0.8.0)
|
67
71
|
tilt
|
68
|
-
i18n (0.
|
72
|
+
i18n (1.0.1)
|
69
73
|
concurrent-ruby (~> 1.0)
|
70
|
-
jquery-rails (4.3.
|
74
|
+
jquery-rails (4.3.3)
|
71
75
|
rails-dom-testing (>= 1, < 3)
|
72
76
|
railties (>= 4.2.0)
|
73
77
|
thor (>= 0.14, < 2.0)
|
@@ -90,31 +94,35 @@ GEM
|
|
90
94
|
nokogiri (>= 1.5.9)
|
91
95
|
mail (2.7.0)
|
92
96
|
mini_mime (>= 0.1.1)
|
97
|
+
marcel (0.3.2)
|
98
|
+
mimemagic (~> 0.3.2)
|
93
99
|
method_source (0.9.0)
|
100
|
+
mimemagic (0.3.2)
|
94
101
|
mini_mime (1.0.0)
|
95
102
|
mini_portile2 (2.3.0)
|
96
103
|
minitest (5.11.3)
|
97
104
|
nested_form (0.3.2)
|
98
|
-
nio4r (2.3.
|
105
|
+
nio4r (2.3.1)
|
99
106
|
nokogiri (1.8.2)
|
100
107
|
mini_portile2 (~> 2.3.0)
|
101
|
-
rack (2.0.
|
108
|
+
rack (2.0.5)
|
102
109
|
rack-pjax (1.0.0)
|
103
110
|
nokogiri (~> 1.5)
|
104
111
|
rack (>= 1.1)
|
105
112
|
rack-test (1.0.0)
|
106
113
|
rack (>= 1.0, < 3)
|
107
|
-
rails (5.
|
108
|
-
actioncable (= 5.
|
109
|
-
actionmailer (= 5.
|
110
|
-
actionpack (= 5.
|
111
|
-
actionview (= 5.
|
112
|
-
activejob (= 5.
|
113
|
-
activemodel (= 5.
|
114
|
-
activerecord (= 5.
|
115
|
-
|
114
|
+
rails (5.2.0)
|
115
|
+
actioncable (= 5.2.0)
|
116
|
+
actionmailer (= 5.2.0)
|
117
|
+
actionpack (= 5.2.0)
|
118
|
+
actionview (= 5.2.0)
|
119
|
+
activejob (= 5.2.0)
|
120
|
+
activemodel (= 5.2.0)
|
121
|
+
activerecord (= 5.2.0)
|
122
|
+
activestorage (= 5.2.0)
|
123
|
+
activesupport (= 5.2.0)
|
116
124
|
bundler (>= 1.3.0)
|
117
|
-
railties (= 5.
|
125
|
+
railties (= 5.2.0)
|
118
126
|
sprockets-rails (>= 2.0.0)
|
119
127
|
rails-dom-testing (2.0.3)
|
120
128
|
activesupport (>= 4.2.0)
|
@@ -134,9 +142,9 @@ GEM
|
|
134
142
|
rails (>= 4.0, < 6)
|
135
143
|
remotipart (~> 1.3)
|
136
144
|
sass-rails (>= 4.0, < 6)
|
137
|
-
railties (5.
|
138
|
-
actionpack (= 5.
|
139
|
-
activesupport (= 5.
|
145
|
+
railties (5.2.0)
|
146
|
+
actionpack (= 5.2.0)
|
147
|
+
activesupport (= 5.2.0)
|
140
148
|
method_source
|
141
149
|
rake (>= 0.8.7)
|
142
150
|
thor (>= 0.18.1, < 2.0)
|
@@ -144,7 +152,7 @@ GEM
|
|
144
152
|
rb-fsevent (0.10.3)
|
145
153
|
rb-inotify (0.9.10)
|
146
154
|
ffi (>= 0.5.0, < 2)
|
147
|
-
remotipart (1.
|
155
|
+
remotipart (1.4.2)
|
148
156
|
sass (3.5.6)
|
149
157
|
sass-listen (~> 4.0.0)
|
150
158
|
sass-listen (4.0.0)
|
@@ -169,7 +177,7 @@ GEM
|
|
169
177
|
tilt (2.0.8)
|
170
178
|
tzinfo (1.2.5)
|
171
179
|
thread_safe (~> 0.1)
|
172
|
-
websocket-driver (0.
|
180
|
+
websocket-driver (0.7.0)
|
173
181
|
websocket-extensions (>= 0.1.0)
|
174
182
|
websocket-extensions (0.1.3)
|
175
183
|
|
data/README.md
CHANGED
@@ -26,6 +26,7 @@ module RailsAdmin
|
|
26
26
|
def g_js
|
27
27
|
<<-END.strip_heredoc.gsub("\n", ' ').gsub(/ +/, ' ')
|
28
28
|
var $t = $(this);
|
29
|
+
var old_html = $t.html();
|
29
30
|
$t.html("<i class='fa fa-spinner fa-spin'></i>");
|
30
31
|
$.ajax({
|
31
32
|
type: "POST",
|
@@ -39,6 +40,7 @@ module RailsAdmin
|
|
39
40
|
$t.siblings(".toggle-btn").remove();
|
40
41
|
},
|
41
42
|
error: function(e) {
|
43
|
+
$t.html(old_html);
|
42
44
|
alert(e.responseText);
|
43
45
|
}
|
44
46
|
});
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.email = ["glebtv@gmail.com"]
|
11
11
|
gem.description = %q{Toggleable field for rails admin}
|
12
12
|
gem.summary = %q{Make any boolean field easily toggleable on\off from index view in rails admin}
|
13
|
-
gem.homepage = "https://
|
13
|
+
gem.homepage = "https://gitlab.com/rocket-science/rails_admin_toggleable"
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_toggleable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gleb Tv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails_admin
|
@@ -76,7 +76,7 @@ files:
|
|
76
76
|
- lib/rails_admin_toggleable/field.rb
|
77
77
|
- lib/rails_admin_toggleable/version.rb
|
78
78
|
- rails_admin_toggleable.gemspec
|
79
|
-
homepage: https://
|
79
|
+
homepage: https://gitlab.com/rocket-science/rails_admin_toggleable
|
80
80
|
licenses: []
|
81
81
|
metadata: {}
|
82
82
|
post_install_message:
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.7.
|
98
|
+
rubygems_version: 2.7.7
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Make any boolean field easily toggleable on\off from index view in rails
|