edge_rider 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -2
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +61 -10
  5. data/README.md +7 -8
  6. data/Rakefile +5 -61
  7. data/edge_rider.gemspec +2 -3
  8. data/gemfiles/Gemfile.2.3.mysql2 +16 -0
  9. data/gemfiles/Gemfile.2.3.mysql2.lock +37 -0
  10. data/gemfiles/Gemfile.3.2.mysql2 +16 -0
  11. data/gemfiles/Gemfile.3.2.mysql2.lock +62 -0
  12. data/gemfiles/Gemfile.4.2.mysql2 +15 -0
  13. data/gemfiles/Gemfile.4.2.mysql2.lock +66 -0
  14. data/gemfiles/Gemfile.4.2.pg +15 -0
  15. data/gemfiles/Gemfile.4.2.pg.lock +66 -0
  16. data/gemfiles/Gemfile.5.1.mysql2 +15 -0
  17. data/gemfiles/Gemfile.5.1.mysql2.lock +63 -0
  18. data/gemfiles/Gemfile.5.1.pg +15 -0
  19. data/gemfiles/Gemfile.5.1.pg.lock +63 -0
  20. data/lib/edge_rider.rb +2 -0
  21. data/lib/edge_rider/collect_column.rb +7 -1
  22. data/lib/edge_rider/collect_ids.rb +3 -3
  23. data/lib/edge_rider/development.rb +2 -15
  24. data/lib/edge_rider/util.rb +31 -2
  25. data/lib/edge_rider/version.rb +1 -1
  26. data/spec/{shared/spec/edge_rider → edge_rider}/collect_column_spec.rb +0 -0
  27. data/spec/{shared/spec/edge_rider → edge_rider}/collect_ids_spec.rb +2 -2
  28. data/spec/{shared/spec/edge_rider → edge_rider}/origin_class_spec.rb +0 -0
  29. data/spec/{shared/spec/edge_rider → edge_rider}/preload_associations_spec.rb +0 -0
  30. data/spec/{shared/spec/edge_rider → edge_rider}/scoped_spec.rb +2 -1
  31. data/spec/{shared/spec/edge_rider → edge_rider}/to_id_query_spec.rb +3 -3
  32. data/spec/{shared/spec/edge_rider → edge_rider}/to_sql_spec.rb +1 -1
  33. data/spec/{shared/spec/edge_rider → edge_rider}/traverse_association_spec.rb +0 -0
  34. data/spec/{shared/spec/edge_rider → edge_rider}/util_spec.rb +0 -0
  35. data/spec/spec_helper.rb +12 -0
  36. data/spec/support/database.rb +34 -0
  37. data/spec/{shared/app_root/config → support}/database.sample.yml +6 -2
  38. data/spec/support/database.travis.yml +9 -0
  39. data/spec/support/models.rb +92 -0
  40. metadata +60 -155
  41. data/spec/rails-2.3/.ruby-version +0 -1
  42. data/spec/rails-2.3/Gemfile +0 -17
  43. data/spec/rails-2.3/Gemfile.lock +0 -66
  44. data/spec/rails-2.3/Rakefile +0 -11
  45. data/spec/rails-2.3/app_root/config/boot.rb +0 -130
  46. data/spec/rails-2.3/app_root/config/environment.rb +0 -16
  47. data/spec/rails-2.3/app_root/config/environments/test.rb +0 -0
  48. data/spec/rails-2.3/app_root/config/initializers/fix_missing_source_file.rb +0 -1
  49. data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -22
  50. data/spec/rails-2.3/app_root/config/routes.rb +0 -15
  51. data/spec/rails-2.3/app_root/log/.gitignore +0 -1
  52. data/spec/rails-2.3/rcov.opts +0 -2
  53. data/spec/rails-2.3/spec.opts +0 -5
  54. data/spec/rails-2.3/spec/spec_helper.rb +0 -25
  55. data/spec/rails-3.0/.rspec +0 -2
  56. data/spec/rails-3.0/.ruby-version +0 -1
  57. data/spec/rails-3.0/Gemfile +0 -12
  58. data/spec/rails-3.0/Gemfile.lock +0 -120
  59. data/spec/rails-3.0/Rakefile +0 -11
  60. data/spec/rails-3.0/app_root/.gitignore +0 -4
  61. data/spec/rails-3.0/app_root/config/application.rb +0 -33
  62. data/spec/rails-3.0/app_root/config/boot.rb +0 -15
  63. data/spec/rails-3.0/app_root/config/environment.rb +0 -7
  64. data/spec/rails-3.0/app_root/config/environments/test.rb +0 -37
  65. data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +0 -9
  66. data/spec/rails-3.0/app_root/config/initializers/inflections.rb +0 -12
  67. data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +0 -7
  68. data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +0 -9
  69. data/spec/rails-3.0/app_root/config/initializers/session_store.rb +0 -10
  70. data/spec/rails-3.0/app_root/config/routes.rb +0 -5
  71. data/spec/rails-3.0/app_root/lib/tasks/.gitkeep +0 -0
  72. data/spec/rails-3.0/app_root/log/.gitkeep +0 -0
  73. data/spec/rails-3.0/app_root/script/rails +0 -6
  74. data/spec/rails-3.0/rcov.opts +0 -2
  75. data/spec/rails-3.0/spec/spec_helper.rb +0 -23
  76. data/spec/rails-3.2/.rspec +0 -2
  77. data/spec/rails-3.2/.ruby-version +0 -1
  78. data/spec/rails-3.2/Gemfile +0 -16
  79. data/spec/rails-3.2/Gemfile.lock +0 -135
  80. data/spec/rails-3.2/Rakefile +0 -12
  81. data/spec/rails-3.2/app_root/.gitignore +0 -4
  82. data/spec/rails-3.2/app_root/config/application.rb +0 -33
  83. data/spec/rails-3.2/app_root/config/boot.rb +0 -15
  84. data/spec/rails-3.2/app_root/config/environment.rb +0 -7
  85. data/spec/rails-3.2/app_root/config/environments/test.rb +0 -37
  86. data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -9
  87. data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -12
  88. data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -7
  89. data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -9
  90. data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -10
  91. data/spec/rails-3.2/app_root/config/routes.rb +0 -5
  92. data/spec/rails-3.2/app_root/log/.gitignore +0 -1
  93. data/spec/rails-3.2/rcov.opts +0 -2
  94. data/spec/rails-3.2/spec/spec_helper.rb +0 -25
  95. data/spec/rails-4.1/.rspec +0 -2
  96. data/spec/rails-4.1/.ruby-version +0 -1
  97. data/spec/rails-4.1/Gemfile +0 -17
  98. data/spec/rails-4.1/Gemfile.lock +0 -138
  99. data/spec/rails-4.1/Rakefile +0 -12
  100. data/spec/rails-4.1/app_root/.gitignore +0 -16
  101. data/spec/rails-4.1/app_root/bin/bundle +0 -3
  102. data/spec/rails-4.1/app_root/bin/rails +0 -8
  103. data/spec/rails-4.1/app_root/bin/rake +0 -8
  104. data/spec/rails-4.1/app_root/bin/spring +0 -18
  105. data/spec/rails-4.1/app_root/config/application.rb +0 -28
  106. data/spec/rails-4.1/app_root/config/boot.rb +0 -4
  107. data/spec/rails-4.1/app_root/config/environment.rb +0 -5
  108. data/spec/rails-4.1/app_root/config/environments/development.rb +0 -37
  109. data/spec/rails-4.1/app_root/config/environments/production.rb +0 -83
  110. data/spec/rails-4.1/app_root/config/environments/test.rb +0 -39
  111. data/spec/rails-4.1/app_root/config/initializers/backtrace_silencers.rb +0 -7
  112. data/spec/rails-4.1/app_root/config/initializers/cookies_serializer.rb +0 -3
  113. data/spec/rails-4.1/app_root/config/initializers/filter_parameter_logging.rb +0 -4
  114. data/spec/rails-4.1/app_root/config/initializers/inflections.rb +0 -16
  115. data/spec/rails-4.1/app_root/config/initializers/mime_types.rb +0 -4
  116. data/spec/rails-4.1/app_root/config/initializers/session_store.rb +0 -3
  117. data/spec/rails-4.1/app_root/config/initializers/wrap_parameters.rb +0 -14
  118. data/spec/rails-4.1/app_root/config/routes.rb +0 -3
  119. data/spec/rails-4.1/app_root/config/secrets.yml +0 -22
  120. data/spec/rails-4.1/rcov.opts +0 -2
  121. data/spec/rails-4.1/spec/spec_helper.rb +0 -31
  122. data/spec/shared/app_root/app/controllers/application_controller.rb +0 -5
  123. data/spec/shared/app_root/app/models/allow_setting_id_on_create.rb +0 -21
  124. data/spec/shared/app_root/app/models/forum.rb +0 -11
  125. data/spec/shared/app_root/app/models/post.rb +0 -11
  126. data/spec/shared/app_root/app/models/profile.rb +0 -8
  127. data/spec/shared/app_root/app/models/topic.rb +0 -14
  128. data/spec/shared/app_root/app/models/user.rb +0 -13
  129. data/spec/shared/app_root/config/database.travis_ci.yml +0 -6
  130. data/spec/shared/app_root/db/migrate/001_create_test_tables.rb +0 -45
