db_proxy 0.1.0 → 0.1.1

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: 4cc97ccd0db032085930ad40b47425ecabec07eecc76b5b0e5043077a79985e2
4
- data.tar.gz: 8aecc35d4cffaaade578bfef605ed87e70d36a37ec4fb868798c12614873c716
3
+ metadata.gz: 2ba72a3b4ea1358c88889909c3c65d8652aa4ed46f6318c724d6fa7476f0f828
4
+ data.tar.gz: 8ac4c36e30ac4f0c3aca616bea108afc5d320559494830f6e3dd8428a6a87082
5
5
  SHA512:
6
- metadata.gz: 54f63428b5a9f8c288fb373cf92b4213431026cea886f84bc9c4c60ffbeca80a9de5be5b53be00ed25a48ea5284d89dddcb4d2d978b56a35b695b6b63f6b211f
7
- data.tar.gz: b61f25f16f7ddb280c4c0889a10d61a4bf0dac36dbe0162a9dc91714b5259dc3c67b8a403221f690635e69c4fa5283b0003596ad3d246bc52093db2f4878dea2
6
+ metadata.gz: 98e7d1d5b25ad20ba700d5685351c26c29b4edac913f108236087abceb49973e904c5028d530fc4c43b7991830928298dae5eb0c2fd79f1d86534fdd6602dba6
7
+ data.tar.gz: 4eb1ddabeba2716a70e60d50b0efea0375d0bfd5c6ecc54f93564efc5b1d3a8621d3ea632ad6a6721140c43524c847780aa3f4de6c7992d017c3c2ff368519b3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- db_proxy (0.1.0)
4
+ db_proxy (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -0,0 +1,18 @@
1
+ module DbProxy
2
+ module ActiveRecord
3
+ module Core
4
+ def self.prepended(base)
5
+ class << base
6
+ prepend ClassMethods
7
+ end
8
+ end
9
+
10
+ module ClassMethods
11
+ def find(*ids)
12
+ return all.find(ids.first) if ids.size == 1
13
+ super(*ids)
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,3 +1,3 @@
1
1
  module DbProxy
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - michael.yang
@@ -46,13 +46,6 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - ".gitignore"
49
- - ".idea/.rakeTasks"
50
- - ".idea/db_proxy.iml"
51
- - ".idea/inspectionProfiles/Project_Default.xml"
52
- - ".idea/misc.xml"
53
- - ".idea/modules.xml"
54
- - ".idea/vcs.xml"
55
- - ".idea/workspace.xml"
56
49
  - CODE_OF_CONDUCT.md
57
50
  - Gemfile
58
51
  - Gemfile.lock
@@ -63,6 +56,7 @@ files:
63
56
  - bin/setup
64
57
  - db_proxy.gemspec
65
58
  - lib/db_proxy.rb
59
+ - lib/db_proxy/active_record/core.rb
66
60
  - lib/db_proxy/version.rb
67
61
  homepage: http://github.com/edmodo
68
62
  licenses: