dnb-direct-ruby 0.0.6 → 0.0.7

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
  SHA1:
3
- metadata.gz: bd40e7f5776a186418daac09b2549442473f8159
4
- data.tar.gz: fe3753e6b6321c44561cd162d55b7a5b88b7727c
3
+ metadata.gz: d7ceb486fb5488f553e8061470459928a85ba619
4
+ data.tar.gz: c40f1df0713c644e02c2d0b78202b84d45cde7f7
5
5
  SHA512:
6
- metadata.gz: b5e649ac887c3932156b1c95ce0f53a4119bd1a30329b65efce86d1f09c91cb2a97e26b2ca8814fa57c26c8e95ae5436b110e4ccc228621a8c3f11585412a6e2
7
- data.tar.gz: abc616c1743a9cdf9ae0b2cb90a6dc043cd8ab9618b004af09bf34750d01715b00300c9f576ff39d4de6a0fa8f067bb7dc7c1932bf9a2cf5ce319fb22c1dfe34
6
+ metadata.gz: 601558a1fd8a0535762f5c040743161d304ce163a66810cdea8abe3a5dab6594231e7c7b980d01e2ed1795110926ed6855d2cee640bbae0ce7e0f3e1e0e98f9d
7
+ data.tar.gz: 933093b237d2ad9ebaaf1ec7dfe46c9dc462cdb4ba4c908fdcd2bc427691a53c7bf72f139903f36458377d123d8f8d2552b691712636b7652592bb95c22671c3
data/README.md CHANGED
@@ -1,30 +1,47 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/dnb-direct.svg)](https://badge.fury.io/rb/dnb-direct)
2
2
 
3
- # Dnb::Direct
3
+ # DnB Direct API SDK for Ruby
4
4
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/dnb/direct`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- $ bundle
17
+ ```
18
+ $ bundle install
19
+ ```
20
20
 
21
21
  Or install it yourself as:
22
-
23
- $ gem install dnb-direct
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 = 'Write a short summary, because Rubygems requires one.'
13
- spec.description = 'Write a longer description or delete this line.'
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 = "exe"
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)
@@ -1,5 +1,5 @@
1
1
  module DnB
2
2
  module Direct
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Ihaia
8
8
  autorequire:
9
- bindir: exe
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: Write a longer description or delete this line.
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: Write a short summary, because Rubygems requires one.
201
+ summary: A Ruby GEM to provide access to DnB APIs.
201
202
  test_files: []