olaf 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -5
- data/lib/olaf/query_definition/class_methods.rb +1 -1
- data/olaf.gemspec +2 -1
- data/test/helper.rb +2 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d173609887afe94bbf80e43750d1da49d7c35bf321866364908c5feb2832cd7e
|
4
|
+
data.tar.gz: 6ed3c46ea11225a1eeb01c7283018fd1575263c20908e505a8b36d057be3f0ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8129a34e9b08a27df649d07575f9e1233144f9f2ac8529031f4e2c62f46bf00799608156b2651b8c836853bdfe2e3ccf4d2756d5ecb616fb1a94dc5c3caed475
|
7
|
+
data.tar.gz: 967225ce7ae4082c8d447db2a59fbbb45f18813ea2a8fec7deb842eb9726ca3190fd9745ea0efbbac8cffb5cab9aa77fc868099061b50c9854c8a59348c157da
|
data/README.md
CHANGED
@@ -1,14 +1,17 @@
|
|
1
1
|
# Olaf
|
2
|
-
[![Gem Version](https://badge.fury.io/rb/
|
3
|
-
[![
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/olaf.svg)](https://badge.fury.io/rb/olaf)
|
3
|
+
[![CircleCI](https://circleci.com/gh/carwow/olaf.svg?style=shield&circle-token=:circle-ci-badge-token)](https://circleci.com/gh/carwow/olaf)
|
4
|
+
|
5
|
+
|
4
6
|
|
5
7
|
Olaf is a small Ruby wrapper for Snowflake queries.
|
6
8
|
|
7
|
-
![Olaf](https://
|
9
|
+
![Olaf](https://user-images.githubusercontent.com/56375/96335285-8c86f080-106f-11eb-9489-999a884f1246.jpg)
|
10
|
+
|
8
11
|
|
9
12
|
## Dependencies
|
10
13
|
|
11
|
-
`olaf` requires Ruby 2.
|
14
|
+
`olaf` requires Ruby 2.6 or later, `sequel` and `odbc` driver to connect with DBs.
|
12
15
|
|
13
16
|
Install dependencies using `bundler` is easy as run:
|
14
17
|
|
@@ -33,7 +36,7 @@ class FetchUsers
|
|
33
36
|
|
34
37
|
template './snowflake/users_in_department.sql'
|
35
38
|
|
36
|
-
|
39
|
+
argument :department_id
|
37
40
|
|
38
41
|
row_object User
|
39
42
|
end
|
@@ -5,7 +5,7 @@ module Olaf
|
|
5
5
|
# the parameters passed, leaving the instance in a ready-to-execute state.
|
6
6
|
# @return Snowflake::QueryDefinition instance
|
7
7
|
def prepare(**vars)
|
8
|
-
new(vars).prepare
|
8
|
+
new(**vars).prepare
|
9
9
|
end
|
10
10
|
|
11
11
|
# Returns ALL the arguments defined for the query, including options.
|
data/olaf.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'olaf'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.1'
|
4
4
|
s.date = Time.now.strftime('%Y-%m-%d')
|
5
5
|
s.summary = 'Ruby wrapper for Snowflake queries.'
|
6
6
|
s.authors = ['Emiliano Mancuso']
|
@@ -18,4 +18,5 @@ Gem::Specification.new do |s|
|
|
18
18
|
|
19
19
|
s.add_runtime_dependency 'sequel', '~> 5.37'
|
20
20
|
s.add_runtime_dependency 'ruby-odbc', '~> 0.99'
|
21
|
+
s.add_development_dependency 'test-unit', '~> 3.3'
|
21
22
|
end
|
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: olaf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emiliano Mancuso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.99'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: test-unit
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.3'
|
41
55
|
description:
|
42
56
|
email:
|
43
57
|
- emiliano.mancuso@gmail.com
|
@@ -77,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
91
|
- !ruby/object:Gem::Version
|
78
92
|
version: '0'
|
79
93
|
requirements: []
|
80
|
-
rubygems_version: 3.1.
|
94
|
+
rubygems_version: 3.1.2
|
81
95
|
signing_key:
|
82
96
|
specification_version: 4
|
83
97
|
summary: Ruby wrapper for Snowflake queries.
|