opener-daemons 1.0.0 → 1.1.0

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: 6be17414e31ab4748e9b768b07608e0f6076f195
4
- data.tar.gz: c4b1949d5346d33f2a4cea49e7297a202dddd2f3
3
+ metadata.gz: 3bb138529891d2dfdd4ee1db92aacd44ab8e54ca
4
+ data.tar.gz: 5c6fe6c3fac91d181b9a4ee75298d055953512c7
5
5
  SHA512:
6
- metadata.gz: a032075b0a36fe0a5fec62b51277f12b1e6791c2c10ff02d6ebe6c857f18b5e029161b92d3d8411531fddee13705718e7610eef71e0e0c1affa53cf73b4ad731
7
- data.tar.gz: e1c9306b2e4d9cc8c7486a20e7ed648454a04a9d6de7ca8de9b3c54f3edabd39bdd5ce5e47c8a5162b95bee242a6b2b387600aee77aec48d1d303168fdad065b
6
+ metadata.gz: ec9e695726fc5c0d723172cf2c6359dc5745f7444d1e7689758165c2f148b7e54b6bdfe99a9374e7967a9891173b8ccbc781cdd918700bee6a8b03cce55c9776
7
+ data.tar.gz: e37530d37292b81879cabad48f2b27d100f8b413ee47511243bc928591e9bf8b1f4b40bb0e210b50006fd1788ab9cff899a14b5557ee93ea3782f2998f4a2895
data/README.md CHANGED
@@ -120,7 +120,7 @@ Common options:
120
120
 
121
121
  ## Contributing
122
122
 
123
- 1. Fork it ( http://github.com/<my-github-username>/opener-daemons/fork )
123
+ 1. Fork it ( http://github.com/opener-project/opener-daemons/fork )
124
124
  2. Create your feature branch (`git checkout -b my-new-feature`)
125
125
  3. Commit your changes (`git commit -am 'Add some feature'`)
126
126
  4. Push to the branch (`git push origin my-new-feature`)
@@ -54,6 +54,9 @@ module Opener
54
54
 
55
55
  def construct_option_parser(options, &block)
56
56
  script_name = File.basename($0, ".rb")
57
+ unless script_name.include?("-daemon")
58
+ script_name = "#{script_name}-daemon"
59
+ end
57
60
 
58
61
  OptionParser.new do |opts|
59
62
  if block_given?
@@ -15,8 +15,8 @@ module Opener
15
15
  begin
16
16
  @url = sqs.get_queue_url(:queue_name=>name)[:queue_url]
17
17
  rescue Aws::SQS::Errors::NonExistentQueue => e
18
- STDERR.puts "Could not find queue #{name}"
19
- raise
18
+ sqs.create_queue(:queue_name=>name)
19
+ retry
20
20
  end
21
21
  end
22
22
 
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  module Daemons
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.summary = %q{Daemonize OpeNER components and make them read from an SQS queue. JRuby compatible.}
9
9
  spec.description = spec.summary
10
10
  spec.homepage = "http://opener-project.github.io"
11
- spec.license = "MIT"
11
+ spec.license = "Apache v2"
12
12
 
13
13
  spec.files = Dir.glob([
14
14
  'lib/**/*',
metadata CHANGED
@@ -1,101 +1,100 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-daemons
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilco van Duinkerken
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-19 00:00:00.000000000 Z
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
15
20
  requirement: !ruby/object:Gem::Requirement
16
21
  requirements:
17
- - - ">="
22
+ - - '>='
18
23
  - !ruby/object:Gem::Version
19
24
  version: '0'
20
- type: :runtime
21
25
  prerelease: false
26
+ type: :runtime
27
+ - !ruby/object:Gem::Dependency
28
+ name: spoon
22
29
  version_requirements: !ruby/object:Gem::Requirement
23
30
  requirements:
24
- - - ">="
31
+ - - '>='
25
32
  - !ruby/object:Gem::Version
26
33
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: spoon
29
34
  requirement: !ruby/object:Gem::Requirement
30
35
  requirements:
31
- - - ">="
36
+ - - '>='
32
37
  - !ruby/object:Gem::Version
33
38
  version: '0'
34
- type: :runtime
35
39
  prerelease: false
40
+ type: :runtime
41
+ - !ruby/object:Gem::Dependency
42
+ name: dotenv
36
43
  version_requirements: !ruby/object:Gem::Requirement
37
44
  requirements:
38
- - - ">="
45
+ - - '>='
39
46
  - !ruby/object:Gem::Version
40
47
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: dotenv
43
48
  requirement: !ruby/object:Gem::Requirement
44
49
  requirements:
45
- - - ">="
50
+ - - '>='
46
51
  - !ruby/object:Gem::Version
47
52
  version: '0'
48
- type: :runtime
49
53
  prerelease: false
54
+ type: :runtime
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
50
57
  version_requirements: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ">="
59
+ - - ~>
53
60
  - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: bundler
61
+ version: '1.5'
57
62
  requirement: !ruby/object:Gem::Requirement
58
63
  requirements:
59
- - - "~>"
64
+ - - ~>
60
65
  - !ruby/object:Gem::Version
61
66
  version: '1.5'
62
- type: :development
63
67
  prerelease: false
68
+ type: :development
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
64
71
  version_requirements: !ruby/object:Gem::Requirement
65
72
  requirements:
66
- - - "~>"
73
+ - - '>='
67
74
  - !ruby/object:Gem::Version
68
- version: '1.5'
69
- - !ruby/object:Gem::Dependency
70
- name: rake
75
+ version: '0'
71
76
  requirement: !ruby/object:Gem::Requirement
72
77
  requirements:
73
- - - ">="
78
+ - - '>='
74
79
  - !ruby/object:Gem::Version
75
80
  version: '0'
76
- type: :development
77
81
  prerelease: false
82
+ type: :development
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
78
85
  version_requirements: !ruby/object:Gem::Requirement
79
86
  requirements:
80
- - - ">="
87
+ - - '>='
81
88
  - !ruby/object:Gem::Version
82
89
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rspec
85
90
  requirement: !ruby/object:Gem::Requirement
86
91
  requirements:
87
- - - ">="
92
+ - - '>='
88
93
  - !ruby/object:Gem::Version
89
94
  version: '0'
90
- type: :development
91
95
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- description: Daemonize OpeNER components and make them read from an SQS queue. JRuby
98
- compatible.
96
+ type: :development
97
+ description: Daemonize OpeNER components and make them read from an SQS queue. JRuby compatible.
99
98
  email:
100
99
  - wilco@sparkboxx.com
101
100
  executables: []
@@ -113,27 +112,26 @@ files:
113
112
  - opener-daemons.gemspec
114
113
  homepage: http://opener-project.github.io
115
114
  licenses:
116
- - MIT
115
+ - Apache v2
117
116
  metadata: {}
118
- post_install_message:
117
+ post_install_message:
119
118
  rdoc_options: []
120
119
  require_paths:
121
120
  - lib
122
121
  required_ruby_version: !ruby/object:Gem::Requirement
123
122
  requirements:
124
- - - ">="
123
+ - - '>='
125
124
  - !ruby/object:Gem::Version
126
125
  version: '0'
127
126
  required_rubygems_version: !ruby/object:Gem::Requirement
128
127
  requirements:
129
- - - ">="
128
+ - - '>='
130
129
  - !ruby/object:Gem::Version
131
130
  version: '0'
132
131
  requirements: []
133
- rubyforge_project:
132
+ rubyforge_project:
134
133
  rubygems_version: 2.2.2
135
- signing_key:
134
+ signing_key:
136
135
  specification_version: 4
137
136
  summary: Daemonize OpeNER components and make them read from an SQS queue. JRuby compatible.
138
137
  test_files: []
139
- has_rdoc: