protip 0.32.2 → 0.33.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
  SHA1:
3
- metadata.gz: 0e1fbe6b7ee1d780392ae6ff7db663082ea2eb2b
4
- data.tar.gz: 28855eb50758306090c18f4d571e4a26959fcbcb
3
+ metadata.gz: b00d08f38111e8b0182e50c6f4e452787d0f9168
4
+ data.tar.gz: 963dc1bde387ed8308925a2185a4f9b5d5494631
5
5
  SHA512:
6
- metadata.gz: 33f8f0288db23882f142d42ba7a016c95f06c59bac2930b2252d84f8e4db176c4c614b76162959ba65cdc95cdfe6756a5dec3c4598861b1100c3046cab4d1f5e
7
- data.tar.gz: 4be1f1959ba2dbdd030ee2fbc79b5e641299f10dc686d483f69a85da199985229f044d8e5738bb340c1a8eea8d30626ce01e269af39a36f1c5104a8d0b6d897e
6
+ metadata.gz: 736fe9fc7445f0fa83b608a142cd74001ef30b96304be7297f1653016fa795668cfc7685f0f4e2ca01047ab14fc033b41425e2f5e2ea0c5db8e9454cf850be31
7
+ data.tar.gz: 0ad6ab1ff91ff83179093f5dbdc71a776632c0147687e88819894525a90aaea5cfcf08637663d3927aa46681b89c62f3ae06545b19a96eda5b77da712dc699b8
@@ -353,12 +353,5 @@ module Protip
353
353
  def errors
354
354
  @errors ||= ActiveModel::Errors.new(self)
355
355
  end
356
-
357
- private
358
- # needed for ActiveModel::Dirty in earlier ActiveModel versions
359
- def changes_applied
360
- @previously_changed = changes
361
- @changed_attributes.clear
362
- end
363
356
  end
364
357
  end
@@ -1,5 +1,6 @@
1
1
  require 'protip/transformer'
2
2
  require 'protip/transformers/abstract_transformer'
3
+ require 'forwardable'
3
4
 
4
5
  module Protip
5
6
  module Transformers
@@ -129,7 +129,7 @@ describe ::Protip::Transformers::PrimitivesTransformer do
129
129
  end
130
130
 
131
131
  it 'raises an exception if non-boolean values passed to a boolean field' do
132
- [nil, 'test', Object.new, 2, {}, []].each do |bad_value|
132
+ ['test', Object.new, 2, {}, []].each do |bad_value|
133
133
  assert_raises TypeError do
134
134
  transformer.to_message(bad_value, field)
135
135
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.2
4
+ version: 0.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AngelList
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-18 00:00:00.000000000 Z
11
+ date: 2019-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -16,40 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.0
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '6.0'
19
+ version: 5.2.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: 3.0.0
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '6.0'
26
+ version: 5.2.0
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: activesupport
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - ">="
38
32
  - !ruby/object:Gem::Version
39
- version: 3.0.0
40
- - - "<"
41
- - !ruby/object:Gem::Version
42
- version: '6.0'
33
+ version: 5.2.0
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
38
  - - ">="
48
39
  - !ruby/object:Gem::Version
49
- version: 3.0.0
50
- - - "<"
51
- - !ruby/object:Gem::Version
52
- version: '6.0'
40
+ version: 5.2.0
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: google-protobuf
55
43
  requirement: !ruby/object:Gem::Requirement
@@ -292,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
280
  version: '0'
293
281
  requirements: []
294
282
  rubyforge_project:
295
- rubygems_version: 2.5.1
283
+ rubygems_version: 2.5.2.3
296
284
  signing_key:
297
285
  specification_version: 4
298
286
  summary: Resources backed by protobuf messages