aa_associations 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile
CHANGED
@@ -2,7 +2,7 @@ source "http://rubygems.org"
|
|
2
2
|
|
3
3
|
gem 'meta_search', '>= 1.1.0.pre'
|
4
4
|
gem 'kaminari'
|
5
|
-
gem 'formtastic', '~> 2.
|
5
|
+
gem 'formtastic', '~> 2.1' # Until activeadmin updates for formatastic 2.1+
|
6
6
|
gem 'sass-rails', '~> 3.2.3'
|
7
7
|
gem 'factory_girl_rails', '~> 1.7'
|
8
8
|
gem 'launchy'
|
data/Rakefile
CHANGED
@@ -5,10 +5,13 @@ rescue LoadError
|
|
5
5
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
6
|
end
|
7
7
|
|
8
|
+
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
|
9
|
+
load 'rails/tasks/engine.rake'
|
10
|
+
|
8
11
|
Bundler::GemHelper.install_tasks
|
9
12
|
|
10
13
|
require 'rake/testtask'
|
11
|
-
Rake::TestTask.new(:test) do |test|
|
14
|
+
Rake::TestTask.new(:test => 'app:db:test:prepare') do |test|
|
12
15
|
test.libs << 'lib' << 'test'
|
13
16
|
test.pattern = 'test/**/*_test.rb'
|
14
17
|
test.verbose = true
|
data/aa_associations.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
s.extra_rdoc_files = ["README.md", "MIT_LICENSE.txt"]
|
20
20
|
|
21
|
-
s.add_dependency 'activeadmin', '~> 0.
|
21
|
+
s.add_dependency 'activeadmin', '~> 0.5'
|
22
22
|
s.add_dependency 'rails', '~> 3.1'
|
23
23
|
|
24
24
|
s.add_development_dependency 'shoulda'
|
@@ -7,7 +7,11 @@ module ActiveAdmin
|
|
7
7
|
|
8
8
|
class << self
|
9
9
|
def resources
|
10
|
-
application.namespaces.values.map{|n|
|
10
|
+
application.namespaces.values.map{|n|
|
11
|
+
n.resources.resources
|
12
|
+
}.flatten.compact.select{|r|
|
13
|
+
r.class == ActiveAdmin::Resource
|
14
|
+
}.map(&:resource_class)
|
11
15
|
end
|
12
16
|
end
|
13
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aa_associations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0.
|
21
|
+
version: '0.5'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.5'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: rails
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -275,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
275
275
|
version: '0'
|
276
276
|
segments:
|
277
277
|
- 0
|
278
|
-
hash:
|
278
|
+
hash: 1075286965506754567
|
279
279
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
280
280
|
none: false
|
281
281
|
requirements:
|
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
284
284
|
version: '0'
|
285
285
|
segments:
|
286
286
|
- 0
|
287
|
-
hash:
|
287
|
+
hash: 1075286965506754567
|
288
288
|
requirements: []
|
289
289
|
rubyforge_project:
|
290
290
|
rubygems_version: 1.8.21
|