app_rail-steps 0.2.11 → 0.2.14
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d445a5e54dee368af8a3e60529e8fbdfb596570e3fa2f22105f49d4904f2e0d
|
4
|
+
data.tar.gz: 2aa02c02a2c8ad24a8341b837ec651c9c94d7249167b18d3cbf5a9b3990c718b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10b575a5c9bb3a0bb688593ebfe25188d32922f8ead46801360ac106df1c39a60bb479a1fa8bcb162299b40839f619e9b1c1f39f0897c9899a791f9bd638d51c
|
7
|
+
data.tar.gz: 3c54c9bd30824d31d81b8471316cadfcc67135b6f575414644f02bdfa88bf297e13843b13e626b964d7f19faf237fc4b74d90d0df8cc9300d2628620f564ee21
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module AppRail
|
4
|
+
module Steps
|
5
|
+
module BackgroundLocation
|
6
|
+
module Region
|
7
|
+
def ar_background_location_region(id:, latitude:, longitude:, radius: 100, event: :entryAndExit)
|
8
|
+
{
|
9
|
+
id: id.to_s,
|
10
|
+
latitude: latitude,
|
11
|
+
longitude: longitude,
|
12
|
+
radius: radius,
|
13
|
+
event: event
|
14
|
+
}
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -4,14 +4,12 @@ module AppRail
|
|
4
4
|
module Steps
|
5
5
|
module CoreForms
|
6
6
|
module Question
|
7
|
-
def ar_core_forms_question_multiple_selection(
|
7
|
+
def ar_core_forms_question_multiple_selection(label:, multiple_selection_options:, selection_type: :single, optional: false, show_other_option: false)
|
8
8
|
raise "Missing label" if label.nil?
|
9
|
-
raise "Missing id" if id.nil?
|
10
9
|
raise "Missing multiple_selection_options" if multiple_selection_options.nil?
|
11
10
|
|
12
11
|
{
|
13
12
|
item_type: :multiple_selection,
|
14
|
-
id: id,
|
15
13
|
label: label,
|
16
14
|
multiple_selection_options: multiple_selection_options,
|
17
15
|
selection_type: selection_type,
|
@@ -8,6 +8,7 @@ require_relative "maps/map"
|
|
8
8
|
require_relative "styled_content/grid"
|
9
9
|
require_relative "styled_content/stack"
|
10
10
|
require_relative "charts/dashboard"
|
11
|
+
require_relative "background_location/region"
|
11
12
|
|
12
13
|
module AppRail
|
13
14
|
module Steps
|
@@ -20,6 +21,7 @@ module AppRail
|
|
20
21
|
include Steps::StyledContent::Grid
|
21
22
|
include Steps::StyledContent::Stack
|
22
23
|
include Steps::Charts::Dashboard
|
24
|
+
include Steps::BackgroundLocation::Region
|
23
25
|
|
24
26
|
def camelcase_converter(string, first_letter: :upper)
|
25
27
|
string = string.split("_").map(&:capitalize).join
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_rail-steps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -27,6 +27,7 @@ files:
|
|
27
27
|
- Rakefile
|
28
28
|
- app_rail-steps.gemspec
|
29
29
|
- lib/app_rail/steps.rb
|
30
|
+
- lib/app_rail/steps/background_location/region.rb
|
30
31
|
- lib/app_rail/steps/charts/dashboard.rb
|
31
32
|
- lib/app_rail/steps/core/list.rb
|
32
33
|
- lib/app_rail/steps/core/stack.rb
|