easy_command 1.0.0.pre.rc1
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 +7 -0
- data/.github/CODEOWNERS +5 -0
- data/.github/workflows/ci.yaml +52 -0
- data/.github/workflows/lint.yaml +38 -0
- data/.github/workflows/release.yml +43 -0
- data/.gitignore +14 -0
- data/.release-please-manifest.json +3 -0
- data/.rspec +1 -0
- data/.rubocop.yml +14 -0
- data/.rubocop_maintainer_style.yml +34 -0
- data/.rubocop_style.yml +142 -0
- data/.rubocop_todo.yml +453 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +89 -0
- data/Gemfile +19 -0
- data/LICENSE.txt +22 -0
- data/README.md +736 -0
- data/easy_command.gemspec +26 -0
- data/lib/easy_command/chainable.rb +16 -0
- data/lib/easy_command/errors.rb +85 -0
- data/lib/easy_command/result.rb +53 -0
- data/lib/easy_command/ruby-2-7-specific.rb +49 -0
- data/lib/easy_command/ruby-2-specific.rb +53 -0
- data/lib/easy_command/ruby-3-specific.rb +49 -0
- data/lib/easy_command/spec_helpers/command_matchers.rb +89 -0
- data/lib/easy_command/spec_helpers/mock_command_helper.rb +89 -0
- data/lib/easy_command/spec_helpers.rb +2 -0
- data/lib/easy_command/version.rb +3 -0
- data/lib/easy_command.rb +94 -0
- data/locales/en.yml +2 -0
- data/release-please-config.json +11 -0
- data/spec/easy_command/errors_spec.rb +121 -0
- data/spec/easy_command/result_spec.rb +176 -0
- data/spec/easy_command_spec.rb +298 -0
- data/spec/factories/addition_command.rb +12 -0
- data/spec/factories/callback_command.rb +20 -0
- data/spec/factories/failure_command.rb +12 -0
- data/spec/factories/missed_call_command.rb +7 -0
- data/spec/factories/multiplication_command.rb +12 -0
- data/spec/factories/sub_command.rb +19 -0
- data/spec/factories/subcommand_command.rb +14 -0
- data/spec/factories/success_command.rb +11 -0
- data/spec/spec_helper.rb +16 -0
- metadata +102 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
|
3
|
+
SimpleCov.start do
|
4
|
+
add_filter '/spec/'
|
5
|
+
end
|
6
|
+
|
7
|
+
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
8
|
+
|
9
|
+
require 'easy_command'
|
10
|
+
require 'i18n'
|
11
|
+
|
12
|
+
I18n.load_path += Dir[Pathname.new(File.expand_path("locales")).join("*.yml")]
|
13
|
+
|
14
|
+
Dir[File.join(File.dirname(__FILE__), 'factories', '**/*.rb')].each do |factory|
|
15
|
+
require factory
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: easy_command
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.pre.rc1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Swile
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-06-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
description: Easy way to build and manage commands (service objects)
|
28
|
+
email:
|
29
|
+
- ruby-maintainers@swile.co
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- ".github/CODEOWNERS"
|
35
|
+
- ".github/workflows/ci.yaml"
|
36
|
+
- ".github/workflows/lint.yaml"
|
37
|
+
- ".github/workflows/release.yml"
|
38
|
+
- ".gitignore"
|
39
|
+
- ".release-please-manifest.json"
|
40
|
+
- ".rspec"
|
41
|
+
- ".rubocop.yml"
|
42
|
+
- ".rubocop_maintainer_style.yml"
|
43
|
+
- ".rubocop_style.yml"
|
44
|
+
- ".rubocop_todo.yml"
|
45
|
+
- ".ruby-version"
|
46
|
+
- CHANGELOG.md
|
47
|
+
- Gemfile
|
48
|
+
- LICENSE.txt
|
49
|
+
- README.md
|
50
|
+
- easy_command.gemspec
|
51
|
+
- lib/easy_command.rb
|
52
|
+
- lib/easy_command/chainable.rb
|
53
|
+
- lib/easy_command/errors.rb
|
54
|
+
- lib/easy_command/result.rb
|
55
|
+
- lib/easy_command/ruby-2-7-specific.rb
|
56
|
+
- lib/easy_command/ruby-2-specific.rb
|
57
|
+
- lib/easy_command/ruby-3-specific.rb
|
58
|
+
- lib/easy_command/spec_helpers.rb
|
59
|
+
- lib/easy_command/spec_helpers/command_matchers.rb
|
60
|
+
- lib/easy_command/spec_helpers/mock_command_helper.rb
|
61
|
+
- lib/easy_command/version.rb
|
62
|
+
- locales/en.yml
|
63
|
+
- release-please-config.json
|
64
|
+
- spec/easy_command/errors_spec.rb
|
65
|
+
- spec/easy_command/result_spec.rb
|
66
|
+
- spec/easy_command_spec.rb
|
67
|
+
- spec/factories/addition_command.rb
|
68
|
+
- spec/factories/callback_command.rb
|
69
|
+
- spec/factories/failure_command.rb
|
70
|
+
- spec/factories/missed_call_command.rb
|
71
|
+
- spec/factories/multiplication_command.rb
|
72
|
+
- spec/factories/sub_command.rb
|
73
|
+
- spec/factories/subcommand_command.rb
|
74
|
+
- spec/factories/success_command.rb
|
75
|
+
- spec/spec_helper.rb
|
76
|
+
homepage: http://github.com/Swile/easy-command
|
77
|
+
licenses:
|
78
|
+
- MIT
|
79
|
+
metadata:
|
80
|
+
rubygems_mfa_required: 'true'
|
81
|
+
source_code_uri: https://github.com/Swile/easy-command
|
82
|
+
github_repo: ssh://github.com/Swile/easy-command
|
83
|
+
post_install_message:
|
84
|
+
rdoc_options: []
|
85
|
+
require_paths:
|
86
|
+
- lib
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '2.7'
|
92
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.3.1
|
97
|
+
requirements: []
|
98
|
+
rubygems_version: 3.1.6
|
99
|
+
signing_key:
|
100
|
+
specification_version: 4
|
101
|
+
summary: Easy way to build and manage commands (service objects)
|
102
|
+
test_files: []
|