extface 0.6.2 → 0.6.3

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: f16bc8f1e7ca869e7d047a48a537e929af5b4c47
4
- data.tar.gz: 765d65dd09939aa371ed039e6b2a294a66f9de6f
3
+ metadata.gz: eb74786ee666c424c8977bd4ccaed5e360a18914
4
+ data.tar.gz: 629436ddadc8c4318a123034e58266ee848ca34e
5
5
  SHA512:
6
- metadata.gz: '09bf70bedb4e4aece277206127ce886e52ff8e34d03a22b687fe1106392188ff869e2767a36f60737509a9e62d1c578260c14c22179db31e642efdc45b073a14'
7
- data.tar.gz: 829d396c2765c2b7c4bd88dd552c895257da677599ee1a68a2c381f04f84725457ca4bd7dd5fae344d8517719ecb60cf60bccd70aa33aeb7a9e9a617de797755
6
+ metadata.gz: ca87e9b6830632695727cee3abeb09495a11f09601bd9eeb2f4db961dc8e9dc98f3d19cededc30986bade10d46091da5ea4fe1a94ee16218d1e6157fc168b5f0
7
+ data.tar.gz: 5fe20af7b2587128749fcbe94be9acb372a3208dbb44caf380171bbc0a4ac0b1ad402c52eec45964ea37fad6ca77c7472e6a4578b383fce04ece9499c7b45fe2
@@ -70,7 +70,7 @@ module Extface
70
70
  @price, @text1, @text2, @tax_group, @qty, @percent, @neto, @number = attributes[:price], attributes[:text1].to_s, attributes[:text2].to_s, attributes[:tax_group], attributes[:qty], attributes[:percent], attributes[:neto], attributes[:number]
71
71
  raise "invalid price" unless price.kind_of?(Float)
72
72
  raise "invalid tax group" if tax_group.present? && !tax_group.kind_of?(Fixnum)
73
- raise "invalid qty" if qty.present? && !qty.kind_of(Float)
73
+ raise "invalid qty" if qty.present? && !qty.kind_of?(Float)
74
74
  end
75
75
  end
76
76
 
@@ -98,7 +98,7 @@ module Extface
98
98
  text1: charge.name,
99
99
  text2: charge.description,
100
100
  tax_group: charge.find_tax_group_mapping_for(self), #find tax group mapping by ratio , not nice
101
- qty: charge.qty,
101
+ qty: charge.qty.try(:to_f),
102
102
  neto: neto,
103
103
  percent_ratio: percent_ratio #TODO check format
104
104
  )
@@ -1,3 +1,3 @@
1
1
  module Extface
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
Binary file
@@ -18729,3 +18729,20 @@ Completed 200 OK in 10004ms (ActiveRecord: 3.2ms)
18729
18729
  ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
18730
18730
   (0.1ms) begin transaction
18731
18731
   (0.1ms) commit transaction
18732
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18733
+  (78.8ms) DROP TABLE IF EXISTS "extface_devices"
18734
+  (0.1ms) SELECT sqlite_version(*)
18735
+  (56.9ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar, "name" varchar, "extfaceable_id" integer, "extfaceable_type" varchar, "driver_id" integer, "created_at" datetime, "updated_at" datetime, "encoding" varchar)
18736
+  (54.5ms) DROP TABLE IF EXISTS "extface_drivers"
18737
+  (57.3ms) CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "settings" text, "created_at" datetime, "updated_at" datetime)
18738
+  (51.9ms) DROP TABLE IF EXISTS "extface_jobs"
18739
+  (54.4ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar, "error" varchar, "failed_at" datetime, "completed_at" datetime, "connected_at" datetime, "started_at" datetime)
18740
+  (65.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
18741
+  (65.4ms) DROP TABLE IF EXISTS "extface_serial_configs"
18742
+  (65.6ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "driver_id" integer, "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)
18743
+  (60.3ms) DROP TABLE IF EXISTS "shops"
18744
+  (62.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
18745
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
18746
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
18747
+  (0.1ms) begin transaction
18748
+  (0.0ms) commit transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extface
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Vangelov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-15 00:00:00.000000000 Z
11
+ date: 2018-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis