civil 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/civil.gemspec +1 -0
- data/lib/civil/service.rb +10 -4
- data/lib/civil/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 974e17fa57368ecf766599d101e4288fe9f2e3f5
|
4
|
+
data.tar.gz: d074989955d7a0833356904a99c977eb0b200b44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66e2a26d825c4a69a5031987d8098a30485df6b6814d09d96807f24f5448496e233041fa1f00ebfbb4c5168cd03038152efcc1b15939ab7b9c97fd9f51d6cff8
|
7
|
+
data.tar.gz: e838820cb4a0b7f908d785fdc0a48b9cdbc3c58974467ca7c7d7740ea98c6c78a0695746e6395045410c2d75e8728e75faf8fb507e61a1a1f6aae2385449eb83
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.0.0] - 2016-11-30
|
10
|
+
### Added
|
11
|
+
- More robust specs for Civil::Result#add_meta and Civil::Result#add_condition
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
- Result conditions and meta now store keyed arrays of data instead of key/value pairs
|
15
|
+
|
9
16
|
## 0.1.0 - 2016-11-30
|
10
17
|
### Added
|
11
18
|
- Initial commit, imported files that I had originally written for [StandardService](https://github.com/TheTroveApp/standard-service)
|
@@ -15,4 +22,5 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
|
|
15
22
|
- Documentation and examples in README.md
|
16
23
|
- This changelog :-)
|
17
24
|
|
18
|
-
[Unreleased]: https://github.com/earksiinni/civil/compare/
|
25
|
+
[Unreleased]: https://github.com/earksiinni/civil/compare/v1.0.0...HEAD
|
26
|
+
[1.0.0]: https://github.com/earksiinni/civil/compare/v0.1.0...v1.0.0
|
data/civil.gemspec
CHANGED
data/lib/civil/service.rb
CHANGED
@@ -39,12 +39,18 @@ module Civil
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
def add_condition(
|
43
|
-
_conditions[
|
42
|
+
def add_condition(key, condition)
|
43
|
+
conditions = (_conditions[key.to_sym] ||= [])
|
44
|
+
|
45
|
+
conditions << condition
|
46
|
+
conditions.compact!
|
44
47
|
end
|
45
48
|
|
46
|
-
def add_meta(
|
47
|
-
_meta[
|
49
|
+
def add_meta(key, metadatum)
|
50
|
+
meta = (_meta[key.to_sym] ||= [])
|
51
|
+
|
52
|
+
meta << metadatum
|
53
|
+
meta.compact!
|
48
54
|
end
|
49
55
|
|
50
56
|
def _conditions
|
data/lib/civil/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: civil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ersin Akinci
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.5'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.10'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.10'
|
55
69
|
description: Services help keep your business logic clean, but what helps keep your
|
56
70
|
services clean? Civil provides a framework for writing services that all have a
|
57
71
|
standardized structure, inputs and outputs.
|