sucker_punch 1.0.5 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -0
- data/lib/sucker_punch/version.rb +1 -1
- data/lib/sucker_punch.rb +4 -0
- data/rails_app_example/app/controllers/jobs_controller.rb +6 -0
- data/rails_app_example/app/jobs/crashing_job.rb +9 -0
- data/rails_app_example/app/views/jobs/index.html.erb +24 -3
- data/rails_app_example/config/initializers/store.rb +3 -0
- data/rails_app_example/config/routes.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c06fbb508d46f70a9492afa140eacb67e7520788
|
4
|
+
data.tar.gz: 8e4ab9baba4967f6a6f79066573cdeae4dc5150c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf3c3a70ce5520654910b7a0caabed5c38ca61a2c45bd6c52a403808f84dca739180c652e363d212261aff8bebaaf587b0c6a6b7ed3b0c2dc0a0cd135ec11775
|
7
|
+
data.tar.gz: 181c24cd4b0991aabf73c985d28a25fe7bf2ef6186b1d953acf37ebcf59f7b392935ee3b1a177faf8ff1b456a2b2abac8952940281726c45154fabda378f1553
|
data/CHANGES.md
CHANGED
data/lib/sucker_punch/version.rb
CHANGED
data/lib/sucker_punch.rb
CHANGED
@@ -4,6 +4,11 @@
|
|
4
4
|
<%= submit_tag "Add 1 job to store" %>
|
5
5
|
<% end %>
|
6
6
|
|
7
|
+
<br />
|
8
|
+
<%= form_tag crashing_jobs_path do %>
|
9
|
+
<%= submit_tag "Add 1 crashing job to store" %>
|
10
|
+
<% end %>
|
11
|
+
|
7
12
|
<br />
|
8
13
|
<%= form_tag multiple_jobs_path do %>
|
9
14
|
<%= submit_tag "Add 1 job to store every 1 second for 5 seconds" %>
|
@@ -12,8 +17,24 @@
|
|
12
17
|
|
13
18
|
<h2>Store Content</h2>
|
14
19
|
<p>
|
15
|
-
<% @store.
|
16
|
-
|
17
|
-
|
20
|
+
<% if @store.any? %>
|
21
|
+
<% @store.each do |item| %>
|
22
|
+
<%= item %>
|
23
|
+
<br />
|
24
|
+
<% end %>
|
25
|
+
<% else %>
|
26
|
+
(nothing)
|
18
27
|
<% end %>
|
19
28
|
</p>
|
29
|
+
|
30
|
+
<h2>Crashes</h2>
|
31
|
+
<p>
|
32
|
+
<% if @crashes.any? %>
|
33
|
+
<% @crashes.each do |item| %>
|
34
|
+
<%= item %>
|
35
|
+
<br />
|
36
|
+
<% end %>
|
37
|
+
<% else %>
|
38
|
+
(none)
|
39
|
+
<% end %>
|
40
|
+
</p>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sucker_punch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.1'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Hilkert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -96,6 +96,7 @@ files:
|
|
96
96
|
- rails_app_example/app/assets/stylesheets/application.css
|
97
97
|
- rails_app_example/app/controllers/application_controller.rb
|
98
98
|
- rails_app_example/app/controllers/jobs_controller.rb
|
99
|
+
- rails_app_example/app/jobs/crashing_job.rb
|
99
100
|
- rails_app_example/app/jobs/multiple_job.rb
|
100
101
|
- rails_app_example/app/jobs/single_job.rb
|
101
102
|
- rails_app_example/app/models/.keep
|