@@ -0,0 +1,12 @@
1
+ $: << File.join(File.dirname(__FILE__), "/../lib" )
2
+
3
+ require 'edge_rider'
4
+ require 'edge_rider/development'
5
+ require 'database_cleaner'
6
+ require 'gemika'
7
+
8
+ # Requires supporting files with custom matchers and macros, etc in ./support/ and its subdirectories.
9
+ Dir["#{File.dirname(__FILE__)}/support/*.rb"].sort.each {|f| require f}
10
+
11
+ Gemika::RSpec.configure_clean_database_before_example
12
+ Gemika::RSpec.configure_should_syntax
@@ -0,0 +1,34 @@
1
+ Gemika::Database.new.rewrite_schema! do
2
+
3
+ create_table :forums do |t|
4
+ t.string :name
5
+ t.boolean :trashed
6
+ end
7
+
8
+ create_table :topics do |t|
9
+ t.string :subject
10
+ t.references :forum
11
+ t.references :author
12
+ t.boolean :trashed
13
+ end
14
+
15
+ create_table :posts do |t|
16
+ t.text :body
17
+ t.references :topic
18
+ t.references :author
19
+ t.boolean :trashed
20
+ t.timestamps
21
+ end
22
+
23
+ create_table :users do |t|
24
+ t.string :email
25
+ t.boolean :trashed
26
+ end
27
+
28
+ create_table :profiles do |t|
29
+ t.references :user
30
+ t.text :hobbies
31
+ t.boolean :trashed
32
+ end
33
+
34
+ end
@@ -1,6 +1,10 @@
1
- test:
2
- adapter: mysql2
1
+ mysql:
2
+ database: edge_rider_test
3
3
  host: localhost
