mongo_mapper_parallel 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/mongo_mapper_parallel.rb +8 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjgxNGEzYTAwMmQxOWJjMzY1YTM4YjZjYzRmZjBkYzQ3MWUxMThlMw==
4
+ OTg0ZjgyZjMwOTQ1MGE4YWU1YTA4MDNjZTA5ODQyY2FhYTNmZWI4Ng==
5
5
  data.tar.gz: !binary |-
6
- Njk4YjEyYjNmY2I5YjExODAyNzA5ZTNiNzRhNWJlYWUwNzA0N2NkYQ==
6
+ ZWNiMmM4ZjZmMWFjN2E2ZDc3MTEzODUwMjI1NzQwMTQ4NGVmYWE2ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODBjOTBhYjIzMTUyNTZjMTkyYTQ0N2IyMDA2YmI5YTVlNWQxMDZhN2VmZTVh
10
- Y2VhOWFjZDk3NTM5NmQzYmU1MTRmYTlmYWJiY2NiMzYxNmRlZTRlYTljN2Q5
11
- MjdjNjk2YmY1NjY0ZTViMTI3N2Y4ZmQ2NWZjMjVjYjgxYzczZjc=
9
+ OTkyOWFjOTY5YmQ0NjJiNzY1MzFlYmIwNjhhYmIxMDg5OGQ5MjM1NDI2MjMz
10
+ ZGQyYjNmMzU0MWVmMWRhOGFkNTk3NmRmNzE2NzQzNzU3N2ZjYTVkODk1OTQ4
11
+ NjhkNmYzYTBkM2ZhMWM1Y2IxYzBlNjllMmRlOTAxNTQwODllOWY=
12
12
  data.tar.gz: !binary |-
13
- NDg0NmY2OWJjYzk1ZjVjNzQ1NTljMzQwYjViMjRiZWMzZTJkMmJmZThjZWYy
14
- ZWM4ZDAzYmQ1OTE4ZmQzZGRjMjA5ZGM0NjZkNTU2MTNlOWI3YjllY2EzNGI3
15
- MzNhYTc1YTcwN2Y5NGE0YWU3ZmI2OTVhYjgyZWI1MzMzZDk1ZDg=
13
+ M2Q3ZjQ1ZGI5ZWMxNWY2ZGQ5Yjk4NTQ4ZThmODlmZGJjMjUxNDcyOGNjMmNk
14
+ MjE1M2ViYWEwYjAyNTk1NGZmNjc4M2ExMjg1ZjJiZjhjZDMyOGM1ZDBlZjA0
15
+ NzA0ZTNhYzU4NTRlMDk0ZDM0YWQ3NmEyZmQxZjBlM2EyMmE1NWI=
@@ -21,9 +21,9 @@ class MongoMapperParallel
21
21
 
22
22
  # A chunk that will be parallelized
23
23
  #
24
- # @param key [String] the lower bound of the range of resources to retrieve
25
- # @param future_key [String] the upper bound for the range of resources to retrieve
26
- # @param compiler [MongoMapperParallel] the Parallel execution object that holds the keys, javascript, and arguments.
24
+ # @param :key [String] the lower bound of the range of resources to retrieve
25
+ # @param :future_key [String] the upper bound for the range of resources to retrieve
26
+ # @param :compiler [MongoMapperParallel] the Parallel execution object that holds the keys, javascript, and arguments.
27
27
  #
28
28
  def initialize(opts={})
29
29
  @key = opts[:key]
@@ -63,7 +63,7 @@ class MongoMapperParallel
63
63
  end
64
64
  end
65
65
 
66
- # Obtains the splitVectors keys to find chunks to parallelize via the `splitVector` command.
66
+ # Obtains the splitVectors keys to find chunks to parallelize via the MongoDB `splitVector` command.
67
67
  #
68
68
  # @return list [Array<MongoMapperParallel::Key>] the list of the keys that will be used for parallel operation
69
69
  #
@@ -76,10 +76,10 @@ class MongoMapperParallel
76
76
 
77
77
  # Instantiates the parallel operation object with the right class, javascript function, and field
78
78
  #
79
- # @param class [Class] the Mongo collection's Ruby Class to execute operations on.
80
- # @param javascript [String] the Javascript function in String format
81
- # @param args [Array, Hash] the arguments to pass to the Javascript function
82
- # @param split [String, Symbol] the field to split the computation on -- typically an indexed unique property of the resources in the collection.
79
+ # @param :class [Class] the Mongo collection's Ruby Class to execute operations on.
80
+ # @param :javascript [String] the Javascript function in String format
81
+ # @param :args [Array, Hash] the arguments to pass to the Javascript function
82
+ # @param :split [String, Symbol] the field to split the computation on -- typically an indexed unique property of the resources in the collection.
83
83
  # @return list [Array<MongoMapperParallel::Key>] the list of the keys that will be used for parallel operation.
84
84
  #
85
85
  def initialize(opts={})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_mapper_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Raiman