disc 0.0.23 → 0.0.24

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
  SHA1:
3
- metadata.gz: b18edad621a41207f9c2045ae5dd8a4a799504eb
4
- data.tar.gz: 17e24767d59f25f6a1430b6bad137149b89fd88b
3
+ metadata.gz: fe07d8d776e3658f1ce638b9e2bdbe95efd516bc
4
+ data.tar.gz: ef1a6ebf0fc055d8239a4133904d572fb0c48db6
5
5
  SHA512:
6
- metadata.gz: f2b1016e07b4460d86f1107b4364432f9b2b3215e09ee24b6ac1ff1b93e94e1293ad1ae898d4776aabc75cf2f606746ca031031a354c09847b38b2bde4891ad8
7
- data.tar.gz: ca77b931ab1c864359ce0e21f3645af89d0b82a4266d7908957b191c37e9db555fd017161cb128f3166d057e66d0bb509205cc6396e15bccf666fd34e1b636ed
6
+ metadata.gz: db1e642b0f8f685214d6bb767ff175bcb9113dbeb52f04457f54bd2f1173e581f7c17cdfae1a1310929305a150275279edba722d90e41c2d0399437f4ec4391f
7
+ data.tar.gz: 91a52222b2f6d68601f2911d80df230cf8722c892a41171b6c31dba8d711d2092ae39f9aeda66dd18086181f5fbbf71dc0a230c2fbfa6bc7f4b2e8f24beaa6b6
@@ -1,7 +1,7 @@
1
- export GEM_HOME="$PWD/.gs"
1
+ # vim: ft=sh
2
+ export GEM_HOME="$PWD/.deps"
2
3
  export GEM_BIN="$GEM_HOME/bin"
3
4
  export PATH="$GEM_BIN":"$PATH"
4
5
 
5
- export DISC_REQUIRE="./disc_init_example"
6
6
  export DISC_CONCURRENCY=2
7
7
  export QUEUES="test_medium"
data/.gems CHANGED
@@ -1,5 +1,5 @@
1
- cutest -v 1.2.2
2
- byebug -v 5.0.0
3
- disque -v 0.0.6
4
- msgpack -v 0.6.1
5
- celluloid -v 0.17.0
1
+ cutest:1.2.2
2
+ byebug:5.0.0
3
+ disque:0.0.6
4
+ msgpack:0.6.2
5
+ celluloid:0.17.0
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  *.gem
2
2
  nodes.conf
3
+ .deps
data/Makefile CHANGED
@@ -32,11 +32,9 @@ pkg/%-$(VERSION).gem: %.gemspec $(VERSION_FILE) | pkg
32
32
  mv $(@F) pkg/
33
33
 
34
34
  $(DEPS): $(GEM_HOME) .gems
35
- which dep &>/dev/null || gem install dep
36
- dep install
37
- touch $(GEM_HOME)/installed
35
+ cat .gems | xargs gem install && touch $(GEM_HOME)/installed
38
36
 
39
- pkg:
37
+ pkg $(GEM_HOME):
40
38
  mkdir -p $@
41
39
 
42
40
  .PHONY: all test release clean
data/bin/disc CHANGED
@@ -3,6 +3,12 @@
3
3
  require 'disc'
4
4
  require 'clap'
5
5
 
6
+ if ARGV.empty?
7
+ $stdout.puts('Usage: disc -r FILE')
8
+
9
+ exit(1)
10
+ end
11
+
6
12
  Clap.run ARGV,
7
13
  "-r" => lambda { |file| require file }
8
14
 
@@ -14,6 +14,6 @@ Gem::Specification.new do |s|
14
14
  s.executables.push('disc')
15
15
 
16
16
  s.add_dependency('disque', '~> 0.0.6')
17
- s.add_dependency('msgpack', '>= 0.5.6', '<= 0.6.2')
17
+ s.add_dependency('msgpack', '>= 0.5.6', '< 0.6.3')
18
18
  s.add_dependency('clap', '~> 1.0')
19
19
  end
@@ -54,7 +54,7 @@ class Disc
54
54
  @disque = options.fetch(:disque, Disc.disque)
55
55
  @queues = options.fetch(
56
56
  :queues,
57
- ENV.fetch('QUEUES', 'default')
57
+ ENV.fetch('QUEUES', Disc.default_queue)
58
58
  ).split(',')
59
59
  @count = Integer(
60
60
  options.fetch(
@@ -1,3 +1,3 @@
1
1
  class Disc
2
- VERSION = "0.0.23"
2
+ VERSION = "0.0.24"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - pote
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2015-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: disque
@@ -31,9 +31,9 @@ dependencies:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.5.6
34
- - - "<="
34
+ - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: 0.6.2
36
+ version: 0.6.3
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -41,9 +41,9 @@ dependencies:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: 0.5.6
44
- - - "<="
44
+ - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.6.2
46
+ version: 0.6.3
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: clap
49
49
  requirement: !ruby/object:Gem::Requirement