activeadmin-mongoid 0.5.0 → 0.7.0

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
- SHA1:
3
- metadata.gz: 1e9f120acaaf395aa38d6ec5e28808b9b9787a8f
4
- data.tar.gz: 20d8ba53983c30ae6c260b0939c883ff9b9e17a4
2
+ SHA256:
3
+ metadata.gz: c6da33a191ec2b498b1c60af1f60f5a1532c83acca6bb9b6de27d5185bb174ca
4
+ data.tar.gz: a06a98d29c14d147a96ffebd21c84ae34fe8cde13e9aec72c2cdf2acc8b49283
5
5
  SHA512:
6
- metadata.gz: '0518a45cca508af87daac9561642a1f978fa205770a8f2b6f461ca22a1948a8740307c7b4e31781f9284822ded7f1f003afbcd4adba19c05a7f50bd410250fb7'
7
- data.tar.gz: 6d919998c4cc7b004bb5f91b2c2ee2eed1806ea79b7cd1e9e9d71296430bf2b9a19cfc5349355630116118b0ae110c9e3e41246d80b99ca6a2ee93acf307c682
6
+ metadata.gz: 7f645440724c5a60a3a38eb184bac5af562bb17411251cfac0c55e5e0f57d643db030d69613090f9541ad5e767529599466bf8c23bd9310d9633839be48faed2
7
+ data.tar.gz: cc2fb3f311e28347f84241d20c74d15761a4df5e672ce7eeb16912a88d23858eb13486f114fef6b0f28102dcaef2cb031b82cd4f3f3afb3bc3936bbe61919d18
@@ -2,6 +2,7 @@ language: ruby
2
2
  services:
3
3
  - mongodb
4
4
  rvm:
5
- - 2.2.7
6
- - 2.3.4
7
- - 2.4.1
5
+ - 2.2
6
+ - 2.3
7
+ - 2.4
8
+ - 2.5
data/Gemfile CHANGED
@@ -5,7 +5,8 @@ source 'https://rubygems.org'
5
5
  # development dependencies will be added by default to the :development group.
6
6
  gemspec
7
7
 
8
- gem 'ransack', github: 'activerecord-hackery/ransack', ref: 'c869fc210500'
8
+ gem 'ransack', github: 'activerecord-hackery/ransack'
9
+ gem 'ransack-mongoid', github: 'activerecord-hackery/ransack-mongoid'
9
10
 
10
11
  # Test app stuff
11
12
 
data/README.md CHANGED
@@ -4,22 +4,20 @@
4
4
 
5
5
  ActiveAdmin is holding off on pulling Mongoid support into the core ActiveAdmin application. This repo was pulled into the ActiveAdmin org from previous work done by Elia Schito, and will be maintained by Nic Boie, JD Guzman, Elia Schito and other ActiveAdmin and community members.
6
6
 
