refinery 0.12.2 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/lib/refinery.rb +1 -99
  2. data/refinery.gemspec +16 -117
  3. metadata +39 -118
  4. data/.gitignore +0 -6
  5. data/CHANGELOG +0 -2
  6. data/LICENSE +0 -21
  7. data/README.rdoc +0 -58
  8. data/README.textile +0 -58
  9. data/Rakefile +0 -43
  10. data/VERSION +0 -1
  11. data/bin/epub +0 -64
  12. data/bin/monitor +0 -47
  13. data/bin/pubnow +0 -61
  14. data/bin/refinery +0 -64
  15. data/config/config.example.yml +0 -21
  16. data/lib/refinery/beanstalk_queue.rb +0 -36
  17. data/lib/refinery/beanstalk_queue_provider.rb +0 -18
  18. data/lib/refinery/config.rb +0 -48
  19. data/lib/refinery/configurable.rb +0 -15
  20. data/lib/refinery/daemon.rb +0 -148
  21. data/lib/refinery/event_publisher.rb +0 -131
  22. data/lib/refinery/heartbeat.rb +0 -33
  23. data/lib/refinery/loggable.rb +0 -9
  24. data/lib/refinery/monitor.rb +0 -113
  25. data/lib/refinery/processor.rb +0 -55
  26. data/lib/refinery/publisher.rb +0 -42
  27. data/lib/refinery/queueable.rb +0 -48
  28. data/lib/refinery/server.rb +0 -88
  29. data/lib/refinery/statistics.rb +0 -61
  30. data/lib/refinery/stats_server.rb +0 -135
  31. data/lib/refinery/utilities.rb +0 -33
  32. data/lib/refinery/validations.rb +0 -48
  33. data/lib/refinery/worker.rb +0 -65
  34. data/logs/README +0 -1
  35. data/publishers/error.rb +0 -6
  36. data/publishers/sample.rb +0 -6
  37. data/publishers/sleep.rb +0 -5
  38. data/test/config.yml +0 -10
  39. data/test/test_helper.rb +0 -21
  40. data/test/unit/config_test.rb +0 -42
  41. data/test/unit/configurable_test.rb +0 -13
  42. data/test/unit/daemon_test.rb +0 -63
  43. data/test/unit/event_publisher_test.rb +0 -12
  44. data/test/unit/heartbeat_test.rb +0 -25
  45. data/test/unit/loggable_test.rb +0 -12
  46. data/test/unit/processor_test.rb +0 -34
  47. data/test/unit/publisher_test.rb +0 -13
  48. data/test/unit/queueable_test.rb +0 -26
  49. data/test/unit/server_test.rb +0 -34
  50. data/test/unit/statistics_test.rb +0 -44
  51. data/test/unit/utilities_test.rb +0 -25
  52. data/test/unit/validations_test.rb +0 -37
  53. data/test/unit/worker_test.rb +0 -44
  54. data/workers/error.rb +0 -8
  55. data/workers/sample.rb +0 -8
  56. data/workers/sleep.rb +0 -7
