job_state 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d43bd31e8cd6084efa8edcb9316612426a85647
4
- data.tar.gz: 67aacf55cba04a3770f25894b91f28421c641150
3
+ metadata.gz: ac16ec640b8911233339170876905bb37350276e
4
+ data.tar.gz: 4e44c7de545c36a60f1c3919b31aca11150dd191
5
5
  SHA512:
6
- metadata.gz: bf407370076e117af34689363b7eaed387c7a31b1a1c90a5762be055a9c9e18a94c670212cddc6612371ac818dd2c78ec79422348e90952380dabdf737c45f0d
7
- data.tar.gz: 52287b7dc80ec2d7304482e20f69c946a27030d238119531aadf409c1d03012633ba2a256f501398dbba3612795853af099dbdf7eea9e4e795d99d6725105c1b
6
+ metadata.gz: 931d170c6fe560fa055c0b41fdf86eebb7c26d6cfe1a45d187e7b59391f6d54a90d9291f73773a4f21094a5349a48da5faa4eaf52d235a032b97073289cd878a
7
+ data.tar.gz: 9e9b62be01838b5e32803931f757e78825c920f7eba4a0bd676722d1a8c84c751ef6de7185c312ca9b28039af3e0be4f79daa94811b89a3dc235bc053bf5e3f5
@@ -20,12 +20,12 @@
20
20
  success: function(data) {
21
21
  if (data.job_state == 'success') {
22
22
  if (self._successFn) {
23
- self._successFn();
23
+ self._successFn(data);
24
24
  }
25
25
  }
26
26
  else if (data.job_state == 'error') {
27
27
  if (self._errorFn) {
28
- self._errorFn();
28
+ self._errorFn(data);
29
29
  }
30
30
  }
31
31
  else {
@@ -1,3 +1,3 @@
1
1
  module JobState
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: job_state
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wyatt Greene
8
8
  - Ian McLean
9
+ - Parker Morse
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2018-03-13 00:00:00.000000000 Z
13
+ date: 2019-06-26 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: rails
@@ -116,36 +117,36 @@ specification_version: 4
116
117
  summary: This engine provides a way to poll resque jobs for their status and display
117
118
  to the user.
118
119
  test_files:
120
+ - test/dummy/app/controllers/application_controller.rb
121
+ - test/dummy/app/views/layouts/application.html.erb
119
122
  - test/dummy/app/assets/javascripts/application.js
120
123
  - test/dummy/app/assets/stylesheets/application.css
121
- - test/dummy/app/controllers/application_controller.rb
122
124
  - test/dummy/app/helpers/application_helper.rb
123
- - test/dummy/app/views/layouts/application.html.erb
125
+ - test/dummy/bin/rake
124
126
  - test/dummy/bin/bundle
125
127
  - test/dummy/bin/rails
126
- - test/dummy/bin/rake
127
- - test/dummy/config/application.rb
128
- - test/dummy/config/boot.rb
129
- - test/dummy/config/database.yml
130
- - test/dummy/config/environment.rb
131
- - test/dummy/config/environments/development.rb
128
+ - test/dummy/config/routes.rb
129
+ - test/dummy/config/locales/en.yml
132
130
  - test/dummy/config/environments/production.rb
131
+ - test/dummy/config/environments/development.rb
133
132
  - test/dummy/config/environments/test.rb
133
+ - test/dummy/config/environment.rb
134
+ - test/dummy/config/application.rb
135
+ - test/dummy/config/database.yml
136
+ - test/dummy/config/boot.rb
134
137
  - test/dummy/config/initializers/backtrace_silencers.rb
135
- - test/dummy/config/initializers/filter_parameter_logging.rb
136
- - test/dummy/config/initializers/inflections.rb
137
138
  - test/dummy/config/initializers/mime_types.rb
138
- - test/dummy/config/initializers/secret_token.rb
139
+ - test/dummy/config/initializers/filter_parameter_logging.rb
139
140
  - test/dummy/config/initializers/session_store.rb
140
141
  - test/dummy/config/initializers/wrap_parameters.rb
141
- - test/dummy/config/locales/en.yml
142
- - test/dummy/config/routes.rb
142
+ - test/dummy/config/initializers/secret_token.rb
143
+ - test/dummy/config/initializers/inflections.rb
143
144
  - test/dummy/config.ru
144
- - test/dummy/public/404.html
145
+ - test/dummy/Rakefile
146
+ - test/dummy/public/favicon.ico
145
147
  - test/dummy/public/422.html
146
148
  - test/dummy/public/500.html
147
- - test/dummy/public/favicon.ico
148
- - test/dummy/Rakefile
149
+ - test/dummy/public/404.html
149
150
  - test/dummy/README.rdoc
150
151
  - test/integration/navigation_test.rb
151
152
  - test/job_state_test.rb