tower 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'rails', '~> 3.0.1'
3
+ gem 'rails', '=3.0.7'
4
4
 
5
5
  # Add dependencies required to use your gem here.
6
6
  # Example:
@@ -2,12 +2,12 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  abstract (1.0.0)
5
- actionmailer (3.0.10)
6
- actionpack (= 3.0.10)
7
- mail (~> 2.2.19)
8
- actionpack (3.0.10)
9
- activemodel (= 3.0.10)
10
- activesupport (= 3.0.10)
5
+ actionmailer (3.0.7)
6
+ actionpack (= 3.0.7)
7
+ mail (~> 2.2.15)
8
+ actionpack (3.0.7)
9
+ activemodel (= 3.0.7)
10
+ activesupport (= 3.0.7)
11
11
  builder (~> 2.1.2)
12
12
  erubis (~> 2.6.6)
13
13
  i18n (~> 0.5.0)
@@ -15,19 +15,19 @@ GEM
15
15
  rack-mount (~> 0.6.14)
16
16
  rack-test (~> 0.5.7)
17
17
  tzinfo (~> 0.3.23)
18
- activemodel (3.0.10)
19
- activesupport (= 3.0.10)
18
+ activemodel (3.0.7)
19
+ activesupport (= 3.0.7)
20
20
  builder (~> 2.1.2)
21
21
  i18n (~> 0.5.0)
22
- activerecord (3.0.10)
23
- activemodel (= 3.0.10)
24
- activesupport (= 3.0.10)
25
- arel (~> 2.0.10)
22
+ activerecord (3.0.7)
23
+ activemodel (= 3.0.7)
24
+ activesupport (= 3.0.7)
25
+ arel (~> 2.0.2)
26
26
  tzinfo (~> 0.3.23)
27
- activeresource (3.0.10)
28
- activemodel (= 3.0.10)
29
- activesupport (= 3.0.10)
30
- activesupport (3.0.10)
27
+ activeresource (3.0.7)
28
+ activemodel (= 3.0.7)
29
+ activesupport (= 3.0.7)
30
+ activesupport (3.0.7)
31
31
  arel (2.0.10)
32
32
  builder (2.1.2)
33
33
  diff-lcs (1.1.3)
@@ -46,28 +46,26 @@ GEM
46
46
  treetop (~> 1.4.8)
47
47
  mime-types (1.17.2)
48
48
  polyglot (0.3.3)
49
- rack (1.2.4)
49
+ rack (1.2.5)
50
50
  rack-mount (0.6.14)
51
51
  rack (>= 1.0.0)
52
52
  rack-test (0.5.7)
53
53
  rack (>= 1.0)
54
- rails (3.0.10)
55
- actionmailer (= 3.0.10)
56
- actionpack (= 3.0.10)
57
- activerecord (= 3.0.10)
58
- activeresource (= 3.0.10)
59
- activesupport (= 3.0.10)
54
+ rails (3.0.7)
55
+ actionmailer (= 3.0.7)
56
+ actionpack (= 3.0.7)
57
+ activerecord (= 3.0.7)
58
+ activeresource (= 3.0.7)
59
+ activesupport (= 3.0.7)
60
60
  bundler (~> 1.0)
61
- railties (= 3.0.10)
62
- railties (3.0.10)
63
- actionpack (= 3.0.10)
64
- activesupport (= 3.0.10)
61
+ railties (= 3.0.7)
62
+ railties (3.0.7)
63
+ actionpack (= 3.0.7)
64
+ activesupport (= 3.0.7)
65
65
  rake (>= 0.8.7)
66
- rdoc (~> 3.4)
67
66
  thor (~> 0.14.4)
68
67
  rake (0.9.2.2)
69
68
  rcov (0.9.11)
70
- rdoc (3.9.2)
71
69
  rspec (2.3.0)
72
70
  rspec-core (~> 2.3.0)
73
71
  rspec-expectations (~> 2.3.0)
@@ -88,6 +86,6 @@ PLATFORMS
88
86
  DEPENDENCIES
89
87
  bundler (~> 1.0.0)
90
88
  jeweler (~> 1.6.4)
91
- rails (~> 3.0.1)
89
+ rails (= 3.0.7)
92
90
  rcov
93
91
  rspec (~> 2.3.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -0,0 +1,6 @@
1
+ module Tower::Queue::WithDelayedJob
2
+ private
3
+ def add(service,*args)
4
+ Delayed::Job.enqueue service.new(*args)
5
+ end
6
+ end
@@ -30,7 +30,7 @@ class Tower::Service
30
30
  # called by Service.now after initializing new service
31
31
  # override with service logic
32
32
  def run; raise NotImplementedError; end
33
- alias :perform :run
33
+ def perform; run; end
34
34
 
35
35
  private
36
36
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "tower"
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jordan Glasner"]
12
- s.date = "2012-01-02"
12
+ s.date = "2012-02-17"
13
13
  s.description = "Put those models on a diet! Move your app logic to app/services"
14
14
  s.email = "jordan@digitalignition.com"
15
15
  s.extra_rdoc_files = [
@@ -66,6 +66,7 @@ Gem::Specification.new do |s|
66
66
  "lib/tower/enqueue.rb",
67
67
  "lib/tower/queue.rb",
68
68
  "lib/tower/queue/with_delayed_job.rb",
69
+ "lib/tower/queue/with_resque.rb",
69
70
  "lib/tower/service.rb",
70
71
  "spec/spec_helper.rb",
71
72
  "spec/tower/engine_spec.rb",
@@ -85,20 +86,20 @@ Gem::Specification.new do |s|
85
86
  s.specification_version = 3
86
87
 
87
88
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
88
- s.add_runtime_dependency(%q<rails>, ["~> 3.0.1"])
89
+ s.add_runtime_dependency(%q<rails>, ["= 3.0.7"])
89
90
  s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
90
91
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
91
92
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
92
93
  s.add_development_dependency(%q<rcov>, [">= 0"])
93
94
  else
94
- s.add_dependency(%q<rails>, ["~> 3.0.1"])
95
+ s.add_dependency(%q<rails>, ["= 3.0.7"])
95
96
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
96
97
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
97
98
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
98
99
  s.add_dependency(%q<rcov>, [">= 0"])
99
100
  end
100
101
  else
101
- s.add_dependency(%q<rails>, ["~> 3.0.1"])
102
+ s.add_dependency(%q<rails>, ["= 3.0.7"])
102
103
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
103
104
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
104
105
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
metadata CHANGED
@@ -1,82 +1,79 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: tower
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
4
5
  prerelease:
5
- version: 0.1.3
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Jordan Glasner
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-01-02 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-02-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: rails
17
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2163747420 !ruby/object:Gem::Requirement
18
17
  none: false
19
- requirements:
20
- - - ~>
21
- - !ruby/object:Gem::Version
22
- version: 3.0.1
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
21
+ version: 3.0.7
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
24
+ version_requirements: *2163747420
25
+ - !ruby/object:Gem::Dependency
27
26
  name: rspec
28
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ requirement: &2163745120 !ruby/object:Gem::Requirement
29
28
  none: false
30
- requirements:
29
+ requirements:
31
30
  - - ~>
32
- - !ruby/object:Gem::Version
31
+ - !ruby/object:Gem::Version
33
32
  version: 2.3.0
34
33
  type: :development
35
34
  prerelease: false
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *2163745120
36
+ - !ruby/object:Gem::Dependency
38
37
  name: bundler
39
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirement: &2163744640 !ruby/object:Gem::Requirement
40
39
  none: false
41
- requirements:
40
+ requirements:
42
41
  - - ~>
43
- - !ruby/object:Gem::Version
42
+ - !ruby/object:Gem::Version
44
43
  version: 1.0.0
45
44
  type: :development
46
45
  prerelease: false
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
46
+ version_requirements: *2163744640
47
+ - !ruby/object:Gem::Dependency
49
48
  name: jeweler
50
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ requirement: &2163744160 !ruby/object:Gem::Requirement
51
50
  none: false
52
- requirements:
51
+ requirements:
53
52
  - - ~>
54
- - !ruby/object:Gem::Version
53
+ - !ruby/object:Gem::Version
55
54
  version: 1.6.4
56
55
  type: :development
57
56
  prerelease: false
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
57
+ version_requirements: *2163744160
58
+ - !ruby/object:Gem::Dependency
60
59
  name: rcov
61
- requirement: &id005 !ruby/object:Gem::Requirement
60
+ requirement: &2163742520 !ruby/object:Gem::Requirement
62
61
  none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
67
66
  type: :development
68
67
  prerelease: false
69
- version_requirements: *id005
68
+ version_requirements: *2163742520
70
69
  description: Put those models on a diet! Move your app logic to app/services
71
70
  email: jordan@digitalignition.com
72
71
  executables: []
73
-
74
72
  extensions: []
75
-
76
- extra_rdoc_files:
73
+ extra_rdoc_files:
77
74
  - LICENSE.txt
78
75
  - README.rdoc
79
- files:
76
+ files:
80
77
  - .document
81
78
  - .rspec
82
79
  - Gemfile
@@ -126,6 +123,7 @@ files:
126
123
  - lib/tower/enqueue.rb
127
124
  - lib/tower/queue.rb
128
125
  - lib/tower/queue/with_delayed_job.rb
126
+ - lib/tower/queue/with_resque.rb
129
127
  - lib/tower/service.rb
130
128
  - spec/spec_helper.rb
131
129
  - spec/tower/engine_spec.rb
@@ -135,34 +133,31 @@ files:
135
133
  - spec/tower_spec.rb
136
134
  - tower.gemspec
137
135
  homepage: http://github.com/glasner/tower
138
- licenses:
136
+ licenses:
139
137
  - MIT
140
138
  post_install_message:
141
139
  rdoc_options: []
142
-
143
- require_paths:
140
+ require_paths:
144
141
  - lib
145
- required_ruby_version: !ruby/object:Gem::Requirement
142
+ required_ruby_version: !ruby/object:Gem::Requirement
146
143
  none: false
147
- requirements:
148
- - - ">="
149
- - !ruby/object:Gem::Version
150
- hash: -2208790451740274206
151
- segments:
144
+ requirements:
145
+ - - ! '>='
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ segments:
152
149
  - 0
153
- version: "0"
154
- required_rubygems_version: !ruby/object:Gem::Requirement
150
+ hash: -1225497186517947885
151
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
152
  none: false
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: "0"
153
+ requirements:
154
+ - - ! '>='
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
160
157
  requirements: []
161
-
162
158
  rubyforge_project:
163
159
  rubygems_version: 1.8.10
164
160
  signing_key:
165
161
  specification_version: 3
166
162
  summary: Adds /app/services to Rails
167
163
  test_files: []
168
-