acts_as_relation 0.1.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +50 -55
- data/README.rdoc +10 -7
- data/acts_as_relation.gemspec +2 -2
- data/lib/active_record/acts_as_relation.rb +42 -28
- data/lib/version.rb +1 -1
- data/spec/acts_as_relation_spec.rb +4 -2
- data/spec/dummy/app/models/pen.rb +0 -2
- data/spec/dummy/config/application.rb +2 -8
- data/spec/dummy/config/environments/development.rb +2 -10
- data/spec/dummy/config/environments/production.rb +1 -3
- data/spec/dummy/config/environments/test.rb +2 -6
- data/spec/dummy/db/schema.rb +14 -14
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a72ef528265e4e2439caa3e118c83ba0b8a0e236
|
4
|
+
data.tar.gz: 9c1d9259eb36d2fe48dcd572ced40e1451e53ce0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8e696a7fbeac93377ef709302730f00740274b7db2d13523e4f1735e1ca75f2f2507a623525a23d23dad0a11ac5bf296e1e5fee8986d4aa0255d71ced472aaa
|
7
|
+
data.tar.gz: a181edf19a4b1f5fd9e73502323d691bfa5694fc6d1dddd2ca92445a55ae801a6169e9ce8e664d38c4e7364fcdd4021d5c922c9d22490db881756604642ce802
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,79 +1,68 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
acts_as_relation (0.
|
5
|
-
activerecord
|
4
|
+
acts_as_relation (1.0.0)
|
5
|
+
activerecord
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionmailer (
|
11
|
-
actionpack (=
|
10
|
+
actionmailer (4.0.0)
|
11
|
+
actionpack (= 4.0.0)
|
12
12
|
mail (~> 2.5.3)
|
13
|
-
actionpack (
|
14
|
-
|
15
|
-
|
16
|
-
builder (~> 3.0.0)
|
13
|
+
actionpack (4.0.0)
|
14
|
+
activesupport (= 4.0.0)
|
15
|
+
builder (~> 3.1.0)
|
17
16
|
erubis (~> 2.7.0)
|
18
|
-
|
19
|
-
rack (~>
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
builder (3.0.4)
|
17
|
+
rack (~> 1.5.2)
|
18
|
+
rack-test (~> 0.6.2)
|
19
|
+
activemodel (4.0.0)
|
20
|
+
activesupport (= 4.0.0)
|
21
|
+
builder (~> 3.1.0)
|
22
|
+
activerecord (4.0.0)
|
23
|
+
activemodel (= 4.0.0)
|
24
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
25
|
+
activesupport (= 4.0.0)
|
26
|
+
arel (~> 4.0.0)
|
27
|
+
activerecord-deprecated_finders (1.0.3)
|
28
|
+
activesupport (4.0.0)
|
29
|
+
i18n (~> 0.6, >= 0.6.4)
|
30
|
+
minitest (~> 4.2)
|
31
|
+
multi_json (~> 1.3)
|
32
|
+
thread_safe (~> 0.1)
|
33
|
+
tzinfo (~> 0.3.37)
|
34
|
+
arel (4.0.0)
|
35
|
+
atomic (1.1.10)
|
36
|
+
builder (3.1.4)
|
39
37
|
database_cleaner (1.0.1)
|
40
38
|
diff-lcs (1.2.4)
|
41
39
|
erubis (2.7.0)
|
42
40
|
hike (1.2.3)
|
43
|
-
i18n (0.6.
|
44
|
-
journey (1.0.4)
|
45
|
-
json (1.8.0)
|
41
|
+
i18n (0.6.4)
|
46
42
|
mail (2.5.4)
|
47
43
|
mime-types (~> 1.16)
|
48
44
|
treetop (~> 1.4.8)
|
49
45
|
mime-types (1.23)
|
46
|
+
minitest (4.7.5)
|
50
47
|
multi_json (1.7.7)
|
51
48
|
polyglot (0.3.3)
|
52
|
-
rack (1.
|
53
|
-
rack-cache (1.2)
|
54
|
-
rack (>= 0.4)
|
55
|
-
rack-ssl (1.3.3)
|
56
|
-
rack
|
49
|
+
rack (1.5.2)
|
57
50
|
rack-test (0.6.2)
|
58
51
|
rack (>= 1.0)
|
59
|
-
rails (
|
60
|
-
actionmailer (=
|
61
|
-
actionpack (=
|
62
|
-
activerecord (=
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
railties (
|
68
|
-
actionpack (=
|
69
|
-
activesupport (=
|
70
|
-
rack-ssl (~> 1.3.2)
|
52
|
+
rails (4.0.0)
|
53
|
+
actionmailer (= 4.0.0)
|
54
|
+
actionpack (= 4.0.0)
|
55
|
+
activerecord (= 4.0.0)
|
56
|
+
activesupport (= 4.0.0)
|
57
|
+
bundler (>= 1.3.0, < 2.0)
|
58
|
+
railties (= 4.0.0)
|
59
|
+
sprockets-rails (~> 2.0.0)
|
60
|
+
railties (4.0.0)
|
61
|
+
actionpack (= 4.0.0)
|
62
|
+
activesupport (= 4.0.0)
|
71
63
|
rake (>= 0.8.7)
|
72
|
-
|
73
|
-
thor (>= 0.14.6, < 2.0)
|
64
|
+
thor (>= 0.18.1, < 2.0)
|
74
65
|
rake (10.1.0)
|
75
|
-
rdoc (3.12.2)
|
76
|
-
json (~> 1.4)
|
77
66
|
rspec-core (2.13.1)
|
78
67
|
rspec-expectations (2.13.0)
|
79
68
|
diff-lcs (>= 1.1.3, < 2.0)
|
@@ -85,13 +74,19 @@ GEM
|
|
85
74
|
rspec-core (~> 2.13.0)
|
86
75
|
rspec-expectations (~> 2.13.0)
|
87
76
|
rspec-mocks (~> 2.13.0)
|
88
|
-
sprockets (2.
|
77
|
+
sprockets (2.10.0)
|
89
78
|
hike (~> 1.2)
|
90
79
|
multi_json (~> 1.0)
|
91
80
|
rack (~> 1.0)
|
92
81
|
tilt (~> 1.1, != 1.3.0)
|
82
|
+
sprockets-rails (2.0.0)
|
83
|
+
actionpack (>= 3.0)
|
84
|
+
activesupport (>= 3.0)
|
85
|
+
sprockets (~> 2.8)
|
93
86
|
sqlite3 (1.3.7)
|
94
87
|
thor (0.18.1)
|
88
|
+
thread_safe (0.1.0)
|
89
|
+
atomic
|
95
90
|
tilt (1.4.1)
|
96
91
|
treetop (1.4.14)
|
97
92
|
polyglot
|
@@ -105,7 +100,7 @@ DEPENDENCIES
|
|
105
100
|
acts_as_relation!
|
106
101
|
bundler
|
107
102
|
database_cleaner
|
108
|
-
rails
|
103
|
+
rails
|
109
104
|
rake
|
110
105
|
rspec-rails
|
111
106
|
sqlite3
|
data/README.rdoc
CHANGED
@@ -9,12 +9,13 @@ while each type of product has its own attributes...
|
|
9
9
|
+pen+ has +color+, +book+ has +author+ and +publisher+ and so on.
|
10
10
|
|
11
11
|
== Installation
|
12
|
-
|
13
|
-
|
14
|
-
gem "acts_as_relation"
|
12
|
+
For Rails 4 installation add the following line to your +Gemfile+
|
13
|
+
gem 'acts_as_relation', '~> 1.0'
|
15
14
|
and
|
16
15
|
$ bundle install
|
17
16
|
|
17
|
+
If you are using Rails 3 you must use '~> 0.1' version specifier in Gemfile.
|
18
|
+
|
18
19
|
== Usage
|
19
20
|
+acts_as_relation+ uses a polymorphic +has_one+
|
20
21
|
association to simulate multiple-table inheritance.
|
@@ -23,12 +24,10 @@ For the e-commerce example you would declare the product as a +supermodel+ and a
|
|
23
24
|
|
24
25
|
class Product < ActiveRecord::Base
|
25
26
|
acts_as_superclass
|
26
|
-
attr_accessible :name, :price
|
27
27
|
end
|
28
28
|
|
29
29
|
class Pen < ActiveRecord::Base
|
30
30
|
acts_as :product
|
31
|
-
attr_accessible :color
|
32
31
|
end
|
33
32
|
|
34
33
|
class Book < ActiveRecord::Base
|
@@ -90,9 +89,7 @@ The +acts_as+ relation support these options:
|
|
90
89
|
* +:as+
|
91
90
|
* +:auto_join+
|
92
91
|
* +:class_name+
|
93
|
-
* +:conditions+
|
94
92
|
* +:dependent+
|
95
|
-
* +:include+
|
96
93
|
|
97
94
|
when +:auto_join+ option set to +true+ (which is by default), every query on child
|
98
95
|
will automatically joins the parent table. For example:
|
@@ -104,3 +101,9 @@ will result in the following SQL:
|
|
104
101
|
SELECT "pens".* FROM "pens" INNER JOIN "products" ON "products"."as_product_id" = "pens"."id" AND "products"."as_product_type" = 'Pen' WHERE (name = 'somename')
|
105
102
|
|
106
103
|
All other options are same as +has_one+ options.
|
104
|
+
|
105
|
+
Note that support for +:conditions+ and +:include+ has been removed. In their place, you can use
|
106
|
+
+where()+ and +includes()+:
|
107
|
+
|
108
|
+
acts_as :product, -> { where(color: "yellow") }
|
109
|
+
|
data/acts_as_relation.gemspec
CHANGED
@@ -24,10 +24,10 @@ Gem::Specification.new do |s|
|
|
24
24
|
|
25
25
|
# Dependencies (installed via 'bundle install')...
|
26
26
|
s.add_development_dependency "rake"
|
27
|
-
s.add_development_dependency "rails", "~> 3.2"
|
28
27
|
s.add_development_dependency "bundler"
|
29
28
|
s.add_development_dependency "sqlite3"
|
30
29
|
s.add_development_dependency "rspec-rails"
|
30
|
+
s.add_development_dependency "rails"
|
31
31
|
s.add_development_dependency "database_cleaner"
|
32
|
-
s.add_dependency "activerecord"
|
32
|
+
s.add_dependency "activerecord"
|
33
33
|
end
|
@@ -28,7 +28,19 @@ module ActiveRecord
|
|
28
28
|
end
|
29
29
|
|
30
30
|
module ClassMethods
|
31
|
-
def acts_as(model_name, options={})
|
31
|
+
def acts_as(model_name, scope=nil, options={})
|
32
|
+
if scope.is_a?(Hash)
|
33
|
+
options = scope
|
34
|
+
scope = nil
|
35
|
+
end
|
36
|
+
|
37
|
+
if options[:conditions]
|
38
|
+
ActiveSupport::Deprecation.warn(":conditions is no longer supported by acts_as. Please use `where()` instead. Example: `acts_as :person, -> { where(name: 'John') }`")
|
39
|
+
end
|
40
|
+
if options[:include]
|
41
|
+
ActiveSupport::Deprecation.warn(":include is no longer supported by acts_as. Please use `includes()` instead. Example: `acts_as :person, -> { includes(:friends) }`")
|
42
|
+
end
|
43
|
+
|
32
44
|
name = model_name.to_s.underscore.singularize
|
33
45
|
class_name = options[:class_name] || name.camelcase
|
34
46
|
association_name = options[:as] || acts_as_association_name(name)
|
@@ -45,53 +57,55 @@ module ActiveRecord
|
|
45
57
|
:autosave => true,
|
46
58
|
:validate => false,
|
47
59
|
:dependent => options.fetch(:dependent, :destroy),
|
48
|
-
:include => options[:include],
|
49
|
-
:conditions => options[:conditions]
|
50
60
|
}
|
51
61
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
base.
|
56
|
-
base.
|
62
|
+
acts_as_model.module_eval do
|
63
|
+
singleton = class << self ; self end
|
64
|
+
singleton.send :define_method, :included do |base|
|
65
|
+
base.has_one name.to_sym, scope, has_one_options
|
66
|
+
base.validate "#{name}_must_be_valid".to_sym
|
67
|
+
base.alias_method_chain name.to_sym, :autobuild
|
57
68
|
|
58
69
|
base.extend ActiveRecord::ActsAsRelation::AccessMethods
|
59
|
-
attributes =
|
60
|
-
associations =
|
70
|
+
attributes = class_name.constantize.content_columns.map(&:name)
|
71
|
+
associations = class_name.constantize.reflect_on_all_associations.map(&:name)
|
61
72
|
ignored = ["created_at", "updated_at", "#{association_name}_id", "#{association_name}_type", "#{association_name}"]
|
62
73
|
attributes_to_delegate = attributes + associations - ignored
|
63
|
-
base.send :define_acts_as_accessors, attributes_to_delegate,
|
74
|
+
base.send :define_acts_as_accessors, attributes_to_delegate, name
|
64
75
|
|
65
|
-
|
76
|
+
if defined?(::ProtectedAttributes)
|
77
|
+
base.attr_accessible.update(class_name.constantize.attr_accessible)
|
78
|
+
end
|
66
79
|
end
|
67
80
|
|
68
|
-
|
69
|
-
#{name}_without_autobuild || build_#{name}
|
81
|
+
define_method "#{name}_with_autobuild" do
|
82
|
+
send("#{name}_without_autobuild") || send("build_#{name}")
|
70
83
|
end
|
71
84
|
|
72
|
-
|
73
|
-
|
85
|
+
define_method :method_missing do |method, *arg, &block|
|
86
|
+
begin
|
87
|
+
raise NoMethodError if method.to_s == 'id' || method.to_s == name
|
74
88
|
|
75
|
-
|
76
|
-
|
77
|
-
|
89
|
+
send(name).send(method, *arg, &block)
|
90
|
+
rescue NoMethodError
|
91
|
+
super(method, *arg, &block)
|
92
|
+
end
|
78
93
|
end
|
79
94
|
|
80
|
-
|
81
|
-
super ||
|
95
|
+
define_method 'respond_to?' do |method, include_private_methods = false|
|
96
|
+
super(method, include_private_methods) || send(name).respond_to?(method, include_private_methods)
|
82
97
|
end
|
83
98
|
|
84
99
|
protected
|
85
100
|
|
86
|
-
|
87
|
-
unless
|
88
|
-
|
101
|
+
define_method "#{name}_must_be_valid" do
|
102
|
+
unless send(name).valid?
|
103
|
+
send(name).errors.each do |att, message|
|
89
104
|
errors.add(att, message)
|
90
105
|
end
|
91
106
|
end
|
92
107
|
end
|
93
|
-
|
94
|
-
acts_as_model.module_eval code, __FILE__, __LINE__
|
108
|
+
end
|
95
109
|
end
|
96
110
|
|
97
111
|
class_eval do
|
@@ -99,10 +113,10 @@ module ActiveRecord
|
|
99
113
|
end
|
100
114
|
|
101
115
|
if options.fetch :auto_join, true
|
102
|
-
class_eval "default_scope joins(:#{name})"
|
116
|
+
class_eval "default_scope -> { joins(:#{name}) }"
|
103
117
|
end
|
104
118
|
|
105
|
-
class_eval "default_scope includes(:#{name})"
|
119
|
+
class_eval "default_scope -> { includes(:#{name}) }"
|
106
120
|
|
107
121
|
code = <<-EndCode
|
108
122
|
def acts_as_other_model?
|
data/lib/version.rb
CHANGED
@@ -72,8 +72,10 @@ describe "Submodel" do
|
|
72
72
|
end
|
73
73
|
|
74
74
|
it "have supermodel attr_accessibles as attr_accessibles" do
|
75
|
-
|
76
|
-
|
75
|
+
if defined?(::ProtectedAttributes)
|
76
|
+
Pen.attr_accessible[:default].each do |a|
|
77
|
+
Pencil.attr_accessible[:default].should include(a)
|
78
|
+
end
|
77
79
|
end
|
78
80
|
end
|
79
81
|
|
@@ -4,8 +4,8 @@ require File.expand_path('../boot', __FILE__)
|
|
4
4
|
require "active_record/railtie"
|
5
5
|
require "action_controller/railtie"
|
6
6
|
require "action_mailer/railtie"
|
7
|
-
require "active_resource/railtie"
|
8
|
-
require "sprockets/railtie"
|
7
|
+
# require "active_resource/railtie"
|
8
|
+
# require "sprockets/railtie"
|
9
9
|
# require "rails/test_unit/railtie"
|
10
10
|
|
11
11
|
Bundler.require
|
@@ -46,12 +46,6 @@ module Dummy
|
|
46
46
|
# like if you have constraints or database-specific column types
|
47
47
|
# config.active_record.schema_format = :sql
|
48
48
|
|
49
|
-
# Enforce whitelist mode for mass assignment.
|
50
|
-
# This will create an empty whitelist of attributes available for mass-assignment for all models
|
51
|
-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
|
52
|
-
# parameters by using an attr_accessible or attr_protected declaration.
|
53
|
-
# config.active_record.whitelist_attributes = true
|
54
|
-
|
55
49
|
# Enable the asset pipeline
|
56
50
|
config.assets.enabled = true
|
57
51
|
|
@@ -6,9 +6,6 @@ Dummy::Application.configure do
|
|
6
6
|
# since you don't have to restart the web server when you make code changes.
|
7
7
|
config.cache_classes = false
|
8
8
|
|
9
|
-
# Log error messages when you accidentally call methods on nil.
|
10
|
-
config.whiny_nils = true
|
11
|
-
|
12
9
|
# Show full error reports and disable caching
|
13
10
|
config.consider_all_requests_local = true
|
14
11
|
config.action_controller.perform_caching = false
|
@@ -22,16 +19,11 @@ Dummy::Application.configure do
|
|
22
19
|
# Only use best-standards-support built into browsers
|
23
20
|
config.action_dispatch.best_standards_support = :builtin
|
24
21
|
|
25
|
-
# Raise exception on mass assignment protection for Active Record models
|
26
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
-
|
28
|
-
# Log the query plan for queries taking more than this (works
|
29
|
-
# with SQLite, MySQL, and PostgreSQL)
|
30
|
-
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
31
|
-
|
32
22
|
# Do not compress assets
|
33
23
|
config.assets.compress = false
|
34
24
|
|
35
25
|
# Expands the lines which load the assets
|
36
26
|
config.assets.debug = true
|
27
|
+
|
28
|
+
config.eager_load = false
|
37
29
|
end
|
@@ -61,7 +61,5 @@ Dummy::Application.configure do
|
|
61
61
|
# Send deprecation notices to registered listeners
|
62
62
|
config.active_support.deprecation = :notify
|
63
63
|
|
64
|
-
|
65
|
-
# with SQLite, MySQL, and PostgreSQL)
|
66
|
-
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
64
|
+
config.eager_load = true
|
67
65
|
end
|
@@ -11,9 +11,6 @@ Dummy::Application.configure do
|
|
11
11
|
config.serve_static_assets = true
|
12
12
|
config.static_cache_control = "public, max-age=3600"
|
13
13
|
|
14
|
-
# Log error messages when you accidentally call methods on nil
|
15
|
-
config.whiny_nils = true
|
16
|
-
|
17
14
|
# Show full error reports and disable caching
|
18
15
|
config.consider_all_requests_local = true
|
19
16
|
config.action_controller.perform_caching = false
|
@@ -29,9 +26,8 @@ Dummy::Application.configure do
|
|
29
26
|
# ActionMailer::Base.deliveries array.
|
30
27
|
config.action_mailer.delivery_method = :test
|
31
28
|
|
32
|
-
# Raise exception on mass assignment protection for Active Record models
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
-
|
35
29
|
# Print deprecation notices to the stderr
|
36
30
|
config.active_support.deprecation = :stderr
|
31
|
+
|
32
|
+
config.eager_load = false
|
37
33
|
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -9,37 +9,37 @@
|
|
9
9
|
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
10
|
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
11
|
#
|
12
|
-
# It's strongly recommended
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:
|
14
|
+
ActiveRecord::Schema.define(version: 4) do
|
15
15
|
|
16
|
-
create_table "pencils", :
|
17
|
-
t.datetime "created_at"
|
18
|
-
t.datetime "updated_at"
|
16
|
+
create_table "pencils", force: true do |t|
|
17
|
+
t.datetime "created_at"
|
18
|
+
t.datetime "updated_at"
|
19
19
|
end
|
20
20
|
|
21
|
-
create_table "pens", :
|
21
|
+
create_table "pens", force: true do |t|
|
22
22
|
t.integer "as_pen_id"
|
23
23
|
t.string "as_pen_type"
|
24
24
|
t.string "color"
|
25
|
-
t.datetime "created_at"
|
26
|
-
t.datetime "updated_at"
|
25
|
+
t.datetime "created_at"
|
26
|
+
t.datetime "updated_at"
|
27
27
|
end
|
28
28
|
|
29
|
-
create_table "products", :
|
29
|
+
create_table "products", force: true do |t|
|
30
30
|
t.integer "producible_id"
|
31
31
|
t.string "producible_type"
|
32
32
|
t.string "name"
|
33
33
|
t.float "price"
|
34
34
|
t.integer "store_id"
|
35
|
-
t.datetime "created_at"
|
36
|
-
t.datetime "updated_at"
|
35
|
+
t.datetime "created_at"
|
36
|
+
t.datetime "updated_at"
|
37
37
|
end
|
38
38
|
|
39
|
-
create_table "stores", :
|
39
|
+
create_table "stores", force: true do |t|
|
40
40
|
t.string "name"
|
41
|
-
t.datetime "created_at"
|
42
|
-
t.datetime "updated_at"
|
41
|
+
t.datetime "created_at"
|
42
|
+
t.datetime "updated_at"
|
43
43
|
end
|
44
44
|
|
45
45
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_relation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hassan Zamani
|
@@ -25,21 +25,21 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: sqlite3
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '>='
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rspec-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '>='
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '>='
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: activerecord
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '0'
|
111
111
|
description: This 'acts_as' extension provides multi-table inheritance for rails models.
|
112
112
|
email: hsn.zamani@gmail.com
|
113
113
|
executables: []
|