rest_my_case 1.10.8 → 1.10.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDcxNjdjZWE5MzY5NTJjMmQ2YTVmMzM3ODc5Y2Y5MjNkNjcyZjVkMQ==
4
+ NDg4NmJlMDBmZjRiMzBlZjg4MWE1ZDUxMzc1MGQwZThlNmI3MmViNw==
5
5
  data.tar.gz: !binary |-
6
- NjUyMjQ0OTM5NGI2Yjg0ZTkyZjBlOTUwNGE4YjQyNzY1N2U1MGJkYQ==
6
+ Yjk3MjkxNzg0MzU4ODA4OTVhYmFmMGM4Zjg0ZWYyZWUxY2RmZTQ5NQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmE1MTA3NDkwYjQzMjQxYzk4MDZiMjY5Y2ZhNTI3ZjU1NGQxMmQwZmUwZDAx
10
- ODBiMWYxNDUwNGE5M2JmOTc0MGVmZDk5OWZkYTcwNWZkYjQ1MGY5NDVjMDBh
11
- ZDIzYjk4NDBlMWQ4MTg3NTI5OTg0ZjY4NzA3NDI4OTUzN2E2MTg=
9
+ NzhlMmU3MDMyYWQwYjQ4NjA0Y2VkMzhjZTJiOGNkNGE0YTEwOWE1MTRjYzg0
10
+ OThkMzI3Njg0MzFlYzc2OWI4OGZjOWYxZjM3MGUyOTBkYzgzZGU5MDY5YjI2
11
+ MTg1MTBmNjExZDY5M2MyNzVlZTRkMjVlNTQyY2U5MmY2NTk2Yjg=
12
12
  data.tar.gz: !binary |-
13
- OWQ3NWViNGU1MGRmMmZlODU5NGIyZjdhYmZlZjBlYWNhN2IyZDBlNjllZDAx
14
- NjNjODM0MzY4YjIyZmVhZjkyMjhkZTc5NGFkZThlNDU1ZTEyODY4MjBlNjlh
15
- MGI1NzhlZGFiMDFjYWVjYWEyNjFlMWMyNGYzMjkxNzQ2Y2ZmYWE=
13
+ ODIxZmI2NTNmZWU4NWEwNzE3ODUxY2E2N2EyZjA2ODNlMGY3ODA1OWQ3Y2I0
14
+ MDNlZTExZjUzOGEyZTAyNjM4NDZhMGQ1ODgyNTYxN2JlYzNlODc2MGFhNDE2
15
+ MmIzMTRhYjM0YWEzZDg4M2UyODQ4ZjY1OWUxY2M3ODQ0MWYyMzQ=
@@ -66,7 +66,7 @@ module RestMyCase
66
66
 
67
67
  def invoke!(*use_case_classes)
68
68
  trial_court.execute(use_case_classes, context).tap do |trial_case|
69
- abort if trial_case.aborted
69
+ abort! if trial_case.aborted
70
70
  end.context
71
71
  end
72
72
 
@@ -60,7 +60,6 @@ module RestMyCase
60
60
  end
61
61
 
62
62
  def error_response
63
-
64
63
  if errors.last_known_error
65
64
  response = errors.last_known_error.dup
66
65
  response.delete :class_name
@@ -1,5 +1,5 @@
1
1
  module RestMyCase
2
2
 
3
- VERSION = '1.10.8'
3
+ VERSION = '1.10.9'
4
4
 
5
5
  end
@@ -311,6 +311,8 @@ describe RestMyCase::Base do
311
311
  def perform
312
312
  super
313
313
  invoke Perform::BuildPost, Perform::Validations, Perform::SavePost
314
+
315
+ context.should_be_true = true
314
316
  end
315
317
  end
316
318
 
@@ -321,6 +323,8 @@ describe RestMyCase::Base do
321
323
  expect(context.perform.length).to be 2
322
324
  expect(context.rollback.length).to be 0
323
325
  expect(context.final.length).to be 2
326
+
327
+ expect(context.should_be_true).to be true
324
328
  end
325
329
 
326
330
  end
@@ -393,6 +397,8 @@ describe RestMyCase::Base do
393
397
  super
394
398
 
395
399
  invoke! Perform::ValidateName, Perform::ValidateBody
400
+
401
+ context.should_not_be_true = true
396
402
  end
397
403
  end
398
404
 
@@ -450,6 +456,8 @@ describe RestMyCase::Base do
450
456
  "Perform::Logger",
451
457
  "Perform::CreatePost2"
452
458
  ]
459
+
460
+ expect(@context.should_not_be_true).to be_falsey
453
461
  end
454
462
 
455
463
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_my_case
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.8
4
+ version: 1.10.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - goncalvesjoao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-03 00:00:00.000000000 Z
11
+ date: 2015-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry