faktura 0.1.3 → 0.1.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: 7072aa8cc361f0dd60bfa0dc3c603ce4859a3c93
4
- data.tar.gz: 3eca1aa8964aed6d0d694b316ea51444c6d84703
3
+ metadata.gz: f3ce3f3b10122fdb005676832e669ccfc4c886d8
4
+ data.tar.gz: c799f81cd0e10bf7cecff9292d21e2c03f6fe719
5
5
  SHA512:
6
- metadata.gz: 3f4d375c86788f5d30165663c776956a9c90c52ab16d6ac6208f56da987d4c698dfd8357a6ca0dde9b64b8a1474e67c8eb651061db5716cdb375487934e7b530
7
- data.tar.gz: 391d51e077e46f8f00b077d31da9d8287a65ce61a214c9359ea25d3aae9d8a6ab19ad6e88352c5ee71e9bcea32a4320937a411673b5b6567ce9883824d1d7ab7
6
+ metadata.gz: 460fabedf550326be0a4ee461fc99f032559dca83e4194d0300ae44b819bfcd6573eb7f7fda8b2ed902e4379927bf6fa9a6703ddf0e09a03924c0bb5e5d9d7a6
7
+ data.tar.gz: 0edc19cb13e786062e778ca8eeb27197a7800a4d82679eeb811a7bef06dfd04d2851e93b129d12021de7c5023dd41b3d6efeb5312c896e75aff35ddd8b5aa5a5
data/lib/faktura/cli.rb CHANGED
@@ -41,7 +41,7 @@ module Faktura
41
41
 
42
42
  if printer
43
43
  puts "Printing #{stamped_filename || filename} to printer #{printer}".colorize(:green)
44
- system('lpr', '-P', printer, stamped_filename || filename)
44
+ system('lpr', '-o', 'sides=two-sided-long-edge', '-P', printer, stamped_filename || filename)
45
45
  end
46
46
 
47
47
  if open?
data/lib/faktura/pdf.rb CHANGED
@@ -77,8 +77,13 @@ class Faktura::PDF
77
77
  date: /Transaction\nType\n+([\d\/]+)/,
78
78
  amount: /Applied\nAmount\n[($]+([\d.]+)[)]/,
79
79
  currency: 'USD'
80
+ },
81
+ planyway: {
82
+ name: /Planyway PRO Monthly/,
83
+ date: /^(\d{2}\/\d{2}\/\d{4})/,
84
+ amount: /([\d.]*) payment/,
85
+ currency: 'USD'
80
86
  }
81
-
82
87
  }
83
88
 
84
89
  def to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faktura
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Koziej