pubcontrol 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c386b1336a5e83f7980c41e90fce1eea0007820
4
- data.tar.gz: 88f2a4d16c1da323813df2c17013e7774fccc85c
3
+ metadata.gz: 574069d2ca7685501e17b2ea57f5c18bb492b2b1
4
+ data.tar.gz: 0dd8893044955129909af1bc4e5ac3505e82a007
5
5
  SHA512:
6
- metadata.gz: 351b24b297b4b72f4fd923ced916f3fc2988389acf822389afa56aae34c8a9974f4f6579cec12e8d357ecc0ad5e4c8f0b133ecf6fd8d3fb614ea8d3b9b3479f4
7
- data.tar.gz: 31004494af835fc5dd1a1bc0373e648b317ed0be68891788a1bd8aba8d8731d57090cd931811539affe70ba74facb7771e52242d42ebe56bedd4b125256e9960
6
+ metadata.gz: 7e961bf99c00504d1e6bb296da933f7cb85ff0f548362cb621c10a2a86786703f0947e600ff7bc5d335ab456fa605bca29e30c06a2d0c2ada5b915bd1205f7ea
7
+ data.tar.gz: a96476bf8c60f50ee0a699c313788d930768d76ebfe89861d02723ffea3478cb6bea8a1ff4e2aa183605636a4eb28baa331a171a735ba36e47a8104205864037
data/lib/format.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  # format.rb
2
2
  # ~~~~~~~~~
3
3
  # This module implements the Format class.
4
- # :copyright: (c) 2014 by Fanout.io.
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 Format
data/lib/item.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  # item.rb
2
2
  # ~~~~~~~~~
3
3
  # This module implements the Item class.
4
- # :copyright: (c) 2014 by Fanout.io.
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 'format.rb'
data/lib/pccbhandler.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  # format.rb
2
2
  # ~~~~~~~~~
3
3
  # This module implements the PubControlCallbackHandler class.
4
- # :copyright: (c) 2014 by Fanout.io.
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
- # :copyright: (c) 2014 by Fanout.io.
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: Ruby strings are unicode by default
116
- # is forcing the encoding to UTF-8 necessary?
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
- # :copyright: (c) 2014 by Fanout.io.
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
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-02 00:00:00.000000000 Z
11
+ date: 2015-01-04 00:00:00.000000000 Z
13
12
  dependencies: []
14
- description: A Ruby implementation of the EPCP protocol.
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: '0'
36
+ version: 1.9.0
38
37
  required_rubygems_version: !ruby/object:Gem::Requirement
39
38
  requirements:
40
39
  - - ">="