Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate README to pt-BR #58

Merged
merged 4 commits into from
Aug 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 90 additions & 106 deletions README.md

Large diffs are not rendered by default.

1,390 changes: 1,390 additions & 0 deletions README.pt-BR.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/micro/case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def self.use_cases; __flow_get__.use_cases; end
@__flow = __flow_builder__.build(args)
end

FLOW_STEP = 'Flow_Step'.freeze
FLOW_STEP = 'Self'.freeze

private_constant :FLOW_STEP

Expand Down
2 changes: 1 addition & 1 deletion test/micro/case/safe/with_inner_flow_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_the_use_case_result
assert_success_result(result, value: { text: '8' })

assert_equal(
[ConvertTextToNumber, Double::Flow_Step, ConvertNumberToText],
[ConvertTextToNumber, Double::Self, ConvertNumberToText],
Double.use_cases
)
end
Expand Down
2 changes: 1 addition & 1 deletion test/micro/case/with_inner_flow_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_the_use_case_result
assert_success_result(result, value: { text: '8' })

assert_equal(
[ConvertTextToNumber, Double::Flow_Step, ConvertNumberToText],
[ConvertTextToNumber, Double::Self, ConvertNumberToText],
Double.use_cases
)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_the_use_case_result
assert_success_result(result, value: { text: '8' })

assert_equal(
[ConvertTextToNumber, Double::Flow_Step, ConvertNumberToText],
[ConvertTextToNumber, Double::Self, ConvertNumberToText],
Double.use_cases
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_the_use_case_result
assert_success_result(result, value: { text: '8' })

assert_equal(
[ConvertTextToNumber, Double::Flow_Step, ConvertNumberToText],
[ConvertTextToNumber, Double::Self, ConvertNumberToText],
Double.use_cases
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_the_use_case_result
assert_success_result(result, value: { text: '8' })

assert_equal(
[ConvertTextToNumber, Double::Flow_Step, ConvertNumberToText],
[ConvertTextToNumber, Double::Self, ConvertNumberToText],
Double.use_cases
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_the_use_case_result
assert_success_result(result, value: { text: '8' })

assert_equal(
[ConvertTextToNumber, Double::Flow_Step, ConvertNumberToText],
[ConvertTextToNumber, Double::Self, ConvertNumberToText],
Double.use_cases
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_the_use_case_result
assert_success_result(result, value: { text: '8' })

assert_equal(
[ConvertTextToNumber, Double::Flow_Step, ConvertNumberToText],
[ConvertTextToNumber, Double::Self, ConvertNumberToText],
Double.use_cases
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_the_use_case_result
assert_success_result(result, value: { text: '8' })

assert_equal(
[ConvertTextToNumber, Double::Flow_Step, ConvertNumberToText],
[ConvertTextToNumber, Double::Self, ConvertNumberToText],
Double.use_cases
)

Expand Down
4 changes: 2 additions & 2 deletions test/micro/cases/flow_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_calling_with_a_result
{
0 => {
use_case: -> use_case do
assert_equal(Jobs::Build::Flow_Step, use_case[:class])
assert_equal(Jobs::Build::Self, use_case[:class])

assert_equal({}, use_case[:attributes])
end,
Expand Down Expand Up @@ -119,7 +119,7 @@ def test_calling_with_a_result
{
0 => {
use_case: -> use_case do
assert_equal(Jobs::Build::Flow_Step, use_case[:class])
assert_equal(Jobs::Build::Self, use_case[:class])

assert_equal({}, use_case[:attributes])
end,
Expand Down
4 changes: 2 additions & 2 deletions u-case.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
spec.authors = ['Rodrigo Serradura']
spec.email = ['rodrigo.serradura@gmail.com']

spec.summary = %q{Create simple and powerful use cases as objects.}
spec.description = %q{Create simple and powerful use cases as objects.}
spec.summary = %q{Create simple and powerful use cases as Ruby objects.}
spec.description = %q{Create simple and powerful use cases as Ruby objects.}
spec.homepage = 'https://github.com/serradura/u-case'
spec.license = 'MIT'

Expand Down