mongoid-geospatial 7.4.0 → 7.4.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
  SHA256:
3
- metadata.gz: 3fe8fdb16899dedfb2b332791e86caff0a6263e6a973ac9460e6b167f2540edb
4
- data.tar.gz: 00a8663771fb673841e1addfcf7add390269982d1c1468f34cc77e73fda36428
3
+ metadata.gz: 7c846ae49f306f4a792dc91f1eb1443447f80d29f6a587f45bb28380a225ff05
4
+ data.tar.gz: '09e160b554fe965d6cabdc0210d1fac46266d60608c27c7752bc03155e864ddc'
5
5
  SHA512:
6
- metadata.gz: 179a915b32d8a20386adefbcb040681b49c53139970a68a8965089b7117a67f456b70cd3b3266c4a224225d374bf2710679dc9125ea11e45c489b3cc0de2458d
7
- data.tar.gz: 6390574b2c40e723b138824f2af1b98491c61d4b5aa87ae26bfd8dfa0407d93164cf6eb03897a278c939ae9db4f4b5d77a8f8861b1e963aa4bb5587c83316fbe
6
+ metadata.gz: 20e3ffd7837f3f49f3e4dac9e1d01b8eaeba914c004080810d23da1007ae39e9d495413ef626522ca7f3a5d894e2bc372654bf9a8a8888ef6b7fded46c833478
7
+ data.tar.gz: c034703d0e1c748fc04c2ce2b7c04391503f4c04617a95f8234d906a278eab80567b052b4ed36c1222dcbfed99457502d14703a97085d9a8a1d3dd48558ae718
data/README.md CHANGED
@@ -3,13 +3,14 @@
3
3
  A Mongoid Extension that simplifies the use of MongoDB spatial features.
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/mongoid-geospatial.svg)](http://badge.fury.io/rb/mongoid-geospatial)
6
- [![Code Climate](https://codeclimate.com/github/mongoid/mongoid-geospatial.svg)](https://codeclimate.com/github/mongoid/mongoid-geospatial)
6
+ [![Test](https://github.com/mongoid/mongoid-geospatial/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/mongoid/mongoid-geospatial/actions/workflows/test.yml?query=branch%3Amaster)
7
7
  [![Coverage Status](https://coveralls.io/repos/github/mongoid/mongoid-geospatial/badge.svg?branch=master)](https://coveralls.io/github/mongoid/mongoid-geospatial?branch=master)
8
- [![Build Status](https://travis-ci.org/mongoid/mongoid-geospatial.svg?branch=master)](https://travis-ci.org/mongoid/mongoid-geospatial)
8
+
9
+ The Ruby 4.0 CI job measures all library files with SimpleCov and submits `coverage/.resultset.json` through the official Coveralls action using GitHub's automatic token. Other matrix jobs do not upload duplicate reports. Run `COVERAGE=true bundle install` and `COVERAGE=true bundle exec rake spec` to measure coverage locally. An accepted upstream default-branch build is required for the badge; this workflow alone does not activate the external service.
9
10
 
10
11
  ## Quick Start
11
12
 
12
- This gem focuses on (making helpers for) MongoDB's spatial features using Mongoid 5, 6 and 7.
13
+ This gem focuses on (making helpers for) MongoDB's spatial features using Mongoid.
13
14
 
14
15
  ```ruby
15
16
  # Gemfile
@@ -87,7 +87,7 @@ module Mongoid
87
87
  #
88
88
  # @return [Object]
89
89
  def demongoize(obj)
90
- obj && new(obj)
90
+ obj && new(obj.is_a?(Hash) ? obj['coordinates'] || obj[:coordinates] : obj)
91
91
  end
92
92
  end
93
93
  end
@@ -3,6 +3,6 @@
3
3
  module Mongoid
4
4
  # Mongoid Geospatial version
5
5
  module Geospatial
6
- VERSION = '7.4.0'
6
+ VERSION = '7.4.2'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-geospatial
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.4.0
4
+ version: 7.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Ong
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.6.7
74
+ rubygems_version: 4.0.20
75
75
  specification_version: 4
76
76
  summary: Mongoid Extension that simplifies MongoDB Geospatial Operations.
77
77
  test_files: []