4
4
  username: root
5
5
  password: secret
6
+
7
+ postgresql:
6
8
  database: edge_rider_test
9
+ user:
10
+ password:
@@ -0,0 +1,9 @@
1
+ mysql:
2
+ database: edge_rider_test
3
+ username: travis
4
+ password:
5
+
6
+ postgresql:
7
+ database: edge_rider_test
8
+ user: postgres
9
+ password:
@@ -0,0 +1,92 @@
1
+ require 'has_defaults'
2
+
3
+ # Since our specs are mostly about working with IDs, this module can be
4
+ # included in an ActiveRecord model class to allow setting the :id attribute
5
+ # on create. This is forbidden by default.
6
+ # http://stackoverflow.com/questions/431617/overriding-id-on-create-in-activerecord
7
+ module AllowSettingIdOnCreate
8
+
9
+ module RemoveIdFromProtectedAttributes
10
+ def attributes_protected_by_default
11
+ super - ['id']
12
+ end
13
+ end
14
+
15
+ def self.included(base)
16
+ if ActiveRecord::VERSION::MAJOR < 3 # Rails 2 has this as an instance method
17
+ base.send(:include, RemoveIdFromProtectedAttributes)
18
+ else # Rails 3 has this as a class method
19
+ base.send(:extend, RemoveIdFromProtectedAttributes)
20
+ end
21
+ end
22
+
23
+ end
24
+
25
+
26
+
27
+
28
+ class Forum < ActiveRecord::Base
29
+ include AllowSettingIdOnCreate
30
+
31
+ has_many :topics
32
+ has_many :posts, :through => :topics
33
+ EdgeRider::Util.define_association self, :has_many, :active_topics,
34
+ :conditions => { :trashed => false }, :class_name => 'Topic'
35
+
36
+ has_defaults :trashed => false
37
+
38
+ end
39
+
40
+
41
+ class Post < ActiveRecord::Base
42
+ include AllowSettingIdOnCreate
43
+
44
+ belongs_to :topic
45
+ belongs_to :author, :class_name => 'User'
46
+
47
+ has_defaults :trashed => false
48
+
49
+ EdgeRider::Util.define_scope self, :these, lambda { |array| { :conditions => { :id => array } } }
50
+
51
+ end
52
+
53
+
54
+ class Profile < ActiveRecord::Base
55
+ include AllowSettingIdOnCreate
56
+
57
+ belongs_to :user
58
+
59
+ has_defaults :trashed => false
60
+
61
+ end
62
+
63
+
64
+ class Topic < ActiveRecord::Base
65
+ include AllowSettingIdOnCreate
66
+
67
+ belongs_to :forum
68
+ EdgeRider::Util.define_association self, :belongs_to, :active_forum,
69
+ :conditions => { :trashed => false }, :class_name => 'Forum'
70
+
71
+ has_many :posts
72
+ belongs_to :author, :class_name => 'User'
73
+ has_many :post_authors, :through => :posts
74
+
75
+ has_defaults :trashed => false
76
+
77
+ end
78
+
79
+
80
+ class User < ActiveRecord::Base
81
+ include AllowSettingIdOnCreate
82
+
83
+ has_many :posts
84
+ has_many :topics
85
+
86
+ has_one :profile
87
+ EdgeRider::Util.define_association self, :has_one, :active_profile,
88
+ :conditions => { :trashed => false }, :class_name => 'Profile'
89
+
90
+ has_defaults :trashed => false
91
+
92
+ end
metadata CHANGED
@@ -1,52 +1,54 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: edge_rider
3
- version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 1
10
- version: 0.3.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.2
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Henning Koch
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2015-06-11 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2017-05-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: activerecord
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
26
17
  - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
