linerb 0.1.6 → 0.1.8

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
  SHA256:
3
- metadata.gz: 73c66740ba6320b253a8b05f50d04b0c6bcbfe6a894c30e30ab83e3c05d9ba4b
4
- data.tar.gz: 8c51f60638a55748dc1ded2c7c96b8a1baff350e2d498d5ef3854909bbb93d62
3
+ metadata.gz: 80eafe2cd10d094a83551d0df0ee4c7f2120cf4843b8cab44ea975a37318f6e8
4
+ data.tar.gz: cabe3e10939fc9200273814aa63be48fb89f36f23fcfe3ce872e83a6cb5a5a73
5
5
  SHA512:
6
- metadata.gz: e7bf47b5195a9cfdc3855c49bcfa84ac6ac8550345f5fd1ddad0d6bd4c4ec07024d4b2821098ec45d0682e14c9d9d124adf0a6ae03c8070a1065f98eeb63a47d
7
- data.tar.gz: fa19034a1dd2d5b4b14046dbb00b7a194d8191c19a62ddc988da27889f439e31a67752c94cc253fbba764a443552dde72bfec3888a141c529d18413e4976e40e
6
+ metadata.gz: 3419189526be2a3dcd1983cff676a344dfb5506ab00b19469fea0fbe56493c1199f5980b4f9d23fe3dafef4399beba181976a469e74d01ba48c2423227eb0321
7
+ data.tar.gz: 13c5b9b6bf5cb066156fef0dad752d2612b1baac312dfecbe15639c58d75e648df8d3932b2e69c751890687de92214712aa31069f61b80b93911e31ec4adb752
@@ -22,7 +22,7 @@ class PollApi
22
22
 
23
23
  operations.each { |op|
24
24
 
25
- if op::type == J0_a_e_a_b_nd::END_OF_OPERATION || op::type == J0_a_e_a_b_nd::DUMMY
25
+ if op::type == P0_a_e_a_b_od::END_OF_OPERATION || op::type == P0_a_e_a_b_od::DUMMY
26
26
  next
27
27
  end
28
28
 
data/lib/linerb/auth.rb CHANGED
@@ -48,7 +48,7 @@ begin
48
48
  e2ee = "?secret=#{secret}" + "&e2eeVersion=#{version}"
49
49
  puts "LINE-RB: [LOGIN] => #{qr_url}#{e2ee}"
50
50
 
51
- Config::HEADERS[:"X-Line-Access"] = ""
51
+ Config::HEADERS.store(:"X-Line-Access", session_id)
52
52
 
53
53
  protocol = client_proto(Config::PERMIT_NOTICE_URL, Config::HEADERS)
54
54
  cert_client = SecondaryQrCodeLoginPermitNoticeService::Client.new(protocol)
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  require 'thrift'
8
- require 'takagi_chan_types'
8
+ require_relative 'takagi_chan_types'
9
9
 
10
10
  module AccountAuthFactorEapConnectService
11
11
  class Client
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  require 'thrift'
8
- require 'takagi_chan_types'
8
+ require_relative 'takagi_chan_types'
9
9
 
10
10
  module AuthService
11
11
  class Client
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  require 'thrift'
8
- require 'takagi_chan_types'
8
+ require_relative 'takagi_chan_types'
9
9
 
10
10
  module CallService
11
11
  class Client
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  require 'thrift'
8
- require 'takagi_chan_types'
8
+ require_relative 'takagi_chan_types'
9
9
 
10
10
  module ChannelService
11
11
  class Client
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  require 'thrift'
8
- require 'takagi_chan_types'
8
+ require_relative 'takagi_chan_types'
9
9
 
10
10
  module PrimaryAccountInitService
11
11
  class Client
@@ -5,7 +5,7 @@
5
5
  #
6
6
 
7
7
  require 'thrift'
8
- require 'takagi_chan_types'
8
+ require_relative 'takagi_chan_types'
9
9
 
10
10
  module SecondaryQrCodeLoginPermit
11
11
  class Client
@@ -5,5 +5,5 @@
5
5
  #
6
6
 
7
7
  require 'thrift'
8
- require 'takagi_chan_types'
8
+ require_relative 'takagi_chan_types'
9
9
 
@@ -89,6 +89,38 @@ module TalkService
89
89
  return
90
90
  end
91
91
 
92
+ def getLastOpRevision()
93
+ send_getLastOpRevision()
94
+ return recv_getLastOpRevision()
95
+ end
96
+
97
+ def send_getLastOpRevision()
98
+ send_message('getLastOpRevision', GetLastOpRevision_args)
99
+ end
100
+
101
+ def recv_getLastOpRevision()
102
+ result = receive_message(GetLastOpRevision_result)
103
+ return result.success unless result.success.nil?
104
+ raise result.e unless result.e.nil?
105
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getLastOpRevision failed: unknown result')
106
+ end
107
+
108
+ def fetchOperations(localRev, count)
109
+ send_fetchOperations(localRev, count)
110
+ return recv_fetchOperations()
111
+ end
112
+
113
+ def send_fetchOperations(localRev, count)
114
+ send_message('fetchOperations', FetchOperations_args, :localRev => localRev, :count => count)
115
+ end
116
+
117
+ def recv_fetchOperations()
118
+ result = receive_message(FetchOperations_result)
119
+ return result.success unless result.success.nil?
120
+ raise result.e unless result.e.nil?
121
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'fetchOperations failed: unknown result')
122
+ end
123
+
92
124
  def reportDeviceState(booleanState, stringState)
93
125
  send_reportDeviceState(booleanState, stringState)
94
126
  recv_reportDeviceState()
@@ -1522,6 +1554,28 @@ module TalkService
1522
1554
  write_result(result, oprot, 'sendPostback', seqid)
1523
1555
  end
1524
1556
 
1557
+ def process_getLastOpRevision(seqid, iprot, oprot)
1558
+ args = read_args(iprot, GetLastOpRevision_args)
1559
+ result = GetLastOpRevision_result.new()
1560
+ begin
1561
+ result.success = @handler.getLastOpRevision()
1562
+ rescue ::TalkException => e
1563
+ result.e = e
1564
+ end
1565
+ write_result(result, oprot, 'getLastOpRevision', seqid)
1566
+ end
1567
+
1568
+ def process_fetchOperations(seqid, iprot, oprot)
1569
+ args = read_args(iprot, FetchOperations_args)
1570
+ result = FetchOperations_result.new()
1571
+ begin
1572
+ result.success = @handler.fetchOperations(args.localRev, args.count)
1573
+ rescue ::TalkException => e
1574
+ result.e = e
1575
+ end
1576
+ write_result(result, oprot, 'fetchOperations', seqid)
1577
+ end
1578
+
1525
1579
  def process_reportDeviceState(seqid, iprot, oprot)
1526
1580
  args = read_args(iprot, ReportDeviceState_args)
1527
1581
  result = ReportDeviceState_result.new()
@@ -2666,6 +2720,75 @@ module TalkService
2666
2720
  ::Thrift::Struct.generate_accessors self
2667
2721
  end
2668
2722
 
2723
+ class GetLastOpRevision_args
2724
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2725
+
2726
+ FIELDS = {
2727
+
2728
+ }
2729
+
2730
+ def struct_fields; FIELDS; end
2731
+
2732
+ def validate
2733
+ end
2734
+
2735
+ ::Thrift::Struct.generate_accessors self
2736
+ end
2737
+
2738
+ class GetLastOpRevision_result
2739
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2740
+ SUCCESS = 0
2741
+ E = 1
2742
+
2743
+ FIELDS = {
2744
+ SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
2745
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::TalkException}
2746
+ }
2747
+
2748
+ def struct_fields; FIELDS; end
2749
+
2750
+ def validate
2751
+ end
2752
+
2753
+ ::Thrift::Struct.generate_accessors self
2754
+ end
2755
+
2756
+ class FetchOperations_args
2757
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2758
+ LOCALREV = 2
2759
+ COUNT = 3
2760
+
2761
+ FIELDS = {
2762
+ LOCALREV => {:type => ::Thrift::Types::I64, :name => 'localRev'},
2763
+ COUNT => {:type => ::Thrift::Types::I32, :name => 'count'}
2764
+ }
2765
+
2766
+ def struct_fields; FIELDS; end
2767
+
2768
+ def validate
2769
+ end
2770
+
2771
+ ::Thrift::Struct.generate_accessors self
2772
+ end
2773
+
2774
+ class FetchOperations_result
2775
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2776
+ SUCCESS = 0
2777
+ E = 1
2778
+
2779
+ FIELDS = {
2780
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Operation}},
2781
+ E => {:type => ::Thrift::Types::STRUCT, :name => 'e', :class => ::TalkException}
2782
+ }
2783
+
2784
+ def struct_fields; FIELDS; end
2785
+
2786
+ def validate
2787
+ end
2788
+
2789
+ ::Thrift::Struct.generate_accessors self
2790
+ end
2791
+
2669
2792
  class ReportDeviceState_args
2670
2793
  include ::Thrift::Struct, ::Thrift::Struct_Union
2671
2794
  BOOLEANSTATE = 2
@@ -1,3 +1,3 @@
1
- module Linerb
2
- VERSION = "0.1.6"
3
- end
1
+ module Linerb
2
+ VERSION = "0.1.8"
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linerb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - TakagiChan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-30 00:00:00.000000000 Z
11
+ date: 2020-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thrift
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0.0
19
+ version: 0.13.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.11.0.0
26
+ version: 0.13.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: async
29
29
  requirement: !ruby/object:Gem::Requirement