gummi 0.0.8 → 0.0.9

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.
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 unless Gummi.env == 'development' || Gummi.env == 'test'
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, {per_page: @per_page, current_page: @page, total_entries: total}
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
@@ -1,3 +1,3 @@
1
1
  module Gummi
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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.8
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-21 00:00:00.000000000 Z
12
+ date: 2013-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtus