netdnarws 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MWM0MjQyZWVlZTUzNGEzYzQ2NzZjODAwMTk5YTVlOWFiMDIyMzIyMw==
5
+ data.tar.gz: !binary |-
6
+ ZjdjOGU2MTdlZDg3MmEzNDllODc0M2MwOGRjYzg2NjM0NDIyNzU4Ng==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ OWI2ZDdjY2E1MzQ3MTRiZDE2MTcwODYzMGZkOWYwOGY2ZTQxMWFlMDE2NzQ4
10
+ MzI0NDhmNzIzM2I2NjRlOTA1YzM5ODdmYjZjOWUwZGVlNjdjYTc3ZGM2ZjY3
11
+ MGYxNWZhNzg0NTY1MjNmMmY5N2YzM2ZmMjM5ZDQwNjhmYzE3ZjM=
12
+ data.tar.gz: !binary |-
13
+ M2I0YTM0ZjljYTdiZTliYjI1ZTQ4OTA2OGJkNmQ0MDY0Yjg2MjdmYmE4OTc2
14
+ ODQ1MDg4N2ZiY2JkYjU2NjA4YjI0OWNmNDNlNzYyZWRmY2U2ZjFjMzdmZmE0
15
+ ZWIwY2JlOGVhNjU5NzIyOTZkMTMyMGFhM2I2NGMzMjhiZDJhNWM=
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
+ gem if RUBY_VERSION.start_with? "1.8"
4
+ gem 'signet'
3
5
  gem "curb-fu"
4
6
  gemspec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.8
1
+ 0.3.3
@@ -1,3 +1,3 @@
1
1
  module NetDNARWS
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.3"
3
3
  end
data/lib/netdnarws.rb CHANGED
@@ -17,6 +17,9 @@ module NetDNARWS
17
17
  end
18
18
  end
19
19
 
20
+ class APIException < Exception
21
+ end
22
+
20
23
  class NetDNA
21
24
  include NetDNARWS::Utils
22
25
 
@@ -86,10 +89,10 @@ module NetDNARWS
86
89
 
87
90
  if not (response.success? or response.redirect?)
88
91
  error_message = response_json['error']['message']
89
- raise Exception.new("#{response.status}: #{error_message}")
92
+ raise NetDNARWS::APIException.new("#{response.status}: #{error_message}")
90
93
  end
91
94
  rescue TypeError
92
- raise Exception.new(
95
+ raise NetDNARWS::APIException.new(
93
96
  "#{response.status}: No information supplied by the server"
94
97
  )
95
98
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netdnarws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
5
- prerelease:
4
+ version: 0.3.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - NetDNA Developer Team
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-22 00:00:00.000000000 Z
11
+ date: 2013-12-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: signet
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: curb-fu
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -62,26 +57,25 @@ files:
62
57
  homepage: http://developer.netdna.com
63
58
  licenses:
64
59
  - MIT
60
+ metadata: {}
65
61
  post_install_message:
66
62
  rdoc_options: []
67
63
  require_paths:
68
64
  - lib
69
65
  required_ruby_version: !ruby/object:Gem::Requirement
70
- none: false
71
66
  requirements:
72
67
  - - ! '>='
73
68
  - !ruby/object:Gem::Version
74
69
  version: '0'
75
70
  required_rubygems_version: !ruby/object:Gem::Requirement
76
- none: false
77
71
  requirements:
78
72
  - - ! '>='
79
73
  - !ruby/object:Gem::Version
80
74
  version: '0'
81
75
  requirements: []
82
76
  rubyforge_project:
83
- rubygems_version: 1.8.21
77
+ rubygems_version: 2.1.11
84
78
  signing_key:
85
- specification_version: 3
79
+ specification_version: 4
86
80
  summary: A Rest Client For NetDNA Rest Web Services
87
81
  test_files: []