activeadmin-axlsx 2.1.1 → 2.1.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: 007b376c2e8ceb36376295cda6b85fe2c0b90013
4
- data.tar.gz: afc6ea969c52436a9f5c7733262b5b721ae39797
3
+ metadata.gz: f1cdc7860e58cf7ab6d02c695cf25a2c028684f7
4
+ data.tar.gz: 9e88bf8d16d3d9028d5545ef82cbcae57bbcbc51
5
5
  SHA512:
6
- metadata.gz: 4928764c3bff1562b9c59b4b996c5f423c7a0e056f136afc3d6f72e03f59d36a452f75d161475715ba1fef7149e120491e798459fd54c212e7a142c7e36b4d8c
7
- data.tar.gz: 420f4c61234823da4caa2c2a63c5446a5095da5f6bfc18e4cc6a9b03a816b4ea3e532ad96c8fd2c4046aa221e32bbaf6786d54e7a2bf49f66d33bda1eda15b96
6
+ metadata.gz: dcf1ada594e5e2fdf9062b7d8b2b42e5bbdf0d9ae5d88c4475d75311182f0793ac3e98637c9002775b9ac3a80f023f518a385aea94b1f13fd33103a5c583c963
7
+ data.tar.gz: d48d101a12eed576b1fdbf0b4191f724938a1ae5574a89a176d25b037fb7b6c2a92b9e07f74d94fccfc6a6de44b95f1e6276ed7c54179785b95de6ce8b4fc5f4
@@ -1,2 +1 @@
1
- ---
2
- BUNDLE_DISABLE_SHARED_GEMS: '1'
1
+ --- {}
data/.gitignore CHANGED
@@ -2,3 +2,7 @@ spec/rails
2
2
  *.gem
3
3
  coverage
4
4
  *.xlsx
5
+ doc
6
+ *.un~
7
+ .yardoc
8
+ .rbenv-version
data/.yardops CHANGED
@@ -0,0 +1 @@
1
+ --no-private --protected app/**/*.rb - README.md LEGAL
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ gemspec
4
4
 
5
5
  group :development, :test do
6
6
  gem 'sqlite3'
7
- gem 'rake', '~> 0.9.6', :require => false
7
+ gem 'rake', '~> 10.0.4', :require => false
8
8
  gem 'haml', '~> 3.1.1', :require => false
9
9
  gem 'yard'
10
10
  gem 'rdiscount' # For yard
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activeadmin-axlsx (2.1.1)
4
+ activeadmin-axlsx (2.1.2)
5
5
  activeadmin (~> 0.6.0)
6
6
  axlsx
7
7
 
@@ -183,7 +183,7 @@ GEM
183
183
  rake (>= 0.8.7)
184
184
  rdoc (~> 3.4)
185
185
  thor (>= 0.14.6, < 2.0)
186
- rake (0.9.6)
186
+ rake (10.0.4)
187
187
  rdiscount (1.6.8)
188
188
  rdoc (3.12)
189
189
  json (~> 1.4)
@@ -236,7 +236,7 @@ GEM
236
236
  websocket (1.0.3)
237
237
  xpath (0.1.4)
238
238
  nokogiri (~> 1.3)
239
- yard (0.8.3)
239
+ yard (0.8.6.1)
240
240
 
241
241
  PLATFORMS
242
242
  ruby
@@ -255,7 +255,7 @@ DEPENDENCIES
255
255
  jslint_on_rails (~> 1.0.6)
256
256
  launchy
257
257
  rails-i18n
258
- rake (~> 0.9.6)
258
+ rake (~> 10.0.4)
259
259
  rdiscount
260
260
  rspec-mocks
261
261
  rspec-rails (~> 2.9.0)
data/README.md CHANGED
@@ -20,22 +20,22 @@ appreciation for the gem, please don't hesitate to make a donation.
20
20
 
21
21
  **License**: MIT License
22
22
 
23
- **Latest Version**: 2.1.1
23
+ **Latest Version**: 2.1.2
24
24
 
25
- **Ruby Version**: 1.9.2, 1.9.3
25
+ **Ruby Version**: 1.9.2, 1.9.3, 2.0.0
26
26
 
27
27
  **JRuby Version**: 1.9 mode
28
28
 
29
29
  **Rubinius Version**: rubinius 2.0.0dev * lower versions may run, this gem always tests against head.
30
30
 
31
- **Release Date**: 2013.04.18
31
+ **Release Date**: 2013.06.02
32
32
 
33
33
  Synopsis
34
34
  --------
35
35
 
36
36
  This gem provides automatic OOXML (xlsx) downloads for Active Admin
37
37
  resources. It lets you harness the full power of Axlsx when you want to
38
- but for the most part just stays out of your way and adds a link next to
38
+ but for the most part just stays out of your way and adds a link next to
39
39
  the csv download for xlsx (Excel/numbers/Libre Office/Google Docs)
40
40
 
41
41
  ![Screen 1](https://github.com/randym/activeadmin-axlsx/raw/master/screen_capture.png)
@@ -53,9 +53,8 @@ Cool Toys
53
53
  ---------
54
54
 
55
55
  Here are a few quick examples of things you can easily tweak.
56
- While Axlsx does support most anything you can do in MS Excel,
57
- I'd be excite to implement something adventurous.
58
- Please ping me on irc. (freenode#axlsx)
56
+ Axlsx supports A LOT of the specification so if you are looking to do
57
+ something adventurous please ping me on irc. (freenode#axlsx)
59
58
 
60
59
  ##localize column headers
61
60
 
@@ -72,7 +71,7 @@ end
72
71
  #app/admin/posts.rb
73
72
  ActiveAdmin.register Post do
74
73
  config.xlsx_builder.column('author_name') do |resource|
75
- resource.author.name
74
+ resource.author.name
76
75
  end
77
76
  end
78
77
  ```
@@ -99,14 +98,14 @@ end
99
98
  #Using the DSL
100
99
 
101
100
  Everything that you do with the config'd default builder can be done via
102
- the resource DSL.
101
+ the resource DSL.
103
102
 
104
103
  Below is an example of the DSL
105
104
 
106
105
  ```ruby
107
106
  ActiveAdmin.register Post do
108
107
  # i18n_scope and header style are set via options
109
- xlsx(:i18n_scope => [:active_admin, :axlsx, :post],
108
+ xlsx(:i18n_scope => [:active_admin, :axlsx, :post],
110
109
  :header_style => {:bg_color => 'FF0000', :fg_color => 'FF' }) do
111
110
 
112
111
  # deleting columns from the report
@@ -114,7 +113,7 @@ ActiveAdmin.register Post do
114
113
 
115
114
  # adding a column to the report
116
115
  column(:author) { |resource| "#{resource.author.first_name} #{resource.author.last_name}" }
117
-
116
+
118
117
  # creating a chart and inserting additional data with after_filter
119
118
  after_filter { |sheet|
120
119
  sheet.add_row []
@@ -146,7 +145,7 @@ end
146
145
  #Specs
147
146
  ------
148
147
  Running specs for this gem requires that you construct a rails application.
149
- To execute the specs, navigate to the gem directory,
148
+ To execute the specs, navigate to the gem directory,
150
149
  run bundle install and run these to rake tasks:
151
150
 
152
151
  ```
@@ -157,15 +156,14 @@ bundle exec rake setup
157
156
  bundle exec rake
158
157
  ```
159
158
  # Changelog
159
+ **2013.06.02** Release 2.1.2
160
+ - builder#collection is now set on serialize and is available in before and after filters.
161
+ - Code cleanup
160
162
  **2013.04.18** Release 2.1.1
161
- - Serialize now returns the serialized stream instead of the Package
162
- object. While I doubt anyone is overriding the index wrapper on the
163
- controller, please let me know if this breaks anything for you as it is
164
- strictly not a backwards compatible change.
165
- - BugFix Package and Worksheet objects are now re-initialized on request.
166
- - Pre 0.5.0 conditional extension logic removed.
163
+ - Fixed issue with repeating data in sheets across downloads
164
+ - Updated to use activeadmin 0.6.0+ which supports plugins.
167
165
  **2013.03.21** Release 2.0.1
168
- - Fixed an issue with missing objects when using the DSL.
166
+ - Fixed an issue with missing objects when using the DSL.
169
167
  Huge thanks to [Fivell](https://github.com/Fivell)
170
168
  **2012.11.29** Release 2.0.0
171
169
  - resouce content column are now pre-populated.
@@ -8,13 +8,15 @@ Gem::Specification.new do |s|
8
8
  s.homepage = 'https://github.com/randym/activeadmin-axlsx'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.date = Time.now.strftime('%Y-%m-%d')
11
+ s.license = 'MIT'
11
12
  s.summary = "Adds excel downloads for resources within the Active Admin framework via Axlsx."
12
13
  s.description = <<-eof
13
14
  This gem uses axlsx to provide excel/xlsx downloads for resources in Active Admin. Often, users are happier with excel, so why not give it to them instead of CSV?
14
15
  eof
15
16
  s.files = `git ls-files`.split("\n").sort
16
- s.test_files = `git ls-files -- {spec}/*`.split("\n")
17
+ s.test_files = `git ls-files -- {spec}/*`.split("\n")
17
18
  s.test_files = Dir.glob("{spec/**/*}")
19
+
18
20
  s.add_runtime_dependency 'activeadmin', "~> 0.6.0"
19
21
  s.add_runtime_dependency 'axlsx'
20
22
 
@@ -1,10 +1,10 @@
1
1
  require 'active_admin'
2
- require 'active_admin/axlsx/build_download_format_links'
3
2
  require 'active_admin/axlsx/version'
4
3
  require 'active_admin/axlsx/builder'
5
4
  require 'active_admin/axlsx/dsl'
6
5
  require 'active_admin/axlsx/resource_extension'
7
6
  require 'active_admin/axlsx/resource_controller_extension'
7
+
8
8
  class Railtie < ::Rails::Railtie
9
9
  config.before_initialize do
10
10
  begin
@@ -89,7 +89,12 @@ module ActiveAdmin
89
89
  # The columns this builder will be serializing
90
90
  attr_reader :columns
91
91
 
92
- # removes all columns from the builder. This is useful when you want to
92
+ # The collection we are serializing.
93
+ # @note This is only available after serialize has been called,
94
+ # and is reset on each subsequent call.
95
+ attr_reader :collection
96
+
97
+ # removes all columns from the builder. This is useful when you want to
93
98
  # only render specific columns. To remove specific columns use ignore_column.
94
99
  def clear_columns
95
100
  @columns = []
@@ -112,6 +117,7 @@ module ActiveAdmin
112
117
  # Serializes the collection provided
113
118
  # @return [Axlsx::Package]
114
119
  def serialize(collection)
120
+ @collection = collection
115
121
  apply_filter @before_filter
116
122
  export_collection(collection)
117
123
  apply_filter @after_filter
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module Axlsx
3
- VERSION = '2.1.1'
3
+ VERSION = '2.1.2'
4
4
  end
5
5
  end
@@ -76,6 +76,7 @@ module ActiveAdmin
76
76
  end
77
77
  }
78
78
  before_filter do |sheet|
79
+ collection.first.author.first_name = 'Set In Proc'
79
80
  sheet.add_row ['Created', Time.zone.now]
80
81
  sheet.add_row []
81
82
  end
@@ -89,6 +90,11 @@ module ActiveAdmin
89
90
  builder.stub(:clean_up) { false }
90
91
  builder.serialize(Post.all)
91
92
  @package = builder.send(:package)
93
+ @collection = builder.collection
94
+ end
95
+
96
+ it 'provides the collection object' do
97
+ @collection.count.should == Post.all.count
92
98
  end
93
99
 
94
100
  it 'merges our customizations with the default header style' do
@@ -109,6 +115,11 @@ module ActiveAdmin
109
115
  it 'processes the before filter' do
110
116
  @package.workbook.worksheets.first["A1"].value.should == 'Created'
111
117
  end
118
+
119
+ it 'lets us work against the collection in the before filter' do
120
+ @package.workbook.worksheets.first.rows.last.cells.first.value.should == 'Set In Proc nancy'
121
+ end
122
+
112
123
  it 'processes the after filter' do
113
124
  @package.workbook.charts.size.should == 1
114
125
  end
@@ -1,7 +1,6 @@
1
1
  require 'simplecov'
2
2
  SimpleCov.start do
3
3
  add_filter "/rails/"
4
- add_filter "/vendor/"
5
4
  end
6
5
 
7
6
  # prepare ENV for rails
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-axlsx
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Randy Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-18 00:00:00.000000000 Z
11
+ date: 2013-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -57,7 +57,6 @@ files:
57
57
  - Rakefile
58
58
  - activeadmin-axlsx.gemspec
59
59
  - lib/active_admin/axlsx.rb
60
- - lib/active_admin/axlsx/build_download_format_links.rb
61
60
  - lib/active_admin/axlsx/builder.rb
62
61
  - lib/active_admin/axlsx/dsl.rb
63
62
  - lib/active_admin/axlsx/resource_controller_extension.rb
@@ -77,8 +76,78 @@ files:
77
76
  - spec/support/templates/cucumber.rb
78
77
  - spec/support/templates/cucumber_with_reloading.rb
79
78
  - spec/support/templates/en.yml
79
+ - spec/rails/rails-3.2.9/app/admin/admin_user.rb
80
+ - spec/rails/rails-3.2.9/app/admin/categories.rb
81
+ - spec/rails/rails-3.2.9/app/admin/dashboard.rb
82
+ - spec/rails/rails-3.2.9/app/admin/posts.rb
83
+ - spec/rails/rails-3.2.9/app/admin/stores.rb
84
+ - spec/rails/rails-3.2.9/app/admin/users.rb
85
+ - spec/rails/rails-3.2.9/app/assets/images/rails.png
86
+ - spec/rails/rails-3.2.9/app/assets/javascripts/active_admin.js
87
+ - spec/rails/rails-3.2.9/app/assets/javascripts/application.js
88
+ - spec/rails/rails-3.2.9/app/assets/stylesheets/active_admin.css.scss
89
+ - spec/rails/rails-3.2.9/app/assets/stylesheets/application.css
90
+ - spec/rails/rails-3.2.9/app/controllers/application_controller.rb
91
+ - spec/rails/rails-3.2.9/app/helpers/application_helper.rb
92
+ - spec/rails/rails-3.2.9/app/models/admin_user.rb
93
+ - spec/rails/rails-3.2.9/app/models/category.rb
94
+ - spec/rails/rails-3.2.9/app/models/post.rb
95
+ - spec/rails/rails-3.2.9/app/models/publisher.rb
96
+ - spec/rails/rails-3.2.9/app/models/store.rb
97
+ - spec/rails/rails-3.2.9/app/models/tag.rb
98
+ - spec/rails/rails-3.2.9/app/models/user.rb
99
+ - spec/rails/rails-3.2.9/app/views/layouts/application.html.erb
100
+ - spec/rails/rails-3.2.9/config/application.rb
101
+ - spec/rails/rails-3.2.9/config/boot.rb
102
+ - spec/rails/rails-3.2.9/config/database.yml
103
+ - spec/rails/rails-3.2.9/config/environment.rb
104
+ - spec/rails/rails-3.2.9/config/environments/cucumber.rb
105
+ - spec/rails/rails-3.2.9/config/environments/cucumber_with_reloading.rb
106
+ - spec/rails/rails-3.2.9/config/environments/development.rb
107
+ - spec/rails/rails-3.2.9/config/environments/production.rb
108
+ - spec/rails/rails-3.2.9/config/environments/test.rb
109
+ - spec/rails/rails-3.2.9/config/initializers/active_admin.rb
110
+ - spec/rails/rails-3.2.9/config/initializers/backtrace_silencers.rb
111
+ - spec/rails/rails-3.2.9/config/initializers/devise.rb
112
+ - spec/rails/rails-3.2.9/config/initializers/inflections.rb
113
+ - spec/rails/rails-3.2.9/config/initializers/mime_types.rb
114
+ - spec/rails/rails-3.2.9/config/initializers/secret_token.rb
115
+ - spec/rails/rails-3.2.9/config/initializers/session_store.rb
116
+ - spec/rails/rails-3.2.9/config/initializers/wrap_parameters.rb
117
+ - spec/rails/rails-3.2.9/config/locales/devise.en.yml
118
+ - spec/rails/rails-3.2.9/config/locales/en.yml
119
+ - spec/rails/rails-3.2.9/config/routes.rb
120
+ - spec/rails/rails-3.2.9/config.ru
121
+ - spec/rails/rails-3.2.9/db/cucumber.sqlite3
122
+ - spec/rails/rails-3.2.9/db/development.sqlite3
123
+ - spec/rails/rails-3.2.9/db/migrate/20130602172722_create_posts.rb
124
+ - spec/rails/rails-3.2.9/db/migrate/20130602172724_create_users.rb
125
+ - spec/rails/rails-3.2.9/db/migrate/20130602172729_create_categories.rb
126
+ - spec/rails/rails-3.2.9/db/migrate/20130602172731_create_stores.rb
127
+ - spec/rails/rails-3.2.9/db/migrate/20130602172734_create_tags.rb
128
+ - spec/rails/rails-3.2.9/db/migrate/20130602172736_devise_create_admin_users.rb
129
+ - spec/rails/rails-3.2.9/db/migrate/20130602172740_create_admin_notes.rb
130
+ - spec/rails/rails-3.2.9/db/migrate/20130602172741_move_admin_notes_to_comments.rb
131
+ - spec/rails/rails-3.2.9/db/schema.rb
132
+ - spec/rails/rails-3.2.9/db/seeds.rb
133
+ - spec/rails/rails-3.2.9/db/test.sqlite3
134
+ - spec/rails/rails-3.2.9/doc/README_FOR_APP
135
+ - spec/rails/rails-3.2.9/log/cucumber.log
136
+ - spec/rails/rails-3.2.9/log/development.log
137
+ - spec/rails/rails-3.2.9/public/404.html
138
+ - spec/rails/rails-3.2.9/public/422.html
139
+ - spec/rails/rails-3.2.9/public/500.html
140
+ - spec/rails/rails-3.2.9/public/favicon.ico
141
+ - spec/rails/rails-3.2.9/public/index.html
142
+ - spec/rails/rails-3.2.9/public/robots.txt
143
+ - spec/rails/rails-3.2.9/Rakefile
144
+ - spec/rails/rails-3.2.9/README.rdoc
145
+ - spec/rails/rails-3.2.9/script/rails
146
+ - spec/rails/rails-3.2.9/test/fixtures/admin_users.yml
147
+ - spec/rails/rails-3.2.9/test/unit/admin_user_test.rb
80
148
  homepage: https://github.com/randym/activeadmin-axlsx
81
- licenses: []
149
+ licenses:
150
+ - MIT
82
151
  metadata: {}
83
152
  post_install_message:
84
153
  rdoc_options: []
@@ -96,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
165
  version: '0'
97
166
  requirements: []
98
167
  rubyforge_project:
99
- rubygems_version: 2.0.3
168
+ rubygems_version: 2.0.0
100
169
  signing_key:
101
170
  specification_version: 4
102
171
  summary: Adds excel downloads for resources within the Active Admin framework via
@@ -107,6 +176,75 @@ test_files:
107
176
  - spec/axlsx/unit/dsl_spec.rb
108
177
  - spec/axlsx/unit/resource_controller_spec.rb
109
178
  - spec/axlsx/unit/resource_spec.rb
179
+ - spec/rails/rails-3.2.9/app/admin/admin_user.rb
180
+ - spec/rails/rails-3.2.9/app/admin/categories.rb
181
+ - spec/rails/rails-3.2.9/app/admin/dashboard.rb
182
+ - spec/rails/rails-3.2.9/app/admin/posts.rb
183
+ - spec/rails/rails-3.2.9/app/admin/stores.rb
184
+ - spec/rails/rails-3.2.9/app/admin/users.rb
185
+ - spec/rails/rails-3.2.9/app/assets/images/rails.png
186
+ - spec/rails/rails-3.2.9/app/assets/javascripts/active_admin.js
187
+ - spec/rails/rails-3.2.9/app/assets/javascripts/application.js
188
+ - spec/rails/rails-3.2.9/app/assets/stylesheets/active_admin.css.scss
189
+ - spec/rails/rails-3.2.9/app/assets/stylesheets/application.css
190
+ - spec/rails/rails-3.2.9/app/controllers/application_controller.rb
191
+ - spec/rails/rails-3.2.9/app/helpers/application_helper.rb
192
+ - spec/rails/rails-3.2.9/app/models/admin_user.rb
193
+ - spec/rails/rails-3.2.9/app/models/category.rb
194
+ - spec/rails/rails-3.2.9/app/models/post.rb
195
+ - spec/rails/rails-3.2.9/app/models/publisher.rb
196
+ - spec/rails/rails-3.2.9/app/models/store.rb
197
+ - spec/rails/rails-3.2.9/app/models/tag.rb
198
+ - spec/rails/rails-3.2.9/app/models/user.rb
199
+ - spec/rails/rails-3.2.9/app/views/layouts/application.html.erb
200
+ - spec/rails/rails-3.2.9/config/application.rb
201
+ - spec/rails/rails-3.2.9/config/boot.rb
202
+ - spec/rails/rails-3.2.9/config/database.yml
203
+ - spec/rails/rails-3.2.9/config/environment.rb
204
+ - spec/rails/rails-3.2.9/config/environments/cucumber.rb
205
+ - spec/rails/rails-3.2.9/config/environments/cucumber_with_reloading.rb
206
+ - spec/rails/rails-3.2.9/config/environments/development.rb
207
+ - spec/rails/rails-3.2.9/config/environments/production.rb
208
+ - spec/rails/rails-3.2.9/config/environments/test.rb
209
+ - spec/rails/rails-3.2.9/config/initializers/active_admin.rb
210
+ - spec/rails/rails-3.2.9/config/initializers/backtrace_silencers.rb
211
+ - spec/rails/rails-3.2.9/config/initializers/devise.rb
212
+ - spec/rails/rails-3.2.9/config/initializers/inflections.rb
213
+ - spec/rails/rails-3.2.9/config/initializers/mime_types.rb
214
+ - spec/rails/rails-3.2.9/config/initializers/secret_token.rb
215
+ - spec/rails/rails-3.2.9/config/initializers/session_store.rb
216
+ - spec/rails/rails-3.2.9/config/initializers/wrap_parameters.rb
217
+ - spec/rails/rails-3.2.9/config/locales/devise.en.yml
218
+ - spec/rails/rails-3.2.9/config/locales/en.yml
219
+ - spec/rails/rails-3.2.9/config/routes.rb
220
+ - spec/rails/rails-3.2.9/config.ru
221
+ - spec/rails/rails-3.2.9/db/cucumber.sqlite3
222
+ - spec/rails/rails-3.2.9/db/development.sqlite3
223
+ - spec/rails/rails-3.2.9/db/migrate/20130602172722_create_posts.rb
224
+ - spec/rails/rails-3.2.9/db/migrate/20130602172724_create_users.rb
225
+ - spec/rails/rails-3.2.9/db/migrate/20130602172729_create_categories.rb
226
+ - spec/rails/rails-3.2.9/db/migrate/20130602172731_create_stores.rb
227
+ - spec/rails/rails-3.2.9/db/migrate/20130602172734_create_tags.rb
228
+ - spec/rails/rails-3.2.9/db/migrate/20130602172736_devise_create_admin_users.rb
229
+ - spec/rails/rails-3.2.9/db/migrate/20130602172740_create_admin_notes.rb
230
+ - spec/rails/rails-3.2.9/db/migrate/20130602172741_move_admin_notes_to_comments.rb
231
+ - spec/rails/rails-3.2.9/db/schema.rb
232
+ - spec/rails/rails-3.2.9/db/seeds.rb
233
+ - spec/rails/rails-3.2.9/db/test.sqlite3
234
+ - spec/rails/rails-3.2.9/doc/README_FOR_APP
235
+ - spec/rails/rails-3.2.9/log/cucumber.log
236
+ - spec/rails/rails-3.2.9/log/development.log
237
+ - spec/rails/rails-3.2.9/public/404.html
238
+ - spec/rails/rails-3.2.9/public/422.html
239
+ - spec/rails/rails-3.2.9/public/500.html
240
+ - spec/rails/rails-3.2.9/public/favicon.ico
241
+ - spec/rails/rails-3.2.9/public/index.html
242
+ - spec/rails/rails-3.2.9/public/robots.txt
243
+ - spec/rails/rails-3.2.9/Rakefile
244
+ - spec/rails/rails-3.2.9/README.rdoc
245
+ - spec/rails/rails-3.2.9/script/rails
246
+ - spec/rails/rails-3.2.9/test/fixtures/admin_users.yml
247
+ - spec/rails/rails-3.2.9/test/unit/admin_user_test.rb
110
248
  - spec/spec_helper.rb
111
249
  - spec/support/rails_template.rb
112
250
  - spec/support/rails_template_with_data.rb
@@ -1,15 +0,0 @@
1
- module ActiveAdmin
2
- module Axlsx
3
- module BuildDownloadFormatLinks
4
- def self.included(base)
5
- base.send :alias_method_chain, :build_download_format_links, :xlsx
6
- end
7
-
8
- # We are patching the build_download_format_links to include the :xlsx format
9
- # Once ActiveAdmin 0.5.1 or higher has been released this can and should be removed.
10
- def build_download_format_links_with_xlsx(formats = [:csv, :xml, :json, :xlsx])
11
- build_download_format_links_without_xlsx(formats)
12
- end
13
- end
14
- end
15
- end