postjob 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/postjob/cli/ps.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a172df826259a7283f1fd1aa694aed37596f4b0
4
- data.tar.gz: 2b054ed712e6cb09047a1612b4cb5e54e3a85468
3
+ metadata.gz: 79193eb5de0de5ad5a9de485fd40378c66907c22
4
+ data.tar.gz: 252abc25bfdb766849168de4bef806c5938d9983
5
5
  SHA512:
6
- metadata.gz: 9dc0cb3dfe11a1c738c023e5bcfd7e652dae744cb53a5ad163cdeb55e1246fcabb0d14fdb10d6d970b485cac8371d1850d39668437df6880ca05437f45275e0e
7
- data.tar.gz: 3f10f92136f315c73e39ba9b8f6fa8aed2c977f390aa583b61390a70122c51b01106fae3f1facf76e82eea3b5dcdf7b953676656267bd07f6c1b765f703ccabd
6
+ metadata.gz: 458b190937d133249530d48d6cc16d96f94c8ced9af36d944e1c71144112045849ea04fdd348346b9dd419106eae4a189a3acd1b6c966fea5c543d7474261d8f
7
+ data.tar.gz: 6d7e015d27c697b26bd8aa39d045e1efaada633fcd1b2db11a0acdb83c48a69e8e77ab7313bd98e26a1db3412a9107b3f3ca36e4e17a091fae68d0cd2d103579
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postjob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel