topfivebids 0.0.0
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 +7 -0
- data/lib/topfivebids.rb +14 -0
- metadata +43 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 809df17cb7f1b25ff998726d894543f5bfc31aad
|
|
4
|
+
data.tar.gz: 0433d1b2445d106a01e21f5cf56d51786301b94c
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: a95727ab26e45e09fd2f0c89e0dbf8da5c922dc50e57f01e0804bc49b43970cc6c96db1128e040906c0864653e9f22a8cbb6f0f0f4f6c9b92c278453451e2de2
|
|
7
|
+
data.tar.gz: d2748ff1e2541b0344c641870992c27a0199dc86dd10fe61a57383b0e0d15334348edd86ccbbcc8fc2b52078940c0df67ccfc6ed2d4ca923b7eae9565b41d6f9
|
data/lib/topfivebids.rb
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
namespace :app do
|
|
2
|
+
desc <<-DESC
|
|
3
|
+
This will generate the top 5 bids and send the email to the person who has booked the taxi.
|
|
4
|
+
DESC
|
|
5
|
+
task :generate_top_5_bids => [:environment] do
|
|
6
|
+
#begin
|
|
7
|
+
Taxi.where(:open_for_bidding => false).each do |taxi|
|
|
8
|
+
UserMailer.report_email(taxi).deliver
|
|
9
|
+
end
|
|
10
|
+
#rescue Exception => e
|
|
11
|
+
# raise e.message.inspect
|
|
12
|
+
#end
|
|
13
|
+
end
|
|
14
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: topfivebids
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- abhishek nag
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2013-12-23 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: a simple gem
|
|
14
|
+
email: abhinag739@gmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/topfivebids.rb
|
|
20
|
+
homepage:
|
|
21
|
+
licenses: []
|
|
22
|
+
metadata: {}
|
|
23
|
+
post_install_message:
|
|
24
|
+
rdoc_options: []
|
|
25
|
+
require_paths:
|
|
26
|
+
- lib
|
|
27
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
28
|
+
requirements:
|
|
29
|
+
- - '>='
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '0'
|
|
32
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
33
|
+
requirements:
|
|
34
|
+
- - '>='
|
|
35
|
+
- !ruby/object:Gem::Version
|
|
36
|
+
version: '0'
|
|
37
|
+
requirements: []
|
|
38
|
+
rubyforge_project:
|
|
39
|
+
rubygems_version: 2.1.11
|
|
40
|
+
signing_key:
|
|
41
|
+
specification_version: 4
|
|
42
|
+
summary: To close a bid
|
|
43
|
+
test_files: []
|