feedx 0.5.1 → 0.5.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
  SHA256:
3
- metadata.gz: aa8c1f3e04b9d7dceefe3eebc2e531249e0991d703bfbabcc086af20db5a9621
4
- data.tar.gz: 5b9693716fec0f535045906e86df3af1d9f17e26b460c8cb27f33f2f446c8401
3
+ metadata.gz: 0ad83b2f9b53fb7574dc5bb90b39e9157a0f6f3bdbcc08065935cf9ffd97bb4f
4
+ data.tar.gz: d8e41fb163afd5d9b301b064a2f437ba8ebfb8850bcb3fd1e3497045c9c46a2e
5
5
  SHA512:
6
- metadata.gz: f1238367ec92ed6237063cb31a537793872e9af672d6158c9e8b2ebb72a80cddb75ac7c44944debe383f1990fea4e0c154ee2954cefba7bff83154f761751119
7
- data.tar.gz: 2db446f6eee8af5b334b5b81c650c1b344ec1e917cab5ce4e518896ae34706252f0b5ea081ca0bcef94de93c6bc519e278f0a8dc91b0ac315237acc7d24277e6
6
+ metadata.gz: 54a9d0f4269c11533576abedd48fc8180fc0de67d0e5d8008f5d82074a200ea2ba0644039ffd8dda6f4495956224e62f20410243da303911ed11dfa563dec10a
7
+ data.tar.gz: 9f9a46443a06d5f1d5ef95144414b90a5163db8086fc56b6a81d934fc1dc0f9df8ed33289cc4fbadb8ec06c4f065401106d35ed414c2a055395f6ca02cff52f2
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- feedx (0.5.1)
4
+ feedx (0.5.2)
5
5
  bfs (>= 0.3.4)
6
6
 
7
7
  GEM
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'feedx'
3
- s.version = '0.5.1'
3
+ s.version = '0.5.2'
4
4
  s.authors = ['Black Square Media Ltd']
5
5
  s.email = ['info@blacksquaremedia.com']
6
6
  s.summary = %(Exchange data between components via feeds)
@@ -117,11 +117,8 @@ func (p *Producer) Close() error {
117
117
  }
118
118
 
119
119
  func (p *Producer) push() error {
120
- var now int64
120
+ now := timestampFromTime(time.Now()).Millis()
121
121
  defer func() {
122
- if now == 0 {
123
- now = timestampFromTime(time.Now()).Millis()
124
- }
125
122
  atomic.StoreInt64(&p.lastPush, now)
126
123
  }()
127
124
 
@@ -143,7 +140,6 @@ func (p *Producer) push() error {
143
140
  return err
144
141
  }
145
142
 
146
- now = timestampFromTime(time.Now()).Millis()
147
143
  atomic.StoreInt64(&p.numWritten, int64(writer.NumWritten()))
148
144
  atomic.StoreInt64(&p.lastMod, now)
149
145
  return nil
@@ -38,6 +38,7 @@ var _ = Describe("Producer", func() {
38
38
  It("should produce", func() {
39
39
  Expect(subject.LastPush()).To(BeTemporally("~", time.Now(), time.Second))
40
40
  Expect(subject.LastModified()).To(Equal(subject.LastPush()))
41
+ Expect(subject.NumWritten()).To(Equal(10))
41
42
  Expect(subject.Close()).To(Succeed())
42
43
  })
43
44
  })
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feedx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Black Square Media Ltd