@@ -1,99 +1 @@
1
- $KCODE="UTF8"
2
-
3
- require 'logger'
4
- require 'socket'
5
- require 'benchmark'
6
-
7
- # The Refinery module contains all of the classes for the refinery system.
8
- module Refinery
9
-
10
- # Require the specified library.
11
- #
12
- # The short name is the require path and the display_name will be shown
13
- # if the library cannot be loaded.
14
- def self.require_library(short_name, display_name)
15
- begin
16
- require short_name
17
- rescue LoadError
18
- puts "#{display_name} is required, please install it"
19
- exit
20
- end
21
- end
22
-
23
- # Require all of the dependencies.
24
- def self.require_libraries
25
- require_library('right_aws', 'RightScale AWS gem')
26
- require_library('json', 'JSON gem')
27
- require_library('moneta', 'Moneta gem')
28
- require_library('moneta/s3', 'Moneta S3 implementation')
29
- end
30
-
31
- def self.require_optional_library(short_name, display_name)
32
- begin
33
- require short_name
34
- puts "#{short_name} optional library was loaded"
35
- true
36
- rescue LoadError
37
- puts "#{short_name} optional library not loaded"
38
- end
39
- end
40
-
41
- def self.require_optional_libraries
42
- require_optional_library('sequel', 'Sequel gem')
43
- require_optional_library('ramaze', 'Ramaze')
44
-
45
- if require_optional_library('java', 'JRuby')
46
- require_optional_library('typica', 'JRuby Typica wrapper')
47
- end
48
-
49
- require_optional_library('beanstalk-client', 'Beanstalk Client')
50
- end
51
-
52
- # Require internal code files
53
- def self.require_internals
54
- require 'thwait'
55
-
56
- require 'refinery/loggable'
57
- require 'refinery/configurable'
58
- require 'refinery/queueable'
59
-
60
- require 'refinery/utilities'
61
-
62
- require 'refinery/validations'
63
-
64
- require 'refinery/config'
65
- require 'refinery/heartbeat'
66
- require 'refinery/server'
67
- require 'refinery/processor'
68
- require 'refinery/daemon'
69
- require 'refinery/worker'
70
- require 'refinery/event_publisher'
71
- require 'refinery/publisher'
72
- require 'refinery/monitor'
73
- require 'refinery/statistics'
74
- require 'refinery/stats_server'
75
-
76
- if defined?(Beanstalk)
77
- require 'refinery/beanstalk_queue'
78
- require 'refinery/beanstalk_queue_provider'
79
- end
80
- end
81
-
82
- # Raised if a source file cannot be loaded
83
- class SourceFileNotFound < RuntimeError
84
- end
85
- end
86
-
87
- require 'net/http'
88
- class Net::HTTP
89
- alias_method :old_initialize, :initialize
90
- def initialize(*args)
91
- old_initialize(*args)
92
- @ssl_context = OpenSSL::SSL::SSLContext.new
93
- @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
94
- end
95
- end
96
-
97
- Refinery::require_libraries
98
- Refinery::require_optional_libraries
99
- Refinery::require_internals
1
+ require 'refinerycms'
@@ -1,121 +1,20 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
1
  Gem::Specification.new do |s|
