activeadmin-mongoid 0.0.2.jpmckinney.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -4
- data/.rspec +2 -0
- data/.travis.yml +6 -0
- data/Gemfile +27 -1
- data/README.md +0 -5
- data/Rakefile +6 -1
- data/activeadmin-mongoid.gemspec +8 -4
- data/lib/active_admin/mongoid.rb +26 -17
- data/lib/active_admin/mongoid/adaptor.rb +65 -0
- data/lib/active_admin/mongoid/comments.rb +12 -5
- data/lib/active_admin/mongoid/criteria.rb +10 -0
- data/lib/active_admin/mongoid/document.rb +43 -2
- data/lib/active_admin/mongoid/filter_form_builder.rb +31 -0
- data/lib/active_admin/mongoid/generators/install.rb +7 -0
- data/lib/active_admin/mongoid/helpers/collection.rb +10 -0
- data/lib/active_admin/mongoid/resource.rb +51 -33
- data/lib/active_admin/mongoid/version.rb +1 -1
- data/lib/tasks/activeadmin-mongoid_tasks.rake +4 -0
- data/spec/features/smoke_spec.rb +60 -0
- data/spec/spec_helper.rb +42 -0
- data/spec/support/capybara.rb +1 -0
- data/tasks/js.rake +32 -0
- data/tasks/test.rake +75 -0
- data/test_app/.gitignore +15 -0
- data/test_app/.rspec +1 -0
- data/test_app/README.rdoc +261 -0
- data/test_app/Rakefile +7 -0
- data/test_app/app/admin/admin_users.rb +20 -0
- data/test_app/app/admin/dashboard.rb +33 -0
- data/test_app/app/admin/posts.rb +3 -0
- data/test_app/app/assets/images/rails.png +0 -0
- data/test_app/app/assets/javascripts/active_admin.js +1 -0
- data/test_app/app/assets/javascripts/application.js +15 -0
- data/test_app/app/assets/stylesheets/active_admin.css.scss +29 -0
- data/test_app/app/assets/stylesheets/application.css +13 -0
- data/test_app/app/controllers/application_controller.rb +3 -0
- data/test_app/app/helpers/application_helper.rb +2 -0
- data/test_app/app/mailers/.gitkeep +0 -0
- data/test_app/app/models/.gitkeep +0 -0
- data/test_app/app/models/admin_user.rb +40 -0
- data/test_app/app/models/post.rb +6 -0
- data/test_app/app/views/layouts/application.html.erb +14 -0
- data/test_app/config.ru +4 -0
- data/test_app/config/_link_mongoid_config.rb +7 -0
- data/test_app/config/application.rb +70 -0
- data/test_app/config/boot.rb +6 -0
- data/test_app/config/database.yml +25 -0
- data/test_app/config/environment.rb +5 -0
- data/test_app/config/environments/development.rb +31 -0
- data/test_app/config/environments/production.rb +64 -0
- data/test_app/config/environments/test.rb +35 -0
- data/test_app/config/initializers/active_admin.rb +210 -0
- data/test_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test_app/config/initializers/devise.rb +246 -0
- data/test_app/config/initializers/inflections.rb +15 -0
- data/test_app/config/initializers/mime_types.rb +5 -0
- data/test_app/config/initializers/secret_token.rb +7 -0
- data/test_app/config/initializers/session_store.rb +8 -0
- data/test_app/config/initializers/wrap_parameters.rb +10 -0
- data/test_app/config/locales/devise.en.yml +59 -0
- data/test_app/config/locales/en.yml +5 -0
- data/test_app/config/mongoid.2.yml +20 -0
- data/test_app/config/mongoid.3.yml +96 -0
- data/test_app/config/routes.rb +4 -0
- data/test_app/db/migrate/20130514223107_create_admin_notes.rb +17 -0
- data/test_app/db/migrate/20130514223108_move_admin_notes_to_comments.rb +26 -0
- data/test_app/db/seeds.rb +7 -0
- data/test_app/lib/assets/.gitkeep +0 -0
- data/test_app/lib/tasks/.gitkeep +0 -0
- data/test_app/log/.gitkeep +0 -0
- data/test_app/public/404.html +26 -0
- data/test_app/public/422.html +26 -0
- data/test_app/public/500.html +25 -0
- data/test_app/public/favicon.ico +0 -0
- data/test_app/public/index.html +241 -0
- data/test_app/public/robots.txt +5 -0
- data/test_app/script/rails +6 -0
- data/test_app/spec/models/admin_user_spec.rb +5 -0
- data/test_app/test/fixtures/.gitkeep +0 -0
- data/test_app/test/functional/.gitkeep +0 -0
- data/test_app/test/integration/.gitkeep +0 -0
- data/test_app/test/performance/browsing_test.rb +12 -0
- data/test_app/test/test_helper.rb +7 -0
- data/test_app/test/unit/.gitkeep +0 -0
- data/test_app/vendor/assets/javascripts/.gitkeep +0 -0
- data/test_app/vendor/assets/stylesheets/.gitkeep +0 -0
- data/test_app/vendor/plugins/.gitkeep +0 -0
- metadata +136 -29
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'rails/performance_test_help'
|
3
|
+
|
4
|
+
class BrowsingTest < ActionDispatch::PerformanceTest
|
5
|
+
# Refer to the documentation for all available options
|
6
|
+
# self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
|
7
|
+
# :output => 'tmp/performance', :formats => [:flat] }
|
8
|
+
|
9
|
+
def test_homepage
|
10
|
+
get '/'
|
11
|
+
end
|
12
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,63 +1,91 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin-mongoid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 0.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Elia Schito
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-07-25 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: mongoid
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
19
|
+
version: '3.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: activeadmin
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ~>
|
31
32
|
- !ruby/object:Gem::Version
|
32
|
-
version: '0.
|
33
|
+
version: '0.6'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.6'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: meta_search
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - '>='
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: 1.1.0.pre
|
44
48
|
type: :runtime
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.1.0.pre
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: sass-rails
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
59
|
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '3.1'
|
55
|
-
- -
|
62
|
+
- - '>='
|
56
63
|
- !ruby/object:Gem::Version
|
57
64
|
version: 3.1.4
|
58
65
|
type: :runtime
|
59
66
|
prerelease: false
|
60
|
-
version_requirements:
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ~>
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '3.1'
|
72
|
+
- - '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 3.1.4
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rspec-rails
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ~>
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '2.7'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ~>
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '2.7'
|
61
89
|
description: ActiveAdmin hacks to support Mongoid (some ActiveAdmin features are disabled)
|
62
90
|
email:
|
63
91
|
- elia@schito.me
|
@@ -66,6 +94,8 @@ extensions: []
|
|
66
94
|
extra_rdoc_files: []
|
67
95
|
files:
|
68
96
|
- .gitignore
|
97
|
+
- .rspec
|
98
|
+
- .travis.yml
|
69
99
|
- Gemfile
|
70
100
|
- LICENSE
|
71
101
|
- README.md
|
@@ -73,35 +103,112 @@ files:
|
|
73
103
|
- activeadmin-mongoid.gemspec
|
74
104
|
- lib/active_admin-mongoid.rb
|
75
105
|
- lib/active_admin/mongoid.rb
|
106
|
+
- lib/active_admin/mongoid/adaptor.rb
|
76
107
|
- lib/active_admin/mongoid/comments.rb
|
108
|
+
- lib/active_admin/mongoid/criteria.rb
|
77
109
|
- lib/active_admin/mongoid/document.rb
|
110
|
+
- lib/active_admin/mongoid/filter_form_builder.rb
|
111
|
+
- lib/active_admin/mongoid/generators/install.rb
|
112
|
+
- lib/active_admin/mongoid/helpers/collection.rb
|
78
113
|
- lib/active_admin/mongoid/resource.rb
|
79
114
|
- lib/active_admin/mongoid/version.rb
|
80
115
|
- lib/activeadmin-mongoid.rb
|
116
|
+
- lib/tasks/activeadmin-mongoid_tasks.rake
|
117
|
+
- spec/features/smoke_spec.rb
|
118
|
+
- spec/spec_helper.rb
|
119
|
+
- spec/support/capybara.rb
|
120
|
+
- tasks/js.rake
|
121
|
+
- tasks/test.rake
|
122
|
+
- test_app/.gitignore
|
123
|
+
- test_app/.rspec
|
124
|
+
- test_app/README.rdoc
|
125
|
+
- test_app/Rakefile
|
126
|
+
- test_app/app/admin/admin_users.rb
|
127
|
+
- test_app/app/admin/dashboard.rb
|
128
|
+
- test_app/app/admin/posts.rb
|
129
|
+
- test_app/app/assets/images/rails.png
|
130
|
+
- test_app/app/assets/javascripts/active_admin.js
|
131
|
+
- test_app/app/assets/javascripts/application.js
|
132
|
+
- test_app/app/assets/stylesheets/active_admin.css.scss
|
133
|
+
- test_app/app/assets/stylesheets/application.css
|
134
|
+
- test_app/app/controllers/application_controller.rb
|
135
|
+
- test_app/app/helpers/application_helper.rb
|
136
|
+
- test_app/app/mailers/.gitkeep
|
137
|
+
- test_app/app/models/.gitkeep
|
138
|
+
- test_app/app/models/admin_user.rb
|
139
|
+
- test_app/app/models/post.rb
|
140
|
+
- test_app/app/views/layouts/application.html.erb
|
141
|
+
- test_app/config.ru
|
142
|
+
- test_app/config/_link_mongoid_config.rb
|
143
|
+
- test_app/config/application.rb
|
144
|
+
- test_app/config/boot.rb
|
145
|
+
- test_app/config/database.yml
|
146
|
+
- test_app/config/environment.rb
|
147
|
+
- test_app/config/environments/development.rb
|
148
|
+
- test_app/config/environments/production.rb
|
149
|
+
- test_app/config/environments/test.rb
|
150
|
+
- test_app/config/initializers/active_admin.rb
|
151
|
+
- test_app/config/initializers/backtrace_silencers.rb
|
152
|
+
- test_app/config/initializers/devise.rb
|
153
|
+
- test_app/config/initializers/inflections.rb
|
154
|
+
- test_app/config/initializers/mime_types.rb
|
155
|
+
- test_app/config/initializers/secret_token.rb
|
156
|
+
- test_app/config/initializers/session_store.rb
|
157
|
+
- test_app/config/initializers/wrap_parameters.rb
|
158
|
+
- test_app/config/locales/devise.en.yml
|
159
|
+
- test_app/config/locales/en.yml
|
160
|
+
- test_app/config/mongoid.2.yml
|
161
|
+
- test_app/config/mongoid.3.yml
|
162
|
+
- test_app/config/routes.rb
|
163
|
+
- test_app/db/migrate/20130514223107_create_admin_notes.rb
|
164
|
+
- test_app/db/migrate/20130514223108_move_admin_notes_to_comments.rb
|
165
|
+
- test_app/db/seeds.rb
|
166
|
+
- test_app/doc/README_FOR_APP
|
167
|
+
- test_app/lib/assets/.gitkeep
|
168
|
+
- test_app/lib/tasks/.gitkeep
|
169
|
+
- test_app/log/.gitkeep
|
170
|
+
- test_app/public/404.html
|
171
|
+
- test_app/public/422.html
|
172
|
+
- test_app/public/500.html
|
173
|
+
- test_app/public/favicon.ico
|
174
|
+
- test_app/public/index.html
|
175
|
+
- test_app/public/robots.txt
|
176
|
+
- test_app/script/rails
|
177
|
+
- test_app/spec/models/admin_user_spec.rb
|
178
|
+
- test_app/test/fixtures/.gitkeep
|
179
|
+
- test_app/test/functional/.gitkeep
|
180
|
+
- test_app/test/integration/.gitkeep
|
181
|
+
- test_app/test/performance/browsing_test.rb
|
182
|
+
- test_app/test/test_helper.rb
|
183
|
+
- test_app/test/unit/.gitkeep
|
184
|
+
- test_app/vendor/assets/javascripts/.gitkeep
|
185
|
+
- test_app/vendor/assets/stylesheets/.gitkeep
|
186
|
+
- test_app/vendor/plugins/.gitkeep
|
81
187
|
homepage: ''
|
82
188
|
licenses:
|
83
189
|
- MIT
|
190
|
+
metadata: {}
|
84
191
|
post_install_message:
|
85
192
|
rdoc_options: []
|
86
193
|
require_paths:
|
87
194
|
- lib
|
88
195
|
required_ruby_version: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
196
|
requirements:
|
91
|
-
- -
|
197
|
+
- - '>='
|
92
198
|
- !ruby/object:Gem::Version
|
93
199
|
version: '0'
|
94
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
201
|
requirements:
|
97
|
-
- -
|
202
|
+
- - '>='
|
98
203
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
204
|
+
version: '0'
|
100
205
|
requirements: []
|
101
206
|
rubyforge_project:
|
102
|
-
rubygems_version:
|
207
|
+
rubygems_version: 2.0.3
|
103
208
|
signing_key:
|
104
|
-
specification_version:
|
209
|
+
specification_version: 4
|
105
210
|
summary: ActiveAdmin hacks to support Mongoid
|
106
|
-
test_files:
|
107
|
-
|
211
|
+
test_files:
|
212
|
+
- spec/features/smoke_spec.rb
|
213
|
+
- spec/spec_helper.rb
|
214
|
+
- spec/support/capybara.rb
|