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: 715b23d59a1f0186a3e9d5296492e64e0a165a788cd99191d745af88916591a7
4
- data.tar.gz: 05f1aec93c0920517ddd4687ee10d8cff1fe183a9e61c118206f2a92077617d9
3
+ metadata.gz: 9d445a5e54dee368af8a3e60529e8fbdfb596570e3fa2f22105f49d4904f2e0d
4
+ data.tar.gz: 2aa02c02a2c8ad24a8341b837ec651c9c94d7249167b18d3cbf5a9b3990c718b
5
5
  SHA512:
6
- metadata.gz: 28d0c73306645433d89267f53a3bd4d29243285ca18ef812034d1d580f90da2f2adc809dfcd77c289a3f19f3986f79f87bf86126dcca71d0ccf3fbd68b836d4a
7
- data.tar.gz: e4471a05569414cc92efb3bdf16d8b918245a09c7e0cb168f3dfd1ec749bbe1b93b6e8913372de8778d286745cb22cfd2c472586f0cb9a06f731978cdd8ca340
6
+ metadata.gz: 10b575a5c9bb3a0bb688593ebfe25188d32922f8ead46801360ac106df1c39a60bb479a1fa8bcb162299b40839f619e9b1c1f39f0897c9899a791f9bd638d51c
7
+ data.tar.gz: 3c54c9bd30824d31d81b8471316cadfcc67135b6f575414644f02bdfa88bf297e13843b13e626b964d7f19faf237fc4b74d90d0df8cc9300d2628620f564ee21
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_rail-steps (0.2.11)
4
+ app_rail-steps (0.2.14)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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(id:, label:, multiple_selection_options:, selection_type: :single, optional: false, show_other_option: false)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AppRail
4
4
  module Steps
5
- VERSION = "0.2.11"
5
+ VERSION = "0.2.14"
6
6
  end
7
7
  end
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.11
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-21 00:00:00.000000000 Z
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