administrate_exportable 0.1.0 → 0.1.1

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: 55c0bdfe3b210474339bc39070f7610646c0b2c3
4
- data.tar.gz: 3569c8037f32ed5196b81805abbf322a7a3c61cd
3
+ metadata.gz: a40f2b558bd34fda517885c53c41f332093a6ee0
4
+ data.tar.gz: b10ed84dc566ceb7ff3f0a8d60f255443dc60e7d
5
5
  SHA512:
6
- metadata.gz: 947b15a467c2c1dfa1d51c7a4b08409963a0123f22deb148883aa7d0029e7f8d8bbad1525e106c53d4e9dfafa6f1e4e70e189d0f14a9db7cc5290fd30f6f2e28
7
- data.tar.gz: 27bb3cf01b756f046adfaa451f93a8e180231bb6658ae1bdf390e8ee7c2cab2da2dca268a980b0a91aff764a5e4c3e68845fa0ddb94e618de5e7908ad768a171
6
+ metadata.gz: e8cd8e7da956ed5980f87759d2ac19e9b7ee3354dbeefd9135a92b66a16612389a6d9c6c2610c23df371bdb0957bfcb163962beb347fece38960b0c6f269d9c5
7
+ data.tar.gz: 6572dcc41bca974327ce8e88461b479b894c93c93de68305a027252c41472c1f3700b52cac61bbf965e907c73fd939dde15d298929451a7842a9163b63eeb774
@@ -2,49 +2,51 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  administrate_exportable (0.1.0)
5
+ actionview (>= 5.2.2.1)
5
6
  administrate (> 0.10.0)
6
- rails (>= 4.2, < 6.0)
7
+ rails (>= 4.2)
8
+ railties (>= 5.2.2.1)
7
9
 
8
10
  GEM
9
11
  remote: https://rubygems.org/
10
12
  specs:
11
- actioncable (5.2.1)
12
- actionpack (= 5.2.1)
13
+ actioncable (5.2.3)
14
+ actionpack (= 5.2.3)
13
15
  nio4r (~> 2.0)
14
16
  websocket-driver (>= 0.6.1)
15
- actionmailer (5.2.1)
16
- actionpack (= 5.2.1)
17
- actionview (= 5.2.1)
18
- activejob (= 5.2.1)
17
+ actionmailer (5.2.3)
18
+ actionpack (= 5.2.3)
19
+ actionview (= 5.2.3)
20
+ activejob (= 5.2.3)
19
21
  mail (~> 2.5, >= 2.5.4)
20
22
  rails-dom-testing (~> 2.0)
21
- actionpack (5.2.1)
22
- actionview (= 5.2.1)
23
- activesupport (= 5.2.1)
23
+ actionpack (5.2.3)
24
+ actionview (= 5.2.3)
25
+ activesupport (= 5.2.3)
24
26
  rack (~> 2.0)
25
27
  rack-test (>= 0.6.3)
26
28
  rails-dom-testing (~> 2.0)
27
29
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.2.1)
29
- activesupport (= 5.2.1)
30
+ actionview (5.2.3)
31
+ activesupport (= 5.2.3)
30
32
  builder (~> 3.1)
31
33
  erubi (~> 1.4)
32
34
  rails-dom-testing (~> 2.0)
33
35
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.2.1)
35
- activesupport (= 5.2.1)
36
+ activejob (5.2.3)
37
+ activesupport (= 5.2.3)
36
38
  globalid (>= 0.3.6)
37
- activemodel (5.2.1)
38
- activesupport (= 5.2.1)
39
- activerecord (5.2.1)
40
- activemodel (= 5.2.1)
41
- activesupport (= 5.2.1)
39
+ activemodel (5.2.3)
40
+ activesupport (= 5.2.3)
41
+ activerecord (5.2.3)
42
+ activemodel (= 5.2.3)
43
+ activesupport (= 5.2.3)
42
44
  arel (>= 9.0)
43
- activestorage (5.2.1)
44
- actionpack (= 5.2.1)
45
- activerecord (= 5.2.1)
45
+ activestorage (5.2.3)
46
+ actionpack (= 5.2.3)
47
+ activerecord (= 5.2.3)
46
48
  marcel (~> 0.3.1)
47
- activesupport (5.2.1)
49
+ activesupport (5.2.3)
48
50
  concurrent-ruby (~> 1.0, >= 1.0.2)
49
51
  i18n (>= 0.7, < 2)
50
52
  minitest (~> 5.1)
@@ -65,26 +67,26 @@ GEM
65
67
  enumerate_it
66
68
  rails (>= 4.2, < 6.0)
67
69
  arel (9.0.0)
68
- autoprefixer-rails (9.3.1)
70
+ autoprefixer-rails (9.6.1)
69
71
  execjs
70
72
  builder (3.2.3)
71
- byebug (10.0.2)
73
+ byebug (11.0.1)
72
74
  coderay (1.1.2)
73
- concurrent-ruby (1.1.3)
75
+ concurrent-ruby (1.1.5)
74
76
  crass (1.0.4)
75
77
  datetime_picker_rails (0.0.7)
76
78
  momentjs-rails (>= 2.8.1)
77
79
  diff-lcs (1.3)
78
- enumerate_it (1.7.0)
79
- activesupport (>= 3.0.0)
80
- erubi (1.7.1)
80
+ enumerate_it (2.0.0)
81
+ activesupport (>= 4.0.0)
82
+ erubi (1.8.0)
81
83
  execjs (2.7.0)
82
- ffi (1.9.25)
83
- globalid (0.4.1)
84
+ ffi (1.11.1)
85
+ globalid (0.4.2)
84
86
  activesupport (>= 4.2.0)
85
- i18n (1.1.1)
87
+ i18n (1.6.0)
86
88
  concurrent-ruby (~> 1.0)
87
- jquery-rails (4.3.3)
89
+ jquery-rails (4.3.5)
88
90
  rails-dom-testing (>= 1, < 3)
89
91
  railties (>= 4.2.0)
90
92
  thor (>= 0.14, < 2.0)
@@ -108,61 +110,62 @@ GEM
108
110
  marcel (0.3.3)
109
111
  mimemagic (~> 0.3.2)
110
112
  method_source (0.9.2)
111
- mimemagic (0.3.2)
112
- mini_mime (1.0.1)
113
- mini_portile2 (2.3.0)
113
+ mimemagic (0.3.3)
114
+ mini_mime (1.0.2)
115
+ mini_portile2 (2.4.0)
114
116
  minitest (5.11.3)
115
117
  momentjs-rails (2.20.1)
116
118
  railties (>= 3.1)
117
- nio4r (2.3.1)
118
- nokogiri (1.8.5)
119
- mini_portile2 (~> 2.3.0)
119
+ nio4r (2.4.0)
120
+ nokogiri (1.10.3)
121
+ mini_portile2 (~> 2.4.0)
120
122
  pry (0.12.2)
121
123
  coderay (~> 1.1.0)
122
124
  method_source (~> 0.9.0)
123
- pry-byebug (3.6.0)
124
- byebug (~> 10.0)
125
+ pry-byebug (3.7.0)
126
+ byebug (~> 11.0)
125
127
  pry (~> 0.10)
126
- rack (2.0.6)
128
+ rack (2.0.7)
127
129
  rack-test (1.1.0)
128
130
  rack (>= 1.0, < 3)
129
- rails (5.2.1)
130
- actioncable (= 5.2.1)
131
- actionmailer (= 5.2.1)
132
- actionpack (= 5.2.1)
133
- actionview (= 5.2.1)
134
- activejob (= 5.2.1)
135
- activemodel (= 5.2.1)
136
- activerecord (= 5.2.1)
137
- activestorage (= 5.2.1)
138
- activesupport (= 5.2.1)
131
+ rails (5.2.3)
132
+ actioncable (= 5.2.3)
133
+ actionmailer (= 5.2.3)
134
+ actionpack (= 5.2.3)
135
+ actionview (= 5.2.3)
136
+ activejob (= 5.2.3)
137
+ activemodel (= 5.2.3)
138
+ activerecord (= 5.2.3)
139
+ activestorage (= 5.2.3)
140
+ activesupport (= 5.2.3)
139
141
  bundler (>= 1.3.0)
140
- railties (= 5.2.1)
142
+ railties (= 5.2.3)
141
143
  sprockets-rails (>= 2.0.0)
142
144
  rails-dom-testing (2.0.3)
143
145
  activesupport (>= 4.2.0)
144
146
  nokogiri (>= 1.6)
145
- rails-html-sanitizer (1.0.4)
147
+ rails-html-sanitizer (1.1.0)
146
148
  loofah (~> 2.2, >= 2.2.2)
147
- railties (5.2.1)
148
- actionpack (= 5.2.1)
149
- activesupport (= 5.2.1)
149
+ railties (5.2.3)
150
+ actionpack (= 5.2.3)
151
+ activesupport (= 5.2.3)
150
152
  method_source
151
153
  rake (>= 0.8.7)
152
154
  thor (>= 0.19.0, < 2.0)
153
- rake (10.5.0)
155
+ rake (12.3.3)
154
156
  rb-fsevent (0.10.3)
155
- rb-inotify (0.9.10)
156
- ffi (>= 0.5.0, < 2)
157
- rspec-core (3.8.0)
157
+ rb-inotify (0.10.0)
158
+ ffi (~> 1.0)
159
+ rb-readline (0.5.5)
160
+ rspec-core (3.8.2)
158
161
  rspec-support (~> 3.8.0)
159
- rspec-expectations (3.8.2)
162
+ rspec-expectations (3.8.4)
160
163
  diff-lcs (>= 1.2.0, < 2.0)
161
164
  rspec-support (~> 3.8.0)
162
- rspec-mocks (3.8.0)
165
+ rspec-mocks (3.8.1)
163
166
  diff-lcs (>= 1.2.0, < 2.0)
164
167
  rspec-support (~> 3.8.0)
165
- rspec-rails (3.8.1)
168
+ rspec-rails (3.8.2)
166
169
  actionpack (>= 3.0)
167
170
  activesupport (>= 3.0)
168
171
  railties (>= 3.0)
@@ -170,8 +173,8 @@ GEM
170
173
  rspec-expectations (~> 3.8.0)
171
174
  rspec-mocks (~> 3.8.0)
172
175
  rspec-support (~> 3.8.0)
173
- rspec-support (3.8.0)
174
- sass (3.7.2)
176
+ rspec-support (3.8.2)
177
+ sass (3.7.4)
175
178
  sass-listen (~> 4.0.0)
176
179
  sass-listen (4.0.0)
177
180
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -190,15 +193,15 @@ GEM
190
193
  actionpack (>= 4.0)
191
194
  activesupport (>= 4.0)
192
195
  sprockets (>= 3.0.0)
193
- sqlite3 (1.3.13)
196
+ sqlite3 (1.4.1)
194
197
  thor (0.20.3)
195
198
  thread_safe (0.3.6)
196
- tilt (2.0.8)
199
+ tilt (2.0.9)
197
200
  tzinfo (1.2.5)
198
201
  thread_safe (~> 0.1)
199
- websocket-driver (0.7.0)
202
+ websocket-driver (0.7.1)
200
203
  websocket-extensions (>= 0.1.0)
201
- websocket-extensions (0.1.3)
204
+ websocket-extensions (0.1.4)
202
205
 
203
206
  PLATFORMS
204
207
  ruby
@@ -209,7 +212,8 @@ DEPENDENCIES
209
212
  administrate_exportable!
210
213
  byebug
211
214
  pry-byebug
212
- rails (~> 5.2.1)
215
+ rails (~> 5.2.3)
216
+ rb-readline
213
217
  rspec-rails (~> 3.8)
214
218
  sqlite3
215
219
 
data/README.md CHANGED
@@ -56,7 +56,7 @@ ATTRIBUTE_TYPES = {
56
56
 
57
57
  By default the gem adds the Export button to the view `views/admin/application/index.html.erb`. But if you have your own Administrate `index` views, you can add the link manually:
58
58
  ```ruby
59
- link_to 'Export', [:export, namespace, page.resource_path], class: 'button'
59
+ link_to('Export', [:export, namespace, page.resource_name.to_s.pluralize, { format: :csv }], class: 'button') if valid_action?(:export)
60
60
  ```
61
61
 
62
62
  Example:
@@ -72,7 +72,7 @@ Example:
72
72
  [:new, namespace, page.resource_path],
73
73
  class: "button",
74
74
  ) if valid_action?(:new) && show_action?(:new, new_resource) %>
75
- <%= link_to 'Export', [:export, namespace, page.resource_path], class: 'button' %>
75
+ <%= link_to('Export', [:export, namespace, page.resource_name.to_s.pluralize, { format: :csv }], class: 'button') if valid_action?(:export) %>
76
76
  </div>
77
77
  ....
78
78
  ```
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = AdministrateExportable::VERSION
9
9
  spec.authors = ["Jônatas Rancan", "Andrei Bondarev"]
10
10
  spec.email = ["hello@sourcelabs.io"]
11
- spec.homepage = 'https://github.com/SourceLabsLLC/administrate_exportable'
11
+ spec.homepage = 'https://github.com/SourceLabsLLC/administrate_exportable'
12
12
  spec.summary = "Simple plugin to add CSV export feature to Administrate"
13
13
  spec.description = spec.summary
14
14
  spec.license = "MIT"
@@ -33,5 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "rake", "~> 10.0"
34
34
  spec.add_development_dependency "rspec", "~> 3.0"
35
35
  spec.add_dependency 'administrate','> 0.10.0'
36
- spec.add_dependency 'rails', '>= 4.2', '< 6.0'
36
+ spec.add_dependency 'rails', '>= 4.2'
37
+ spec.add_dependency 'actionview', '>= 5.2.2.1'
38
+ spec.add_dependency 'railties', '>= 5.2.2.1'
37
39
  end
@@ -1,3 +1,3 @@
1
1
  module AdministrateExportable
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate_exportable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jônatas Rancan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-11-22 00:00:00.000000000 Z
12
+ date: 2019-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -74,9 +74,6 @@ dependencies:
74
74
  - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '4.2'
77
- - - "<"
78
- - !ruby/object:Gem::Version
79
- version: '6.0'
80
77
  type: :runtime
81
78
  prerelease: false
82
79
  version_requirements: !ruby/object:Gem::Requirement
@@ -84,9 +81,34 @@ dependencies:
84
81
  - - ">="
85
82
  - !ruby/object:Gem::Version
86
83
  version: '4.2'
87
- - - "<"
84
+ - !ruby/object:Gem::Dependency
85
+ name: actionview
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 5.2.2.1
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: 5.2.2.1
98
+ - !ruby/object:Gem::Dependency
99
+ name: railties
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: 5.2.2.1
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
88
110
  - !ruby/object:Gem::Version
89
- version: '6.0'
111
+ version: 5.2.2.1
90
112
  description: Simple plugin to add CSV export feature to Administrate
91
113
  email:
92
114
  - hello@sourcelabs.io