joker-dmapi 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 27234bf73b1c6af3c433b4c607a94465d55c5bf4433ca2c09bcc0f7f0a115cb2
4
+ data.tar.gz: 7091eacabbe6c5c2ceddc7e57e4ac120124be07ca46710e0688a9c75fdbb7410
5
+ SHA512:
6
+ metadata.gz: 5444a559ef1d2056b584d97f4c25582dbcb909ba92f0ce2d5ce46440c0548f066cca223e19c7819f51249c8b18d5850d704b9d1603e945c79aca442a5f7870aa
7
+ data.tar.gz: b92f5ac43738310ddc11748823112469da45fea12e651570e2ce0271fca41532da994a03113d41a751fbb4c0f03110a231221515b63328efc74dca617035d818
data/joker-dmapi.gemspec CHANGED
@@ -4,19 +4,19 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'joker-dmapi/version'
5
5
 
6
6
  Gem::Specification.new do |gem|
7
- gem.name = "joker-dmapi"
7
+ gem.name = 'joker-dmapi'
8
8
  gem.version = JokerDMAPI::Version::VERSION
9
- gem.authors = ["Yuriy Kolodovskyy"]
10
- gem.email = %w{kolodovskyy@ukrindex.com}
11
- gem.description = %q{Joker DMAPI client library}
12
- gem.summary = %q{Joker DMAPI client library}
13
- gem.homepage = "https://github.com/kolodovskyy/joker-dmapi"
9
+ gem.authors = 'Yuryi Kolodovskyi'
10
+ gem.email = 'support@tiramix.com'
11
+ gem.homepage = 'https://github.com/kolodovskyy/joker-dmapi'
12
+ gem.summary = 'Joker DMAPI client library'
13
+ gem.license = 'Nonstandard'
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = %w{lib}
19
19
 
20
- gem.add_dependency "addressable"
21
- gem.add_development_dependency "bundler"
20
+ gem.add_dependency 'addressable', '~> 0'
21
+ gem.add_development_dependency 'bundler', '~> 0'
22
22
  end
@@ -40,8 +40,9 @@ module JokerDMAPI
40
40
 
41
41
  def query(request, params = {})
42
42
  response = query_no_raise request, params
43
- raise_response(response) unless response[:headers][:status_code] == '0'
44
- response
43
+ return response if response[:headers][:status_code] == '0'
44
+ return response if request == :logout && response[:headers][:status_code] == '1000'
45
+ raise_response response
45
46
  end
46
47
 
47
48
  def tlds
@@ -1,5 +1,5 @@
1
1
  module JokerDMAPI
2
2
  module Version
3
- VERSION = '0.1.4'
3
+ VERSION = '0.1.5'
4
4
  end
5
- end
5
+ end
metadata CHANGED
@@ -1,56 +1,50 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joker-dmapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
5
- prerelease:
4
+ version: 0.1.5
6
5
  platform: ruby
7
6
  authors:
8
- - Yuriy Kolodovskyy
7
+ - Yuryi Kolodovskyi
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-08 00:00:00.000000000 Z
11
+ date: 2018-09-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: addressable
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
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
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
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
45
40
  version: '0'
46
- description: Joker DMAPI client library
47
- email:
48
- - kolodovskyy@ukrindex.com
41
+ description:
42
+ email: support@tiramix.com
49
43
  executables: []
50
44
  extensions: []
51
45
  extra_rdoc_files: []
52
46
  files:
53
- - .gitignore
47
+ - ".gitignore"
54
48
  - Gemfile
55
49
  - LICENSE.txt
56
50
  - README.md
@@ -64,27 +58,27 @@ files:
64
58
  - lib/joker-dmapi/result.rb
65
59
  - lib/joker-dmapi/version.rb
66
60
  homepage: https://github.com/kolodovskyy/joker-dmapi
67
- licenses: []
61
+ licenses:
62
+ - Nonstandard
63
+ metadata: {}
68
64
  post_install_message:
69
65
  rdoc_options: []
70
66
  require_paths:
71
67
  - lib
72
68
  required_ruby_version: !ruby/object:Gem::Requirement
73
- none: false
74
69
  requirements:
75
- - - ! '>='
70
+ - - ">="
76
71
  - !ruby/object:Gem::Version
77
72
  version: '0'
78
73
  required_rubygems_version: !ruby/object:Gem::Requirement
79
- none: false
80
74
  requirements:
81
- - - ! '>='
75
+ - - ">="
82
76
  - !ruby/object:Gem::Version
83
77
  version: '0'
84
78
  requirements: []
85
79
  rubyforge_project:
86
- rubygems_version: 1.8.25
80
+ rubygems_version: 2.7.6
87
81
  signing_key:
88
- specification_version: 3
82
+ specification_version: 4
89
83
  summary: Joker DMAPI client library
90
84
  test_files: []