imperituroard 1.1.3 → 1.1.4

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: 44204f257643647687e7d62d06c363274cad09f3
4
- data.tar.gz: 710581ba122cda979fd1989107dd981f028c456e
3
+ metadata.gz: 0217c1cc75b261d264e0bda7b844973fa538e72a
4
+ data.tar.gz: 153d87dad8e3241911d7dfc6fe8deb5a589c4062
5
5
  SHA512:
6
- metadata.gz: fd5089b028b66fb283f57a0f5a870113ba4ad0c183c056937c2440b09c38c27d5166cb4d8670b95aa8da4f083cb6abcbe981b61a0474eb6cc1a8caeeda44a133
7
- data.tar.gz: c5a0e5737f947b4dfcd360170309cf8bf2c955532b35e3f93e84280d1ee39c8a0751cf7009dbcff36c9da2afcc73fd351e8531135aed8612572966d6184ec63a
6
+ metadata.gz: 6deca94580b39be517b6f7a258712c26ba081aa41f899c5ba204195706262652590a2de6747d26131e7650e48c55ef49a21e5cc606bffa1d5059277851154b7f
7
+ data.tar.gz: aac3ba712d125edea747bccddc7fa6c81b8c016f35752acf5f5e49f841ada625959a51a061c45c2d4854f1494abc3efea615e73273f61071c4e09fd463d5d48f
@@ -214,7 +214,6 @@ class IotFunctions_2
214
214
  end
215
215
 
216
216
 
217
-
218
217
  def add_device_to_prof2_2(request_full, real_ip, remote_ip)
219
218
 
220
219
  #{"autorization"=>{"login"=>"test", "token"=>"tE3aFvs27"}, "devlist"=>[{"devices"=>{"imei"=>123419520034999, "type"=>"1000002", "profile"=>0}}]}
@@ -1381,10 +1380,6 @@ class IotFunctions_2
1381
1380
  end
1382
1381
 
1383
1382
 
1384
-
1385
-
1386
-
1387
-
1388
1383
  ################################################
1389
1384
  ############technology procedures###############
1390
1385
  ################################################
@@ -1404,8 +1399,6 @@ class IotFunctions_2
1404
1399
  end
1405
1400
 
1406
1401
 
1407
-
1408
-
1409
1402
  #for internal use. Add new device model
1410
1403
  def add_model_to_mongo(model, manufacture_id, manufacture_name, device_type, description, note)
1411
1404
  model = {
@@ -507,6 +507,7 @@ class MongoIot
507
507
  #function for get iot platform credentials from profile
508
508
  #universal procedure. use profile or profile id
509
509
  def get_iot_oceanconn_credent_2(profile)
510
+ input_in = {:profile => profile}
510
511
  out_resp = {}
511
512
  begin
512
513
  result_ps = []
@@ -528,7 +529,7 @@ class MongoIot
528
529
  rescue
529
530
  out_resp = {:code => 500, :result => "get_iot_oceanconn_credent_2: Process failed"}
530
531
  end
531
- internal_func.printer_texter(out_resp, "debug")
532
+ internal_func.printer_texter({:input_in => input_in, :out_resp => out_resp, :fun => "get_iot_oceanconn_credent_2"}, "debug")
532
533
  out_resp
533
534
  end
534
535
 
@@ -596,6 +597,7 @@ class MongoIot
596
597
 
597
598
 
598
599
  def compare_profiles(profile1, profile2)
600
+ input_inf = {:profile1 => profile1, :profile2 => profile2}
599
601
  out_answ = {}
600
602
  ch1 = internal_func.if_digit_or_string(profile1)
601
603
  ch2 = internal_func.if_digit_or_string(profile2)
@@ -632,10 +634,12 @@ class MongoIot
632
634
  out_answ = {:code => 200, :result => "compare_profiles: profiles are different", :is_the_same => false, :data_type => "different"}
633
635
  end
634
636
  end
637
+ internal_func.printer_texter({:input_inf => input_inf, :out => out_answ, :fun => "compare_profiles"}, "debug")
635
638
  out_answ
636
639
  end
637
640
 
638
641
  def compare_device_types(type1, type2)
642
+ input_inf = {:type1 => type1, :type2 => type2}
639
643
  out_answ = {}
640
644
  tp1 = internal_func.if_digit_or_string(type1)
641
645
  tp2 = internal_func.if_digit_or_string(type2)
@@ -682,6 +686,7 @@ class MongoIot
682
686
  out_answ = {:code => 200, :result => "compare_device_types: profiles are different", :is_the_same => false, :data_type => "different"}
683
687
  end
684
688
  end
689
+ internal_func.printer_texter({:input_inf => input_inf, :out => out_answ, :fun => "compare_device_types"}, "debug")
685
690
  out_answ
686
691
  end
687
692
 
@@ -1,4 +1,4 @@
1
1
  module Imperituroard
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imperituroard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dzmitry Buynovskiy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-10 00:00:00.000000000 Z
11
+ date: 2020-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler