gruf-commander 0.1.2 → 1.0.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 +5 -5
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/gruf-commander.gemspec +2 -0
- data/lib/gruf/commander.rb +2 -0
- data/lib/gruf/commander/command.rb +2 -0
- data/lib/gruf/commander/request.rb +3 -0
- data/lib/gruf/commander/request_validation_interceptor.rb +2 -0
- data/lib/gruf/commander/version.rb +3 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: ffa7792c9f93629ea6e0ee42d20cae59b211d51fa8262dcd3b04848e541dda80
|
|
4
|
+
data.tar.gz: dafbf60c49cae5acd270fe6a406bb20079bce343446d27abf8b14a596be9d8a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2c6f7e2115b5a4e0a9c987a3e4b724a2e6da075e833bb95d7543c4fc7f0f39d05687ae7174ed9ea4094334e38925eac509fd717d66acba72755fdc92efe27b9
|
|
7
|
+
data.tar.gz: '0618a88e2a0b68715ed96d8933b0bfea40514959cee8256aaeb22fd046dd23bedb35d1d004567fbdfb8180d44f13bb2ec1550a1e7cd9e3ced9eb69d9780fbd73'
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@ Changelog for the gruf-commander gem. This includes internal history before the
|
|
|
2
2
|
|
|
3
3
|
### Pending release
|
|
4
4
|
|
|
5
|
+
### 1.0.0
|
|
6
|
+
|
|
7
|
+
- Add frozen_string_literal: true to all files
|
|
8
|
+
- Deprecate ruby 2.2 support
|
|
9
|
+
|
|
5
10
|
### 0.1.2
|
|
6
11
|
|
|
7
12
|
- Loosen activemodel version pin to allow for Rails 5 support
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Gruf Commander
|
|
2
2
|
|
|
3
|
-
[](https://circleci.com/gh/bigcommerce/gruf-commander) [](https://badge.fury.io/rb/gruf-commander) [](https://inch-ci.org/github/bigcommerce/gruf-commander?branch=master)
|
|
4
4
|
|
|
5
5
|
Assists with request/command-style syntax and separated validation layer in [gruf](https://github.com/bigcommerce/gruf)
|
|
6
6
|
requests.
|
data/gruf-commander.gemspec
CHANGED
data/lib/gruf/commander.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
# Copyright (c) 2018-present, BigCommerce Pty. Ltd. All rights reserved
|
|
2
4
|
#
|
|
3
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
@@ -54,6 +56,7 @@ module Gruf
|
|
|
54
56
|
# rubocop:disable Style/RaiseArgs
|
|
55
57
|
def submit!
|
|
56
58
|
raise InvalidRequest.new(self) unless valid?
|
|
59
|
+
|
|
57
60
|
command.call(self)
|
|
58
61
|
end
|
|
59
62
|
# rubocop:enable Style/RaiseArgs
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
# Copyright (c) 2018-present, BigCommerce Pty. Ltd. All rights reserved
|
|
2
4
|
#
|
|
3
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
@@ -15,6 +17,6 @@
|
|
|
15
17
|
#
|
|
16
18
|
module Gruf
|
|
17
19
|
module Commander
|
|
18
|
-
VERSION = '0.
|
|
20
|
+
VERSION = '1.0.0'
|
|
19
21
|
end
|
|
20
22
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gruf-commander
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shaun McCormick
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -100,8 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
100
100
|
- !ruby/object:Gem::Version
|
|
101
101
|
version: '0'
|
|
102
102
|
requirements: []
|
|
103
|
-
|
|
104
|
-
rubygems_version: 2.6.13
|
|
103
|
+
rubygems_version: 3.0.2
|
|
105
104
|
signing_key:
|
|
106
105
|
specification_version: 4
|
|
107
106
|
summary: Command/request syntax helper for gruf
|