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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3ce701e6335f796682f2b1c0e357d1afd5fbbac
4
- data.tar.gz: f6f7d30ac94f141894e72ed388aef085f3f58a52
3
+ metadata.gz: 91af15ac50959fdcb3f3de5522b9f3a7bfaaaa11
4
+ data.tar.gz: a491ad0bb5a0ea410131ef4ff4641e2ab17dff3e
5
5
  SHA512:
6
- metadata.gz: 7bb050f798bd22b15b7cde8a6a63ab61fe9700cf336ebc06847a4fd35dad34a5dc3a0c0f872bdccb29a9131a2a08ea779a5bd37831d9fbb197285e6bee2e201e
7
- data.tar.gz: 4c9092d96149d3b7491d9290c6f1790c4c5ca43a96c88527d716bc27df6e061b6ef0042b26e2a6f3fff1f72f27e740e41ad66e5dd0daa35b9ceea4e552810a46
6
+ metadata.gz: 41b4bfa1df127156b0009695a480d3968d77bdef94de15915cb5416618e67fc8c41651bf7b1f96954961a14a94b28458fb6171256bf48aeb29333abcaedc7758
7
+ data.tar.gz: 9d7f32cfd9b4a0da467d8d57ce5894a18a96c90ef117aa8fbfb33fbcfc0983282787d59c3eb2716ce133a8767fedfcd0d8fb74c2707e3d7b16300c782288a6e2
@@ -1,3 +1,6 @@
1
+ ##### 4.0.1
2
+ * Updated dry-validation and EnvelopeSchema
3
+
1
4
  ##### 4.0.0
2
5
  * Removed auth_key and uuid setters (#set_auth_key, #auth_key=, #set_uuid, #uuid=)
3
6
  * Added #subscribed_to, #current_region, #region=, #current_heartbeat
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pubnub (4.0.0)
4
+ pubnub (4.0.1)
5
5
  celluloid (~> 0.17)
6
- dry-validation (~> 0.7)
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.5)
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.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.2.3)
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.1)
55
- dry-types (0.7.2)
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.2, >= 0.2.3)
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.7.4)
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.2, >= 0.2.2)
69
- dry-types (~> 0.6, >= 0.6.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.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
- key(:message).required
6
- key(:subscribed_channel).required(:str?)
7
- key(:actual_channel).required(:str?)
8
- key(:publish_time_object).maybe(:hash?)
9
- key(:message_meta_data).maybe(:hash?)
10
- key(:presence_event).maybe(:str?)
11
- key(:presence).maybe.schema do
12
- key(:uuid).required(:str?)
13
- key(:timestamp).required(:int?)
14
- key(:state).maybe(:hash?)
15
- key(:occupancy).required(:int?)
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
- key(:tls).required(:bool?)
21
- key(:uuid).required(:str?)
22
- key(:auth_key).maybe(:str?)
23
- key(:origin).required(:str?)
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
- key(:code).required(:int?)
28
- key(:client_request).required
29
- key(:server_response).required
30
- key(:data).maybe
31
- key(:category).required
32
- key(:error).required(:bool?)
33
- key(:auto_retried).required(:bool?)
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
- key(:current_timetoken).maybe(:int?)
36
- key(:last_timetoken).maybe(:int?)
37
- key(:subscribed_channels).maybe(:array?)
38
- key(:subscribed_channel_groups).maybe(:array?)
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
- key(:config).schema(ConfigSchema)
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
- key(:code).required(:int?)
50
- key(:operation) { included_in?(Pubnub::Constants::OPERATIONS) }
51
- key(:client_request).required
52
- key(:server_response).required
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
- key(:data).maybe.schema(DataSchema)
54
+ required(:data).maybe.schema(DataSchema)
55
55
  end
56
56
  end
57
57
  end
@@ -1,4 +1,4 @@
1
1
  # Toplevel Pubnub module.
2
2
  module Pubnub
3
- VERSION = '4.0.0'
3
+ VERSION = '4.0.1'
4
4
  end
@@ -0,0 +1,8 @@
1
+ # Toplevel Pubnub module.
2
+ module Pubnub
3
+ <<<<<<< HEAD
4
+ VERSION = '4.0.1'
5
+ =======
6
+ VERSION = '4.0.0'
7
+ >>>>>>> master
8
+ end
@@ -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.7'
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.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-06-16 00:00:00.000000000 Z
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.7'
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.7'
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