ns_connector 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.16
1
+ 0.0.17
@@ -44,6 +44,7 @@ module NSConnector::Restlet
44
44
 
45
45
  request['Content-Type'] = 'application/json'
46
46
  request['Authorization'] = NSConnector::Restlet.auth_header
47
+ request['User-Agent'] = NSConnector::Config[:user_agent] if NSConnector::Config[:user_agent]
47
48
 
48
49
  begin
49
50
  options[:code] = restlet_code
data/spec/restlet_spec.rb CHANGED
@@ -19,7 +19,8 @@ describe Restlet do
19
19
  :body => expected_body,
20
20
  :headers => {
21
21
  'Authorization' => /^NLAuth/,
22
- 'Content-Type'=>'application/json'
22
+ 'Content-Type'=>'application/json',
23
+ 'User-Agent' => 'Restlet Test UA'
23
24
  }
24
25
  }
25
26
 
@@ -6,5 +6,6 @@ def valid_config
6
6
  :password => "pass\0word",
7
7
  :role => '123',
8
8
  :restlet_url => 'https://netsuite:1234/restlet',
9
+ :user_agent => 'Restlet Test UA'
9
10
  }
10
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ns_connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-28 00:00:00.000000000 Z
12
+ date: 2014-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -232,7 +232,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
232
232
  version: '0'
233
233
  segments:
234
234
  - 0
235
- hash: 380619574366234658
235
+ hash: 2583574235940207
236
236
  required_rubygems_version: !ruby/object:Gem::Requirement
237
237
  none: false
238
238
  requirements: