fish0 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fish0/concerns/base.rb +1 -1
- data/lib/fish0/repository.rb +1 -1
- data/lib/fish0/version.rb +1 -1
- data/spec/dummy/log/test.log +95 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a00a4bea56a945cd7b81b258645b09716c2c7a70
|
4
|
+
data.tar.gz: 6476e00ce9d49567a3875414273859daa9ad229f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60a3af9d7f5cf440e48a48b1a9271b2865b24fd06cdb04a275216d0f44e7e6404a9301adc1dc1ab8a4e5628892fb6076e0319e31957fceab03246c8d6572f3e8
|
7
|
+
data.tar.gz: 1886eb1e1d73018ff5a4c9fbca48a02bffb0c780c2952a9cdf00d595edf1c4f8c8fb600a7bb9fdcfeaf6d614e924c6268b1082b309230df7502f42973d06ed88
|
data/lib/fish0/concerns/base.rb
CHANGED
@@ -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
|
data/lib/fish0/repository.rb
CHANGED
@@ -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
|
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]
|
data/lib/fish0/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -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.
|