activerecord-runivedo 0.2.1 → 0.3.0
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dd5024f9b60da6030771528c3b5f8f3a2f8faa3d
|
|
4
|
+
data.tar.gz: 980b0337ed06366f17648b590d8f69c2b48ac708
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c0b80af81dd13ced41f8568c38958d0d31b5ee51c7d51d2344d1843daa3668ac0d91ae94037a0dfb675ccf8aab1de37cbd75b456b640485b1d9debd002a0899
|
|
7
|
+
data.tar.gz: a4c0dda40c95a57979e5e406acb90361d1ffa8c98c8241f045acad3c2368c0f846b525f8a2c34a49d3461ae985171112dc8a4ce0b527299480eb5498a57ddfb0
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "activerecord-runivedo"
|
|
7
|
-
spec.version = "0.
|
|
7
|
+
spec.version = "0.3.0"
|
|
8
8
|
spec.authors = ["Lucas Clemente"]
|
|
9
9
|
spec.email = ["lucas@univedo.com"]
|
|
10
10
|
spec.summary = "ActiveRecord adapter for Univedo"
|
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
17
17
|
spec.require_paths = ["lib"]
|
|
18
18
|
|
|
19
|
-
spec.add_dependency "runivedo", "~> 0.
|
|
19
|
+
spec.add_dependency "runivedo", "~> 0.3.0"
|
|
20
20
|
spec.add_dependency "activerecord", "~> 4.0"
|
|
21
21
|
spec.add_development_dependency 'minitest'
|
|
22
22
|
spec.add_development_dependency 'minitest-emoji'
|
|
@@ -11,9 +11,10 @@ module ActiveRecord
|
|
|
11
11
|
raise ArgumentError, "No univedo app specified. Missing argument: app" unless config[:app]
|
|
12
12
|
|
|
13
13
|
url = config[:server]
|
|
14
|
+
bucket = config[:bucket]
|
|
14
15
|
app = config[:app]
|
|
15
16
|
uts = config[:uts] ? IO.read(config[:uts]) : nil
|
|
16
|
-
ConnectionAdapters::RunivedoAdapter.new(url, app, uts, logger, config)
|
|
17
|
+
ConnectionAdapters::RunivedoAdapter.new(url, bucket, app, uts, logger, config)
|
|
17
18
|
end
|
|
18
19
|
end
|
|
19
20
|
|
|
@@ -37,10 +38,11 @@ module ActiveRecord
|
|
|
37
38
|
include Arel::Visitors::BindVisitor
|
|
38
39
|
end
|
|
39
40
|
|
|
40
|
-
def initialize(url, app, uts, logger, config)
|
|
41
|
+
def initialize(url, bucket, app, uts, logger, config)
|
|
41
42
|
super(nil, logger)
|
|
42
43
|
|
|
43
44
|
@url = url
|
|
45
|
+
@bucket = bucket
|
|
44
46
|
@app = app
|
|
45
47
|
@uts = uts
|
|
46
48
|
@result = nil
|
|
@@ -63,7 +65,8 @@ module ActiveRecord
|
|
|
63
65
|
end
|
|
64
66
|
|
|
65
67
|
def connect
|
|
66
|
-
@
|
|
68
|
+
@connection = Runivedo::Connection.new(@url)
|
|
69
|
+
@session = @connection.get_session(@bucket, {})
|
|
67
70
|
@session.apply_uts(@uts) if @uts
|
|
68
71
|
@perspective = session.get_perspective(@app)
|
|
69
72
|
@connection = @perspective.query
|
data/test/setup_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-runivedo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lucas Clemente
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: runivedo
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.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
|
-
version: 0.
|
|
26
|
+
version: 0.3.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: activerecord
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
131
131
|
version: '0'
|
|
132
132
|
requirements: []
|
|
133
133
|
rubyforge_project:
|
|
134
|
-
rubygems_version: 2.
|
|
134
|
+
rubygems_version: 2.4.1
|
|
135
135
|
signing_key:
|
|
136
136
|
specification_version: 4
|
|
137
137
|
summary: ActiveRecord adapter for Univedo
|