mercury_amqp 0.6.0 → 0.6.1

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: 1e3452ba7fb74955df9eb81a1481fd48f7d7a060
4
- data.tar.gz: 8e119f5f19189c9cee7095bb39990ce99c8575a4
3
+ metadata.gz: 645f6510e6e2c1b887226a61b451ace58b50bf19
4
+ data.tar.gz: 37d3c675ee917e4bd5c8e0eb19f766cd8c437069
5
5
  SHA512:
6
- metadata.gz: dd514973a3c22508ca2f1f1d92799fdfc638fd4f64fd9d06d21b260b633b4ec793858394762fdc14be96afbd3ab306d9e0cdf016d80d94e19364b99c30f1d7c4
7
- data.tar.gz: 62df2a2d2c51ca01be73aa439d45869ee82b38b63685c82757f9c6219069b11bf677fe2ad60b3ab52f44f8324185579b995049509b956040c4989af906bd4efc
6
+ metadata.gz: 5430caf0bcc82dbaba5c7c418bf5786a2b6725c727b4bfe0dca8377826c0ee2721106fdcd93bdfbfddd2041aecf800235a29a099e6800966152abe2a019247ec
7
+ data.tar.gz: 128bdd37ff6b1541b8718560b9078a63876ed544d22077b47f85de951853ba34f35916b2ec5b012533e60ed8b0cd2ef4168b96bcd424e85b794c68e3b5a8a7d9
data/CHANGES.md ADDED
@@ -0,0 +1,108 @@
1
+ ## [0.6.0](https://github.com/indigobio/mercury_amqp/compare/v0.5.0...indigobio:v0.6.0) (2016-05-12)
2
+
3
+ - Added ReceivedMessage#republish
4
+ ([c534476](https://github.com/indigobio/mercury_amqp/commit/c53447683ccb8ab0d0e51dc56c7e276620738d93))
5
+
6
+
7
+ ## [0.5.0](https://github.com/indigobio/mercury_amqp/compare/v0.4.0...indigobio:v0.5.0) (2016-05-10)
8
+
9
+ - Mercury#republish
10
+ ([dc1b352](https://github.com/indigobio/mercury_amqp/commit/dc1b352707ea5f425192b67f449b17bc57aea6aa))
11
+ - Added quick monad tutorial
12
+ ([30117a9](https://github.com/indigobio/mercury_amqp/commit/30117a950da01327a29c5d173d3fe155fadc26a2))
13
+
14
+
15
+ ## [0.4.0](https://github.com/indigobio/mercury_amqp/compare/v0.3.0...indigobio:v0.4.0) (2016-04-28)
16
+
17
+ - Coerce nil tag_filter to '#'
18
+ ([7df50f4](https://github.com/indigobio/mercury_amqp/commit/7df50f4bbc75fb5a292a200e14e35f783d4e1aba))
19
+ - Improved README
20
+ ([1727266](https://github.com/indigobio/mercury_amqp/commit/17272662693707f5edb6368ef9ea5e0a8e47a56f))
21
+ - Mercury::Fake.install
22
+ ([2eaf6b4](https://github.com/indigobio/mercury_amqp/commit/2eaf6b4744e246ffb748da4ea93b12dc639651d2))
23
+ - install_lost_connection_error_handler as soon as possible
24
+ ([70252b8](https://github.com/indigobio/mercury_amqp/commit/70252b8a4e2005d967cfc9a874ac86b496e2bc03))
25
+ - Emulate public method guards in Mercury::Fake
26
+ ([3aa574b](https://github.com/indigobio/mercury_amqp/commit/3aa574b8ba8fae1f0cb75ad1d252d0e678f0a779))
27
+ - Guard against a closed mercury instance being used.
28
+ ([7802fb3](https://github.com/indigobio/mercury_amqp/commit/7802fb3193ca77ba98648b5732ab99f5a3c2195a))
29
+ - Raise an error when lift/and_lift is used incorrectly
30
+ ([17019c0](https://github.com/indigobio/mercury_amqp/commit/17019c06e5345432c217831046591c336d9aeadc))
31
+
32
+
33
+ ## [0.3.0](https://github.com/indigobio/mercury_amqp/compare/v0.2.0...indigobio:v0.3.0) (2016-04-22)
34
+
35
+ - Actually use logger passed in; improved acking
36
+ ([8b4bba9](https://github.com/indigobio/mercury_amqp/commit/8b4bba9a810444d9da9e87c6e3ff65bc27a6fc86))
37
+
38
+
39
+ ## [0.2.0](https://github.com/indigobio/mercury_amqp/compare/v0.1.9...indigobio:v0.2.0) (2016-04-20)
40
+
41
+ - Make publisher confirms optional
42
+ ([1552bbe](https://github.com/indigobio/mercury_amqp/commit/1552bbe8be485c1ecaed2c7e3b44043aa3a7685b))
43
+ - Improve error reporting
44
+ ([ada6600](https://github.com/indigobio/mercury_amqp/commit/ada6600cc79d9c4f7fd13046c7e2b821dae5a138))
45
+ - Use publisher acknowledgements
46
+ ([59b2f30](https://github.com/indigobio/mercury_amqp/commit/59b2f307530a675600ceae27756b5e378a8691e4))
47
+
48
+
49
+ ## [0.1.9](https://github.com/indigobio/mercury_amqp/compare/v0.1.7...indigobio:v0.1.9) (2016-03-12)
50
+
51
+ - Crash on connection failure
52
+ ([e4763df](https://github.com/indigobio/mercury_amqp/commit/e4763df0401657edaadc88b630ca80f29f91aa22))
53
+
54
+
55
+ ## [0.1.7](https://github.com/indigobio/mercury_amqp/compare/v0.1.6...indigobio:v0.1.7) (2016-03-02)
56
+
57
+ - Temporarily make Cps top level for backwards compatibility
58
+ ([6fd6b36](https://github.com/indigobio/mercury_amqp/commit/6fd6b36da7928de6f7c59bb85be9b10c1879b3a9))
59
+
60
+
61
+ ## [0.1.6](https://github.com/indigobio/mercury_amqp/compare/v0.1.5...indigobio:v0.1.6) (2016-03-02)
62
+
63
+ - Moved Cps and Utils under Mercury:: to avoid conflicts
64
+ ([b0329e5](https://github.com/indigobio/mercury_amqp/commit/b0329e5d50ed35e10edf65938efb7bacb159c1de))
65
+
66
+
67
+ ## [0.1.5](https://github.com/indigobio/mercury_amqp/compare/v0.1.4...indigobio:v0.1.5) (2016-02-09)
68
+
69
+ - Made the number of simultaneous messages that can be handled configurable
70
+ ([19b9bd9](https://github.com/indigobio/mercury_amqp/commit/19b9bd9bebc07ba470d1b746f0e11119bd08b368))
71
+
72
+
73
+ ## [0.1.4](https://github.com/indigobio/mercury_amqp/compare/v0.1.3...indigobio:v0.1.4) (2015-12-17)
74
+
75
+ - Added convenience method to read all messages given a source and a worker. ALso added cps benchmark
76
+ ([0c55a5a](https://github.com/indigobio/mercury_amqp/commit/0c55a5a8e036fc7cd559cd9afabae7075635ce58))
77
+
78
+
79
+ ## [0.1.3](https://github.com/indigobio/mercury_amqp/compare/v0.1.2...indigobio:v0.1.3) (2015-11-23)
80
+
81
+ - Fixed nil headers bug
82
+ ([90020f3](https://github.com/indigobio/mercury_amqp/commit/90020f3f8c634c04998f44c298910c7c5e889606))
83
+
84
+
85
+ ## [0.1.2](https://github.com/indigobio/mercury_amqp/compare/v0.1.1...indigobio:v0.1.2) (2015-11-13)
86
+
87
+ - Fixed gemspec
88
+ ([5bfe847](https://github.com/indigobio/mercury_amqp/commit/5bfe8476e09b374ed17b044384110884f0194619))
89
+
90
+
91
+ ## [0.1.1](https://github.com/indigobio/mercury_amqp/compare/v0.1.0...indigobio:v0.1.1) (2015-11-13)
92
+
93
+ - Propagate logatron msg id
94
+ ([43205bf](https://github.com/indigobio/mercury_amqp/commit/43205bf581f1f2a18068783b3231d968ad505897))
95
+ - Rebranded as mercury_amqp
96
+ ([4aa63aa](https://github.com/indigobio/mercury_amqp/commit/4aa63aa6e80032aeb6b5dffd931393f5bdbb21b0))
97
+
98
+
99
+ ## [0.1.0](https://github.com/indigobio/mercury_amqp/compare/d914fc1acfde2e563867d63bd6c913882272fb53...indigobio:v0.1.0) (2015-09-14)
100
+
101
+ - ReceivedMessage#nack
102
+ ([4de8990](https://github.com/indigobio/mercury_amqp/commit/4de8990054bbf59ee95b018bf8a4dae7fc8525ac))
103
+ - Fixed Mercury::Monadic.open to relay args to Mercury.open
104
+ ([edc0d6d](https://github.com/indigobio/mercury_amqp/commit/edc0d6dd2b611500786c8b2f9665b28ff6343408))
105
+ - Implemented Mercury::Fake
106
+ ([14e6169](https://github.com/indigobio/mercury_amqp/commit/14e61692666de086c55759efeaff4bdb32b6a34c))
107
+ - Implemented mercury
108
+ ([222e490](https://github.com/indigobio/mercury_amqp/commit/222e490834750039c4f4d26763190b0888806f10))
data/build.yml ADDED
@@ -0,0 +1,2 @@
1
+ changelog:
2
+ show_commits: true
data/mercury_amqp.gemspec CHANGED
@@ -1,11 +1,10 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'mercury/version'
5
4
 
6
5
  Gem::Specification.new do |spec|
7
6
  spec.name = 'mercury_amqp'
8
- spec.version = Mercury::VERSION
7
+ spec.version = '0.6.1'
9
8
  spec.authors = ['Peter Winton']
10
9
  spec.email = ['wintonpc@gmail.com']
11
10
  spec.summary = 'AMQP-backed messaging layer'
data/update_version.sh ADDED
@@ -0,0 +1,52 @@
1
+ #!/bin/bash -e
2
+
3
+ #This script is used during the release process. It is not intended to be ran manually.
4
+
5
+ VERSION="$1"
6
+ VERSION="${VERSION:?"must provide version as first parameter"}"
7
+ SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd)"
8
+
9
+ updateVersion(){
10
+ updateGemspec
11
+ commitStagedFiles "Update version to ${VERSION}"
12
+ }
13
+
14
+ updateGemspec(){
15
+ echo -e "\nUpdating gemspec version"
16
+ local gemspecPath="${SCRIPT_DIR}/mercury_amqp.gemspec"
17
+ sed -i 's/\(\.version\s*=\s*\).*/\1'"'${VERSION}'/" "${gemspecPath}"
18
+ stageFiles "${gemspecPath}"
19
+ }
20
+
21
+ stageAndCommit(){
22
+ local msg="$1"
23
+ shift
24
+ local files=( "$@" )
25
+ stageFiles "${files[@]}"
26
+ commitStagedFiles "${msg}"
27
+ }
28
+
29
+ stageFiles(){
30
+ local files=( "$@" )
31
+ git add "${files[@]}"
32
+ }
33
+
34
+ commitStagedFiles(){
35
+ local msg="$1"
36
+ if thereAreStagedFiles; then
37
+ git commit -m "${msg}"
38
+ else
39
+ echo "No changes to commit"
40
+ fi
41
+ }
42
+
43
+ thereAreStagedFiles(){
44
+ git update-index -q --ignore-submodules --refresh
45
+ if git diff-index --cached --quiet HEAD --ignore-submodules -- ; then
46
+ return 1;
47
+ else
48
+ return 0;
49
+ fi
50
+ }
51
+
52
+ updateVersion
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercury_amqp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Winton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-12 00:00:00.000000000 Z
11
+ date: 2016-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -201,9 +201,11 @@ extra_rdoc_files: []
201
201
  files:
202
202
  - ".gitignore"
203
203
  - ".rspec"
204
+ - CHANGES.md
204
205
  - Gemfile
205
206
  - README.md
206
207
  - Rakefile
208
+ - build.yml
207
209
  - constructs.dot
208
210
  - constructs.png
209
211
  - lib/mercury.rb
@@ -223,7 +225,6 @@ files:
223
225
  - lib/mercury/sync.rb
224
226
  - lib/mercury/test_utils.rb
225
227
  - lib/mercury/utils.rb
226
- - lib/mercury/version.rb
227
228
  - lib/mercury/wire_serializer.rb
228
229
  - mercury_amqp.gemspec
229
230
  - spec/lib/mercury/cps_spec.rb
@@ -236,6 +237,7 @@ files:
236
237
  - spec/spec_helper.rb
237
238
  - typical.dot
238
239
  - typical.png
240
+ - update_version.sh
239
241
  homepage: https://github.com/wintonpc/mercury_amqp
240
242
  licenses:
241
243
  - MIT
@@ -256,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
256
258
  version: '0'
257
259
  requirements: []
258
260
  rubyforge_project:
259
- rubygems_version: 2.4.5
261
+ rubygems_version: 2.6.2
260
262
  signing_key:
261
263
  specification_version: 4
262
264
  summary: AMQP-backed messaging layer
@@ -269,4 +271,3 @@ test_files:
269
271
  - spec/lib/mercury/utils_spec.rb
270
272
  - spec/lib/mercury/wire_serializer_spec.rb
271
273
  - spec/spec_helper.rb
272
- has_rdoc:
@@ -1,3 +0,0 @@
1
- class Mercury
2
- VERSION = '0.6.0'
3
- end