gummi 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gummi/index.rb +1 -1
- data/lib/gummi/repository/result.rb +1 -1
- data/lib/gummi/version.rb +1 -1
- metadata +2 -2
data/lib/gummi/index.rb
CHANGED
@@ -19,7 +19,7 @@ module Gummi
|
|
19
19
|
# Raises NotImplementedError in production.
|
20
20
|
#
|
21
21
|
def teardown
|
22
|
-
raise NotImplementedError
|
22
|
+
raise NotImplementedError if Gummi.env == 'production'
|
23
23
|
response = client.indices.delete index: name
|
24
24
|
response.present?
|
25
25
|
rescue ::Elasticsearch::Transport::Transport::Errors::NotFound
|
@@ -17,7 +17,7 @@ module Gummi
|
|
17
17
|
|
18
18
|
def records
|
19
19
|
entities = Array(@repository.to_entity_from_db(@db_records)) if @db_records
|
20
|
-
Leaflet::Collection.new entities,
|
20
|
+
Leaflet::Collection.new entities, per_page: @per_page, page: @page, total: total
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
data/lib/gummi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gummi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: virtus
|