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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 707d135df5db1d5105754573d6fa021c43da6b87ff9d83cd9baafc879ae3401e
4
- data.tar.gz: d8fbaa062cd9eb2c4e3438d4b40f8c8352b95e1234f2f5d59c040870013ad263
3
+ metadata.gz: d173609887afe94bbf80e43750d1da49d7c35bf321866364908c5feb2832cd7e
4
+ data.tar.gz: 6ed3c46ea11225a1eeb01c7283018fd1575263c20908e505a8b36d057be3f0ea
5
5
  SHA512:
6
- metadata.gz: 969ee6bec25a2f5c17dbc03fb1e5aab61ed9b6801c764c2797ac36c0a8a0482351888a9f87cdec3d78453aca5bbd82ec635d3a5d3dfca0cc03eac0df3eee193c
7
- data.tar.gz: 7a1fe66488aa789b7f005102b668767682ae6e5bb59fa20168641897a993ebb48a9c5b359ac69795e2bafe67df78b5565be1a4b19cf11c1e68119c114cb6623b
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/ork.svg)](http://badge.fury.io/rb/ork)
3
- [![Build Status](https://travis-ci.org/emancu/ork.svg)](https://travis-ci.org/emancu/ork)
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://i.pinimg.com/474x/6a/76/67/6a76672b65bf989b25b1ec0fc8cda3c8.jpg)
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.2 or later, `sequel` and `odbc` driver to connect with DBs.
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
- attribute :department_id
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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'olaf'
3
- s.version = '0.1.0'
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
@@ -1,5 +1,7 @@
1
1
  $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
2
2
 
3
+ require 'rubygems'
4
+ require 'bundler/setup'
3
5
  require 'olaf'
4
6
  require 'test/unit'
5
7
 
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.0
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-17 00:00:00.000000000 Z
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.4
94
+ rubygems_version: 3.1.2
81
95
  signing_key:
82
96
  specification_version: 4
83
97
  summary: Ruby wrapper for Snowflake queries.