activeadmin-xls 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5dcd598421b522ad83b3ddd1a1a038b3d173f3e
4
- data.tar.gz: c882e40a69baa02ef345c31001f77b5f2b291652
3
+ metadata.gz: c3e07f07dfdc40d3f51d3bf7ed071c2f11a204fd
4
+ data.tar.gz: 899009df0bbc02bc522b4c9f872d036e5ecb96b7
5
5
  SHA512:
6
- metadata.gz: 5909fa865c0f9664b61d7771215faaf2695e2b6fe72c8de21b61d5286ba1c7213496d1271057ab9df6579f265e3203f0e40ccb9b7ca5ca227e0493709801e53c
7
- data.tar.gz: 10ea87bd2f9c629b4c4f5acf58f37dcb89f2c8f263e58ba6b12c840d70b80922e00bc65af457495d08bfef5deff3d2b3278e442eb6ce443166b8b531e378f991
6
+ metadata.gz: ad917c6af301c4f86bcd51b16cd49e57e57bca0c74fa9ff437509298e02b9f3e73420601f5cd2138cf9c3be11bdf4541ee5de5711b91c7c514fa033cff840065
7
+ data.tar.gz: 2c5f38deffdb05f528e6248daf5e4785e58a91664b397e52c148bc07c454c00e61d51b0d4f8b6dec94b0304e5c068b2d19d36c596057d5b283cc5a9ebb483f07
@@ -1,12 +1,13 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 2.2
4
+ - 2.6.5
5
5
 
6
6
  gemfile:
7
7
  - gemfiles/rails_42.gemfile
8
- - gemfiles/rails_51.gemfile
8
+ - gemfiles/rails_52.gemfile
9
+ - gemfiles/rails_60.gemfile
9
10
 
10
11
  script:
11
12
  - bundle exec rake setup
12
- - bundle exec rake
13
+ - bundle exec rake
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## 2.0.2
6
+
7
+ ### Changed
8
+
9
+ * Remove ActiveAdmin runtime dependency version limit '<2' [#16] by [@reaper][]
10
+
5
11
  ## 2.0.1
6
12
 
7
13
  ### Fixed
@@ -61,7 +67,9 @@
61
67
  [#8]: https://github.com/thambley/activeadmin-xls/issues/8
62
68
  [#11]: https://github.com/thambley/activeadmin-xls/pull/11
63
69
  [#13]: https://github.com/thambley/activeadmin-xls/issues/13
70
+ [#16]: https://github.com/thambley/activeadmin-xls/pull/16
64
71
 
65
72
  [@rewritten]: https://github.com/rewritten
66
73
  [@ejaypcanaria]: https://github.com/ejaypcanaria
67
- [@cpunion]: https://github.com/cpunion
74
+ [@cpunion]: https://github.com/cpunion
75
+ [@reaper]: https://github.com/reaper
data/Gemfile CHANGED
@@ -4,15 +4,14 @@ gem 'spreadsheet', '~> 1.1', '>= 1.1.4'
4
4
 
5
5
  group :development, :test do
6
6
  gem 'rails-i18n' # Gives us default i18n for many languages
7
- gem 'sqlite3', '~> 1.3.0'
8
7
  gem 'yard'
9
8
  end
10
9
 
11
10
  group :test do
11
+ gem 'codecov', require: false
12
12
  gem 'cucumber-rails', require: false
13
13
  gem 'database_cleaner'
14
14
  gem 'rspec-mocks', '~> 3.7'
15
15
  gem 'rspec-rails', '~> 3.7'
16
16
  gem 'simplecov', require: false
17
- gem 'codecov', require: false
18
17
  end
data/README.md CHANGED
@@ -22,7 +22,7 @@ Add the following to your Gemfile. All resource index views will now include a l
22
22
  gem 'activeadmin-xls', '~>2.0.0'
23
23
  ```
24
24
 
25
- For Active Admin 1.0, you will also have to update config/initializers/active_admin.rb. Update the download\_links setting to include xls:
25
+ For Active Admin 1.0 and above, you will also have to update config/initializers/active_admin.rb. Update the download\_links setting to include xls:
26
26
 
27
27
  ```ruby
28
28
  config.download_links = %i[csv xml json xls]
@@ -146,18 +146,32 @@ BUNDLE_GEMFILE=gemfiles/rails_42.gemfile bundle exec rake setup
146
146
  BUNDLE_GEMFILE=gemfiles/rails_42.gemfile bundle exec rake
147
147
  ```
148
148
 
149
- ### Rails 5.1
149
+ ### Rails 5.2
150
150
 
151
151
  ```text
152
- bundle install --gemfile=gemfiles/rails_51.gemfile
152
+ bundle install --gemfile=gemfiles/rails_52.gemfile
153
153
  ```
154
154
 
155
155
  ```text
156
- BUNDLE_GEMFILE=gemfiles/rails_51.gemfile bundle exec rake setup
156
+ BUNDLE_GEMFILE=gemfiles/rails_52.gemfile bundle exec rake setup
157
157
  ```
158
158
 
159
159
  ```text
160
- BUNDLE_GEMFILE=gemfiles/rails_51.gemfile bundle exec rake
160
+ BUNDLE_GEMFILE=gemfiles/rails_52.gemfile bundle exec rake
161
+ ```
162
+
163
+ ### Rails 6.0
164
+
165
+ ```text
166
+ bundle install --gemfile=gemfiles/rails_60.gemfile
167
+ ```
168
+
169
+ ```text
170
+ BUNDLE_GEMFILE=gemfiles/rails_60.gemfile bundle exec rake setup
171
+ ```
172
+
173
+ ```text
174
+ BUNDLE_GEMFILE=gemfiles/rails_60.gemfile bundle exec rake
161
175
  ```
162
176
 
163
177
  [Active Admin]:https://www.activeadmin.info/
@@ -174,4 +188,4 @@ BUNDLE_GEMFILE=gemfiles/rails_51.gemfile bundle exec rake
174
188
  [codecov_badge]: https://codecov.io/gh/thambley/activeadmin-xls/branch/master/graph/badge.svg
175
189
  [codecov]: https://codecov.io/gh/thambley/activeadmin-xls
176
190
  [inch_badge]: http://inch-ci.org/github/thambley/activeadmin-xls.svg?branch=master
177
- [inch]: http://inch-ci.org/github/thambley/activeadmin-xls
191
+ [inch]: http://inch-ci.org/github/thambley/activeadmin-xls
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.files = git_tracked_files - gem_ignored_files
23
23
 
24
- s.add_runtime_dependency 'activeadmin', '>= 1.0.0', '< 2'
24
+ s.add_runtime_dependency 'activeadmin', '>= 1.0.0'
25
25
  s.add_runtime_dependency 'spreadsheet', '~> 1.0'
26
26
 
27
27
  s.required_ruby_version = '>= 2.0.0'
@@ -6,9 +6,10 @@ ruby_minor_version = RUBY_VERSION.split('.')[1].to_i
6
6
 
7
7
  eval_gemfile(File.expand_path(File.join('..', 'Gemfile'), __dir__))
8
8
 
9
- gem 'activeadmin', '1.2.1'
9
+ gem 'activeadmin', '1.4.3'
10
10
  gem 'devise', '~> 4.2'
11
- gem 'rails', '4.2.10'
11
+ gem 'rails', '4.2.11'
12
+ gem 'sqlite3', '~> 1.3.0'
12
13
  gem 'turbolinks', '~> 5.0.0'
13
14
  gem 'tzinfo-data'
14
15
 
@@ -6,10 +6,12 @@ ruby_minor_version = RUBY_VERSION.split('.')[1].to_i
6
6
 
7
7
  eval_gemfile(File.expand_path(File.join('..', 'Gemfile'), __dir__))
8
8
 
9
- gem 'activeadmin', '1.2.1'
10
- gem 'devise', '~> 4.2'
11
- gem 'rails', '5.1.5'
12
- gem 'turbolinks', '~> 5.0.0'
9
+ gem 'activeadmin', '2.4.0'
10
+ gem 'bootsnap', require: false
11
+ gem 'devise', '~> 4.7'
12
+ gem 'rails', ' ~> 5.2'
13
+ gem 'sqlite3', '~> 1.4.0'
14
+ gem 'turbolinks', '~> 5.2.0'
13
15
  gem 'tzinfo-data'
14
16
 
15
17
  group :test do
@@ -19,4 +21,4 @@ group :test do
19
21
  end
20
22
  end
21
23
 
22
- gemspec path: "../"
24
+ gemspec path: "../"
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env ruby
2
+ source 'https://rubygems.org'
3
+
4
+ ruby_major_version = RUBY_VERSION.split('.')[0].to_i
5
+ ruby_minor_version = RUBY_VERSION.split('.')[1].to_i
6
+
7
+ eval_gemfile(File.expand_path(File.join('..', 'Gemfile'), __dir__))
8
+
9
+ gem 'activeadmin', '2.4.0'
10
+ gem 'bootsnap', require: false
11
+ gem 'devise', '~> 4.7'
12
+ gem 'rails', '~> 6'
13
+ gem 'sqlite3', '~> 1.4.0'
14
+ gem 'turbolinks', '~> 5.2.0'
15
+ gem 'tzinfo-data'
16
+ gem 'webpacker', '~> 4.x'
17
+
18
+ group :test do
19
+ gem 'shoulda-matchers', '~> 3.1'
20
+ if ruby_major_version > 2 || (ruby_major_version == 2 && ruby_minor_version > 1)
21
+ gem 'test-unit', '~> 3.0'
22
+ end
23
+ end
24
+
25
+ gemspec path: "../"
@@ -1,6 +1,6 @@
1
1
  module ActiveAdmin
2
2
  module Xls
3
3
  # ActiveAdmin XLS gem version
4
- VERSION = '2.0.1'.freeze
4
+ VERSION = '2.0.2'.freeze
5
5
  end
6
6
  end
@@ -3,7 +3,7 @@ describe Admin::CategoriesController, type: :controller do
3
3
  let(:mime) { Mime::Type.lookup_by_extension(:xls) }
4
4
 
5
5
  let(:filename) do
6
- "#{controller.resource_class.to_s.downcase.pluralize}-#{Time.now.strftime('%Y-%m-%d')}.xls"
6
+ "categories-#{Time.now.strftime('%Y-%m-%d')}.xls"
7
7
  end
8
8
 
9
9
  it 'generates an xls filename' do
@@ -15,7 +15,7 @@ describe Admin::CategoriesController, type: :controller do
15
15
  request.accept = mime
16
16
  get :index
17
17
  disposition = "attachment; filename=\"#{filename}\""
18
- expect(response.headers['Content-Disposition']).to eq(disposition)
18
+ expect(response.headers['Content-Disposition']).to start_with(disposition)
19
19
  expect(response.headers['Content-Transfer-Encoding']).to eq('binary')
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-xls
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Hambley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-02 00:00:00.000000000 Z
11
+ date: 2019-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -17,9 +17,6 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.0.0
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '2'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +24,6 @@ dependencies:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 1.0.0
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '2'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: spreadsheet
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -63,7 +57,8 @@ files:
63
57
  - Rakefile
64
58
  - activeadmin-xls.gemspec
65
59
  - gemfiles/rails_42.gemfile
66
- - gemfiles/rails_51.gemfile
60
+ - gemfiles/rails_52.gemfile
61
+ - gemfiles/rails_60.gemfile
67
62
  - lib/active_admin/xls/builder.rb
68
63
  - lib/active_admin/xls/dsl.rb
69
64
  - lib/active_admin/xls/engine.rb