alula-ruby 0.69.9 → 0.69.11
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 +4 -4
- data/.github/workflows/gem-push.yml +27 -27
- data/VERSION.md +2 -0
- data/lib/alula/resources/dealer.rb +1 -1
- data/lib/alula/util.rb +2 -1
- data/lib/alula/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1d90cb054045454a33f7896e46eab083759734485c7773bc5b514e8f5ccdbba5
|
|
4
|
+
data.tar.gz: ec16822bf673649bd8749722f257ccbe195701f86efdfb39fadd4decb5a1decc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94b5e7aebe0b1c9e8be766672cf3f82c25fc283003b8ddce65919d91fe8b3b0106e16eca014f3aa891b48e031c135284c24edfce9451a333af1d6ebf81d1e677
|
|
7
|
+
data.tar.gz: 7e8e674d6d37f0e44c1315206a2eec510bc74607f183cb0440b6d2107ef8cc8353489dc44326ed7240c803f3b257bdada9c8bbc3bab8d61b99ba648f6b6c97bb
|
|
@@ -2,7 +2,7 @@ name: Ruby Gem
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches: [
|
|
5
|
+
branches: [main, release]
|
|
6
6
|
|
|
7
7
|
jobs:
|
|
8
8
|
build:
|
|
@@ -13,31 +13,31 @@ jobs:
|
|
|
13
13
|
packages: write
|
|
14
14
|
|
|
15
15
|
steps:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
- uses: actions/checkout@v2
|
|
17
|
+
- name: Set up Ruby 2.6
|
|
18
|
+
uses: ruby/setup-ruby@v1
|
|
19
|
+
with:
|
|
20
|
+
ruby-version: '2.6'
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
- name: Publish to GPR
|
|
23
|
+
run: |
|
|
24
|
+
mkdir -p $HOME/.gem
|
|
25
|
+
touch $HOME/.gem/credentials
|
|
26
|
+
chmod 0600 $HOME/.gem/credentials
|
|
27
|
+
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
28
|
+
gem build *.gemspec
|
|
29
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
|
30
|
+
env:
|
|
31
|
+
GEM_HOST_API_KEY: 'Bearer ${{secrets.GITHUB_TOKEN}}'
|
|
32
|
+
OWNER: ${{ github.repository_owner }}
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
- name: Publish to RubyGems
|
|
35
|
+
run: |
|
|
36
|
+
mkdir -p $HOME/.gem
|
|
37
|
+
touch $HOME/.gem/credentials
|
|
38
|
+
chmod 0600 $HOME/.gem/credentials
|
|
39
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
40
|
+
gem build *.gemspec
|
|
41
|
+
gem push *.gem
|
|
42
|
+
env:
|
|
43
|
+
GEM_HOST_API_KEY: '${{secrets.RUBYGEMS_AUTH_TOKEN}}'
|
data/VERSION.md
CHANGED
|
@@ -110,3 +110,5 @@
|
|
|
110
110
|
| v0.69.7 | 2023-03-21 | Rename Receiers Disabled field to correct one |
|
|
111
111
|
| v0.69.8 | 2023-03-29 | Use isCamera and isPanel API fields |
|
|
112
112
|
| v0.69.9 | 2023-04-18 | Dealer Program resource update |
|
|
113
|
+
| v0.69.10| 2023-06-14 | Dealer phone relationship |
|
|
114
|
+
| v0.69.11| 2023-06-27 | Camelize mapping for support url |
|
|
@@ -13,7 +13,7 @@ module Alula
|
|
|
13
13
|
relationship :devices, type: 'devices', cardinality: 'To-many'
|
|
14
14
|
relationship :users, type: 'users', cardinality: 'To-many'
|
|
15
15
|
relationship :address, type: 'dealers-addresses', cardinality: 'To-one'
|
|
16
|
-
|
|
16
|
+
relationship :phone, type: 'dealers-phones', cardinality: 'To-one'
|
|
17
17
|
|
|
18
18
|
# Resource Fields
|
|
19
19
|
# Not all params are used at the moment. See Alula::ResourceAttributes for details
|
data/lib/alula/util.rb
CHANGED
|
@@ -5,7 +5,8 @@ module Alula
|
|
|
5
5
|
# Some fields use odd casing (abbreviations mostly) that require a strict mapping
|
|
6
6
|
# for camelization to work properly
|
|
7
7
|
CAMELIZE_MAPPING = {
|
|
8
|
-
'ce_arming_supervision_trouble_zones' => 'CEArmingSupervisionTroubleZones'
|
|
8
|
+
'ce_arming_supervision_trouble_zones' => 'CEArmingSupervisionTroubleZones',
|
|
9
|
+
'support_url' => 'supportURL'
|
|
9
10
|
}.freeze
|
|
10
11
|
|
|
11
12
|
# Based on ActiveSupport's underscore method
|
data/lib/alula/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: alula-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.69.
|
|
4
|
+
version: 0.69.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Titus Johnson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-06-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|