rainbows 4.4.0 → 4.4.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.
data/GIT-VERSION-GEN CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
 
3
3
  GVF=GIT-VERSION-FILE
4
- DEF_VER=v4.4.0.GIT
4
+ DEF_VER=v4.4.1.GIT
5
5
 
6
6
  LF='
7
7
  '
data/Rakefile CHANGED
@@ -78,7 +78,7 @@ task :fm_update do
78
78
  require 'net/netrc'
79
79
  require 'json'
80
80
  version = ENV['VERSION'] or abort "VERSION= needed"
81
- uri = URI.parse('http://freshmeat.net/projects/rainbows/releases.json')
81
+ uri = URI.parse('https://freecode.com/projects/rainbows/releases.json')
82
82
  rc = Net::Netrc.locate('rainbows-fm') or abort "~/.netrc not found"
83
83
  api_token = rc.password
84
84
  _, subject, body = `git cat-file tag v#{version}`.split(/\n\n/, 3)
@@ -99,7 +99,7 @@ task :fm_update do
99
99
  },
100
100
  }.to_json
101
101
  if ! changelog.strip.empty? && version =~ %r{\A[\d\.]+\d+\z}
102
- Net::HTTP.start(uri.host, uri.port) do |http|
102
+ Net::HTTP.start(uri.host, uri.port, :use_ssl => true) do |http|
103
103
  p http.post(uri.path, req, {'Content-Type'=>'application/json'})
104
104
  end
105
105
  else
@@ -2,7 +2,7 @@
2
2
  # :enddoc:
3
3
  module Rainbows::Const
4
4
 
5
- RAINBOWS_VERSION = '4.4.0'
5
+ RAINBOWS_VERSION = '4.4.1'
6
6
 
7
7
  include Unicorn::Const
8
8
 
@@ -51,8 +51,16 @@ module Rainbows::Fiber::Base
51
51
  end
52
52
  }
53
53
  fibs.each { |fib| fib.resume }
54
- now = Time.now
55
- max.nil? || max > (now + 1) ? 1 : max - now
54
+
55
+ max_sleep = 1.0 # wake up semi-frequently to prevent SIGKILL from master
56
+ if max
57
+ max -= Time.now
58
+ return 0 if max < 0.0
59
+ return max_sleep if max > max_sleep
60
+ max
61
+ else
62
+ max_sleep
63
+ end
56
64
  end
57
65
 
58
66
  def process(client)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rainbows
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 45
5
5
  prerelease:
6
6
  segments:
7
7
  - 4
8
8
  - 4
9
- - 0
10
- version: 4.4.0
9
+ - 1
10
+ version: 4.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rainbows! hackers
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-08-18 00:00:00 Z
18
+ date: 2012-08-31 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rack