ip21 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +18 -4
  3. data/README.md +6 -4
  4. data/ip21.gemspec +1 -1
  5. data/lib/ip21.rb +1 -1
  6. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f2ff27e5846b94cea2044e6dae841e67fdbcc8f71b60b98b3a83414bd36a5a7
4
- data.tar.gz: 5ccba3e19ebe69ef3a1e8a336f1ea24105ac943c7a3bb20c05a9ea3d0cb63de8
3
+ metadata.gz: b8e20c9c86321d912191d3249a65104a8db3c384bf1faac80e2dfe4c2e86df86
4
+ data.tar.gz: 6288965af8857910fc57cdeb451e4b5d330c7ac4934a8975c7d6873e4ff36b72
5
5
  SHA512:
6
- metadata.gz: 1ddc0aa93c48e956364ad5bd1af42b9c341f42e0f8dcd1dc6acb9aea68d22969f48c4e8f3fb2c12a0ab51f3504124cd960018498588a479b471b9196356840aa
7
- data.tar.gz: a95c8b4c947ed19786cd5a3897e7f9eaddc08229239ab3a66741a43cf553ec32204fb6eeae1c5dbe73993d774f7bd9365a87c698ec90bf840a94f83971a82008
6
+ metadata.gz: 1e70486ed58b7789697b5fdab7e84749c9f5cd22696ad5a96635bb05e4d78ad122d42149b236ba19b1f1731647df4442527ae8592d59b93b7ac7654613fe3d24
7
+ data.tar.gz: 8b901ca7b515e2d41c7dfdc5e6ecc531622118b97c9b8e091e73c33b64bb15be94374b7fd4719168f51fb1b2da237cf6ca459e2d2b331a71f241ef3de37d0fc4
data/LICENSE CHANGED
@@ -1,7 +1,21 @@
1
- Copyright 2019 Rhuan Barreto
1
+ MIT License
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3
+ Copyright (c) 2019 Rhuan Barreto
4
4
 
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
6
11
 
7
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -20,11 +20,13 @@ gem 'ip21'
20
20
  And use the class in your code to execute queries:
21
21
 
22
22
  ```ruby
23
+ require 'ip21' # If you are using Ruby. Don't need rrequire if you use Rails
24
+
23
25
  IP21.new(
24
26
  auth: {
25
- account: 'john.doe',
26
- domain: 'contoso.com',
27
- password: 'set_your_own_password'
27
+ account: 'john.doe',
28
+ domain: 'contoso.com',
29
+ password: 'set_your_own_password'
28
30
  },
29
31
  sqlplus_address: '127.0.0.1',
30
32
  ip21_address: '127.0.0.1',
@@ -40,7 +42,7 @@ IP21.new(
40
42
 
41
43
  This gem uses Windows authentication to connect to SQLPlus, so don't forget to set your credentials correctly.
42
44
 
43
- On domain you can use the Netbios name (CONTOSO) or the normal domain name (contoso.com)
45
+ On domain you can use the NETBIOS name (CONTOSO) or the normal domain name (contoso.com)
44
46
 
45
47
  # Changelog
46
48
  See the [commit page](https://github.com/rhuanbarreto/ip21-ruby/commits) for a list of changes.
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
3
3
  s.summary = 'Aspentech IP21 Adapter for Ruby'
4
4
  s.description = 'Aspentech IP21 Adapter for executing queries using SQLPlus' \
5
5
  'WebService or REST API'
6
- s.version = '0.0.1'
6
+ s.version = '0.0.2'
7
7
  s.date = Time.now.strftime('%Y-%m-%d')
8
8
  s.author = 'Rhuan Barreto'
9
9
  s.email = 'rhuan@rhuan.com.br'
@@ -74,7 +74,7 @@ class IP21
74
74
  request = Net::HTTP::Get.new(uri)
75
75
  request.ntlm_auth(@account, @domain, @password)
76
76
  response = http.request(request)
77
- response.body
77
+ JSON.parse(response.body)
78
78
  end
79
79
 
80
80
  def soap_address
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ip21
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
  - Rhuan Barreto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-28 00:00:00.000000000 Z
11
+ date: 2019-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-ntlm