remote_db 0.0.1 → 0.0.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: 54d0b659f91bd851c797b2378a5a58a44e727778
4
- data.tar.gz: 77d11bfeb7c050e54642f3621f58c665d0b06fd3
3
+ metadata.gz: 752211df3244da637e97b13b02f58b3f5d80302f
4
+ data.tar.gz: 10c15cef3df9a127c205067946558b9a56a843a7
5
5
  SHA512:
6
- metadata.gz: 0c964ced6b11c7ef08d8e6fed0fa535267778247eeb8274d24bbbe2c5543b62a56ec124a4bda02ebc15cd8ff78d800c9a19c737090ff34535929416611fc8b8a
7
- data.tar.gz: cdc286bb4cd33772b352dd223818e3514721a3654a68067ad17eacd6a305dd39097555702ad3b31c0986cab42017f224dfbd88669051f72bb47d9efc57fd84ad
6
+ metadata.gz: ffc94593c07f83dcdfa8efb41e56a9e700144efe087c78ea845c568fc7d8b4c317be8d2a677222a49d7ce1e11bd885f574a34a5675c09fd5c91d18148952318b
7
+ data.tar.gz: 87cb6b9129001fddcbed74d1badf38b8276a624cca41547a7e3598d955f41fc19486a0ebcb903a25944c2b11fec64273d8c01941cf44f7440d0ec1b3c9039bf0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
1
  ## v0.0.1
2
2
 
3
3
  * Initial release.
4
+
5
+ ## v0.0.2
6
+
7
+ * Fix bug with AR 4, where AR class must be named.
@@ -30,9 +30,15 @@ module RemoteDb
30
30
 
31
31
  def define_base_record
32
32
  connection_spec = configuration.connection_spec
33
+ module_name = self.name
33
34
  klass = Class.new(ActiveRecord::Base) do
34
35
  self.abstract_class = true
35
36
 
37
+ # AR 4 requires AR models to be named.
38
+ def self.name
39
+ "#{module_name}::BaseRecord"
40
+ end
41
+
36
42
  # Connect via custom db settings
37
43
  establish_connection(connection_spec)
38
44
 
@@ -1,3 +1,3 @@
1
1
  module RemoteDb
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Omar Skalli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-25 00:00:00.000000000 Z
11
+ date: 2015-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.0'
41
41
  description: ''
@@ -45,7 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - CHANGELOG.md
50
50
  - Gemfile
51
51
  - README.md
@@ -65,19 +65,18 @@ require_paths:
65
65
  - lib
66
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.4.4
78
+ rubygems_version: 2.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Easily create a gem for consuming remote database tables/columns.
82
82
  test_files: []
83
- has_rdoc: