ons 1.0.1 → 1.0.2

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: 4f2b3bbcb8f341dd2fb624bfe1988c245fad6045
4
- data.tar.gz: b3ff4c2591fe0fb30dce57b38994190a7be3b638
3
+ metadata.gz: 60bee81aae089099ba64b318404632d4a8a907a3
4
+ data.tar.gz: d0c8bd7f0ce1b7befa2369de2312e2b158c4b698
5
5
  SHA512:
6
- metadata.gz: 28e8850f977461c3acf8e9469c59c8ffc8ff7f30b88b4e6346d25fe36f50826f9bb2d68d096155245604c11acb4be3e30ce7d86aac89b880a7420ebeea4f22f7
7
- data.tar.gz: 279831457fd206e326958a2f3aca803a941db635f6932902c3780a86b15983f5cb8e98395dffbb1dc350f7a3e8ec9e882cfac19d914800ae6317906a2e93b4cb
6
+ metadata.gz: e0f979c69d15fdb881c25131895ef001d88a6b05e2cdda0fa9a8208dec0b8bb9bf1bd25e1a531b9c1b5c7d10aac1820a5ae6349431e9de850922cf08f6a7e45d
7
+ data.tar.gz: b4b6c4bd049c1e1d41610eded3602e2865fb0503ff23e1f0b559d517fb233a2f8e00286f9b25ba6c7879e1fd5c8b50c3f5f6860906360f8e8b0abcfef64ed5e8
@@ -0,0 +1,4 @@
1
+ rvm:
2
+ - 2.1.5
3
+ - 2.2.1
4
+ - 2.3.1
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+ #
4
+ # This file was generated by Bundler.
5
+ #
6
+ # The application 'rspec' is installed as part of a gem, and
7
+ # this file is here to facilitate running it.
8
+ #
9
+
10
+ require 'pathname'
11
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
12
+ Pathname.new(__FILE__).realpath)
13
+
14
+ require 'rubygems'
15
+ require 'bundler/setup'
16
+
17
+ load Gem.bin_path('rspec-core', 'rspec')
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+ #
4
+ # This file was generated by Bundler.
5
+ #
6
+ # The application 'rubocop' is installed as part of a gem, and
7
+ # this file is here to facilitate running it.
8
+ #
9
+
10
+ require 'pathname'
11
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
12
+ Pathname.new(__FILE__).realpath)
13
+
14
+ require 'rubygems'
15
+ require 'bundler/setup'
16
+
17
+ load Gem.bin_path('rubocop', 'rubocop')
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+ #
4
+ # This file was generated by Bundler.
5
+ #
6
+ # The application 'wwtd' is installed as part of a gem, and
7
+ # this file is here to facilitate running it.
8
+ #
9
+
10
+ require 'pathname'
11
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
12
+ Pathname.new(__FILE__).realpath)
13
+
14
+ require 'rubygems'
15
+ require 'bundler/setup'
16
+
17
+ load Gem.bin_path('wwtd', 'wwtd')
@@ -0,0 +1,17 @@
1
+ #ifndef __ONSCALLBACK_H__
2
+ #define __ONSCALLBACK_H__
3
+
4
+ #include "SendResultONS.h"
5
+ #include "ONSClientException.h"
6
+
7
+ namespace ons {
8
+ class SendCallbackONS
9
+ {
10
+ public:
11
+ virtual ~SendCallbackONS() {}
12
+ virtual void onSuccess(SendResultONS& sendResult) = 0;
13
+ virtual void onException(ONSClientException& e) = 0;
14
+ };
15
+
16
+ } //end of namespace SendResultONS
17
+ #endif //end of _SENDCALLBACK_H_
@@ -2,6 +2,7 @@
2
2
  #define __PRODUCER_H__
3
3
 
4
4
 
5
+ #include "ONSCallback.h"
5
6
  #include "SendResultONS.h"
6
7
  #include "Message.h"
7
8
 
@@ -22,6 +23,9 @@ public:
22
23
  //retry max 3 times if send failed. if no exception throwed, it sends success;
23
24
  virtual SendResultONS send(Message& msg)=0;
24
25
 
26
+ //async send
27
+ virtual void send(Message& msg,SendCallbackONS* callback) = 0;
28
+
25
29
  };
26
30
 
27
31
  }
@@ -1,3 +1,3 @@
1
1
  module Ons
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
@@ -4,7 +4,7 @@ lib = File.expand_path('../lib', __FILE__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'ons/version'
6
6
 
7
- Gem::Specification.new do |spec|
7
+ Gem::Specification.new do |spec| # rubocop: disable Metrics/BlockLength
8
8
  spec.name = 'ons'
9
9
  spec.version = Ons::VERSION
10
10
  spec.authors = 'souche'
@@ -33,9 +33,10 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency 'bundler', '~> 1.12'
34
34
  spec.add_development_dependency 'rake', '~> 10.0'
35
35
  spec.add_development_dependency 'rspec', '~> 3.0'
36
- spec.add_development_dependency 'rubocop', '~> 0.41'
37
- spec.add_development_dependency 'rubocop-rspec', '~> 1.5'
36
+ spec.add_development_dependency 'rubocop', '~> 0.45'
37
+ spec.add_development_dependency 'rubocop-rspec', '~> 1.8'
38
38
  spec.add_development_dependency 'rake-compiler', '~> 1.0'
39
+ spec.add_development_dependency 'wwtd', '~> 1.3'
39
40
  spec.add_development_dependency 'yard', '~> 0.9'
40
41
  spec.add_development_dependency 'concurrent-ruby', '~> 1.0'
41
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - souche
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-09 00:00:00.000000000 Z
11
+ date: 2016-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rice
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.41'
75
+ version: '0.45'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.41'
82
+ version: '0.45'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop-rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.5'
89
+ version: '1.8'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.5'
96
+ version: '1.8'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake-compiler
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '1.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: wwtd
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.3'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.3'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: yard
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -146,6 +160,7 @@ files:
146
160
  - ".gitignore"
147
161
  - ".rspec"
148
162
  - ".rubocop.yml"
163
+ - ".travis.yml"
149
164
  - ".yardopts"
150
165
  - Gemfile
151
166
  - LICENSE.txt
@@ -153,13 +168,17 @@ files:
153
168
  - Rakefile
154
169
  - bin/console
155
170
  - bin/rake
171
+ - bin/rspec
172
+ - bin/rubocop
156
173
  - bin/setup
174
+ - bin/wwtd
157
175
  - ext/ons/aliyun-mq-cpp-sdk/include/ons/Action.h
158
176
  - ext/ons/aliyun-mq-cpp-sdk/include/ons/ConsumeContext.h
159
177
  - ext/ons/aliyun-mq-cpp-sdk/include/ons/LocalTransactionChecker.h
160
178
  - ext/ons/aliyun-mq-cpp-sdk/include/ons/LocalTransactionExecuter.h
161
179
  - ext/ons/aliyun-mq-cpp-sdk/include/ons/Message.h
162
180
  - ext/ons/aliyun-mq-cpp-sdk/include/ons/MessageListener.h
181
+ - ext/ons/aliyun-mq-cpp-sdk/include/ons/ONSCallback.h
163
182
  - ext/ons/aliyun-mq-cpp-sdk/include/ons/ONSChannel.h
164
183
  - ext/ons/aliyun-mq-cpp-sdk/include/ons/ONSClient.h
165
184
  - ext/ons/aliyun-mq-cpp-sdk/include/ons/ONSClientException.h