async_request 0.0.1 → 0.0.2

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: cdb61fdcbf0c00605261d249aa526c7b62cc5937
4
- data.tar.gz: aba340ec4b640116ff853c007ac7ab2c92e2b7c5
3
+ metadata.gz: 5432ced3626cdbb31445a280765d615bc3868307
4
+ data.tar.gz: 64488e701cba1eea0d951757e06de4f9494b5573
5
5
  SHA512:
6
- metadata.gz: befccc1cecbbd1d08e04d1899f5e494febe13675e6b91266e2ee8bca2ddf9aff520277914d88235c7a68e75f56b62310c0cb13bfd6f69022aa09dee191d4a6d4
7
- data.tar.gz: a8d8ae4c2d99e4d9ae078868390bca2320d4e9b18f89fb1d09f9285dfca070d2710271dfee303546b67c2fdafbe9b54735d761a73c9853e6ff3f9d03404628c8
6
+ metadata.gz: 8908245821def4e90e844150fead4796c0d318b5e0165cb6e2a363c1c3c494744f8e54961b44df4f1c5a1991771b5e2ec598628ab0f5687a57b3356cd2f124b5
7
+ data.tar.gz: f91c5cfc6bd39bba80193a494fcada950cb3a6e43b291f73866f899603c1787abf3d7ab18aecdacfa2c2d06eb439638d91f86216fc0af94473284f4a8f26ddc6
@@ -1,3 +1,3 @@
1
1
  module AsyncRequest
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,12 @@
1
+ require 'rails/generators/base'
2
+
3
+
4
+ class AsyncRequestGenerator < Rails::Generators::Base
5
+ source_root File.expand_path("../../templates", __FILE__)
6
+
7
+ def copy_initializer_file
8
+ file_name = "create_async_request_jobs.rb"
9
+ now = DateTime.current.strftime("%Y%m%d%H%M%S")
10
+ copy_file file_name, "db/migrate/#{now}_#{file_name}"
11
+ end
12
+ end
@@ -0,0 +1,16 @@
1
+ class CreateAsyncRequestJobs < ActiveRecord::Migration
2
+ def change
3
+ create_table :async_request_jobs do |t|
4
+ t.string :worker
5
+ t.integer :status
6
+ t.integer :status_code
7
+ t.text :response
8
+ t.string :uid
9
+ t.text :params
10
+
11
+ t.timestamps null: false
12
+ end
13
+ add_index :async_request_jobs, :status
14
+ add_index :async_request_jobs, :uid, unique: true
15
+ end
16
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async_request
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias De Santi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-20 00:00:00.000000000 Z
11
+ date: 2016-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -175,7 +175,9 @@ files:
175
175
  - lib/async_request.rb
176
176
  - lib/async_request/engine.rb
177
177
  - lib/async_request/version.rb
178
+ - lib/generators/async_request_generator.rb
178
179
  - lib/tasks/async_request_tasks.rake
180
+ - lib/templates/create_async_request_jobs.rb
179
181
  - spec/controllers/async_request/jobs_controller_spec.rb
180
182
  - spec/dummy/README.rdoc
181
183
  - spec/dummy/Rakefile