action_spec 1.0.0 → 1.1.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/README.md +1 -1
- data/lib/action_spec/railtie.rb +0 -4
- data/lib/action_spec/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0adf599aac952bde5c1969385d71ea5a023fe20814abd835a8ab55dca32ca319
|
|
4
|
+
data.tar.gz: 6761792a92ae44fd93b7fad87d350d952494ff6c3b7bc17023ae5fd7020d373f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5490efab1cd187ab21a97c10401dc3471c81dccc161e40955b5e53cb2f9b5cacf375cb55cbed382bc19f47e7bd0b9f69aa870c4ca0bf9f78663b6f89e1973d74
|
|
7
|
+
data.tar.gz: ee1d9eb0eaacbbc8df53b5db72568006dde268ecf400f0de4f60087ee60511a51fde327716c5a23612398dd01a0f6e37665123569f28e9e95bba32bd74a03107
|
data/README.md
CHANGED
|
@@ -557,7 +557,7 @@ Available config keys:
|
|
|
557
557
|
|
|
558
558
|
### I18n
|
|
559
559
|
|
|
560
|
-
ActionSpec
|
|
560
|
+
ActionSpec uses `ActiveModel::Errors`, so you can override both messages and attribute names:
|
|
561
561
|
|
|
562
562
|
```yml
|
|
563
563
|
en:
|
data/lib/action_spec/railtie.rb
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
module ActionSpec
|
|
2
2
|
class Railtie < ::Rails::Railtie
|
|
3
|
-
initializer "action_spec.i18n" do |app|
|
|
4
|
-
app.config.i18n.load_path += Dir[root.join("config/locales/*.yml")]
|
|
5
|
-
end
|
|
6
|
-
|
|
7
3
|
initializer "action_spec.controller" do
|
|
8
4
|
ActiveSupport.on_load(:action_controller_base) do
|
|
9
5
|
include ActionSpec::Doc
|
data/lib/action_spec/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: action_spec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- zhandao
|
|
@@ -43,7 +43,7 @@ dependencies:
|
|
|
43
43
|
- - "<"
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '9.0'
|
|
46
|
-
description:
|
|
46
|
+
description: A concise Rails DSL for declaring API request and response schemas.
|
|
47
47
|
email:
|
|
48
48
|
- a@skipping.cat
|
|
49
49
|
executables: []
|
|
@@ -87,8 +87,8 @@ licenses:
|
|
|
87
87
|
- MIT
|
|
88
88
|
metadata:
|
|
89
89
|
homepage_uri: https://github.com/action-spec/action_spec
|
|
90
|
-
source_code_uri: https://github.com/action-spec/action_spec
|
|
91
|
-
changelog_uri: https://github.com/action-spec/action_spec/
|
|
90
|
+
source_code_uri: https://github.com/action-spec/action_spec/tree/main
|
|
91
|
+
changelog_uri: https://github.com/action-spec/action_spec/releases
|
|
92
92
|
rdoc_options: []
|
|
93
93
|
require_paths:
|
|
94
94
|
- lib
|