alula-ruby 0.69.11 → 1.0.0

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: 1d90cb054045454a33f7896e46eab083759734485c7773bc5b514e8f5ccdbba5
4
- data.tar.gz: ec16822bf673649bd8749722f257ccbe195701f86efdfb39fadd4decb5a1decc
3
+ metadata.gz: 3cbad5161d574736680e601f31208d39561bd7fbeb78a132bc3639ad32425ba2
4
+ data.tar.gz: 15e57254e4bb496e1ab4a1c2b3a91136e0a129b7ab6c07425d8b29dbb8575964
5
5
  SHA512:
6
- metadata.gz: 94b5e7aebe0b1c9e8be766672cf3f82c25fc283003b8ddce65919d91fe8b3b0106e16eca014f3aa891b48e031c135284c24edfce9451a333af1d6ebf81d1e677
7
- data.tar.gz: 7e8e674d6d37f0e44c1315206a2eec510bc74607f183cb0440b6d2107ef8cc8353489dc44326ed7240c803f3b257bdada9c8bbc3bab8d61b99ba648f6b6c97bb
6
+ metadata.gz: b7f5a4392de618d7d2b666c9de5744dc90c4976ab09f2bad6d13c5886764752faed4f5e33a2c488fe17162204e1862699ca579cac3dd1fda1254362e30f563b7
7
+ data.tar.gz: 6927dd4bf7991004544433723c1f89dcd06040053b1aec3109a0a2d7a94c5283e14eff56d5325a50050c9bf62cc3aadb3dc87bc777794a265c9aa8cacc4ae3ab
@@ -2,7 +2,7 @@ name: Ruby Gem
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [main, release]
5
+ branches: [ main ]
6
6
 
7
7
  jobs:
8
8
  build:
@@ -13,31 +13,31 @@ jobs:
13
13
  packages: write
14
14
 
15
15
  steps:
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'
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
- - 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 }}
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
- - 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}}'
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
@@ -2,113 +2,112 @@
2
2
 
3
3
  | Version | Date | Description |
4
4
  | ------- | --------- | --------------------------------------------------------------------------- |
