pubnub 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pubnub might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +13 -11
- data/VERSION +1 -1
- data/lib/pubnub/schemas/envelope_schema.rb +32 -32
- data/lib/pubnub/version.rb +1 -1
- data/lib/pubnub/version.rb.orig +8 -0
- data/pubnub.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91af15ac50959fdcb3f3de5522b9f3a7bfaaaa11
|
4
|
+
data.tar.gz: a491ad0bb5a0ea410131ef4ff4641e2ab17dff3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41b4bfa1df127156b0009695a480d3968d77bdef94de15915cb5416618e67fc8c41651bf7b1f96954961a14a94b28458fb6171256bf48aeb29333abcaedc7758
|
7
|
+
data.tar.gz: 9d7f32cfd9b4a0da467d8d57ce5894a18a96c90ef117aa8fbfb33fbcfc0983282787d59c3eb2716ce133a8767fedfcd0d8fb74c2707e3d7b16300c782288a6e2
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pubnub (4.0.
|
4
|
+
pubnub (4.0.1)
|
5
5
|
celluloid (~> 0.17)
|
6
|
-
dry-validation (~> 0.
|
6
|
+
dry-validation (~> 0.8)
|
7
7
|
httpclient (~> 2.8)
|
8
8
|
json (~> 1.8)
|
9
9
|
|
@@ -30,7 +30,7 @@ GEM
|
|
30
30
|
timers (>= 4.1.1)
|
31
31
|
celluloid-pool (0.20.5)
|
32
32
|
timers (>= 4.1.1)
|
33
|
-
celluloid-supervision (0.20.
|
33
|
+
celluloid-supervision (0.20.6)
|
34
34
|
timers (>= 4.1.1)
|
35
35
|
codecov (0.1.4)
|
36
36
|
json
|
@@ -44,32 +44,34 @@ GEM
|
|
44
44
|
docile (1.1.5)
|
45
45
|
dry-configurable (0.1.6)
|
46
46
|
concurrent-ruby (~> 1.0)
|
47
|
-
dry-container (0.3.
|
47
|
+
dry-container (0.3.4)
|
48
48
|
concurrent-ruby (~> 1.0)
|
49
49
|
dry-configurable (~> 0.1, >= 0.1.3)
|
50
50
|
dry-equalizer (0.2.0)
|
51
|
-
dry-logic (0.
|
51
|
+
dry-logic (0.3.0)
|
52
52
|
dry-container (~> 0.2, >= 0.2.6)
|
53
53
|
dry-equalizer (~> 0.2)
|
54
|
-
dry-monads (0.0.
|
55
|
-
dry-types (0.
|
54
|
+
dry-monads (0.0.2)
|
55
|
+
dry-types (0.8.0)
|
56
56
|
concurrent-ruby (~> 1.0)
|
57
57
|
dry-configurable (~> 0.1)
|
58
58
|
dry-container (~> 0.3)
|
59
59
|
dry-equalizer (~> 0.2)
|
60
|
-
dry-logic (~> 0.
|
60
|
+
dry-logic (~> 0.3, >= 0.3.0)
|
61
61
|
dry-monads (>= 0.0.1)
|
62
|
+
ice_nine (~> 0.11)
|
62
63
|
inflecto (~> 0.0.0, >= 0.0.2)
|
63
|
-
dry-validation (0.
|
64
|
+
dry-validation (0.8.0)
|
64
65
|
concurrent-ruby (~> 1.0)
|
65
66
|
dry-configurable (~> 0.1, >= 0.1.3)
|
66
67
|
dry-container (~> 0.2, >= 0.2.8)
|
67
68
|
dry-equalizer (~> 0.2)
|
68
|
-
dry-logic (~> 0.
|
69
|
-
dry-types (~> 0.
|
69
|
+
dry-logic (~> 0.3, >= 0.3.0)
|
70
|
+
dry-types (~> 0.8, >= 0.8.0)
|
70
71
|
ffi (1.9.10-java)
|
71
72
|
hitimes (1.2.4)
|
72
73
|
httpclient (2.8.0)
|
74
|
+
ice_nine (0.11.2)
|
73
75
|
inflecto (0.0.2)
|
74
76
|
json (1.8.3)
|
75
77
|
json (1.8.3-java)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
1
|
+
4.0.1
|
@@ -2,42 +2,42 @@ module Pubnub
|
|
2
2
|
module Schemas
|
3
3
|
module Envelope
|
4
4
|
DataSchema = Dry::Validation.Schema do
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
5
|
+
required(:message)
|
6
|
+
required(:subscribed_channel).filled(:str?)
|
7
|
+
required(:actual_channel).filled(:str?)
|
8
|
+
optional(:publish_time_object).maybe(:hash?)
|
9
|
+
optional(:message_meta_data).maybe(:hash?)
|
10
|
+
optional(:presence_event).maybe(:str?)
|
11
|
+
optional(:presence).maybe.schema do
|
12
|
+
optional(:uuid).filled(:str?)
|
13
|
+
optional(:timestamp).filled(:int?)
|
14
|
+
optional(:state).maybe(:hash?)
|
15
|
+
optional(:occupancy).filled(:int?)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
19
|
ConfigSchema = Dry::Validation.Schema do
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
required(:tls).filled(:bool?)
|
21
|
+
required(:uuid).filled(:str?)
|
22
|
+
optional(:auth_key).maybe(:str?)
|
23
|
+
required(:origin).filled(:str?)
|
24
24
|
end
|
25
25
|
|
26
26
|
StatusSchema = Dry::Validation.Schema do
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
27
|
+
required(:code).filled(:int?)
|
28
|
+
required(:client_request).filled
|
29
|
+
required(:server_response).filled
|
30
|
+
optional(:data).maybe
|
31
|
+
required(:category).filled
|
32
|
+
required(:error).filled(:bool?)
|
33
|
+
required(:auto_retried).filled(:bool?)
|
34
34
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
optional(:current_timetoken).maybe(:int?)
|
36
|
+
optional(:last_timetoken).maybe(:int?)
|
37
|
+
optional(:subscribed_channels).maybe(:array?)
|
38
|
+
optional(:subscribed_channel_groups).maybe(:array?)
|
39
39
|
|
40
|
-
|
40
|
+
required(:config).schema(ConfigSchema)
|
41
41
|
|
42
42
|
rule(category_value: [:error, :category]) do |error, category|
|
43
43
|
error.true?.then(category.included_in?(Pubnub::Constants::STATUS_CATEGORY_ERRORS))
|
@@ -46,12 +46,12 @@ module Pubnub
|
|
46
46
|
end
|
47
47
|
|
48
48
|
ResultSchema = Dry::Validation.Schema do
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
49
|
+
required(:code).filled(:int?)
|
50
|
+
required(:operation) { included_in?(Pubnub::Constants::OPERATIONS) }
|
51
|
+
required(:client_request).filled
|
52
|
+
required(:server_response).filled
|
53
53
|
|
54
|
-
|
54
|
+
required(:data).maybe.schema(DataSchema)
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
data/lib/pubnub/version.rb
CHANGED
data/pubnub.gemspec
CHANGED
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency 'celluloid', '~> 0.17'
|
24
24
|
spec.add_dependency 'json', '~> 1.8'
|
25
25
|
spec.add_dependency 'httpclient', '~> 2.8'
|
26
|
-
spec.add_dependency 'dry-validation', '~> 0.
|
26
|
+
spec.add_dependency 'dry-validation', '~> 0.8'
|
27
27
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pubnub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PubNub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
61
|
+
version: '0.8'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0.
|
68
|
+
version: '0.8'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -10521,6 +10521,7 @@ files:
|
|
10521
10521
|
- lib/pubnub/validators/time.rb
|
10522
10522
|
- lib/pubnub/validators/where_now.rb
|
10523
10523
|
- lib/pubnub/version.rb
|
10524
|
+
- lib/pubnub/version.rb.orig
|
10524
10525
|
- pubnub.gemspec
|
10525
10526
|
- spec/examples/audit_examples_spec.rb
|
10526
10527
|
- spec/examples/channel_registration_examples_spec.rb
|