nssql 1.0.0 → 1.1.0

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: 3800e381c1ae7811f2e0eac2c216d61047d87c06fbc576331d4b787d7c554388
4
- data.tar.gz: 991f4188a0a767ac2714157a5deaca48e2c2edd26c1235a1397c40b52a7e5a45
3
+ metadata.gz: d700fab749a7cd5cd6c5bb063b7d475962f0d7f8025611269200f54a5b577354
4
+ data.tar.gz: a8c20b8801a8bb6a8ffb5fa9fd381f007fe9b0f0e50e7153ed34ed7ff1285d8d
5
5
  SHA512:
6
- metadata.gz: ae877bc33608e7153a87f78c87a0abd2e5bf921be54c14b0186f0ae309c09bf33b4a1f49883f2b67a2bf9f4e1825d4371d35b261f802bf85499c5e402b949376
7
- data.tar.gz: f8e03add922fcd156a184308392aa40125416b7e31d9a3c03129b6b0d61a33c7ca8d57a158bff1a1b2184f266c2c59959c6e847b79d2f1cacb90e45fbc68de7c
6
+ metadata.gz: 565fe376e1295dbc09319a22bbf3b00089ff3990d7b75407cc2c14a3196974070764fb68004fc8ad59a2dd1e42d22a15de2b51978b5dc71b9140c0b1fea6824e
7
+ data.tar.gz: 2b9743d3864fd0440a90ec841fc5a4ebf034a5455ed718874afdc5f9576c12f129f1b77a7a109c1362ad91b7c597d86a6c079f9e3e5ba073e5f2700826f35a32
@@ -2,15 +2,16 @@
2
2
  env:
3
3
  global:
4
4
  secure: ZqVkW/Zi5JIy3kbnWGtDe82AnZHxDEccSc/w64JbsavXt03Whmqxp5BUiHXUvp0Q203w6sK2vsopJ0itTim3jB2ad5NplkzdlgH6Due8FS1fMKbLlE6TUmRvifl1ACinbpsxGRmPqAtZkbeHZrq6VlmZosTYX8LHMyxVut7SC87AhEizV4mo1+gKxnw2jILUn3+NRD0gjR+l3QNChlG2Z1hMUwxaWO3rmgSmwPqcHIjJuF7lQC/4h1FHDhSKclXADbpxDl5efpAxIiXWXEoTbrVB2XaX6Sn9I07PEo3BWqza5KoY9Ir+6gB+bV/W8uIeDbiZbidZffXxojOwD3lbKWtRkmR8FxFWbNvjO8D+qG1dMCUHDyGY3w1tIu9lpqhDX2X2C9Hn1ArDi1ZHc6FwysTwfy72o95StdYhWdmckQLbpe8+D9p3r3n1wJpd5hm9NKwSOjbokQHn2FzdNVZg1FNpg6LxS/ILQEcDQ9l5yvcY/ll9rXS2J8NT5WgsxXoK6trnZP+k/AOgMvLuC9Tg3WLxPVb/lJ7/fkMCiZ49jWYYap89Ig7wIWTeuxGq2yLyvUSH/dpEtg+LhsCOQBugjFQWRWHrLqPh3ggu6nNNie+LzwIb6ofuoGT9FTkn6/5TwhwG32OX1QMrt1GWQAk+oUu+D674zbByXVLl1CoyT0c=
5
- sudo: false
5
+ sudo: required
6
+ addons:
7
+ apt:
8
+ packages:
9
+ - unixodbc
10
+ - unixodbc-dev
6
11
  language: ruby
7
12
  cache: bundler
8
13
  rvm:
9
- - 2.5.1
10
- - 2.5.3
11
- - 2.6.2
12
- - 2.6.3
13
- before_install: gem install bundler -v 1.17.3
14
+ - 2.7.0
14
15
  before_script:
15
16
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
16
17
  - chmod +x ./cc-test-reporter
@@ -1,3 +1,7 @@
1
+ ## 1.1.0 (2020-03-15)
2
+
3
+ - Adds support to configure credentials via `ENV['NETSUITE_USER']` and `ENV['NETSUITE_PASSWORD']`
4
+
1
5
  ## 1.0.0 (2019-08-07)
2
6
 
3
7
  - New way of defining columns: `ns_column :column`
data/README.md CHANGED
@@ -36,6 +36,8 @@ NSSQL::Settings.configure do |config|
36
36
  end
37
37
  ```
38
38
 
39
+ or set `ENV['NETSUITE_USER']` and `ENV['NETSUITE_PASSWORD']`
40
+
39
41
  ### Table
40
42
 
41
43
  ```ruby
@@ -17,7 +17,7 @@ module NSSQL
17
17
  class << self
18
18
  SETTINGS.each do |setting|
19
19
  define_method(setting) do
20
- instance.public_send(setting)
20
+ instance.public_send(setting) || ENV["NETSUITE_#{setting.upcase}"]
21
21
  end
22
22
  end
23
23
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NSSQL
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
@@ -41,7 +41,7 @@ Gem::Specification.new do |spec|
41
41
 
42
42
  spec.add_development_dependency 'bundler', '>= 1.17', '< 3'
43
43
  spec.add_development_dependency 'minitest', '~> 5.0'
44
- spec.add_development_dependency 'rake', '~> 10.0'
44
+ spec.add_development_dependency 'rake', '>= 10.0'
45
45
  spec.add_development_dependency 'rubocop', '>= 0.60.0'
46
- spec.add_development_dependency 'simplecov', '>= 0.16.0'
46
+ spec.add_development_dependency 'simplecov', '~> 0.17.1'
47
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nssql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Love Ottosson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-07 00:00:00.000000000 Z
11
+ date: 2020-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-odbc
@@ -62,14 +62,14 @@ dependencies:
62
62
  name: rake
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '10.0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - "~>"
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '10.0'
75
75
  - !ruby/object:Gem::Dependency
@@ -90,16 +90,16 @@ dependencies:
90
90
  name: simplecov
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ">="
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: 0.16.0
95
+ version: 0.17.1
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ">="
100
+ - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: 0.16.0
102
+ version: 0.17.1
103
103
  description: Represent NetSuite tables as you want and fetch only the needed data.
104
104
  email:
105
105
  - love.ottosson@apoex.se