joy_ussd_engine 0.1.12 → 0.1.13

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: 3cf6a8217108c8642a72b12ed5a375785551c3e48820f1f0013a4e4ebf7dd0a7
4
- data.tar.gz: b72121272082de46a31fa8c7238a121f73999d6dede1a2f1f26cdbe2e9b8b700
3
+ metadata.gz: 0a0caadc4f86815e553db92686d324b244c51627777a21dfd7ef3e548142a6c8
4
+ data.tar.gz: b7471162a7c88c2ae1b7fb5f8f3d806af47cb456d66e0c04724cd265d24f6db4
5
5
  SHA512:
6
- metadata.gz: 53485cbbf16a64e24f7800a75f0475b071da09fcc370ea88a34c4401042578dcd21f776de9772f61d69696d598c8c6889306897b2ce5ca4493573e093795e3d0
7
- data.tar.gz: 44b1ea2fa623bbedc93befe4ddd3fcab62caa8500e17c7189ca228f933f7651c8b8ca5331905ebb15c89abb2c868f6f6eaf7ea12a065a9fdceb7170fcdbcb05a
6
+ metadata.gz: 5d3753253b039d771f70a821a21baf1c2cf3cece98cb3bfea543b38365746959c6a09ceed0e302f6257327bfb10ae3c7ff5aca8c8cfb2c7b63b036ff760cce53
7
+ data.tar.gz: 0f175497f911d7b5f36e3f8cabb34208789aa3e644f5e85968cb4c1f2385abfac4ccd7b982b84272d03b35f9daa314a337eed0ed8410fd26dcd8f21b05c6ede4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- joy_ussd_engine (0.1.12)
4
+ joy_ussd_engine (0.1.13)
5
5
  will_paginate (~> 3.3.0)
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JoyUssdEngine
4
- VERSION = "0.1.12"
4
+ VERSION = "0.1.13"
5
5
  end
@@ -29,7 +29,12 @@ module JoyUssdEngine
29
29
  # If a particular provider returns some sort of response that can terminate the app we do that check here
30
30
  return @current_menu = end_point.to_s if @selected_provider.send("app_terminator", params) || @data[:ClientState] == 'EndJoyUssdEngine'
31
31
 
32
- @current_menu = @data[:ClientState].blank? || @selected_provider.send("app_initiator", params) ? start_point.to_s : @data[:ClientState]
32
+ if(@selected_provider.send("app_initiator", params) ){
33
+ @current_menu = start_point.to_s
34
+ reset_state
35
+ return
36
+ }
37
+ @current_menu = @data[:ClientState].blank? ? start_point.to_s : @data[:ClientState]
33
38
  end
34
39
 
35
40
  def load_menu(name)
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joy_ussd_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Mantey
@@ -99,8 +99,7 @@ files:
99
99
  - lib/joy_ussd_engine/paginate_menu.rb
100
100
  - lib/joy_ussd_engine/session_manager.rb
101
101
  - lib/joy_ussd_engine/version.rb
102
- - pkg/joy_ussd_engine-0.1.11.gem
103
- - pkg/joy_ussd_engine-0.1.12.gem
102
+ - pkg/joy_ussd_engine-0.1.13.gem
104
103
  - spec/joy_ussd_engine_spec.rb
105
104
  - spec/joy_ussd_engine_transformer.spec
106
105
  - spec/spec_helper.rb
Binary file
Binary file