raspy 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +35 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/raspy/error.rb +4 -0
- data/lib/raspy/version.rb +3 -0
- data/lib/raspy.rb +249 -0
- data/raspy.gemspec +30 -0
- metadata +141 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a261395ba84065314346c2470df292b85f5af4df
|
4
|
+
data.tar.gz: 448abdef9fbddaec6619d5c7c758b49eec1dc772
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 45ece0cd47ae3077d16a15907d6cd74e7caf9abc7a9c5348016c96493c592da53bd1a54e9a11c18a4d3c13b87cf1884514e708da5505a0c6ff923b90eb5a95a4
|
7
|
+
data.tar.gz: 2e83a4a8c0aaf04f09c8f43242694b53d50fea485a3ee35244ec73b14f779649e41a23a747ad0655249b65a77203ef6139c654076716023b1077e11dbab38ad8
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at csy0013@googlemail.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Ajith Hussain
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# Raspy
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/raspy`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'raspy'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install raspy
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Contributing
|
28
|
+
|
29
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/sparkymat/raspy. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
30
|
+
|
31
|
+
|
32
|
+
## License
|
33
|
+
|
34
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
35
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "raspy"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/lib/raspy/error.rb
ADDED
data/lib/raspy.rb
ADDED
@@ -0,0 +1,249 @@
|
|
1
|
+
require "raspy/version"
|
2
|
+
require "raspy/error"
|
3
|
+
|
4
|
+
class ActiveRecord::Base
|
5
|
+
def self.as_rusql_table
|
6
|
+
t = Rusql::Table.new
|
7
|
+
t.name = self.table_name.to_sym
|
8
|
+
|
9
|
+
t
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.[](ind)
|
13
|
+
Rusql::Column.new( self.as_rusql_table, ind )
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
class Array
|
18
|
+
def prefetch(args)
|
19
|
+
return if args.keys.length == 0
|
20
|
+
|
21
|
+
raise Raspy::Error.new("Cannot run prefetch on a non-uniform list") unless self.map(&:class).uniq.length == 1
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
module Raspy
|
26
|
+
extend Rusql
|
27
|
+
|
28
|
+
|
29
|
+
def self.preload_habtm(list:, name:, association_klass:, foreign_key:, association_foreign_key:, inner_associations:, join_table:, association_condition:)
|
30
|
+
return if list.nil? || list.length == 0
|
31
|
+
|
32
|
+
klass = list.first.class
|
33
|
+
klass.send :attr_reader, name.to_sym
|
34
|
+
|
35
|
+
join_t = table(join_table.to_sym)
|
36
|
+
|
37
|
+
join_query = select(
|
38
|
+
join_t[foreign_key.to_sym],
|
39
|
+
join_t[association_foreign_key.to_sym]
|
40
|
+
).
|
41
|
+
from( join_t ).
|
42
|
+
where(
|
43
|
+
join_t[foreign_key.to_sym].in( list.map{ |e| e[klass.primary_key.to_sym] }.compact )
|
44
|
+
)
|
45
|
+
|
46
|
+
join_objects = ActiveRecord::Base.connection.execute(join_query.to_s).to_a
|
47
|
+
|
48
|
+
association_table = association_klass.as_rusql_table
|
49
|
+
|
50
|
+
condition = join_t[foreign_key.to_sym].in( list.map{ |e| e[klass.primary_key.to_sym] }.compact )
|
51
|
+
if association_condition.present?
|
52
|
+
condition = condition.and( association_condition )
|
53
|
+
end
|
54
|
+
|
55
|
+
query = select(
|
56
|
+
association_table[:*]
|
57
|
+
).
|
58
|
+
from( association_table ).
|
59
|
+
inner_join( join_t, join_t[association_foreign_key.to_sym].equals(association_table[association_klass.primary_key.to_sym]) ).
|
60
|
+
where(
|
61
|
+
condition
|
62
|
+
)
|
63
|
+
|
64
|
+
associated_objects = association_klass.find_by_sql(query.to_s).to_a
|
65
|
+
|
66
|
+
if inner_associations.present?
|
67
|
+
associated_objects.prefetch(inner_associations)
|
68
|
+
end
|
69
|
+
|
70
|
+
associated_objects_hash = {}
|
71
|
+
|
72
|
+
associated_objects_hash = associated_objects.map{ |e| [e[association_klass.primary_key.to_sym], e] }.to_h
|
73
|
+
|
74
|
+
list.each do |ele|
|
75
|
+
set = []
|
76
|
+
|
77
|
+
join_objects.select{ |e| e[0] == ele[klass.primary_key.to_sym] }.map(&:last).each do |association_pk|
|
78
|
+
if associated_objects_hash[association_pk].present?
|
79
|
+
set << associated_objects_hash[association_pk]
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
ele.instance_variable_set(:"@#{name}", set)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.preload_has_many(list:, name:, association_klass:, foreign_key:, inner_associations: nil, association_condition: nil, reverse_association: nil)
|
88
|
+
return if list.nil? || list.length == 0
|
89
|
+
|
90
|
+
klass = list.first.class
|
91
|
+
klass.send :attr_reader, name.to_sym
|
92
|
+
|
93
|
+
if reverse_association.present?
|
94
|
+
association_klass.send :attr_reader, reverse_association.to_sym
|
95
|
+
end
|
96
|
+
|
97
|
+
association_table = association_klass.as_rusql_table
|
98
|
+
|
99
|
+
condition = association_table[foreign_key.to_sym].in( list.map{ |e| e[klass.primary_key.to_sym] }.compact )
|
100
|
+
if association_condition.present?
|
101
|
+
condition = condition.and( association_condition )
|
102
|
+
end
|
103
|
+
|
104
|
+
query = select(
|
105
|
+
association_table[:*]
|
106
|
+
).
|
107
|
+
from( association_table ).
|
108
|
+
where(
|
109
|
+
condition
|
110
|
+
)
|
111
|
+
|
112
|
+
associated_objects = association_klass.find_by_sql(query.to_s).to_a
|
113
|
+
if inner_associations.present?
|
114
|
+
associated_objects.prefetch(inner_associations)
|
115
|
+
end
|
116
|
+
|
117
|
+
associated_objects_hash = {}
|
118
|
+
associated_objects.each do |ao|
|
119
|
+
associated_objects_hash[ao[foreign_key.to_sym]] ||= []
|
120
|
+
associated_objects_hash[ao[foreign_key.to_sym]] << ao
|
121
|
+
end
|
122
|
+
|
123
|
+
list.each do |ele|
|
124
|
+
set = []
|
125
|
+
|
126
|
+
if associated_objects_hash[ele[klass.primary_key.to_sym]].present?
|
127
|
+
set = associated_objects_hash[ele[klass.primary_key.to_sym]]
|
128
|
+
end
|
129
|
+
|
130
|
+
if reverse_association.present?
|
131
|
+
set.each do |ao|
|
132
|
+
ao.instance_variable_set(:"@#{reverse_association}", ele)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
ele.instance_variable_set(:"@#{name}", set)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
def self.preload_has_one(list:, name:, association_klass:, foreign_key:, order_type:, order_field:, inner_associations: nil, association_condition: nil, reverse_association: nil)
|
141
|
+
return if list.nil? || list.length == 0
|
142
|
+
|
143
|
+
klass = list.first.class
|
144
|
+
klass.send :attr_reader, name.to_sym
|
145
|
+
|
146
|
+
if reverse_association.present?
|
147
|
+
association_klass.send :attr_reader, reverse_association.to_sym
|
148
|
+
end
|
149
|
+
|
150
|
+
query = <<-EOS.squish
|
151
|
+
|
152
|
+
SELECT
|
153
|
+
#{ association_klass.table_name }.*
|
154
|
+
FROM #{ association_klass.table_name }
|
155
|
+
INNER JOIN (
|
156
|
+
SELECT #{ association_klass.table_name }.#{ foreign_key }, #{ order_type }(#{ association_klass.table_name }.#{ order_field }) max_#{ order_field }
|
157
|
+
FROM #{ association_klass.table_name }
|
158
|
+
WHERE #{ association_klass.table_name }.#{ foreign_key } IN (#{ list.map{ |e| e[klass.primary_key.to_sym] }.compact.map(&:to_s).join(", ") })
|
159
|
+
#{ association_condition.present? ? " AND #{ association_condition }" : "" }
|
160
|
+
GROUP BY #{ association_klass.table_name }.#{ foreign_key }
|
161
|
+
) _association ON _association.#{ foreign_key } = #{ association_klass.table_name }.#{ foreign_key } AND _association.max_#{ order_field } = #{ association_klass.table_name }.#{ order_field }
|
162
|
+
WHERE #{ association_klass.table_name }.#{ foreign_key } IN (#{ list.map{ |e| e[klass.primary_key.to_sym] }.compact.map(&:to_s).join(", ") })
|
163
|
+
#{ association_condition.present? ? " AND #{ association_condition }" : "" }
|
164
|
+
|
165
|
+
EOS
|
166
|
+
|
167
|
+
associated_objects = association_klass.find_by_sql(query).to_a
|
168
|
+
if inner_associations.present?
|
169
|
+
associated_objects.prefetch(inner_associations)
|
170
|
+
end
|
171
|
+
|
172
|
+
associated_objects_hash = associated_objects.map{ |e| [e[foreign_key.to_sym], e] }.to_h
|
173
|
+
|
174
|
+
list.each do |ele|
|
175
|
+
if associated_objects_hash[ele[klass.primary_key.to_sym]].present?
|
176
|
+
associated_object = associated_objects_hash[ele[klass.primary_key.to_sym]]
|
177
|
+
if reverse_association.present?
|
178
|
+
associated_object.instance_variable_set(:"@#{reverse_association}", ele)
|
179
|
+
end
|
180
|
+
ele.instance_variable_set(:"@#{name}", associated_object)
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
def self.preload_belongs_to(list:, name:, association_klass:, foreign_key:, inner_associations: nil, association_condition: nil, additional_selects: [], additional_joins: [])
|
186
|
+
return if list.nil? || list.length == 0
|
187
|
+
|
188
|
+
klass = list.first.class
|
189
|
+
klass.send :attr_reader, name.to_sym
|
190
|
+
|
191
|
+
return if list.map{ |e| e[foreign_key.to_sym] }.compact.length == 0
|
192
|
+
|
193
|
+
association_table = association_klass.as_rusql_table
|
194
|
+
|
195
|
+
selects = [association_table[:*]]
|
196
|
+
selects += additional_selects
|
197
|
+
|
198
|
+
condition = association_table[association_klass.primary_key.to_sym].in( list.map{ |e| e[foreign_key.to_sym] }.compact )
|
199
|
+
|
200
|
+
unless association_condition.nil?
|
201
|
+
condition = condition.and( association_condition )
|
202
|
+
end
|
203
|
+
|
204
|
+
query = select( *selects ).
|
205
|
+
from( association_table ).
|
206
|
+
where( condition )
|
207
|
+
|
208
|
+
additional_joins.each do |j|
|
209
|
+
query = query.join(j)
|
210
|
+
end
|
211
|
+
|
212
|
+
unless additional_selects.length == 0 && additional_joins.length == 0
|
213
|
+
query = query.group_by( association_table[association_klass.primary_key.to_sym] )
|
214
|
+
end
|
215
|
+
|
216
|
+
associated_objects = association_klass.find_by_sql(query.to_s).to_a
|
217
|
+
if inner_associations.present?
|
218
|
+
associated_objects.prefetch(inner_associations)
|
219
|
+
end
|
220
|
+
|
221
|
+
associated_objects_hash = associated_objects.map{ |e| [e[association_klass.primary_key.to_sym], e] }.to_h
|
222
|
+
|
223
|
+
list.each do |ele|
|
224
|
+
if associated_objects_hash[ele[foreign_key.to_sym]].present?
|
225
|
+
ele.instance_variable_set(:"@#{name}", associated_objects_hash[ele[foreign_key.to_sym]])
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
def self.preload_polymorphic_belongs_to(list:, name:, polymorphic_key_field:, polymorphic_type_field:, polymorphic_type_map:)
|
231
|
+
return if list.nil? || list.length == 0
|
232
|
+
|
233
|
+
return if polymorphic_key_field.nil? || polymorphic_type_field.nil? || polymorphic_type_map.nil? || (polymorphic_type_map.keys.length == 0)
|
234
|
+
|
235
|
+
klass = list.first.class
|
236
|
+
klass.send :attr_reader, name.to_sym
|
237
|
+
|
238
|
+
polymorphic_type_map.keys.each do |polymorphic_type|
|
239
|
+
matching_list = list.select{ |e| e[polymorphic_type_field.to_sym] == polymorphic_type }
|
240
|
+
association_klass = polymorphic_type_map[polymorphic_type]
|
241
|
+
Raspy.preload_belongs_to(
|
242
|
+
list: matching_list,
|
243
|
+
name: name,
|
244
|
+
association_klass: association_klass,
|
245
|
+
foreign_key: polymorphic_key_field
|
246
|
+
)
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|
data/raspy.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'raspy/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "raspy"
|
8
|
+
spec.version = Raspy::VERSION
|
9
|
+
spec.authors = ["Ajith Hussain"]
|
10
|
+
spec.email = ["csy0013@googlemail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{raspy adds a prefetch mechanism to ActiveRecord which is parallel to the ActiveRecord associations.}
|
13
|
+
spec.homepage = "https://github.com/sparkymat/raspy"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
|
19
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_runtime_dependency 'activerecord', '~> 4.0', '>= 4.0.0'
|
25
|
+
spec.add_runtime_dependency 'rusql', '~> 1.0', '>= 1.0.5'
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: raspy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ajith Hussain
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-07-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activerecord
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 4.0.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '4.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 4.0.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: rusql
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.0'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.0.5
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.0'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 1.0.5
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: bundler
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '1.12'
|
60
|
+
type: :development
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '1.12'
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: rake
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '10.0'
|
74
|
+
type: :development
|
75
|
+
prerelease: false
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - "~>"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '10.0'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: rspec
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '3.0'
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '3.0'
|
95
|
+
description:
|
96
|
+
email:
|
97
|
+
- csy0013@googlemail.com
|
98
|
+
executables: []
|
99
|
+
extensions: []
|
100
|
+
extra_rdoc_files: []
|
101
|
+
files:
|
102
|
+
- ".gitignore"
|
103
|
+
- ".rspec"
|
104
|
+
- ".travis.yml"
|
105
|
+
- CODE_OF_CONDUCT.md
|
106
|
+
- Gemfile
|
107
|
+
- LICENSE.txt
|
108
|
+
- README.md
|
109
|
+
- Rakefile
|
110
|
+
- bin/console
|
111
|
+
- bin/setup
|
112
|
+
- lib/raspy.rb
|
113
|
+
- lib/raspy/error.rb
|
114
|
+
- lib/raspy/version.rb
|
115
|
+
- raspy.gemspec
|
116
|
+
homepage: https://github.com/sparkymat/raspy
|
117
|
+
licenses:
|
118
|
+
- MIT
|
119
|
+
metadata: {}
|
120
|
+
post_install_message:
|
121
|
+
rdoc_options: []
|
122
|
+
require_paths:
|
123
|
+
- lib
|
124
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
requirements: []
|
135
|
+
rubyforge_project:
|
136
|
+
rubygems_version: 2.5.1
|
137
|
+
signing_key:
|
138
|
+
specification_version: 4
|
139
|
+
summary: raspy adds a prefetch mechanism to ActiveRecord which is parallel to the
|
140
|
+
ActiveRecord associations.
|
141
|
+
test_files: []
|