simple_interaction 0.0.1 → 0.0.2
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b5be838d0489e8d54ba7578671c469e33c7ffc7
|
4
|
+
data.tar.gz: 27cfdd1b668ad0cdf9961a5a6508939843995bb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ec7a3d33ab9fb5af675c241533c65d8b539b8d29d68d8a5c77bc0d72322152a9a2ad553856fbafecafa71c3b4f0420aa5723f170e85ea117bec67aaecd49a43
|
7
|
+
data.tar.gz: 9def394bf09a34ef664d4c639d62dc4fb193a4f7ab417c577debc6c72f580713ad81a076c58576ef45a42d5b27d8cda28c5cd90ac8dcb7f02d859c91dbdbe704
|
data/interaction.gemspec
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require '
|
4
|
+
require 'simple_interaction/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "simple_interaction"
|
8
|
-
spec.version =
|
8
|
+
spec.version = SimpleInteraction::VERSION
|
9
9
|
spec.authors = ["Jose Boza"]
|
10
10
|
spec.email = ["jaboza@gmail.com"]
|
11
11
|
spec.summary = %q{Keep your code clean with simple interactions}
|
data/test/interaction_test.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'minitest/autorun'
|
2
|
-
require '
|
2
|
+
require 'simple_interaction'
|
3
3
|
|
4
4
|
class Interactor
|
5
|
-
include
|
5
|
+
include SimpleInteraction
|
6
6
|
|
7
7
|
fail_with 'InteractorExp'
|
8
8
|
|
@@ -16,10 +16,10 @@ class Interactor
|
|
16
16
|
end
|
17
17
|
|
18
18
|
class InteractorNotImplemented
|
19
|
-
include
|
19
|
+
include SimpleInteraction
|
20
20
|
end
|
21
21
|
|
22
|
-
module
|
22
|
+
module SimpleInteraction
|
23
23
|
class InteractionTest < ::Minitest::Test
|
24
24
|
|
25
25
|
def test_private_run
|
@@ -31,7 +31,7 @@ module Interaction
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def test_error_class_not_defined
|
34
|
-
assert_equal
|
34
|
+
assert_equal SimpleInteraction::InteractionError, InteractorNotImplemented.error_class
|
35
35
|
end
|
36
36
|
|
37
37
|
def test_should_require_params
|
@@ -64,7 +64,7 @@ module Interaction
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def test_not_implemented
|
67
|
-
assert_raises(
|
67
|
+
assert_raises(SimpleInteraction::NotImplemented) { InteractorNotImplemented.run(param: '1') }
|
68
68
|
end
|
69
69
|
|
70
70
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_interaction
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jose Boza
|
@@ -53,8 +53,8 @@ files:
|
|
53
53
|
- Rakefile
|
54
54
|
- bin/rake
|
55
55
|
- interaction.gemspec
|
56
|
-
- lib/
|
57
|
-
- lib/
|
56
|
+
- lib/simple_interaction.rb
|
57
|
+
- lib/simple_interaction/version.rb
|
58
58
|
- test/interaction_test.rb
|
59
59
|
homepage: ''
|
60
60
|
licenses:
|
data/lib/interaction/version.rb
DELETED