cuprum 1.0.0 → 1.1.0.rc.0
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 +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +44 -1494
- data/lib/cuprum/built_in/identity_command.rb +4 -0
- data/lib/cuprum/built_in/identity_operation.rb +4 -4
- data/lib/cuprum/built_in/null_command.rb +5 -1
- data/lib/cuprum/command.rb +27 -16
- data/lib/cuprum/command_factory.rb +4 -4
- data/lib/cuprum/currying/curried_command.rb +1 -1
- data/lib/cuprum/error.rb +42 -0
- data/lib/cuprum/errors/command_not_implemented.rb +2 -3
- data/lib/cuprum/errors/multiple_errors.rb +39 -0
- data/lib/cuprum/errors/operation_not_called.rb +2 -3
- data/lib/cuprum/errors/uncaught_exception.rb +2 -2
- data/lib/cuprum/errors.rb +6 -1
- data/lib/cuprum/exception_handling.rb +4 -2
- data/lib/cuprum/map_command.rb +227 -0
- data/lib/cuprum/matcher.rb +2 -0
- data/lib/cuprum/matcher_list.rb +2 -2
- data/lib/cuprum/matching.rb +3 -1
- data/lib/cuprum/middleware.rb +20 -13
- data/lib/cuprum/operation.rb +8 -10
- data/lib/cuprum/processing.rb +22 -11
- data/lib/cuprum/result_list.rb +187 -0
- data/lib/cuprum/rspec/be_a_result_matcher.rb +6 -6
- data/lib/cuprum/steps.rb +4 -1
- data/lib/cuprum/utils/instance_spy.rb +22 -24
- data/lib/cuprum/version.rb +3 -3
- data/lib/cuprum.rb +3 -2
- metadata +20 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f851c8716b79031abb69b3dc534c101634d033539be03be5d6a35ec0c3d32d95
|
4
|
+
data.tar.gz: 469678bac004e29c547eabc2ec73b070c5a95f6e2481b4771d943a880aa3de6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 916597c227db7e4a090cd5340cce0a8a1aeb5b5dd7b2114209bcbb81af434e4b84df27396525f97d6be7f8ce69991df9a3c1ed661f2fc64e4c7d5c24938a9f6d
|
7
|
+
data.tar.gz: 1d0dd9fdfa2e1ae95f382677c629862d283d89a73054713be651725117d77deddb3b5560a349e1c5f721b38d90ba9e00e4a41b0dd799ebcb2a0b8fabd799370b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.1.0
|
4
|
+
|
5
|
+
The "Second Star To The Right" Update
|
6
|
+
|
7
|
+
Extracted the documentation from the README to a dedicated Jekyll site at http://sleepingkingstudios.github.io/cuprum (or see the /docs directory).
|
8
|
+
|
9
|
+
### Commands
|
10
|
+
|
11
|
+
Implemented `Cuprum::MapCommand`, which calls its implementation once for each item in the given collection and returns a `ResultList` (see below) containing the results of each call.
|
12
|
+
|
13
|
+
### Errors
|
14
|
+
|
15
|
+
Added the `Cuprum::Errors::MultipleErrors` error class, which is used when converting a `ResultList` to a singular `Result`.
|
16
|
+
|
17
|
+
### Results
|
18
|
+
|
19
|
+
Implemented `Cuprum::ResultList`, which implements the `Cuprum::Result` interface and aggregates an ordered list of results (such as the results of running a bulk action).
|
20
|
+
|
3
21
|
## 1.0.0
|
4
22
|
|
5
23
|
The "Look On My Works, Ye Mighty, and Despair" Update
|