5
- | v0.1.0 | 2019-7-25 | Initial release, GET and POST devices, dealer_addresses, user, self |
6
- | v0.1.6 | 2019-8-7 | Added Dealers and Branding, bug with non-patchable attributes, client grant |
7
- | v0.1.7 | 2019-8-8 | Adds RequestStore as a thread-safe storage system for tokens, auth keys, and debug info |
8
- | v0.1.8 | 2019-8-9 | Bugfix, switches api_root in Alula::Client to api_url |
9
- | v0.1.9 | 2019-8-16 | <ol><li>Scrubs sensitive keys from VCR cassettes. API tokens, Auth keys.</li><li>Fixes the lack of omitRelationships being used, much faster now!</li><li>Tweaks how pagination works so our API mirrors that of ActiveRecord API</li><li>Adds mobile_branding field to Dealer resource</li><li>Adds connected_panel field to Device resource</li><li>Removes patchability for is_enabled on DealerBranding resource</li>|
10
- | v0.1.10 | 2019-8-19 | Adds DeviceEventLog resource. Fixes bugs for nil dates, in and out of resources |
11
- | v0.1.11 | 2019-8-22 | Adds support for OAuth token exchanges. Adds exception for rate limit errors |
12
- | v0.1.12 | 2019-8-23 | Parses expiration dates better |
13
- | v0.2.0 | 2019-9-3 | Adds fluent query interface |
14
- | v0.2.1 | 2019-9-13 | Adds a query method for `or_like` queries. Adds CircleCI config |
15
- | v0.3.0 | 2019-9-24 | Adds log output from client, field omission based on u_type |
16
- | v0.4.0 | 2019-9-30 | Adds sorting of queries |
17
- | v0.4.1 | 2019-10-2 | Handles unknown/empty errors from the API |
18
- | v0.4.2 | 2019-10-3 | Excludes fields not annotated on the model with the `fields` property. This fixes an issue where a password hash would be used as the basis for a new user password when system users saved a user model. |
19
- | v0.4.3 | 2019-10-3 | Adds timezone field to Dealer resource |
20
- | v0.5.0 | 2019-10-10 | Inverts how readers & writers are set. <ol><li>Model metadata is now the be-all end-all of defining how an attribute becomes available.</li><li>Readers & writers are set during object initialization. We no longer throw `NoMethodAvailable` errors when attempting to write to an attribute that exists, but your uTYpe doesn't allow writing to. Instead we will accept the write, but continue to exclude that attribute from being sent to the API</li><li>This change fixes an issue where if the API sent down a model that was missing an attribute, we would run into `NoMethodErrors` when rendering the model. Since I don't want to safe-access check every single API model property, having concrete models is the way to go.</li></ol>)
21
- | v0.5.1 | 2019-10-21 | Whitelists the EULA as patchable for uType 96 |
22
- | v0.6.0 | 2019-10-28 | Implements related model loading when fetching a single model, or loading a collection. Call `.includes(:some_model, :othermodel)` in the filter chain, and if present the related models will be available after loading. |
23
- | v0.7.0 | 2019-11-11 | Implements the start of RPC resources, beginning with Device Registration, Unregistration, Assignment, Unassignment, and Dealer Device Stats |
24
- | v0.8.0 | 2019-11-14 | Adds the ability to create resources. Starting with the Alula::User resource, you can do .new, assign props, then call .create to issue the create call. |
25
- | v0.8.1 | 2019-12-03 | Fixes a bug when creating a user with insufficent scopes. Errors wouldn't be reported properly. |
26
- | v0.9.0 | 2019-12-05 | Adds the ReceiverGroup REST model |
27
- | v0.10.0 | 2020-03-11 | Adds Docker compose for testing against a local instance of the API. Adds a model for accessing Stations |
28
- | v0.11.0 | 2020-03-12 | Adds support for dealer.hidden, and additional fields that have been added over time. Updates generator script to output symbols as field types |
29
- | v0.12.0 | 2020-03-16 | Updated to use userType instead of uType |
30
- | v0.12.1 | 2020-03-18 | Fixes bug where included relationships would only appear once per unique relationship |
31
- | v0.13.0 | 2020-03-19 | Adds Dealer and Device relationships to User model |
32
- | v0.13.1 | 2020-03-19 | Represent self.user_type with symbols instead of strings |
33
- | v0.13.2 | 2020-04-07 | Add back erroneously removed user.features_selected property |
34
- | v0.14.0 | 2020-04-08 | Adds users-phones resource |
35
- | v0.15.0 | 2020-04-13 | Adds resources for fetching the dealer suspension log, and acting on dealer.suspend and dealer.restore |
36
- | v0.15.1 | 2020-04-23 | Changes format of errors.full_messages to match Rails. Adds accessors for values needed to automagically render forms with simple_form. |
37
- | v0.15.2 | 2020-04-27 | Exposes RPC error codes. |
38
- | v0.15.3 | 2020-05-11 | Avoid sending empty values when creating new records |
39
- | v0.15.4 | 2020-05-13 | Added get relay status name to device event log |
40
- | v0.15.5 | 2020-05-19 | Update roles for patchable and creatable for the Station model. |
41
- | v0.16.0 | 2020-06-18 | Adds name_first and name_last fields to the Station model which are required to create a station. |
42
- | v0.17.0 | 2020-07-15 | Adds support for event webhooks, event triggers, device signal add, update, and delivered endpoints. |
43
- | v0.18.0 | 2020-08-04 | Adds a type: :boolean to field attributes for automatic type casting. |
44
- | v0.19.0 | 2020-08-13 | Adds support for Account Transfer resources. |
45
- | v0.20.0 | 2020-09-10 | Adds support for User Token resources. |
46
- | v0.21.0 | 2020-09-15 | Adds support for defining a default blank value on REST attributes. Allows coercing of '' into nil on assignment, etc. |
47
- | v0.22.0 | 2020-09-15 | Updates filterability of IMEI and Caller ID Phone Number on the device model |
48
- | v0.23.0 | 2020-09-17 | Includes cellular status/history and user preference endpoints |
49
- | v0.23.1 | 2020-10-20 | Fixes a bug where the Deny and Reject transfer RPC endpoints were not passing their `description` param as `reason`, resulting in missing data. |
50
- | v0.23.2 | 2020-12-11 | Adds support for converting helix CRC values to hex |
51
- | v0.23.3 | 2020-12-15 | Adds additional program IDs to hex CRC conversion evaluator |
52
- | v0.24.0 | 2020-12-16 | Adds the ability to set a User Agent |
53
- | v0.25.0 | 2020-12-29 | Adds models for FeaturePlan, BillingProgram, and DealerProgram resources |
54
- | v0.26.0 | 2021-02-24 | Adds a model for ReceiverConnection |
55
- | v0.27.0 | 2021-03-10 | Adds a model for Revision |
56
- | v0.28.0 | 2021-03-11 | Adds a model for DevicePrograms |
57
- | v0.28.1 | 2021-03-11 | Safely handle relationships for which no matching data is provided |
58
- | v0.28.2 | 2021-03-11 | Adds the ability for system users to set the date_created when creating Device Programs |
59
- | v0.29.0 | 2021-03-11 | Adds show_prices to the dealer resource. |
60
- | v0.30.0 | 2021-05-12 | Changes PATCH requests to only send changed attributes |
61
- | v0.31.0 | 2021-05-13 | Updates blank value coersion (translate `''` to `nil`) to apply universally, instead of being a per-field setting |
62
- | v0.32.0 | 2021-05-19 | Adds a RPC for getting a device rate plan and fixes several relationships |
63
- | v0.33.0 | 2021-05-27 | Adds a RPC for getting a user video plan, the user addresses REST resource, and some methods for getting the user role/role name on a user |
64
- | v0.34.0 | 2021-06-23 | Adds model for Device Charge |
65
- | v0.35.0 | 2021-06-23 | Adds methods that transform program_id and auto_cfg into usable strings on the Device model |
66
- | v0.36.0 | 2021-07-21 | Adds ICCID as a filterable field for devices. |
67
- | v0.37.0 | 2021-09-22 | Updates DealerBranding with new resource fields. |
68
- | v0.37.1 | 2021-09-30 | Fixes issuing POST requests for resources that share a Primary ID with a parent record (DealerBranding & Dealer for example)|
69
- | v0.38.0 | 2021-10-01 | Models & provides Rate Limiting information on fetched resources and fetched collections |
70
- | v0.39.0 | 2021-12-02 | Added a proc to upload the touchpad branding package |
71
- | v0.40.0 | 2021-12-06 | Added device trouble filters to device resource |
72
- | v0.41.0 | 2022-01-07 | Added device feature filters to device resource |
73
- | v0.42.0 | 2022-01-12 | Updates RPC classes to throw exceptions when encountering server-side critical errors |
74
- | v0.43.0 | 2022-01-13 | Added video profiles to user resource |
75
- | v0.44.0 | 2022-01-14 | Adds Feature Plan & related models |
76
- | v0.44.1 | 2022-01-21 | Fixes a bug where sometimes `.list_all` would not be available in a query chain |
77
- | v0.44.2 | 2022-02-02 | Fixes a bug where invalid dates like `0000-00-00` would cause the library to choke on data load. Now the invalid string passes thru to the consumer |
78
- | v0.45.0 | 2022-02-03 | Adds support for the AdminUser resource |
79
- | v0.46.0 | 2022-02-22 | Support for creating sub station users |
80
- | v0.47.0 | 2022-02-18 | Adds support for the hidden station resource |
81
- | v0.48.0 | 2022-02-18 | Adds support for issuing DELETE requests, adds them to VideoPlans and FeaturePlans |
82
- | v0.49.0 | 2022-03-07 | Adds key for Alarm Verification. Keeps old key - will need to be removed |
83
- | v0.50.0 | 2022-03-14 | Makes list_all a lazy loader |
84
- | v0.50.1 | 2022-03-21 | Publishes gem to Github and Rubygems |
85
- | v0.51.0 | 2022-03-29 | Be able to delete Device Programs |
86
- | v0.52.0 | 2022-06-15 | Filter receiver connections based on station id |
87
- | v0.53.0 | 2022-06-15 | Filter feature plans on name |
88
- | v0.54.0 | 2022-06-21 | Add support for devices from the video API |
89
- | v0.55.0 | 2022-06-25 | Add some devices helpers and improves specs |
90
- | v0.56.0 | 2022-07-08 | Add save! that raises an exception |
91
- | v0.57.0 | 2022-07-19 | Add Alula Messenger to device object |
92
- | v0.58.0 | 2022-07-21 | Add clone method, that creates a copy of a resource |
93
- | v0.59.0 | 2022-08-10 | Add clone RPC method for Feature Plans |
94
- | v0.60.0 | 2022-08-16 | Add Device Credits resource |
95
- | v0.61.0 | 2022-08-19 | User hidden resource |
96
- | v0.62.0 | 2022-08-19 | Remove Admin User resource map |
97
- | v0.63.0 | 2022-08-25 | Gateway Error |
98
- | v0.64.0 | 2022-09-28 | Add procedures for unlocking and locking |
99
- | v0.65.0 | 2022-11-08 | OAuth Client model |
100
- | v0.66.0 | 2022-11-16 | Receivers Disabled |
101
- | v0.67.0 | 2022-11-29 | Renew Programs RPC |
102
- | v0.68.0 | 2022-11-29 | Minimum fee attribute |
103
- | v0.69.0 | 2022-12-01 | Be able to NICEly delete OAuth clients |
104
- | v0.69.1 | 2022-12-16 | Alias model added |
105
- | v0.69.2 | 2023-01-05 | Whitelisted camera vendors dealer attribute |
106
- | v0.69.3 | 2023-01-13 | Password reset RPC |
107
- | v0.69.4 | 2023-01-26 | User video Profile and readme update |
108
- | v0.69.5 | 2023-03-14 | Dealer patchable whitelisted camera vendors |
5
+ | v1.0.0 | 2023-05-30 | Ruby 3 support with some breaking changes |
109
6
  | v0.69.6 | 2023-03-17 | Add Dealer Phone resource |
