fish0 0.1.0 → 0.1.1

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: 48bc1b4bd2852aff70ff91e93731177c9fe20f65
4
- data.tar.gz: 7955a5bb93f3a987e38164e3929e43a5760f4028
3
+ metadata.gz: 081c20c91035adf49b438d0619c66146e2a1d7b5
4
+ data.tar.gz: 2d7be84ae4f9bfadaa9a2303296cb3212882834e
5
5
  SHA512:
6
- metadata.gz: 748e2614a2d03c2ad399ebf140a59722d20d7ac771d86a40a83ce4dd9422d5adc9af43585c54bffe1f87e893b86891d0b1ce6c3fd72f9fe093ecfc3d4de70cf8
7
- data.tar.gz: f2992adccd84cc42faab185dd19fae966a02fe383f3b213adcd14f1e1def1c5935294e0266f12c7d424f740420054ccc22679c869740b795b8d4cdf8e9550546
6
+ metadata.gz: 5af6f8c60ea531584aaa5e2520e1ed65f7e9bc955d43b892284f70355cee69ee5c88bfc02a3c18faa2c1e687d56cf775ad7e70d78b297d91b3485a2f23921203
7
+ data.tar.gz: 1268ca879e73b094ce9b5da6b13dc6fb2d55c69566d4096999843764e37c75e4f27fa5ca17f3cf86bdd241c67da40934bf1f04101889d0c6bf9fec850165d06e
@@ -13,10 +13,10 @@ module Fish0
13
13
  delegate :aggregate, to: :source
14
14
  delegate :each, to: :to_collection
15
15
 
16
- def initialize(collection, entity_class = 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
- @source = Fish0.mongo_reader[collection]
19
+ @source = source ? source[collection] : Fish0.mongo_reader[collection]
20
20
  @conditions = default_conditions
21
21
  @order = {}
22
22
  @limit_quantity = 0
data/lib/fish0/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fish0
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
@@ -4,7 +4,6 @@ development:
4
4
  params:
5
5
  :database: fish0_development
6
6
 
7
-
8
7
  test:
9
8
  hosts:
10
9
  - 'localhost:27017'
@@ -80,3 +80,18 @@ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDat
80
80
  MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.00019600000000000002s
81
81
  MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
82
82
  MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.00021700000000000002s
83
+ MONGODB | Topology type 'unknown' initializing.
84
+ MONGODB | Server localhost:27017 initializing.
85
+ MONGODB | Topology type 'unknown' changed to type 'single'.
86
+ MONGODB | Server description for localhost:27017 changed from 'unknown' to 'standalone'.
87
+ MONGODB | There was a change in the members of the 'single' topology.
88
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
89
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.007686999999999999s
90
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
91
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000223s
92
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
93
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000237s
94
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
95
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000229s
96
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | STARTED | {"dropDatabase"=>1}
97
+ MONGODB | localhost:27017 | fish0_development.dropDatabase | SUCCEEDED | 0.000248s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fish0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Zuev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-01 00:00:00.000000000 Z
11
+ date: 2017-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  version: '0'
241
241
  requirements: []
242
242
  rubyforge_project:
243
- rubygems_version: 2.5.1
243
+ rubygems_version: 2.6.10
244
244
  signing_key:
245
245
  specification_version: 4
246
246
  summary: Plugin for read-only content websites