db_proxy 0.1.1 → 0.1.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: 2ba72a3b4ea1358c88889909c3c65d8652aa4ed46f6318c724d6fa7476f0f828
4
- data.tar.gz: 8ac4c36e30ac4f0c3aca616bea108afc5d320559494830f6e3dd8428a6a87082
3
+ metadata.gz: e5dfbac4eb6b2e3fd10911899879d0cdc1a786d474b4132c1bf9721bc0ff6c2f
4
+ data.tar.gz: 889cb29d753bf3d030e2b784d6bc3ae810595c946a1de50bd8679ddde158f2f0
5
5
  SHA512:
6
- metadata.gz: 98e7d1d5b25ad20ba700d5685351c26c29b4edac913f108236087abceb49973e904c5028d530fc4c43b7991830928298dae5eb0c2fd79f1d86534fdd6602dba6
7
- data.tar.gz: 4eb1ddabeba2716a70e60d50b0efea0375d0bfd5c6ecc54f93564efc5b1d3a8621d3ea632ad6a6721140c43524c847780aa3f4de6c7992d017c3c2ff368519b3
6
+ metadata.gz: 0cf48c01b16978ed126e7aa67c0ad1fb71eec697c6f5059e90419619f4fba195297ee3c79e8b1a06a43f404f0ce801ab941b94101a8ba073a02c293e736a9562
7
+ data.tar.gz: 4b0627e70f9d076da4221c0ba94f238e4ca6b3a824745adca770b03952a88456db7ec84bd4047e09c7fbd3610bdcc47ded1ea1396b6f3e111561348b15f65fd5
data/Gemfile CHANGED
@@ -4,3 +4,4 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in db_proxy.gemspec
6
6
  gemspec
7
+ gem 'rails', '~> 5.2'
data/Gemfile.lock CHANGED
@@ -1,12 +1,118 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- db_proxy (0.1.1)
4
+ db_proxy (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ actioncable (5.2.4.3)
10
+ actionpack (= 5.2.4.3)
11
+ nio4r (~> 2.0)
12
+ websocket-driver (>= 0.6.1)
13
+ actionmailer (5.2.4.3)
14
+ actionpack (= 5.2.4.3)
15
+ actionview (= 5.2.4.3)
16
+ activejob (= 5.2.4.3)
17
+ mail (~> 2.5, >= 2.5.4)
18
+ rails-dom-testing (~> 2.0)
19
+ actionpack (5.2.4.3)
20
+ actionview (= 5.2.4.3)
21
+ activesupport (= 5.2.4.3)
22
+ rack (~> 2.0, >= 2.0.8)
23
+ rack-test (>= 0.6.3)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
26
+ actionview (5.2.4.3)
27
+ activesupport (= 5.2.4.3)
28
+ builder (~> 3.1)
29
+ erubi (~> 1.4)
30
+ rails-dom-testing (~> 2.0)
31
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
32
+ activejob (5.2.4.3)
33
+ activesupport (= 5.2.4.3)
34
+ globalid (>= 0.3.6)
35
+ activemodel (5.2.4.3)
36
+ activesupport (= 5.2.4.3)
37
+ activerecord (5.2.4.3)
38
+ activemodel (= 5.2.4.3)
39
+ activesupport (= 5.2.4.3)
40
+ arel (>= 9.0)
41
+ activestorage (5.2.4.3)
42
+ actionpack (= 5.2.4.3)
43
+ activerecord (= 5.2.4.3)
44
+ marcel (~> 0.3.1)
45
+ activesupport (5.2.4.3)
46
+ concurrent-ruby (~> 1.0, >= 1.0.2)
47
+ i18n (>= 0.7, < 2)
48
+ minitest (~> 5.1)
49
+ tzinfo (~> 1.1)
50
+ arel (9.0.0)
51
+ builder (3.2.4)
52
+ concurrent-ruby (1.1.7)
53
+ crass (1.0.6)
54
+ erubi (1.9.0)
55
+ globalid (0.4.2)
56
+ activesupport (>= 4.2.0)
57
+ i18n (1.8.5)
58
+ concurrent-ruby (~> 1.0)
59
+ loofah (2.7.0)
60
+ crass (~> 1.0.2)
61
+ nokogiri (>= 1.5.9)
62
+ mail (2.7.1)
63
+ mini_mime (>= 0.1.1)
64
+ marcel (0.3.3)
65
+ mimemagic (~> 0.3.2)
66
+ method_source (1.0.0)
67
+ mimemagic (0.3.5)
68
+ mini_mime (1.0.2)
69
+ mini_portile2 (2.4.0)
70
+ minitest (5.14.2)
71
+ nio4r (2.5.2)
72
+ nokogiri (1.10.10)
73
+ mini_portile2 (~> 2.4.0)
74
+ rack (2.2.3)
75
+ rack-test (1.1.0)
76
+ rack (>= 1.0, < 3)
77
+ rails (5.2.4.3)
78
+ actioncable (= 5.2.4.3)
79
+ actionmailer (= 5.2.4.3)
80
+ actionpack (= 5.2.4.3)
81
+ actionview (= 5.2.4.3)
82
+ activejob (= 5.2.4.3)
83
+ activemodel (= 5.2.4.3)
84
+ activerecord (= 5.2.4.3)
85
+ activestorage (= 5.2.4.3)
86
+ activesupport (= 5.2.4.3)
87
+ bundler (>= 1.3.0)
88
+ railties (= 5.2.4.3)
89
+ sprockets-rails (>= 2.0.0)
90
+ rails-dom-testing (2.0.3)
91
+ activesupport (>= 4.2.0)
92
+ nokogiri (>= 1.6)
93
+ rails-html-sanitizer (1.3.0)
94
+ loofah (~> 2.3)
95
+ railties (5.2.4.3)
96
+ actionpack (= 5.2.4.3)
97
+ activesupport (= 5.2.4.3)
98
+ method_source
99
+ rake (>= 0.8.7)
100
+ thor (>= 0.19.0, < 2.0)
9
101
  rake (10.4.2)
102
+ sprockets (3.7.2)
103
+ concurrent-ruby (~> 1.0)
104
+ rack (> 1, < 3)
105
+ sprockets-rails (3.2.1)
106
+ actionpack (>= 4.0)
107
+ activesupport (>= 4.0)
108
+ sprockets (>= 3.0.0)
109
+ thor (1.0.1)
110
+ thread_safe (0.3.6)
111
+ tzinfo (1.2.8)
112
+ thread_safe (~> 0.1)
113
+ websocket-driver (0.7.2)
114
+ websocket-extensions (>= 0.1.0)
115
+ websocket-extensions (0.1.5)
10
116
 
11
117
  PLATFORMS
12
118
  ruby
@@ -14,6 +120,7 @@ PLATFORMS
14
120
  DEPENDENCIES
15
121
  bundler (~> 1.17)
16
122
  db_proxy!
123
+ rails (~> 5.2)
17
124
  rake (~> 10.0)
18
125
 
19
126
  BUNDLED WITH
@@ -0,0 +1,6 @@
1
+ require "db_proxy/mixin"
2
+ require "../../lib/db_proxy/active_record/core"
3
+
4
+ ActiveSupport.on_load(:active_record, run_once: true) do
5
+ prepend DbProxy::ActiveRecord::Core
6
+ end
@@ -0,0 +1,7 @@
1
+
2
+ module DbProxy
3
+ module Mixin
4
+ extend ActiveSupport::Concern
5
+
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module DbProxy
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - michael.yang
@@ -56,7 +56,9 @@ files:
56
56
  - bin/setup
57
57
  - db_proxy.gemspec
58
58
  - lib/db_proxy.rb
59
+ - lib/db_proxy/active_record.rb
59
60
  - lib/db_proxy/active_record/core.rb
61
+ - lib/db_proxy/mixin.rb
60
62
  - lib/db_proxy/version.rb
61
63
  homepage: http://github.com/edmodo
62
64
  licenses: