applin-rails 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f4baaac83d2c5def4823290b5ef402575bb7eb1ee52bc80bb7c8f1ffaea4b4e
4
- data.tar.gz: 16620a1a0ace304554362ac721b083c1487eab83cb6bde26b7ff68b382804376
3
+ metadata.gz: e64c63b6f647ff2e598f682a66638b81e123f642c64f4f5cec4cf89f445c6470
4
+ data.tar.gz: 5c69c16af63397070fae5f84afb1070a0de060c7e476773c968008ac12f4f2e3
5
5
  SHA512:
6
- metadata.gz: 741179d035939f3936c966302d2902c54d402afd09664daad8c2de9298bb875c7d20bb2d3d455766c4e75480f5a4d432b7f9df117a1c7f038f2468f8bed30284
7
- data.tar.gz: f9c61d68b0e09010f4c82ae6100bc321f8cac684c695b56c460c08444b13b1e3ac976c86d050b35191e4d90bd2d5589c0f3552e4103862ad62f236452e402039
6
+ metadata.gz: 6fdc1d5adc9dd1880c7f88250212957ee1b5cf11ff24f6b8fb4148bb96acc680eb2b7ceabab395aa59a464ec4c422d09ff48f33e656ae3b05bcb403f53677811
7
+ data.tar.gz: 1b79b5bf3c291997f0aebca32753907ffe4871a569a9f1f8baadc048550d70ac5069256f75500652d182445a327c86b40aea7d9172f317df01f168b512f1da5c
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Applin
4
4
  module Rails
5
- VERSION = "0.2.0"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
data/lib/applin/rails.rb CHANGED
@@ -89,25 +89,6 @@ module Applin
89
89
  { typ: :last_error_text }
90
90
  end
91
91
 
92
- def modal_button(text:, actions:, is_cancel: nil, is_default: nil, is_destructive: nil)
93
- {
94
- typ: :modal_button,
95
- is_cancel: is_cancel,
96
- is_default: is_default,
97
- is_destructive: is_destructive,
98
- text: text,
99
- actions: actions,
100
- }.reject { |_k, v| v.nil? }
101
- end
102
-
103
- def ok_modal_button(is_default: true)
104
- modal_button(text: "OK", is_default: is_default, actions: [pop])
105
- end
106
-
107
- def cancel_modal_button(is_default: false)
108
- modal_button(text: "Cancel", is_default: is_default, actions: [pop])
109
- end
110
-
111
92
  def nav_button(text:, actions:, badge_text: nil, photo_url: nil, sub_text: nil)
112
93
  {
113
94
  typ: :nav_button,
@@ -153,28 +134,6 @@ module Applin
153
134
  }.reject { |_k, v| v.nil? }
154
135
  end
155
136
 
156
- def alert_modal(title:, modal_buttons:, stream: nil, poll_seconds: nil, text: nil)
157
- {
158
- typ: :alert_modal,
159
- stream: stream,
160
- poll_seconds: poll_seconds,
161
- text: text,
162
- title: title,
163
- widgets: modal_buttons
164
- }.reject { |_k, v| v.nil? }
165
- end
166
-
167
- def drawer_modal(title:, modal_buttons:, stream: nil, poll_seconds: nil, text: nil)
168
- {
169
- typ: :drawer_modal,
170
- stream: stream,
171
- poll_seconds: poll_seconds,
172
- text: text,
173
- title: title,
174
- widgets: modal_buttons
175
- }.reject { |_k, v| v.nil? }
176
- end
177
-
178
137
  def nav_page(title:, start: nil, end_: nil, stream: nil, poll_seconds: nil, &widget_block)
179
138
  {
180
139
  typ: :nav_page,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: applin-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Leonhard
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-04 00:00:00.000000000 Z
11
+ date: 2023-09-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Create mobile apps using only backend code. Applin™ is a Server-Driven
14
14
  UI (SDUI) system.