pling 0.5.0 → 0.5.1

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: 4fef188f5e7d129c8a2f1b57405aef88b36ba3be
4
- data.tar.gz: 67837b1fb7ff04fe817d129b4d031bb88cfdbf42
3
+ metadata.gz: 521ed9e7bb2cac6108656b5cf388620f3d8fccaa
4
+ data.tar.gz: d44afe730527b82b429a0f169d9709da78874594
5
5
  SHA512:
6
- metadata.gz: d9093e9bb989269561b1624f021589a9191838eafff1f79c3fa2da0fcc82caf2b3ee0b668bd6d91464de33bba0e204f37c3d3bde8111d66544aba93684a5e4ea
7
- data.tar.gz: 355b638ac06e00f23cf6026a285c79c1b62c5a46d9246365f19b6121c4c90d732dea357e8101a2633094e68a07b84c04d5ab4a7dd91472a33b1b15422266f62a
6
+ metadata.gz: 27d579e5193f1e7b417ff5adb47d4f674ad4746dff9b39978d396a4945da7c9941e84e6687e6347372a0de3dacf56ad8f16a6c1f230e46750b1dc83ebf51b945
7
+ data.tar.gz: 6df29040429b10af32cef53d5c1af65da78b8de9bc6a9960cb7d48b07d95b1ec3df76b6694e7c5e72c3d84b561e2929f408307f3e617b07e5fba107d16b07ed6
@@ -2,6 +2,6 @@ sudo: false
2
2
  language: ruby
3
3
  rvm:
4
4
  - ruby-head
5
- - 2.2.3
6
- - 2.1.7
5
+ - 2.3.1
6
+ - 2.2.5
7
7
  - jruby
data/Gemfile CHANGED
@@ -3,7 +3,4 @@ source 'http://rubygems.org'
3
3
  # Specify your gem's dependencies in pling.gemspec
4
4
  gemspec
5
5
 
6
- gem 'guard'
7
- gem 'guard-rspec'
8
- gem 'guard-yard', :platform => :ruby_19
9
6
  gem 'rdiscount', ">= 1.6.8", :platform => :ruby
@@ -60,7 +60,9 @@ module Pling
60
60
  def get
61
61
  tokens = []
62
62
  while line = connection.gets
63
- time, length = line.unpack("Nn")
63
+ _, length = line.unpack("Nn")
64
+ break if length.nil?
65
+
64
66
  tokens << line.unpack("x6H#{length << 1}").first
65
67
  end
66
68
  connection.close
@@ -1,3 +1,3 @@
1
1
  module Pling
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -44,7 +44,15 @@ describe Pling::APN::Feedback do
44
44
 
45
45
  subject.get
46
46
  end
47
-
48
- end
49
47
 
48
+ context 'when the feedback results in no packed data' do
49
+ before { connection.stub(:gets).and_return('') }
50
+
51
+ it 'returns an empty array' do
52
+ tokens = subject.get
53
+
54
+ tokens.should eq([])
55
+ end
56
+ end
57
+ end
50
58
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benedikt Deicke
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-11-10 00:00:00.000000000 Z
13
+ date: 2016-05-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  requirements: []
196
196
  rubyforge_project:
197
- rubygems_version: 2.4.5
197
+ rubygems_version: 2.5.1
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: Pling is a notification framework that supports multiple gateways