super_tools 0.0.8 → 0.0.9

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: d443bafc6745fef2db08921770d63a6f26e9a635
4
- data.tar.gz: b65a9f068b176d23dab5e66826f74fa270d58a39
3
+ metadata.gz: e7f541f7d0fa4ca10c7edb72098455fe490a71e1
4
+ data.tar.gz: 02f345d7dbdd4d99f9a95ee0acd33b579b870af5
5
5
  SHA512:
6
- metadata.gz: c110a2136900c69371e368b8e67ed065f024eb61bf503591c4621ed73fda104699aacc898d603ac622f27b6385f0e708227d9cf3762f479eb6478bb4da5c799b
7
- data.tar.gz: 0c6cb619ccd948e8def86bac5600060a10d56062fa2e951e5666dea81db9f61d26960d4e33169707939f76b4e8a7a0e2f1b8bfa0b26523d6f8e3d352b450c702
6
+ metadata.gz: 5a5ddbae8c40b47a10d9a6f1379da0c2d92caeedfb79343a0988d818c648c78cf81ff34fb4bbeec845dcafc3790b4cb6f08f178ed7ccbb8afdaa8923237a6dd4
7
+ data.tar.gz: ddfe66efb7a43e9903bd4e8c007b8fa24a5b80306f94241295c3655f78b19bd735aad31efafa4eeac825b1601860cd7aede2e789fc506f353064a3cfbaff7da3
@@ -4,6 +4,13 @@ module SuperFormatter
4
4
  find(m)
5
5
  end
6
6
 
7
+ def complete?
8
+ indexes.keys.each do |k, i|
9
+ return false if send(k).nil?
10
+ end
11
+ true
12
+ end
13
+
7
14
  protected
8
15
 
9
16
  def find(m)
@@ -10,6 +10,7 @@ module SuperFormatter
10
10
  delegate :total_order_amount, to: :row
11
11
  delegate :store_id, to: :row
12
12
  delegate :note, to: :row
13
+ delegate :complete?, to: :row
13
14
 
14
15
  def order_id
15
16
  row.order_id.gsub("#", '')
@@ -1,3 +1,3 @@
1
1
  module SuperTools
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - eddie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-07 00:00:00.000000000 Z
11
+ date: 2019-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler