activecube 0.1.18 → 0.1.19

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
  SHA256:
3
- metadata.gz: 774718534987fd65114b6d33ef5ea98f28ffc146bc1cb9e3299d4ec6b571f2cc
4
- data.tar.gz: 317c3d6e4472c20724ccf6d31202842623ddb05725b002baf8d0224d4bb42af4
3
+ metadata.gz: 540dfc4eef73b6e4e0c8ee9f7453be24751e993c9f6eac006920ee55765c1178
4
+ data.tar.gz: 2ae53fa93776bd3d990fff8758740e64c1aaf3e9ad9839864a70ce3498893f6b
5
5
  SHA512:
6
- metadata.gz: bef4f7a62f25b52eb6ef8b07d89248b7a579c6f329bb3e645e7d59dd96d336fa7534e6669c6bb598d70392220e00d854a9481d956b6eeac8ad020cd728473dc9
7
- data.tar.gz: b7152cde69fc96042edbe3be784c5d857def4984d07776da95c5af2d24bab45d0a9cf9afc716eb317b27e5eed204a76478cf32d37d9aaeac2456edd4ced05eb4
6
+ metadata.gz: 5d84152be15d421f173818b32a9ee8ebb1a29b88adb0177a737ad160be763e67e7171f189408d5445ef619f540c04d732a837ed53879270120b8bd1bdd815054
7
+ data.tar.gz: 4522ec39173a8804317c4b6774b4cc3d3716145701492364d2345d27505be06824fda52cce2cba5b49ac57764669010257df09901e2909b6c7750912ebfae66a
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- activecube (0.1.17)
12
+ activecube (0.1.18)
13
13
  activerecord (>= 5.2)
14
14
 
15
15
  GEM
@@ -1,3 +1,3 @@
1
1
  module Activecube
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.19"
3
3
  end
@@ -1,8 +1,10 @@
1
1
  require 'activecube/view_definition'
2
+ require 'activecube/view_connection'
2
3
 
3
4
  module Activecube
4
5
  class View
5
6
  extend ViewDefinition
7
+ extend ViewConnection
6
8
 
7
9
  def model
8
10
  self.class
@@ -0,0 +1,11 @@
1
+ require 'active_support/concern'
2
+
3
+ module Activecube::ViewConnection
4
+
5
+ attr_reader :connection
6
+
7
+ def connect_to connection
8
+ @connection = connection
9
+ end
10
+
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activecube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksey Studnev
@@ -118,6 +118,7 @@ files:
118
118
  - lib/activecube/selector.rb
119
119
  - lib/activecube/version.rb
120
120
  - lib/activecube/view.rb
121
+ - lib/activecube/view_connection.rb
121
122
  - lib/activecube/view_definition.rb
122
123
  homepage: https://github.com/bitquery/activecube
123
124
  licenses: