postjob 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/postjob/cli/ps.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79193eb5de0de5ad5a9de485fd40378c66907c22
|
4
|
+
data.tar.gz: 252abc25bfdb766849168de4bef806c5938d9983
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 458b190937d133249530d48d6cc16d96f94c8ced9af36d944e1c71144112045849ea04fdd348346b9dd419106eae4a189a3acd1b6c966fea5c543d7474261d8f
|
7
|
+
data.tar.gz: 6d7e015d27c697b26bd8aa39d045e1efaada633fcd1b2db11a0acdb83c48a69e8e77ab7313bd98e26a1db3412a9107b3f3ca36e4e17a091fae68d0cd2d103579
|
data/lib/postjob/cli/ps.rb
CHANGED
@@ -7,6 +7,8 @@ module Postjob::CLI
|
|
7
7
|
private
|
8
8
|
|
9
9
|
def ps_query(tags:, limit:)
|
10
|
+
limit = Integer(limit)
|
11
|
+
|
10
12
|
sql = <<-SQL
|
11
13
|
SELECT
|
12
14
|
postjobs.id,
|
@@ -76,7 +78,7 @@ module Postjob::CLI
|
|
76
78
|
print_results query: query
|
77
79
|
end
|
78
80
|
|
79
|
-
def ps_full(*ids, limit: 100, tags: nil)
|
81
|
+
def ps_full(*ids, limit: "100", tags: nil)
|
80
82
|
connect_to_database!
|
81
83
|
|
82
84
|
query = ps_query(tags: tags, limit: limit)
|