7
- s.name = %q{refinery}
8
- s.version = "0.12.2"
2
+ s.name = %q{refinery}
3
+ s.version = %q{1.0}
4
+ s.description = %q{Shorthand gem name that requires the latest RefineryCMS available but may do more in future.}
5
+ s.date = %q{2012-02-15}
6
+ s.summary = %q{Shorthand gem name that requires the latest RefineryCMS available.}
7
+ s.email = %q{info@refinerycms.com}
8
+ s.homepage = %q{http://refinerycms.com}
9
+ s.authors = 'Philip Arndt'
10
+ s.require_path = 'lib'
9
11
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Anthony Eden"]
12
- s.date = %q{2010-01-08}
13
- s.description = %q{Process data in a distributed fashion.}
14
- s.email = %q{anthonyeden@gmail.com}
15
- s.executables = ["epub", "monitor", "pubnow", "refinery"]
16
- s.extra_rdoc_files = [
17
- "LICENSE",
18
- "README.rdoc",
19
- "README.textile"
20
- ]
21
- s.files = [
22
- ".gitignore",
23
- "CHANGELOG",
24
- "LICENSE",
25
- "README.rdoc",
26
- "README.textile",
27
- "Rakefile",
28
- "VERSION",
29
- "bin/epub",
30
- "bin/monitor",
31
- "bin/pubnow",
32
- "bin/refinery",
33
- "config/config.example.yml",
34
- "lib/refinery.rb",
35
- "lib/refinery/beanstalk_queue.rb",
36
- "lib/refinery/beanstalk_queue_provider.rb",
37
- "lib/refinery/config.rb",
38
- "lib/refinery/configurable.rb",
39
- "lib/refinery/daemon.rb",
40
- "lib/refinery/event_publisher.rb",
41
- "lib/refinery/heartbeat.rb",
42
- "lib/refinery/loggable.rb",
43
- "lib/refinery/monitor.rb",
44
- "lib/refinery/processor.rb",
45
- "lib/refinery/publisher.rb",
46
- "lib/refinery/queueable.rb",
47
- "lib/refinery/server.rb",
48
- "lib/refinery/statistics.rb",
49
- "lib/refinery/stats_server.rb",
50
- "lib/refinery/utilities.rb",
51
- "lib/refinery/validations.rb",
52
- "lib/refinery/worker.rb",
53
- "logs/README",
54
- "publishers/error.rb",
55
- "publishers/sample.rb",
56
- "publishers/sleep.rb",
57
- "refinery.gemspec",
58
- "test/config.yml",
59
- "test/test_helper.rb",
60
- "test/unit/config_test.rb",
61
- "test/unit/configurable_test.rb",
62
- "test/unit/daemon_test.rb",
63
- "test/unit/event_publisher_test.rb",
64
- "test/unit/heartbeat_test.rb",
65
- "test/unit/loggable_test.rb",
66
- "test/unit/processor_test.rb",
67
- "test/unit/publisher_test.rb",
68
- "test/unit/queueable_test.rb",
69
- "test/unit/server_test.rb",
70
- "test/unit/statistics_test.rb",
71
- "test/unit/utilities_test.rb",
72
- "test/unit/validations_test.rb",
73
- "test/unit/worker_test.rb",
74
- "workers/error.rb",
75
- "workers/sample.rb",
76
- "workers/sleep.rb"
77
- ]
78
- s.homepage = %q{http://github.com/aeden/refinery}
79
- s.rdoc_options = ["--charset=UTF-8"]
80
- s.require_paths = ["lib"]
81
- s.rubyforge_project = %q{refinery}
82
- s.rubygems_version = %q{1.3.5}
83
- s.summary = %q{Refinery processes data in a distributed environment.}
84
- s.test_files = [
85
- "test/test_helper.rb",
86
- "test/unit/config_test.rb",
87
- "test/unit/configurable_test.rb",
88
- "test/unit/daemon_test.rb",
89
- "test/unit/event_publisher_test.rb",
90
- "test/unit/heartbeat_test.rb",
91
- "test/unit/loggable_test.rb",
92
- "test/unit/processor_test.rb",
93
- "test/unit/publisher_test.rb",
94
- "test/unit/queueable_test.rb",
95
- "test/unit/server_test.rb",
96
- "test/unit/statistics_test.rb",
97
- "test/unit/utilities_test.rb",
98
- "test/unit/validations_test.rb",
99
- "test/unit/worker_test.rb"
100
- ]
12
+ # Refinery CMS
13
+ s.add_dependency 'refinerycms'
101
14
 
102
- if s.respond_to? :specification_version then
103
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
104
- s.specification_version = 3
105
-
106
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
107
- s.add_runtime_dependency(%q<right_aws>, [">= 0"])
108
- s.add_runtime_dependency(%q<moneta>, [">= 0"])
109
- s.add_runtime_dependency(%q<addressable>, [">= 0"])
110
- else
111
- s.add_dependency(%q<right_aws>, [">= 0"])
112
- s.add_dependency(%q<moneta>, [">= 0"])
113
- s.add_dependency(%q<addressable>, [">= 0"])
114
- end
115
- else
116
- s.add_dependency(%q<right_aws>, [">= 0"])
117
- s.add_dependency(%q<moneta>, [">= 0"])
118
- s.add_dependency(%q<addressable>, [">= 0"])
119
- end
15
+ s.files = [
16
+ 'refinery.gemspec',
17
+ 'lib',
18
+ 'lib/refinery.rb'
19
+ ]
120
20
  end
121
-
metadata CHANGED
@@ -1,157 +1,78 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ hash: 15
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ version: "1.0"
5
10
  platform: ruby
6
11
  authors:
7
- - Anthony Eden
12
+ - Philip Arndt
8
13
  autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-01-08 00:00:00 -10:00
13
- default_executable:
17
+ date: 2012-02-15 00:00:00 Z
14
18
  dependencies:
15
19
  - !ruby/object:Gem::Dependency
16
- name: right_aws
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
+ name: refinerycms
21
+ prerelease: false
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ hash: 3
28
+ segments:
29
+ - 0
23
30
  version: "0"
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: moneta
27
31
  type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: "0"
34
- version:
35
- - !ruby/object:Gem::Dependency
36
- name: addressable
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: "0"
44
- version:
45
- description: Process data in a distributed fashion.
46
- email: anthonyeden@gmail.com
47
- executables:
48
- - epub
49
- - monitor
50
- - pubnow
51
- - refinery
32
+ version_requirements: *id001
33
+ description: Shorthand gem name that requires the latest RefineryCMS available but may do more in future.
34
+ email: info@refinerycms.com
35
+ executables: []
36
+
52
37
  extensions: []
53
38
 
54
- extra_rdoc_files:
55
- - LICENSE
56
- - README.rdoc
57
- - README.textile
39
+ extra_rdoc_files: []
40
+
58
41
  files:
59
- - .gitignore
60
- - CHANGELOG
61
- - LICENSE
62
- - README.rdoc
63
- - README.textile
64
- - Rakefile
65
- - VERSION
66
- - bin/epub
67
- - bin/monitor
68
- - bin/pubnow
69
- - bin/refinery
70
- - config/config.example.yml
71
- - lib/refinery.rb
72
- - lib/refinery/beanstalk_queue.rb
73
- - lib/refinery/beanstalk_queue_provider.rb
74
- - lib/refinery/config.rb
75
- - lib/refinery/configurable.rb
76
- - lib/refinery/daemon.rb
77
- - lib/refinery/event_publisher.rb
78
- - lib/refinery/heartbeat.rb
79
- - lib/refinery/loggable.rb
80
- - lib/refinery/monitor.rb
81
- - lib/refinery/processor.rb
82
- - lib/refinery/publisher.rb
83
- - lib/refinery/queueable.rb
84
- - lib/refinery/server.rb
85
- - lib/refinery/statistics.rb
86
- - lib/refinery/stats_server.rb
87
- - lib/refinery/utilities.rb
88
- - lib/refinery/validations.rb
89
- - lib/refinery/worker.rb
90
- - logs/README
91
- - publishers/error.rb
92
- - publishers/sample.rb
93
- - publishers/sleep.rb
94
42
  - refinery.gemspec
95
- - test/config.yml
96
- - test/test_helper.rb
97
- - test/unit/config_test.rb
98
- - test/unit/configurable_test.rb
99
- - test/unit/daemon_test.rb
100
- - test/unit/event_publisher_test.rb
101
- - test/unit/heartbeat_test.rb
102
- - test/unit/loggable_test.rb
103
- - test/unit/processor_test.rb
104
- - test/unit/publisher_test.rb
105
- - test/unit/queueable_test.rb
106
- - test/unit/server_test.rb
107
- - test/unit/statistics_test.rb
108
- - test/unit/utilities_test.rb
109
- - test/unit/validations_test.rb
110
- - test/unit/worker_test.rb
111
- - workers/error.rb
112
- - workers/sample.rb
113
- - workers/sleep.rb
114
- has_rdoc: true
115
- homepage: http://github.com/aeden/refinery
43
+ - lib/refinery.rb
44
+ homepage: http://refinerycms.com
116
45
  licenses: []
117
46
 
118
47
  post_install_message:
119
- rdoc_options:
120
- - --charset=UTF-8
48
+ rdoc_options: []
49
+
121
50
  require_paths:
122
51
  - lib
123
52
  required_ruby_version: !ruby/object:Gem::Requirement
53
+ none: false
124
54
  requirements:
125
55
  - - ">="
126
56
  - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
127
60
  version: "0"
128
- version:
129
61
  required_rubygems_version: !ruby/object:Gem::Requirement
62
+ none: false
130
63
  requirements:
131
64
  - - ">="
132
65
  - !ruby/object:Gem::Version
66
+ hash: 3
67
+ segments:
68
+ - 0
133
69
  version: "0"
134
- version:
135
70
  requirements: []
136
71
 
137
- rubyforge_project: refinery
138
- rubygems_version: 1.3.5
72
+ rubyforge_project:
73
+ rubygems_version: 1.8.10
139
74
  signing_key:
140
75
  specification_version: 3
141
- summary: Refinery processes data in a distributed environment.
142
- test_files:
143
- - test/test_helper.rb
144
- - test/unit/config_test.rb
145
- - test/unit/configurable_test.rb
146
- - test/unit/daemon_test.rb
147
- - test/unit/event_publisher_test.rb
148
- - test/unit/heartbeat_test.rb
149
- - test/unit/loggable_test.rb
150
- - test/unit/processor_test.rb
151
- - test/unit/publisher_test.rb
152
- - test/unit/queueable_test.rb
153
- - test/unit/server_test.rb
154
- - test/unit/statistics_test.rb
155
- - test/unit/utilities_test.rb
156
- - test/unit/validations_test.rb
157
- - test/unit/worker_test.rb
76
+ summary: Shorthand gem name that requires the latest RefineryCMS available.
77
+ test_files: []
78
+
data/.gitignore DELETED
@@ -1,6 +0,0 @@
1
- logs/*.log
2
- config/config.yml
3
- rdoc/*
4
- refinery-*.gem
5
- stats.db
6
- *.pid
data/CHANGELOG DELETED
@@ -1,2 +0,0 @@
1
- v0.9.0. Initial release.
2
- v0.9.3. Added prefix option to config so all queue names are prefixed.
data/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License
2
-
3
- Copyright (c) 2009 Anthony Eden
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.