fist_of_fury 0.2.0 → 0.2.1

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: a87495360273789b52e5c9c5f1b0157e8944fb93
4
- data.tar.gz: 50d8d0dc0029683dc4c85080e6075520c5c02795
3
+ metadata.gz: 98d5c2791e791683dffafb1510269b5ce139c9da
4
+ data.tar.gz: 7baf2623e233dcb2935b46f871b18d71c6149528
5
5
  SHA512:
6
- metadata.gz: fc8a70ba4038aa43a0c97966a9728d4b7ea876a6450d51476c06f59ca1580e77a81906c465175bd9b0df398cc176f0040b16452acfbcbff106f10e0dbef05b1c
7
- data.tar.gz: 1f533955bb5b36148f0dd51bc025d0f0a3c4b8d14197b6bf0fce161d99bd2d8b057f5feae8273d81429b8799d01bc83c71b390ef73bc12f2b8120f0df133af3d
6
+ metadata.gz: 438613899031507918a906d7dccc987a851fb10b68e2ac5ab90a053fc2ca4dd31e1c701c69de170a2bc5f0b5f1309e6388175ac8b1f27d22010c70bf83df28cc
7
+ data.tar.gz: e8a3e1556f64cdbd66ad12748e767f1faa76f67f2f2a32c0100cc37c2903c79ff4b9f92282bc3f025716a2f11c9941d9d055a835d648b32341141b18849ba85e
data/README.md CHANGED
@@ -30,13 +30,17 @@ Or install it yourself as:
30
30
 
31
31
  $ gem install fist_of_fury
32
32
 
33
+ ### Rails
34
+
35
+ Run the install generator, which installs an initializer:
36
+
37
+ $ rails generate fist_of_fury:install
38
+
33
39
  ## Usage
34
40
 
35
41
  You can schedule your jobs within the jobs themselves:
36
42
 
37
43
  ```Ruby
38
- # app/jobs/say_hi_job.rb
39
-
40
44
  class SayHiJob
41
45
  include SuckerPunch::Job
42
46
  include FistOfFury::Recurrent
@@ -49,34 +53,22 @@ class SayHiJob
49
53
  end
50
54
  ```
51
55
 
52
- Then in the initializer:
56
+ Somewhere, you need to kick off the process:
53
57
 
54
58
  ```Ruby
55
- # config/initializers/fist_of_fury.rb
56
-
57
- # Ensures the jobs run only in a web server.
58
- if defined?(Rails::Server)
59
- FistOfFury.attack!
60
- end
59
+ FistOfFury.attack!
61
60
  ```
62
61
 
63
- Or you can even specify the recurrence rules all within the initializer:
62
+ You can specify the recurrence rules during kickoff:
64
63
 
65
64
  ```Ruby
66
- # config/initializers/fist_of_fury.rb
67
-
68
- # Ensures the jobs run only in a web server.
69
- if defined?(Rails::Server)
70
- FistOfFury.attack! do
71
- LogJob.recurs { secondly(3) }
72
- end
65
+ FistOfFury.attack! do
66
+ LogJob.recurs { secondly(3) }
73
67
  end
74
68
  ```
75
69
 
76
70
  ## Configuration Options
77
71
 
78
- In the initializer:
79
-
80
72
  ```Ruby
81
73
  FistOfFury.configure do |config|
82
74
  config.utc = true # false by default; makes all time within Fist of Fury UTC
data/fist_of_fury.gemspec CHANGED
@@ -25,11 +25,11 @@ Gem::Specification.new do |gem|
25
25
  gem.add_development_dependency 'guard-rspec'
26
26
  gem.add_development_dependency 'ruby_gntp'
27
27
 
28
- if RUBY_PLATFORM != "java"
28
+ if RUBY_PLATFORM != 'java'
29
29
  gem.add_development_dependency 'coveralls'
30
30
  end
31
31
 
32
32
  gem.add_dependency 'sucker_punch', '>= 1.0.2'
33
33
  gem.add_dependency 'celluloid', '>= 0.15.2'
34
- gem.add_dependency 'ice_cube', '~> 0.11.3'
34
+ gem.add_dependency 'ice_cube', '~> 0.12.0'
35
35
  end
@@ -1,3 +1,3 @@
1
1
  module FistOfFury
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fist_of_fury
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Rieken
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2014-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.11.3
145
+ version: 0.12.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.11.3
152
+ version: 0.12.0
153
153
  description: Recurring jobs for Sucker Punch
154
154
  email:
155
155
  - joshua@joshuarieken.com