7
- ### Requirements for version 0.4.0
7
+ ### Requirements for version 0.7.0
8
8
  * Ruby 2.2.2 or greater. (Note, ruby-2.4.0 fails specs, see [this issue](https://github.com/DatabaseCleaner/database_cleaner/issues/466))
9
- * Requires Rails 5.0.x
10
- * Mongoid 6.0.x
11
- * ActiveAdmin 1.1 (Not working above 1.1.0 at this time)
9
+ * Tested working on Rails 5.1.x
10
+ * Mongoid 6.x (**WARNING**:, using a Mongoid version >= 6.1.x has resulted in a fair amount of errors seen in the wild. Test your upgrade very carefully with any apps in which you're using this gem with Mongoid >= 6.1.x!)
11
+ * ActiveAdmin 1.3
12
12
 
13
13
  ## Previous versions
14
14
  * Rails 4.x with Mongoid 5.x use branch rails4-mongoid5
15
15
  * Rails 4.x with Mongoid 4.x branch rails4
16
16
  * Mongoid 3.x with older versions of rails use v 0.3.0
17
17
 
18
- #### Rails 4 with
19
-
20
18
  ## ♻️ INFO
21
19
 
22
- This gem has been brought into the ActiveAdmin org for support and maintenance.
20
+ This gem has been brought into the ActiveAdmin org for support and maintenance.
23
21
 
24
22
  <!-- [![Build Status](https://secure.travis-ci.org/elia/activeadmin-mongoid.svg?branch=master)](http://travis-ci.org/elia/activeadmin-mongoid)
25
23
  [![Gem Version](https://badge.fury.io/rb/activeadmin-mongoid.svg)](http://badge.fury.io/rb/activeadmin-mongoid) -->
@@ -40,25 +38,23 @@ For more on Mongoid support in ActiveAdmin see [this issue](https://github.com/g
40
38
  Add the following gems to your application's Gemfile, and lock the version:
41
39
 
42
40
  ```ruby
43
- gem 'activeadmin-mongoid', '0.4.0'
41
+ gem 'activeadmin-mongoid', '0.7.0'
44
42
  ```
45
43
 
46
44
  You can safely remove the following lines, since are already activeadmin-mongoid dependencies:
47
45
 
48
46
  ```ruby
49
47
  gem 'activeadmin'
50
- gem 'meta_search', '>= 1.1.0.pre'
51
- gem 'sass-rails', ['~> 3.1', '>= 3.1.4']
52
48
  ```
53
49
 
54
50
  ### Remove Application Dependencies
55
- In your config/application.rb, replace :
51
+ In your config/application.rb, replace:
56
52
 
57
53
  ```ruby
58
54
  require 'rails/all'
59
55
  ```
60
56
 
61
- with :
57
+ with:
62
58
 
63
59
  ```ruby
64
60
  require "action_controller/railtie"
@@ -68,7 +64,7 @@ require "sprockets/railtie"
68
64
  require "rails/test_unit/railtie"
69
65
  ```
70
66
 
71
- rails/all includes elements requiring ActiveRecord::Connection ...
67
+ NOTE: This gem will NOT work if you use both ActiveRecord AND Mongoid in the same app. rails/all includes elements requiring ActiveRecord::Connection
72
68
 
73
69
  ### Bundle & Crank
74
70
 
@@ -85,10 +81,10 @@ You may find a line like this :
85
81
  require 'devise/orm/mongoid'
86
82
  ```
87
83
 
88
- Then create the admin user:
84
+ Then create an admin user:
89
85
 
90
- $ rails console
91
- >> AdminUser.create :email => 'admin@example.com', :password => 'password', :password_confirmation => 'password'
86
+ $ bundle exec rails console
87
+ >> AdminUser.create email: 'admin@example.com', password: 'password', password_confirmation: 'password'
92
88
 
93
89
  And that's pretty much it !
94
90
 
@@ -18,12 +18,10 @@ Gem::Specification.new do |gem|
18
18
  gem.version = ActiveAdmin::Mongoid::VERSION
19
19
  gem.license = 'MIT'
20
20
 
21
- gem.add_runtime_dependency 'mongoid', ['~> 6.0.3']
22
- gem.add_runtime_dependency 'activeadmin', ['<= 1.1.0']
21
+ gem.add_runtime_dependency 'mongoid', ['~> 6.0']
22
+ gem.add_runtime_dependency 'activeadmin', '>= 1.3.0'
23
23
  gem.add_runtime_dependency 'jquery-rails'
24
- gem.add_runtime_dependency 'sass-rails', ['>= 3.1.4', '<= 5.0.6']
25
- # gem.add_runtime_dependency 'meta_search', '~> 1.1.3'
24
+ gem.add_runtime_dependency 'sass-rails', ['>= 3.1.4']
26
25
 
27
26
  gem.add_development_dependency 'rspec-rails', '~> 3.6'
28
- gem.add_development_dependency 'simplecov'
29
27
  end
@@ -14,9 +14,16 @@ require 'active_admin/mongoid/resource'
14
14
  require 'active_admin/mongoid/document'
15
15
  require 'active_admin/mongoid/helpers/collection'
16
16
  require 'active_admin/mongoid/criteria'
17
-
18
17
  require 'active_admin/mongoid/order_clause'
19
18
 
19
+ require 'active_admin/mongoid/inputs/filters/check_boxes_input'
20
+ require 'active_admin/mongoid/inputs/filters/select_input'
21
+ require 'active_admin/mongoid/filters/active_filter'
22
+ require 'active_admin/mongoid/filters/resource_extension'
23
+ require 'active_admin/mongoid/controllers/resource_controller'
24
+ require 'active_admin/mongoid/resource/attributes'
25
+ require 'active_admin/mongoid/csv_builder'
26
+
20
27
  module ActiveAdmin
21
28
  module Mongoid
22
29
  class Railtie < ::Rails::Railtie
@@ -0,0 +1,15 @@
1
+ require 'active_admin/engine'
2
+
3
+ ActiveAdmin::Engine.module_eval do
4
+
5
+ initializer 'active_admin.mongoid.resource_controller' do
6
+ class ActiveAdmin::ResourceController
7
+ def build_new_resource
8
+ scoped_collection.send(
9
+ method_for_build,
10
+ *resource_params
11
+ )
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,27 @@
1
+ module ActiveAdmin
2
+ class CSVBuilder
3
+ def build(controller, csv)
4
+ @collection = controller.send :find_collection, except: :pagination
5
+ columns = exec_columns controller.view_context
6
+ options = ActiveAdmin.application.csv_options.merge self.options
7
+ bom = options.delete :byte_order_mark
8
+ column_names = options.delete(:column_names) { true }
9
+ csv_options = options.except :encoding_options, :humanize_name
10
+
11
+ csv << bom if bom
12
+
13
+ if column_names
14
+ csv << CSV.generate_line(columns.map{ |c| encode c.name, options }, csv_options)
15
+ end
16
+
17
+ (1..paginated_collection.total_pages).each do |page|
18
+ paginated_collection(page).each do |resource|
19
+ resource = controller.send :apply_decorator, resource
20
+ csv << CSV.generate_line(build_row(resource, columns, options), csv_options)
21
+ end
22
+ end
23
+
24
+ csv
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,15 @@
1
+ require 'active_admin/filters/active_filter'
2
+ module ActiveAdmin
3
+ module Filters
4
+
5
+ class ActiveFilter
6
+ def related_primary_key
7
+ if predicate_association
8
+ predicate_association.key
9
+ elsif related_class
10
+ related_class.key
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ require 'active_admin/filters/resource_extension'
2
+
3
+ module ActiveAdmin::Filters::ResourceExtension
4
+ def default_association_filters
5
+ if resource_class.respond_to?(:reflect_on_all_associations)
6
+ poly, not_poly = resource_class.reflect_on_all_associations.partition{ |r| r.macro == :belongs_to && r.options[:polymorphic] }
7
+
8
+ filters = poly.map(&:foreign_type) + not_poly.map(&:name)
9
+ filters.map &:to_sym
10
+ else
11
+ []
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,11 @@
1
+ require 'active_admin/inputs/filters/check_boxes_input'
2
+
3
+ class ActiveAdmin::Inputs::Filters::CheckBoxesInput
4
+ def searchable_method_name
5
+ if searchable_has_many_through?
6
+ "#{reflection.through_reflection.name}_#{reflection.foreign_key}"
7
+ else
8
+ reflection.key || method
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,12 @@
1
+ require 'active_admin/inputs/filters/select_input'
2
+
3
+ class ActiveAdmin::Inputs::Filters::SelectInput
4
+ def searchable_method_name
5
+ name = if searchable_has_many_through?
6
+ "#{reflection.through_reflection.name}_#{reflection.foreign_key}"
7
+ elsif reflection_searchable?
8
+ reflection.key
9
+ end
10
+ (name == '_id') ? 'id' : name
11
+ end
12
+ end
@@ -8,5 +8,9 @@ module ActiveAdmin
8
8
  def to_mongo_options
9
9
  { @column => @order.downcase.to_sym }
10
10
  end
11
+
12
+ def apply(chain)
13
+ chain.reorder(sql)
14
+ end
11
15
  end
12
16
  end
@@ -0,0 +1,23 @@
1
+ require 'active_admin/resource/attributes'
2
+
3
+ module ActiveAdmin
4
+
5
+ class Resource
6
+ module Attributes
7
+ def foreign_methods
8
+ @foreign_methods ||= resource_class.reflect_on_all_associations.
9
+ select{ |r| r.macro == :belongs_to }.
10
+ index_by{ |r| r.foreign_key.to_sym }
11
+ end
12
+
13
+ def primary_col?(c)
14
+ c.name == '_id'
15
+ end
16
+
17
+ def sti_col?(c)
18
+ false
19
+ end
20
+ end
21
+ end
22
+ end
23
+
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module Mongoid
3
- VERSION = '0.5.0'
3
+ VERSION = '0.7.0'
4
4
  end
5
5
  end
@@ -313,6 +313,11 @@ describe 'browse the test app' do
313
313
  end
314
314
  end
315
315
 
316
+ it "builds csv" do
317
+ visit '/admin/admin_users.csv'
318
+ expect(page.status_code).to eq(200) or eq(304)
319
+ end
320
+
316
321
 
317
322
  end
318
323
  end
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem 'activeadmin-mongoid', path: '../'
4
- gem 'activeadmin', '<= 1.1.0'
4
+ gem 'activeadmin', '~> 1.3.0'
5
5
 
6
6
  # Test app stuff
7
7
 
@@ -14,7 +14,9 @@ gem 'devise'
14
14
  gem 'mongoid', '~> 6.0.3', require: true
15
15
  gem 'kaminari', '~> 1.0'
16
16
  gem 'kaminari-mongoid'
17
- gem 'ransack'
17
+ gem 'ransack', '< 1.8.7'
18
+
19
+ gem 'sprockets', '>= 3.7.2'
18
20
 
19
21
  # Gems used only for assets and not required
20
22
  # in production environments by default.
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activeadmin-mongoid (0.4.0)
5
- activeadmin (<= 1.1.0)
4
+ activeadmin-mongoid (0.6.0)
5
+ activeadmin (>= 1.3.0)
6
6
  jquery-rails
7
- mongoid (~> 6.0.3)
8
- sass-rails (>= 3.1.4, <= 5.0.6)
7
+ mongoid (~> 6.0)
8
+ sass-rails (>= 3.1.4)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
@@ -33,15 +33,15 @@ GEM
33
33
  erubi (~> 1.4)
34
34
  rails-dom-testing (~> 2.0)
35
35
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
36
- activeadmin (1.1.0)
36
+ activeadmin (1.3.0)
37
37
  arbre (>= 1.1.1)
38
38
  coffee-rails
39
39
  formtastic (~> 3.1)
40
40
  formtastic_i18n
41
- inherited_resources (~> 1.7)
42
- jquery-rails
43
- kaminari (>= 0.15, < 2.0)
44
- railties (>= 4.2, < 5.2)
41
+ inherited_resources (>= 1.7.0)
42
+ jquery-rails (>= 4.2.0)
43
+ kaminari (>= 0.15)
44
+ railties (>= 4.2, < 5.3)
45
45
  ransack (~> 1.3)
46
46
  sass (~> 3.1)
47
47
  sprockets (< 4.1)
@@ -64,8 +64,8 @@ GEM
64
64
  arbre (1.1.1)
65
65
  activesupport (>= 3.0.0)
66
66
  arel (8.0.0)
67
- bcrypt (3.1.11)
68
- bson (4.2.2)
67
+ bcrypt (3.1.12)
68
+ bson (4.3.0)
69
69
  builder (3.2.3)
70
70
  capybara (2.15.1)
71
71
  addressable
@@ -85,32 +85,32 @@ GEM
85
85
  coffee-script-source (1.12.2)
86
86
  concurrent-ruby (1.0.5)
87
87
  crass (1.0.4)
88
- devise (4.3.0)
88
+ devise (4.4.3)
89
89
  bcrypt (~> 3.0)
90
90
  orm_adapter (~> 0.1)
91
- railties (>= 4.1.0, < 5.2)
91
+ railties (>= 4.1.0, < 6.0)
92
92
  responders
93
93
  warden (~> 1.2.3)
94
94
  docile (1.1.5)
95
95
  erubi (1.7.1)
96
96
  execjs (2.7.0)
97
- ffi (1.9.18)
97
+ ffi (1.9.23)
98
98
  formtastic (3.1.5)
99
99
  actionpack (>= 3.2.13)
100
100
  formtastic_i18n (0.6.0)
101
101
  globalid (0.4.1)
102
102
  activesupport (>= 4.2.0)
103
- has_scope (0.7.1)
104
- actionpack (>= 4.1, < 5.2)
105
- activesupport (>= 4.1, < 5.2)
106
- i18n (1.0.0)
103
+ has_scope (0.7.2)
104
+ actionpack (>= 4.1)
105
+ activesupport (>= 4.1)
106
+ i18n (1.0.1)
107
107
  concurrent-ruby (~> 1.0)
108
- inherited_resources (1.7.2)
109
- actionpack (>= 3.2, < 5.2.x)
108
+ inherited_resources (1.8.0)
109
+ actionpack (>= 4.2, <= 5.2)
110
110
  has_scope (~> 0.6)
111
- railties (>= 3.2, < 5.2.x)
111
+ railties (>= 4.2, <= 5.2)
112
112
  responders
113
- jquery-rails (4.3.1)
113
+ jquery-rails (4.3.3)
114
114
  rails-dom-testing (>= 1, < 3)
115
115
  railties (>= 4.2.0)
116
116
  thor (>= 0.14, < 2.0)
@@ -119,18 +119,18 @@ GEM
119
119
  jslint (1.2.0)
120
120
  json
121
121
  json (2.1.0)
122
- kaminari (1.0.1)
122
+ kaminari (1.1.1)
123
123
  activesupport (>= 4.1.0)
124
- kaminari-actionview (= 1.0.1)
125
- kaminari-activerecord (= 1.0.1)
126
- kaminari-core (= 1.0.1)
127
- kaminari-actionview (1.0.1)
124
+ kaminari-actionview (= 1.1.1)
125
+ kaminari-activerecord (= 1.1.1)
126
+ kaminari-core (= 1.1.1)
127
+ kaminari-actionview (1.1.1)
128
128
  actionview
129
- kaminari-core (= 1.0.1)
130
- kaminari-activerecord (1.0.1)
129
+ kaminari-core (= 1.1.1)
130
+ kaminari-activerecord (1.1.1)
131
131
  activerecord
132
- kaminari-core (= 1.0.1)
133
- kaminari-core (1.0.1)
132
+ kaminari-core (= 1.1.1)
133
+ kaminari-core (1.1.1)
134
134
  kaminari-mongoid (1.0.1)
135
135
  kaminari-core (~> 1.0)
136
136
  mongoid
@@ -145,28 +145,28 @@ GEM
145
145
  mini_mime (0.1.4)
146
146
  mini_portile2 (2.3.0)
147
147
  minitest (5.11.3)
148
- mongo (2.4.3)
149
- bson (>= 4.2.1, < 5.0.0)
148
+ mongo (2.5.1)
149
+ bson (>= 4.3.0, < 5.0.0)
150
150
  mongoid (6.0.3)
151
151
  activemodel (~> 5.0)
152
152
  mongo (~> 2.3)
153
153
  nio4r (2.3.0)
154
- nokogiri (1.8.2)
154
+ nokogiri (1.8.4)
155
155
  mini_portile2 (~> 2.3.0)
156
156
  orm_adapter (0.5.0)
157
157
  poltergeist (1.16.0)
158
158
  capybara (~> 2.1)
159
159
  cliver (~> 0.3.1)
160
160
  websocket-driver (>= 0.2.0)
161
- polyamorous (1.3.1)
161
+ polyamorous (1.3.3)
162
162
  activerecord (>= 3.0)
163
163
  pry (0.10.4)
164
164
  coderay (~> 1.1.0)
165
165
  method_source (~> 0.8.1)
166
166
  slop (~> 3.4)
167
167
  public_suffix (3.0.0)
168
- rack (2.0.4)
169
- rack-test (1.0.0)
168
+ rack (2.0.5)
169
+ rack-test (1.1.0)
170
170
  rack (>= 1.0, < 3)
171
171
  rails (5.1.6)
172
172
  actioncable (= 5.1.6)
@@ -192,19 +192,19 @@ GEM
192
192
  rake (>= 0.8.7)
193
193
  thor (>= 0.18.1, < 2.0)
194
194
  rake (12.3.1)
195
- ransack (1.8.3)
195
+ ransack (1.8.6)
196
196
  actionpack (>= 3.0)
197
197
  activerecord (>= 3.0)
198
198
  activesupport (>= 3.0)
199
199
  i18n
200
- polyamorous (~> 1.3)
201
- rb-fsevent (0.10.2)
200
+ polyamorous (~> 1.3.2)
201
+ rb-fsevent (0.10.3)
202
202
  rb-inotify (0.9.10)
203
203
  ffi (>= 0.5.0, < 2)
204
204
  responders (2.4.0)
205
205
  actionpack (>= 4.2.0, < 5.3)
206
206
  railties (>= 4.2.0, < 5.3)
207
- sass (3.5.1)
207
+ sass (3.5.6)
208
208
  sass-listen (~> 4.0.0)
209
209
  sass-listen (4.0.0)
210
210
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -221,7 +221,7 @@ GEM
221
221
  simplecov-html (~> 0.10.0)
222
222
  simplecov-html (0.10.2)
223
223
  slop (3.6.0)
224
- sprockets (3.7.1)
224
+ sprockets (3.7.2)
225
225
  concurrent-ruby (~> 1.0)
226
226
  rack (> 1, < 3)
227
227
  sprockets-rails (3.2.1)
@@ -247,7 +247,7 @@ PLATFORMS
247
247
  ruby
248
248
 
249
249
  DEPENDENCIES
250
- activeadmin (<= 1.1.0)
250
+ activeadmin (~> 1.3.0)
251
251
  activeadmin-mongoid!
252
252
  capybara
253
253
  coffee-rails
@@ -262,10 +262,11 @@ DEPENDENCIES
262
262
  poltergeist
263
263
  pry
264
264
  rails (~> 5.1.6)
265
- ransack
265
+ ransack (< 1.8.7)
266
266
  sass-rails
267
267
  simplecov
268
+ sprockets (>= 3.7.2)
268
269
  uglifier
269
270
 
270
271
  BUNDLED WITH
271
- 1.16.1
272
+ 1.16.3
@@ -211,3 +211,4 @@ ActiveAdmin.setup do |config|
211
211
 
212
212
 
213
213
  end
214
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elia Schito
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-04-17 00:00:00.000000000 Z
14
+ date: 2018-08-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: mongoid
@@ -19,28 +19,28 @@ dependencies:
19
19
  requirements:
20
20
  - - "~>"
21
21
  - !ruby/object:Gem::Version
22
- version: 6.0.3
22
+ version: '6.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: 6.0.3
29
+ version: '6.0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: activeadmin
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - "<="
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 1.1.0
36
+ version: 1.3.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - "<="
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 1.1.0
43
+ version: 1.3.0
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: jquery-rails
46
46
  requirement: !ruby/object:Gem::Requirement
@@ -62,9 +62,6 @@ dependencies:
62
62
  - - ">="
63
63
  - !ruby/object:Gem::Version
64
64
  version: 3.1.4
65
- - - "<="
66
- - !ruby/object:Gem::Version
67
- version: 5.0.6
68
65
  type: :runtime
69
66
  prerelease: false
70
67
  version_requirements: !ruby/object:Gem::Requirement
@@ -72,9 +69,6 @@ dependencies:
72
69
  - - ">="
73
70
  - !ruby/object:Gem::Version
74
71
  version: 3.1.4
75
- - - "<="
76
- - !ruby/object:Gem::Version
77
- version: 5.0.6
78
72
  - !ruby/object:Gem::Dependency
79
73
  name: rspec-rails
80
74
  requirement: !ruby/object:Gem::Requirement
@@ -89,20 +83,6 @@ dependencies:
89
83
  - - "~>"
90
84
  - !ruby/object:Gem::Version
91
85
  version: '3.6'
92
- - !ruby/object:Gem::Dependency
93
- name: simplecov
94
- requirement: !ruby/object:Gem::Requirement
95
- requirements:
96
- - - ">="
97
- - !ruby/object:Gem::Version
98
- version: '0'
99
- type: :development
100
- prerelease: false
101
- version_requirements: !ruby/object:Gem::Requirement
102
- requirements:
103
- - - ">="
104
- - !ruby/object:Gem::Version
105
- version: '0'
106
86
  description: ActiveAdmin hacks to support Mongoid (some ActiveAdmin features are disabled)
107
87
  email:
108
88
  - elia@schito.me
@@ -119,17 +99,23 @@ files:
119
99
  - README.md
120
100
  - Rakefile
121
101
  - activeadmin-mongoid.gemspec
122
- - lib/active_admin-mongoid.rb
123
102
  - lib/active_admin/mongoid.rb
124
103
  - lib/active_admin/mongoid/adaptor.rb
125
104
  - lib/active_admin/mongoid/comments.rb
105
+ - lib/active_admin/mongoid/controllers/resource_controller.rb
126
106
  - lib/active_admin/mongoid/criteria.rb
107
+ - lib/active_admin/mongoid/csv_builder.rb
127
108
  - lib/active_admin/mongoid/document.rb
128
109
  - lib/active_admin/mongoid/filter_form_builder.rb
110
+ - lib/active_admin/mongoid/filters/active_filter.rb
111
+ - lib/active_admin/mongoid/filters/resource_extension.rb
129
112
  - lib/active_admin/mongoid/generators/install.rb
130
113
  - lib/active_admin/mongoid/helpers/collection.rb
114
+ - lib/active_admin/mongoid/inputs/filters/check_boxes_input.rb
115
+ - lib/active_admin/mongoid/inputs/filters/select_input.rb
131
116
  - lib/active_admin/mongoid/order_clause.rb
132
117
  - lib/active_admin/mongoid/resource.rb
118
+ - lib/active_admin/mongoid/resource/attributes.rb
133
119
  - lib/active_admin/mongoid/version.rb
134
120
  - lib/activeadmin-mongoid.rb
135
121
  - lib/meta_search/searches/mongoid.rb
@@ -234,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
220
  version: '0'
235
221
  requirements: []
236
222
  rubyforge_project:
237
- rubygems_version: 2.6.12
223
+ rubygems_version: 2.7.7
238
224
  signing_key:
239
225
  specification_version: 4
240
226
  summary: ActiveAdmin hacks to support Mongoid
@@ -1 +0,0 @@
1
- require 'active_admin/mongoid'