32
20
  type: :runtime
33
- version_requirements: *id001
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
34
27
  description: Power tools for ActiveRecord relations (scopes)
35
28
  email: henning.koch@makandra.de
36
29
  executables: []
37
-
38
30
  extensions: []
39
-
40
31
  extra_rdoc_files: []
41
-
42
- files:
43
- - .gitignore
44
- - .ruby-version
45
- - .travis.yml
32
+ files:
33
+ - ".gitignore"
34
+ - ".ruby-version"
35
+ - ".travis.yml"
46
36
  - LICENSE
47
37
  - README.md
48
38
  - Rakefile
49
39
  - edge_rider.gemspec
40
+ - gemfiles/Gemfile.2.3.mysql2
41
+ - gemfiles/Gemfile.2.3.mysql2.lock
42
+ - gemfiles/Gemfile.3.2.mysql2
43
+ - gemfiles/Gemfile.3.2.mysql2.lock
44
+ - gemfiles/Gemfile.4.2.mysql2
45
+ - gemfiles/Gemfile.4.2.mysql2.lock
46
+ - gemfiles/Gemfile.4.2.pg
47
+ - gemfiles/Gemfile.4.2.pg.lock
48
+ - gemfiles/Gemfile.5.1.mysql2
49
+ - gemfiles/Gemfile.5.1.mysql2.lock
50
+ - gemfiles/Gemfile.5.1.pg
51
+ - gemfiles/Gemfile.5.1.pg.lock
50
52
  - lib/edge_rider.rb
51
53
  - lib/edge_rider/collect_column.rb
52
54
  - lib/edge_rider/collect_ids.rb
@@ -59,139 +61,42 @@ files:
59
61
  - lib/edge_rider/traverse_association.rb
60
62
  - lib/edge_rider/util.rb
61
63
  - lib/edge_rider/version.rb
62
- - spec/rails-2.3/.ruby-version
63
- - spec/rails-2.3/Gemfile
64
- - spec/rails-2.3/Gemfile.lock
65
- - spec/rails-2.3/Rakefile
66
- - spec/rails-2.3/app_root/config/boot.rb
67
- - spec/rails-2.3/app_root/config/environment.rb
68
- - spec/rails-2.3/app_root/config/environments/test.rb
69
- - spec/rails-2.3/app_root/config/initializers/fix_missing_source_file.rb
70
- - spec/rails-2.3/app_root/config/preinitializer.rb
71
- - spec/rails-2.3/app_root/config/routes.rb
72
- - spec/rails-2.3/app_root/log/.gitignore
73
- - spec/rails-2.3/rcov.opts
74
- - spec/rails-2.3/spec.opts
75
- - spec/rails-2.3/spec/spec_helper.rb
76
- - spec/rails-3.0/.rspec
77
- - spec/rails-3.0/.ruby-version
78
- - spec/rails-3.0/Gemfile
79
- - spec/rails-3.0/Gemfile.lock
80
- - spec/rails-3.0/Rakefile
81
- - spec/rails-3.0/app_root/.gitignore
82
- - spec/rails-3.0/app_root/config/application.rb
83
- - spec/rails-3.0/app_root/config/boot.rb
84
- - spec/rails-3.0/app_root/config/environment.rb
85
- - spec/rails-3.0/app_root/config/environments/test.rb
86
- - spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb
87
- - spec/rails-3.0/app_root/config/initializers/inflections.rb
88
- - spec/rails-3.0/app_root/config/initializers/mime_types.rb
89
- - spec/rails-3.0/app_root/config/initializers/secret_token.rb
90
- - spec/rails-3.0/app_root/config/initializers/session_store.rb
91
- - spec/rails-3.0/app_root/config/routes.rb
92
- - spec/rails-3.0/app_root/lib/tasks/.gitkeep
93
- - spec/rails-3.0/app_root/log/.gitkeep
94
- - spec/rails-3.0/app_root/script/rails
95
- - spec/rails-3.0/rcov.opts
96
- - spec/rails-3.0/spec/spec_helper.rb
97
- - spec/rails-3.2/.rspec
98
- - spec/rails-3.2/.ruby-version
99
- - spec/rails-3.2/Gemfile
100
- - spec/rails-3.2/Gemfile.lock
101
- - spec/rails-3.2/Rakefile
102
- - spec/rails-3.2/app_root/.gitignore
103
- - spec/rails-3.2/app_root/config/application.rb
104
- - spec/rails-3.2/app_root/config/boot.rb
105
- - spec/rails-3.2/app_root/config/environment.rb
106
- - spec/rails-3.2/app_root/config/environments/test.rb
107
- - spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb
108
- - spec/rails-3.2/app_root/config/initializers/inflections.rb
109
- - spec/rails-3.2/app_root/config/initializers/mime_types.rb
110
- - spec/rails-3.2/app_root/config/initializers/secret_token.rb
111
- - spec/rails-3.2/app_root/config/initializers/session_store.rb
112
- - spec/rails-3.2/app_root/config/routes.rb
113
- - spec/rails-3.2/app_root/log/.gitignore
114
- - spec/rails-3.2/rcov.opts
115
- - spec/rails-3.2/spec/spec_helper.rb
116
- - spec/rails-4.1/.rspec
117
- - spec/rails-4.1/.ruby-version
118
- - spec/rails-4.1/Gemfile
119
- - spec/rails-4.1/Gemfile.lock
120
- - spec/rails-4.1/Rakefile
121
- - spec/rails-4.1/app_root/.gitignore
122
- - spec/rails-4.1/app_root/bin/bundle
123
- - spec/rails-4.1/app_root/bin/rails
124
- - spec/rails-4.1/app_root/bin/rake
125
- - spec/rails-4.1/app_root/bin/spring
126
- - spec/rails-4.1/app_root/config/application.rb
127
- - spec/rails-4.1/app_root/config/boot.rb
128
- - spec/rails-4.1/app_root/config/environment.rb
129
- - spec/rails-4.1/app_root/config/environments/development.rb
130
- - spec/rails-4.1/app_root/config/environments/production.rb
131
- - spec/rails-4.1/app_root/config/environments/test.rb
132
- - spec/rails-4.1/app_root/config/initializers/backtrace_silencers.rb
133
- - spec/rails-4.1/app_root/config/initializers/cookies_serializer.rb
134
- - spec/rails-4.1/app_root/config/initializers/filter_parameter_logging.rb
135
- - spec/rails-4.1/app_root/config/initializers/inflections.rb
136
- - spec/rails-4.1/app_root/config/initializers/mime_types.rb
137
- - spec/rails-4.1/app_root/config/initializers/session_store.rb
138
- - spec/rails-4.1/app_root/config/initializers/wrap_parameters.rb
139
- - spec/rails-4.1/app_root/config/routes.rb
140
- - spec/rails-4.1/app_root/config/secrets.yml
141
- - spec/rails-4.1/rcov.opts
142
- - spec/rails-4.1/spec/spec_helper.rb
143
- - spec/shared/app_root/app/controllers/application_controller.rb
144
- - spec/shared/app_root/app/models/allow_setting_id_on_create.rb
145
- - spec/shared/app_root/app/models/forum.rb
146
- - spec/shared/app_root/app/models/post.rb
147
- - spec/shared/app_root/app/models/profile.rb
148
- - spec/shared/app_root/app/models/topic.rb
149
- - spec/shared/app_root/app/models/user.rb
150
- - spec/shared/app_root/config/database.sample.yml
151
- - spec/shared/app_root/config/database.travis_ci.yml
152
- - spec/shared/app_root/db/migrate/001_create_test_tables.rb
153
- - spec/shared/spec/edge_rider/collect_column_spec.rb
154
- - spec/shared/spec/edge_rider/collect_ids_spec.rb
155
- - spec/shared/spec/edge_rider/origin_class_spec.rb
156
- - spec/shared/spec/edge_rider/preload_associations_spec.rb
157
- - spec/shared/spec/edge_rider/scoped_spec.rb
158
- - spec/shared/spec/edge_rider/to_id_query_spec.rb
159
- - spec/shared/spec/edge_rider/to_sql_spec.rb
160
- - spec/shared/spec/edge_rider/traverse_association_spec.rb
161
- - spec/shared/spec/edge_rider/util_spec.rb
64
+ - spec/edge_rider/collect_column_spec.rb
65
+ - spec/edge_rider/collect_ids_spec.rb
66
+ - spec/edge_rider/origin_class_spec.rb
67
+ - spec/edge_rider/preload_associations_spec.rb
68
+ - spec/edge_rider/scoped_spec.rb
69
+ - spec/edge_rider/to_id_query_spec.rb
70
+ - spec/edge_rider/to_sql_spec.rb
71
+ - spec/edge_rider/traverse_association_spec.rb
72
+ - spec/edge_rider/util_spec.rb
73
+ - spec/spec_helper.rb
74
+ - spec/support/database.rb
75
+ - spec/support/database.sample.yml
76
+ - spec/support/database.travis.yml
77
+ - spec/support/models.rb
162
78
  homepage: https://github.com/makandra/edge_rider
163
- licenses:
79
+ licenses:
164
80
  - MIT
81
+ metadata: {}
165
82
  post_install_message:
166
83
  rdoc_options: []
167
-
168
- require_paths:
84
+ require_paths:
169
85
  - lib
170
- required_ruby_version: !ruby/object:Gem::Requirement
171
- none: false
172
- requirements:
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
173
88
  - - ">="
174
- - !ruby/object:Gem::Version
175
- hash: 3
176
- segments:
177
- - 0
178
- version: "0"
179
- required_rubygems_version: !ruby/object:Gem::Requirement
180
- none: false
181
- requirements:
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
182
93
  - - ">="
183
- - !ruby/object:Gem::Version
184
- hash: 3
185
- segments:
186
- - 0
187
- version: "0"
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
188
96
  requirements: []
189
-
190
97
  rubyforge_project:
191
- rubygems_version: 1.8.25
98
+ rubygems_version: 2.4.5.1
192
99
  signing_key:
193
- specification_version: 3
100
+ specification_version: 4
194
101
  summary: Power tools for ActiveRecord relations (scopes)
195
102
  test_files: []
196
-
197
- has_rdoc:
@@ -1 +0,0 @@
1
- 1.8.7
@@ -1,17 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- Deprecate.skip = true if defined?(Deprecate.skip)
4
- Gem::Deprecate.skip = true if defined?(Gem::Deprecate.skip)
5
-
6
- gem 'rails', '~>2.3'
7
- gem 'rspec', '~>1.3'
8
- gem 'rspec-rails', '~>1.3'
9
- gem 'mysql2', '~>0.2.0'
10
- gem 'ruby-debug', :platforms => :ruby_18
11
- gem 'test-unit', '~>1.2', :platforms => :ruby_19
12
- gem 'hoe', '=2.8.0', :platforms => :ruby_19
13
- gem 'database_cleaner', '=1.0.1'
14
- gem 'andand'
15
- gem 'has_defaults'
16
-
17
- gem 'edge_rider', :path => '../..'
@@ -1,66 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- edge_rider (0.3.0)
5
- activerecord
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- actionmailer (2.3.18)
11
- actionpack (= 2.3.18)
12
- actionpack (2.3.18)
13
- activesupport (= 2.3.18)
14
- rack (~> 1.1.0)
15
- activerecord (2.3.18)
16
- activesupport (= 2.3.18)
17
- activeresource (2.3.18)
18
- activesupport (= 2.3.18)
19
- activesupport (2.3.18)
20
- andand (1.3.3)
21
- columnize (0.3.6)
22
- database_cleaner (1.0.1)
23
- has_defaults (0.4.1)
24
- activerecord
25
- hoe (2.8.0)
26
- rake (>= 0.8.7)
27
- linecache (0.46)
28
- rbx-require-relative (> 0.0.4)
29
- mysql2 (0.2.20)
30
- rack (1.1.6)
31
- rails (2.3.18)
32
- actionmailer (= 2.3.18)
33
- actionpack (= 2.3.18)
34
- activerecord (= 2.3.18)
35
- activeresource (= 2.3.18)
36
- activesupport (= 2.3.18)
37
- rake (>= 0.8.3)
38
- rake (10.1.0)
39
- rbx-require-relative (0.0.9)
40
- rspec (1.3.2)
41
- rspec-rails (1.3.4)
42
- rack (>= 1.0.0)
43
- rspec (~> 1.3.1)
44
- ruby-debug (0.10.4)
45
- columnize (>= 0.1)
46
- ruby-debug-base (~> 0.10.4.0)
47
- ruby-debug-base (0.10.4)
48
- linecache (>= 0.3)
49
- test-unit (1.2.3)
50
- hoe (>= 1.5.1)
51
-
52
- PLATFORMS
53
- ruby
54
-
55
- DEPENDENCIES
56
- andand
57
- database_cleaner (= 1.0.1)
58
- edge_rider!
59
- has_defaults
60
- hoe (= 2.8.0)
61
- mysql2 (~> 0.2.0)
62
- rails (~> 2.3)
63
- rspec (~> 1.3)
64
- rspec-rails (~> 1.3)
65
- ruby-debug
66
- test-unit (~> 1.2)