110
7
  | v0.69.7 | 2023-03-21 | Rename Receiers Disabled field to correct one |
111
8
  | v0.69.8 | 2023-03-29 | Use isCamera and isPanel API fields |
112
9
  | 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 |
10
+ | v0.69.5 | 2023-03-14 | Dealer patchable whitelisted camera vendors |
11
+ | v0.69.4 | 2023-01-26 | User video Profile and readme update |
12
+ | v0.69.3 | 2023-01-13 | Password reset RPC |
13
+ | v0.69.2 | 2023-01-05 | Whitelisted camera vendors dealer attribute |
14
+ | v0.69.1 | 2022-12-16 | Alias model added |
15
+ | v0.69.0 | 2022-12-01 | Be able to NICEly delete OAuth clients |
16
+ | v0.68.0 | 2022-11-29 | Minimum fee attribute |
17
+ | v0.67.0 | 2022-11-29 | Renew Programs RPC |
18
+ | v0.66.0 | 2022-11-16 | Receivers Disabled |
19
+ | v0.65.0 | 2022-11-08 | OAuth Client model |
20
+ | v0.64.0 | 2022-09-28 | Add procedures for unlocking and locking |
21
+ | v0.63.0 | 2022-08-25 | Gateway Error |
22
+ | v0.62.0 | 2022-08-19 | Remove Admin User resource map |
23
+ | v0.61.0 | 2022-08-19 | User hidden resource |
24
+ | v0.60.0 | 2022-08-16 | Add Device Credits resource |
25
+ | v0.59.0 | 2022-08-10 | Add clone RPC method for Feature Plans |
26
+ | v0.58.0 | 2022-07-21 | Add clone method, that creates a copy of a resource |
27
+ | v0.57.0 | 2022-07-19 | Add Alula Messenger to device object |
28
+ | v0.56.0 | 2022-07-08 | Add save! that raises an exception |
29
+ | v0.55.0 | 2022-06-25 | Add some devices helpers and improves specs |
30
+ | v0.54.0 | 2022-06-21 | Add support for devices from the video API |
31
+ | v0.53.0 | 2022-06-15 | Filter feature plans on name |
32
+ | v0.52.0 | 2022-06-15 | Filter receiver connections based on station id |
33
+ | v0.51.0 | 2022-03-29 | Be able to delete Device Programs |
34
+ | v0.50.1 | 2022-03-21 | Publishes gem to Github and Rubygems |
35
+ | v0.50.0 | 2022-03-14 | Makes list_all a lazy loader |
36
+ | v0.49.0 | 2022-03-07 | Adds key for Alarm Verification. Keeps old key - will need to be removed |
37
+ | v0.48.0 | 2022-02-18 | Adds support for issuing DELETE requests, adds them to VideoPlans and FeaturePlans |
38
+ | v0.47.0 | 2022-02-18 | Adds support for the hidden station resource |
39
+ | v0.46.0 | 2022-02-22 | Support for creating sub station users |
40
+ | v0.45.0 | 2022-02-03 | Adds support for the AdminUser resource |
41
+ | v0.44.2 | 2022-02-02 | Fixes a bug where invalid dates like `0000-00-00` would cause the library to choke on data load. Now the invalid string passes thru to the consumer |
42
+ | v0.44.1 | 2022-01-21 | Fixes a bug where sometimes `.list_all` would not be available in a query chain |
43
+ | v0.44.0 | 2022-01-14 | Adds Feature Plan & related models |
44
+ | v0.43.0 | 2022-01-13 | Added video profiles to user resource |
45
+ | v0.42.0 | 2022-01-12 | Updates RPC classes to throw exceptions when encountering server-side critical errors |
46
+ | v0.41.0 | 2022-01-07 | Added device feature filters to device resource |
47
+ | v0.40.0 | 2021-12-06 | Added device trouble filters to device resource |
48
+ | v0.39.0 | 2021-12-02 | Added a proc to upload the touchpad branding package |
49
+ | v0.38.0 | 2021-10-01 | Models & provides Rate Limiting information on fetched resources and fetched collections |
50
+ | v0.37.1 | 2021-09-30 | Fixes issuing POST requests for resources that share a Primary ID with a parent record (DealerBranding & Dealer for example)|
51
+ | v0.37.0 | 2021-09-22 | Updates DealerBranding with new resource fields. |
52
+ | v0.36.0 | 2021-07-21 | Adds ICCID as a filterable field for devices. |
53
+ | v0.35.0 | 2021-06-23 | Adds methods that transform program_id and auto_cfg into usable strings on the Device model |
54
+ | v0.34.0 | 2021-06-23 | Adds model for Device Charge |
55
+ | v0.33.0 | 2021-05-27 | Adds a RPC for getting a user video plan, the user addresses REST resource, and some methods for getting the user role/role name on a user |
56
+ | v0.32.0 | 2021-05-19 | Adds a RPC for getting a device rate plan and fixes several relationships |
57
+ | v0.31.0 | 2021-05-13 | Updates blank value coersion (translate `''` to `nil`) to apply universally, instead of being a per-field setting |
58
+ | v0.30.0 | 2021-05-12 | Changes PATCH requests to only send changed attributes |
59
+ | v0.29.0 | 2021-03-11 | Adds show_prices to the dealer resource. |
60
+ | v0.28.2 | 2021-03-11 | Adds the ability for system users to set the date_created when creating Device Programs |
61
+ | v0.28.1 | 2021-03-11 | Safely handle relationships for which no matching data is provided |
62
+ | v0.28.0 | 2021-03-11 | Adds a model for DevicePrograms |
63
+ | v0.27.0 | 2021-03-10 | Adds a model for Revision |
64
+ | v0.26.0 | 2021-02-24 | Adds a model for ReceiverConnection |
65
+ | v0.25.0 | 2020-12-29 | Adds models for FeaturePlan, BillingProgram, and DealerProgram resources |
66
+ | v0.24.0 | 2020-12-16 | Adds the ability to set a User Agent |
67
+ | v0.23.3 | 2020-12-15 | Adds additional program IDs to hex CRC conversion evaluator |
68
+ | v0.23.2 | 2020-12-11 | Adds support for converting helix CRC values to hex |
69
+ | v0.23.1 | 2020-10-20 | Fixes a bug where the Deny and Reject transfer RPC endpoints were not passing their `description` param as `reason`, resulting in missing data. |
70
+ | v0.23.0 | 2020-09-17 | Includes cellular status/history and user preference endpoints |
71
+ | v0.22.0 | 2020-09-15 | Updates filterability of IMEI and Caller ID Phone Number on the device model |
72
+ | v0.21.0 | 2020-09-15 | Adds support for defining a default blank value on REST attributes. Allows coercing of '' into nil on assignment, etc. |
73
+ | v0.20.0 | 2020-09-10 | Adds support for User Token resources. |
74
+ | v0.19.0 | 2020-08-13 | Adds support for Account Transfer resources. |
75
+ | v0.18.0 | 2020-08-04 | Adds a type: :boolean to field attributes for automatic type casting. |
76
+ | v0.17.0 | 2020-07-15 | Adds support for event webhooks, event triggers, device signal add, update, and delivered endpoints. |
77
+ | v0.16.0 | 2020-06-18 | Adds name_first and name_last fields to the Station model which are required to create a station. |
78
+ | v0.15.5 | 2020-05-19 | Update roles for patchable and creatable for the Station model. |
79
+ | v0.15.4 | 2020-05-13 | Added get relay status name to device event log |
80
+ | v0.15.3 | 2020-05-11 | Avoid sending empty values when creating new records |
81
+ | v0.15.2 | 2020-04-27 | Exposes RPC error codes. |
82
+ | v0.15.1 | 2020-04-23 | Changes format of errors.full_messages to match Rails. Adds accessors for values needed to automagically render forms with simple_form. |
83
+ | v0.15.0 | 2020-04-13 | Adds resources for fetching the dealer suspension log, and acting on dealer.suspend and dealer.restore |
84
+ | v0.14.0 | 2020-04-08 | Adds users-phones resource |
85
+ | v0.13.2 | 2020-04-07 | Add back erroneously removed user.features_selected property |
86
+ | v0.13.1 | 2020-03-19 | Represent self.user_type with symbols instead of strings |
87
+ | v0.13.0 | 2020-03-19 | Adds Dealer and Device relationships to User model |
88
+ | v0.12.1 | 2020-03-18 | Fixes bug where included relationships would only appear once per unique relationship |
89
+ | v0.12.0 | 2020-03-16 | Updated to use userType instead of uType |
90
+ | v0.11.0 | 2020-03-12 | Adds support for dealer.hidden, and additional fields that have been added over time. Updates generator script to output symbols as field types |
91
+ | v0.10.0 | 2020-03-11 | Adds Docker compose for testing against a local instance of the API. Adds a model for accessing Stations |
92
+ | v0.9.0 | 2019-12-05 | Adds the ReceiverGroup REST model |
93
+ | v0.8.1 | 2019-12-03 | Fixes a bug when creating a user with insufficent scopes. Errors wouldn't be reported properly. |
94
+ | v0.8.0 | 2019-11-14 | Adds the ability to create resources. Starting with the Alula::User resource, you can do .new, assign props, then call .create to issue the create call. |
95
+ | v0.7.0 | 2019-11-11 | Implements the start of RPC resources, beginning with Device Registration, Unregistration, Assignment, Unassignment, and Dealer Device Stats |
96
+ | v0.6.0 | 2019-10-28 | Implements related model loading when fetching a single model, or loading a collection. Call `.includes(:some_model, :othermodel)` in the filter chain, and if present the related models will be available after loading. |
97
+ | v0.5.1 | 2019-10-21 | Whitelists the EULA as patchable for uType 96 |
98
+ | v0.5.0 | 2019-10-10 | Inverts how readers & writers are set. <ol><li>Model metadata is now the be-all end-all of defining how an attribute becomes available.</li><li>Readers & writers are set during object initialization. We no longer throw `NoMethodAvailable` errors when attempting to write to an attribute that exists, but your uTYpe doesn't allow writing to. Instead we will accept the write, but continue to exclude that attribute from being sent to the API</li><li>This change fixes an issue where if the API sent down a model that was missing an attribute, we would run into `NoMethodErrors` when rendering the model. Since I don't want to safe-access check every single API model property, having concrete models is the way to go.</li></ol>)
99
+ | v0.4.3 | 2019-10-3 | Adds timezone field to Dealer resource |
100
+ | v0.4.2 | 2019-10-3 | Excludes fields not annotated on the model with the `fields` property. This fixes an issue where a password hash would be used as the basis for a new user password when system users saved a user model. |
101
+ | v0.4.1 | 2019-10-2 | Handles unknown/empty errors from the API |
102
+ | v0.4.0 | 2019-9-30 | Adds sorting of queries |
103
+ | v0.3.0 | 2019-9-24 | Adds log output from client, field omission based on u_type |
104
+ | v0.2.1 | 2019-9-13 | Adds a query method for `or_like` queries. Adds CircleCI config |
105
+ | v0.2.0 | 2019-9-3 | Adds fluent query interface |
106
+ | v0.1.12 | 2019-8-23 | Parses expiration dates better |
107
+ | v0.1.11 | 2019-8-22 | Adds support for OAuth token exchanges. Adds exception for rate limit errors |
108
+ | v0.1.10 | 2019-8-19 | Adds DeviceEventLog resource. Fixes bugs for nil dates, in and out of resources |
109
+ | v0.1.9 | 2019-8-16 | <ol><li>Scrubs sensitive keys from VCR cassettes. API tokens, Auth keys.</li><li>Fixes the lack of omitRelationships being used, much faster now!</li><li>Tweaks how pagination works so our API mirrors that of ActiveRecord API</li><li>Adds mobile_branding field to Dealer resource</li><li>Adds connected_panel field to Device resource</li><li>Removes patchability for is_enabled on DealerBranding resource</li>|
110
+ | v0.1.8 | 2019-8-9 | Bugfix, switches api_root in Alula::Client to api_url |
111
+ | v0.1.7 | 2019-8-8 | Adds RequestStore as a thread-safe storage system for tokens, auth keys, and debug info |
112
+ | v0.1.6 | 2019-8-7 | Added Dealers and Branding, bug with non-patchable attributes, client grant |
113
+ | v0.1.0 | 2019-7-25 | Initial release, GET and POST devices, dealer_addresses, user, self |
data/alula.gemspec CHANGED
@@ -7,7 +7,7 @@ require "alula/version"
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = "alula-ruby"
9
9
  spec.version = Alula::VERSION
10
- spec.required_ruby_version = ">= 2.1.0"
10
+ spec.required_ruby_version = ">= 3.0.0"
11
11
  spec.summary = "Ruby bindings for the Alula API"
12
12
 
13
13
  spec.authors = ["Titus Johnson"]
@@ -15,7 +15,7 @@ module Alula
15
15
  # Pseudo-delegator. Merges the current filter into the QueryInterface
16
16
  # then delegates the used method forward
17
17
  instance_eval do
18
- %i(list list_all filter_builder limit offset custom_options includes).each do |method|
18
+ %i(list list_all filter_builder limit offset custom_options includes page).each do |method|
19
19
  define_method(method) do |*args|
20
20
  query_interface.filter(as_json)
21
21
  query_interface.send(method, *args)
@@ -25,7 +25,7 @@ module Alula
25
25
 
26
26
  #
27
27
  # Takes a hash, one for each key
28
- def sort(**args)
28
+ def sort(args)
29
29
  cleaned_sorts = args.each_pair.each_with_object({}) do |(field, value), collector|
30
30
  field_name = validate_field_sortability! field
31
31
  field_value = validate_sort_value! value
@@ -120,7 +120,10 @@ module Alula
120
120
  @model_class.retrieve(id, built_query_options)
121
121
  end
122
122
 
123
- def page(number: 1, size: 10)
123
+ def page(args = {})
124
+ number = args[:number] || 1
125
+ size = args[:size] || 10
126
+
124
127
  @page = Util.deep_merge(@page, {
125
128
  page: {
126
129
  number: number,
@@ -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
- relationship :phone, type: 'dealers-phones', cardinality: 'To-one'
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,8 +5,7 @@ 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',
9
- 'support_url' => 'supportURL'
8
+ 'ce_arming_supervision_trouble_zones' => 'CEArmingSupervisionTroubleZones'
10
9
  }.freeze
11
10
 
12
11
  # Based on ActiveSupport's underscore method
data/lib/alula/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '0.69.11'
4
+ VERSION = '1.0.0'
5
5
  end
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.11
4
+ version: 1.0.0
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-06-27 00:00:00.000000000 Z
11
+ date: 2023-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -294,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
294
294
  requirements:
295
295
  - - ">="
296
296
  - !ruby/object:Gem::Version
297
- version: 2.1.0
297
+ version: 3.0.0
298
298
  required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  requirements:
300
300
  - - ">="