dnb-direct-ruby 0.0.6 → 0.0.7
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 +4 -4
- data/README.md +26 -10
- data/dnb-direct.gemspec +3 -3
- data/docs/ONE.md +1 -0
- data/lib/dnb/direct/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7ceb486fb5488f553e8061470459928a85ba619
|
4
|
+
data.tar.gz: c40f1df0713c644e02c2d0b78202b84d45cde7f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 601558a1fd8a0535762f5c040743161d304ce163a66810cdea8abe3a5dab6594231e7c7b980d01e2ed1795110926ed6855d2cee640bbae0ce7e0f3e1e0e98f9d
|
7
|
+
data.tar.gz: 933093b237d2ad9ebaaf1ec7dfe46c9dc462cdb4ba4c908fdcd2bc427691a53c7bf72f139903f36458377d123d8f8d2552b691712636b7652592bb95c22671c3
|
data/README.md
CHANGED
@@ -1,30 +1,47 @@
|
|
1
1
|
[](https://badge.fury.io/rb/dnb-direct)
|
2
2
|
|
3
|
-
#
|
3
|
+
# DnB Direct API SDK for Ruby
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
TODO: Delete this and the text above, and describe your gem
|
5
|
+
This is a Ruby GEM from Dun & Bradstreet that provides simplified, programmatic access to the Direct 1.x, 2.x and Plus(+) APIs.
|
8
6
|
|
9
7
|
## Installation
|
10
8
|
|
11
9
|
Add this line to your application's Gemfile:
|
12
10
|
|
13
11
|
```ruby
|
14
|
-
gem 'dnb-direct'
|
12
|
+
gem 'dnb-direct-ruby'
|
15
13
|
```
|
16
14
|
|
17
15
|
And then execute:
|
18
16
|
|
19
|
-
|
17
|
+
```
|
18
|
+
$ bundle install
|
19
|
+
```
|
20
20
|
|
21
21
|
Or install it yourself as:
|
22
|
-
|
23
|
-
|
22
|
+
```
|
23
|
+
$ gem install dnb-direct-direct
|
24
|
+
```
|
24
25
|
|
25
26
|
## Usage
|
27
|
+
In order to fulfill API requests, valid credentials must be supplied. Each of the three families of APIs require a different set of credentials. You will need to be an existing customer with active credentials for the appropriate class of API.
|
28
|
+
|
29
|
+
The following illustrates the requirements for each.
|
30
|
+
|
31
|
+
### Direct 1.x
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
DnB::Direct::One.use_credentials "YOURUSERNAME", "YOURPASSWORD", "YOURKEY"
|
35
|
+
```
|
36
|
+
|
37
|
+
### Direct 2.x
|
38
|
+
TODO
|
39
|
+
|
40
|
+
### Direct Plus
|
41
|
+
```ruby
|
42
|
+
DnB::Direct::Plus.use_credentials "YOURAPIKEY", "YOURSECRET"
|
43
|
+
```
|
26
44
|
|
27
|
-
TODO: Write usage instructions here
|
28
45
|
|
29
46
|
## Development
|
30
47
|
|
@@ -40,4 +57,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERN
|
|
40
57
|
## License
|
41
58
|
|
42
59
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
43
|
-
|
data/dnb-direct.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Jason Ihaia"]
|
10
10
|
spec.email = ["ihaiaj@dnb.com"]
|
11
11
|
|
12
|
-
spec.summary = '
|
13
|
-
spec.description = '
|
12
|
+
spec.summary = 'A Ruby GEM to provide access to DnB APIs.'
|
13
|
+
spec.description = 'A Ruby GEM to provide access to DnB APIs.'
|
14
14
|
spec.homepage = 'https://developer.dnb.com'
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
19
|
f.match(%r{^(test|spec|features)/})
|
20
20
|
end
|
21
|
-
spec.bindir = "
|
21
|
+
spec.bindir = "bin"
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
data/docs/ONE.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Direct One (1.x)
|
data/lib/dnb/direct/version.rb
CHANGED
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnb-direct-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Ihaia
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2017-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
@@ -128,7 +128,7 @@ dependencies:
|
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '5.0'
|
131
|
-
description:
|
131
|
+
description: A Ruby GEM to provide access to DnB APIs.
|
132
132
|
email:
|
133
133
|
- ihaiaj@dnb.com
|
134
134
|
executables: []
|
@@ -146,6 +146,7 @@ files:
|
|
146
146
|
- bin/console
|
147
147
|
- bin/setup
|
148
148
|
- dnb-direct.gemspec
|
149
|
+
- docs/ONE.md
|
149
150
|
- lib/dnb/direct.rb
|
150
151
|
- lib/dnb/direct/mapping.rb
|
151
152
|
- lib/dnb/direct/model.rb
|
@@ -197,5 +198,5 @@ rubyforge_project:
|
|
197
198
|
rubygems_version: 2.6.10
|
198
199
|
signing_key:
|
199
200
|
specification_version: 4
|
200
|
-
summary:
|
201
|
+
summary: A Ruby GEM to provide access to DnB APIs.
|
201
202
|
test_files: []
|