fish0 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 081c20c91035adf49b438d0619c66146e2a1d7b5
4
- data.tar.gz: 2d7be84ae4f9bfadaa9a2303296cb3212882834e
3
+ metadata.gz: a00a4bea56a945cd7b81b258645b09716c2c7a70
4
+ data.tar.gz: 6476e00ce9d49567a3875414273859daa9ad229f
5
5
  SHA512:
6
- metadata.gz: 5af6f8c60ea531584aaa5e2520e1ed65f7e9bc955d43b892284f70355cee69ee5c88bfc02a3c18faa2c1e687d56cf775ad7e70d78b297d91b3485a2f23921203
7
- data.tar.gz: 1268ca879e73b094ce9b5da6b13dc6fb2d55c69566d4096999843764e37c75e4f27fa5ca17f3cf86bdd241c67da40934bf1f04101889d0c6bf9fec850165d06e
6
+ metadata.gz: 60a3af9d7f5cf440e48a48b1a9271b2865b24fd06cdb04a275216d0f44e7e6404a9301adc1dc1ab8a4e5628892fb6076e0319e31957fceab03246c8d6572f3e8
7
+ data.tar.gz: 1886eb1e1d73018ff5a4c9fbca48a02bffb0c780c2952a9cdf00d595edf1c4f8c8fb600a7bb9fdcfeaf6d614e924c6268b1082b309230df7502f42973d06ed88
@@ -73,7 +73,7 @@ module Fish0
73
73
  end
74
74
 
75
75
  def repository
76
- rep = repository_class.new(collection, entity)
76
+ rep = repository_class.new(collection: collection, entity_class: entity)
77
77
  rep.instance_exec(&@default_scope) if @default_scope
78
78
  scopes.each { |s| rep.scope(*s) }
79
79
  rep
@@ -13,7 +13,7 @@ module Fish0
13
13
  delegate :aggregate, to: :source
14
14
  delegate :each, to: :to_collection
15
15
 
16
- def initialize(collection, entity_class = nil, source: nil)
16
+ def initialize(collection:, entity_class: nil, source: nil)
17
17
  raise ArgumentError, 'you should provide collection name' unless collection
18
18
  @collection = collection
19
19
  @source = source ? source[collection] : Fish0.mongo_reader[collection]
@@ -1,3 +1,3 @@
1
1
  module Fish0
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
@@ -95,3 +95,98 @@ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDat
95
95
  MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000229s
96
96
  MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
97
97
  MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000248s
98
+ MONGODB | Topology type 'unknown' initializing.
99
+ MONGODB | Server localhost:27017 initializing.
100
+ MONGODB | Topology type 'unknown' changed to type 'single'.
101
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
102
+ MONGODB | There was a change in the members of the 'single' topology.
103
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
104
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000618s
105
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
106
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000204s
107
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
108
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000241s
109
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
110
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.00022700000000000002s
111
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
112
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000219s
113
+ MONGODB | Topology type 'unknown' initializing.
114
+ MONGODB | Server localhost:27017 initializing.
115
+ MONGODB | Topology type 'unknown' changed to type 'single'.
116
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
117
+ MONGODB | There was a change in the members of the 'single' topology.
118
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
119
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.001021s
120
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
121
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000204s
122
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
123
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000222s
124
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
125
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000247s
126
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
127
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000231s
128
+ MONGODB | Topology type 'unknown' initializing.
129
+ MONGODB | Server localhost:27017 initializing.
130
+ MONGODB | Topology type 'unknown' changed to type 'single'.
131
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
132
+ MONGODB | There was a change in the members of the 'single' topology.
133
+ MONGODB | Topology type 'unknown' initializing.
134
+ MONGODB | Server localhost:27017 initializing.
135
+ MONGODB | Topology type 'unknown' changed to type 'single'.
136
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
137
+ MONGODB | There was a change in the members of the 'single' topology.
138
+ MONGODB | Topology type 'unknown' initializing.
139
+ MONGODB | Server localhost:27017 initializing.
140
+ MONGODB | Topology type 'unknown' changed to type 'single'.
141
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
142
+ MONGODB | There was a change in the members of the 'single' topology.
143
+ MONGODB | Topology type 'unknown' initializing.
144
+ MONGODB | Server localhost:27017 initializing.
145
+ MONGODB | Topology type 'unknown' changed to type 'single'.
146
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
147
+ MONGODB | There was a change in the members of the 'single' topology.
148
+ MONGODB | Topology type 'unknown' initializing.
149
+ MONGODB | Server localhost:27017 initializing.
150
+ MONGODB | Topology type 'unknown' changed to type 'single'.
151
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
152
+ MONGODB | There was a change in the members of the 'single' topology.
153
+ MONGODB | Topology type 'unknown' initializing.
154
+ MONGODB | Server localhost:27017 initializing.
155
+ MONGODB | Topology type 'unknown' changed to type 'single'.
156
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
157
+ MONGODB | There was a change in the members of the 'single' topology.
158
+ MONGODB | Topology type 'unknown' initializing.
159
+ MONGODB | Server localhost:27017 initializing.
160
+ MONGODB | Topology type 'unknown' changed to type 'single'.
161
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
162
+ MONGODB | There was a change in the members of the 'single' topology.
163
+ MONGODB | Topology type 'unknown' initializing.
164
+ MONGODB | Server localhost:27017 initializing.
165
+ MONGODB | Topology type 'unknown' changed to type 'single'.
166
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
167
+ MONGODB | There was a change in the members of the 'single' topology.
168
+ MONGODB | Topology type 'unknown' initializing.
169
+ MONGODB | Server localhost:27017 initializing.
170
+ MONGODB | Topology type 'unknown' changed to type 'single'.
171
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
172
+ MONGODB | There was a change in the members of the 'single' topology.
173
+ MONGODB | Topology type 'unknown' initializing.
174
+ MONGODB | Server localhost:27017 initializing.
175
+ MONGODB | Topology type 'unknown' changed to type 'single'.
176
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
177
+ MONGODB | There was a change in the members of the 'single' topology.
178
+ MONGODB | Topology type 'unknown' initializing.
179
+ MONGODB | Server localhost:27017 initializing.
180
+ MONGODB | Topology type 'unknown' changed to type 'single'.
181
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
182
+ MONGODB | There was a change in the members of the 'single' topology.
183
+ MONGODB | Topology type 'unknown' initializing.
184
+ MONGODB | Server localhost:27017 initializing.
185
+ MONGODB | Topology type 'unknown' changed to type 'single'.
186
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
187
+ MONGODB | There was a change in the members of the 'single' topology.
188
+ MONGODB | Topology type 'unknown' initializing.
189
+ MONGODB | Server localhost:27017 initializing.
190
+ MONGODB | Topology type 'unknown' changed to type 'single'.
191
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
192
+ MONGODB | There was a change in the members of the 'single' topology.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fish0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Zuev