twinpush 0.0.5 → 0.0.6
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/lib/twinpush.rb +9 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c766ca0a2214694bdaa6398757c7d3e47b6037c02e403dee37c7463370ce098d
|
4
|
+
data.tar.gz: d9656e6c24b941e67276fda230d0e2469a8614b24eb340d277adf1d27b9ffb01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66ba6b9c9449dabbb60451591b3ea4b57ca3ebd36269489b054ac0e4d507be4ff719b1317c5dc1a73d61175ebe19041d59ed038dc97fdf9a8d9fa1560e7389fa
|
7
|
+
data.tar.gz: be3d1b76dbfece2174abd97cc3324a29628df0e98a376d1c014c96227f7bd215258aec15c3d45b6b362c3a0c7a8efc0511093bb62cfddab6d4302c3b8348b765
|
data/lib/twinpush.rb
CHANGED
@@ -120,6 +120,15 @@ class TWINPUSH
|
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
123
|
+
# Clears all the custom properties for a given device
|
124
|
+
def clear_properties(device_id)
|
125
|
+
path = "#{API_URL}/#{app_id}/devices/#{device_id}/clear_custom_properties"
|
126
|
+
for_uri(uri) do |connection|
|
127
|
+
response = connection.delete(path)
|
128
|
+
build_response(response)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
123
132
|
private
|
124
133
|
|
125
134
|
def validate_keys(authentication_keys)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twinpush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amaury González
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -61,8 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
requirements: []
|
64
|
-
|
65
|
-
rubygems_version: 2.7.6
|
64
|
+
rubygems_version: 3.0.4
|
66
65
|
signing_key:
|
67
66
|
specification_version: 4
|
68
67
|
summary: Reliably deliver push notifications through TwinPush API
|