notifiable-geo 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41e9ba36302992536821f97271c8058f92c9c952
4
- data.tar.gz: f1550776e010bc8ab000cde2b47cb53fa46d43c9
3
+ metadata.gz: bb61da862dcfbff9dc47c56c4d5639dec7fde31c
4
+ data.tar.gz: 1f61508a4e52a902f47fc414f869631077167161
5
5
  SHA512:
6
- metadata.gz: 5a86c0fb070051a963d978c044f981c3643049f272ab60de21524aabc714de41241920b982e986ccae8b8905e6290d40ac4200a7296be3a61087fba1643427a2
7
- data.tar.gz: 27046def4175f8c41988a31ceed46b7addc0fe5f156ce8f2232b3d3164acc08eaf40522a139e4c13f627e17ee6136c1b4bf2ec3c9fd1bf5e785f9837c2d37288
6
+ metadata.gz: e02a4bddb93ccc647a3148de00e6b0e98c4a7e9e0f714421b467e447e7e8cee5ff25850b036df1a5d8605ba3045ceb6ac7d6c275c937763b94f6fba0ebd8689b
7
+ data.tar.gz: 6ecb91cda69c60aa97f50d6fddb8add20fcd16694a9638e1963226b6f4188f5a5a89a0f91c6c7097f8c0d78eae457c1a057cac0c7c8c3a26dc54aa2d5933a228
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'active_record'
5
5
  include ActiveRecord::Tasks
6
6
  require "active_record/connection_adapters/postgis/postgis_database_tasks"
7
7
 
8
- notifiable_path = Gem::Specification.find_by_name 'notifiable'
8
+ notifiable_path = Gem::Specification.find_by_name 'notifiable-core'
9
9
  load "#{notifiable_path.gem_dir}/lib/tasks/db.rake"
10
10
 
11
11
  namespace :db do
@@ -0,0 +1,15 @@
1
+ require 'rails'
2
+
3
+ module Notifiable
4
+ module Geo
5
+ class Engine < ::Rails::Engine
6
+ initializer :append_migrations do |app|
7
+ unless app.root.to_s.match root.to_s
8
+ config.paths["db/migrate"].expanded.each do |expanded_path|
9
+ app.config.paths["db/migrate"] << expanded_path
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  module Notifiable
2
2
  module Geo
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.2".freeze
4
4
  end
5
5
  end
@@ -3,6 +3,7 @@ require "rgeo"
3
3
  require "rgeo-activerecord"
4
4
 
5
5
  require "notifiable/geo/version"
6
+ require "notifiable/geo/engine" if defined?(Rails)
6
7
  require "notifiable/device_token_decorator"
7
8
 
8
9
  RGeo::ActiveRecord::SpatialFactoryStore.instance.tap do |config|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-geo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brooke-Smith
@@ -10,6 +10,20 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2018-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: notifiable-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.1
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: pg
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -120,6 +134,7 @@ files:
120
134
  - db/migrate/20170116212641_add_lat_lon_to_notifiable_device_tokens.rb
121
135
  - lib/notifiable/device_token_decorator.rb
122
136
  - lib/notifiable/geo.rb
137
+ - lib/notifiable/geo/engine.rb
123
138
  - lib/notifiable/geo/version.rb
124
139
  homepage: https://github.com/FutureWorkshops/notifiable-geo
125
140
  licenses: