pubcontrol 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/format.rb +2 -1
- data/lib/item.rb +2 -1
- data/lib/pccbhandler.rb +2 -1
- data/lib/pubcontrol.rb +4 -4
- data/lib/pubcontrolset.rb +2 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 574069d2ca7685501e17b2ea57f5c18bb492b2b1
|
4
|
+
data.tar.gz: 0dd8893044955129909af1bc4e5ac3505e82a007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e961bf99c00504d1e6bb296da933f7cb85ff0f548362cb621c10a2a86786703f0947e600ff7bc5d335ab456fa605bca29e30c06a2d0c2ada5b915bd1205f7ea
|
7
|
+
data.tar.gz: a96476bf8c60f50ee0a699c313788d930768d76ebfe89861d02723ffea3478cb6bea8a1ff4e2aa183605636a4eb28baa331a171a735ba36e47a8104205864037
|
data/lib/format.rb
CHANGED
data/lib/item.rb
CHANGED
data/lib/pccbhandler.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# format.rb
|
2
2
|
# ~~~~~~~~~
|
3
3
|
# This module implements the PubControlCallbackHandler class.
|
4
|
-
# :
|
4
|
+
# :authors: Konstantin Bokarius.
|
5
|
+
# :copyright: (c) 2015 by Fanout, Inc.
|
5
6
|
# :license: MIT, see LICENSE for more details.
|
6
7
|
|
7
8
|
class PubControlCallbackHandler
|
data/lib/pubcontrol.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# pubcontrol.rb
|
2
2
|
# ~~~~~~~~~
|
3
3
|
# This module implements the PubControl class.
|
4
|
-
# :
|
4
|
+
# :authors: Konstantin Bokarius.
|
5
|
+
# :copyright: (c) 2015 by Fanout, Inc.
|
5
6
|
# :license: MIT, see LICENSE for more details.
|
6
7
|
|
7
8
|
require 'algorithms'
|
@@ -112,9 +113,8 @@ class PubControl
|
|
112
113
|
content['items'] = items
|
113
114
|
# REVIEW: POST implementation
|
114
115
|
request = Net::HTTP::Post.new(uri.path)
|
115
|
-
# REVIEW:
|
116
|
-
|
117
|
-
request.body = content.to_json.force_encoding('UTF-8')
|
116
|
+
# REVIEW: is simply encoding in UTF-8 correct here?
|
117
|
+
request.body = content.to_json.encode('utf-8')
|
118
118
|
if !auth_header.nil?
|
119
119
|
request['Authorization'] = auth_header
|
120
120
|
end
|
data/lib/pubcontrolset.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# pubcontrolset.rb
|
2
2
|
# ~~~~~~~~~
|
3
3
|
# This module implements the PubControlSet class.
|
4
|
-
# :
|
4
|
+
# :authors: Konstantin Bokarius.
|
5
|
+
# :copyright: (c) 2015 by Fanout, Inc.
|
5
6
|
# :license: MIT, see LICENSE for more details.
|
6
7
|
|
7
8
|
require_relative 'pubcontrol.rb'
|
metadata
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pubcontrol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Bokarius
|
8
|
-
- Justin Karneges
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-04 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
|
-
description: A Ruby
|
13
|
+
description: A Ruby convenience library for publishing messages using the EPCP protocol
|
15
14
|
email: bokarius@comcast.net
|
16
15
|
executables: []
|
17
16
|
extensions: []
|
@@ -34,7 +33,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
34
33
|
requirements:
|
35
34
|
- - ">="
|
36
35
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
36
|
+
version: 1.9.0
|
38
37
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
39
38
|
requirements:
|
40
39
|
- - ">="
|