apicraft-rails 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 985bb9a26327f539fba9cfde3fecaab346e445100d32549bab4e393d6656d8b6
|
4
|
+
data.tar.gz: 9df0525f057680a45d18dd5ce899f0151e09366d62ab3b190e895c473e79f4d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '078e7d785cdeb7f95b36984e57dbf8616e2f12832d0b272e589d28f2e1a20ab8dee73f8775ae270ac0293f8b8d974a726d58934adf5bd4308b616fcfbbb69e96'
|
7
|
+
data.tar.gz: 571165414ba898067e3b1d28c9daa0aacb20d8ddb350ac425ea6ac9198066bfe90844a25df3bd2fe47f077c0df1b0a1fa087b2e56f4db62602f5bc225eee8e84
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# APICraft Rails
|
2
2
|
[![Build](https://github.com/apicraft-dev/apicraft-rails/actions/workflows/build.yml/badge.svg)](https://github.com/apicraft-dev/apicraft-rails/actions/workflows/build.yml)
|
3
|
-
[![Gem Version](https://
|
3
|
+
[![Gem Version](https://d25lcipzij17d.cloudfront.net/badge.png?id=rb&r=r&ts=1683906897&type=3e&v=1.0.1&x2=0)](https://badge.fury.io/rb/apicraft-rails)
|
4
4
|
|
5
5
|
🚀 Accelerates your development by 2-3x with an API Design First approach. Seamlessly integrates with your Rails application server — no fancy tooling or expenses required.
|
6
6
|
|
@@ -74,7 +74,7 @@ By adopting an API Design First approach with APICraft Rails, you can accelerate
|
|
74
74
|
Add this line to your application's Gemfile:
|
75
75
|
|
76
76
|
```ruby
|
77
|
-
gem 'apicraft-rails', '~> 1.0.
|
77
|
+
gem 'apicraft-rails', '~> 1.0.1'
|
78
78
|
```
|
79
79
|
|
80
80
|
And then execute:
|
data/lib/apicraft/version.rb
CHANGED
data/lib/apicraft/web/app.rb
CHANGED
@@ -23,19 +23,19 @@ module Apicraft
|
|
23
23
|
|
24
24
|
[
|
25
25
|
200,
|
26
|
-
{
|
26
|
+
{ "Content-Type" => content_type },
|
27
27
|
[content]
|
28
28
|
]
|
29
29
|
rescue Errors::RouteNotFound
|
30
30
|
[
|
31
31
|
404,
|
32
|
-
{
|
32
|
+
{ "Content-Type" => "text/plain" },
|
33
33
|
["Error: not found"]
|
34
34
|
]
|
35
35
|
rescue StandardError => e
|
36
36
|
[
|
37
37
|
500,
|
38
|
-
{
|
38
|
+
{ "Content-Type" => "text/plain" },
|
39
39
|
["Error: #{e.message}"]
|
40
40
|
]
|
41
41
|
end
|
@@ -54,8 +54,8 @@ module Apicraft
|
|
54
54
|
[
|
55
55
|
401,
|
56
56
|
{
|
57
|
-
"Content-Type"
|
58
|
-
"WWW-Authenticate"
|
57
|
+
"Content-Type" => "text/plain",
|
58
|
+
"WWW-Authenticate" => "Basic realm=\"Restricted Area\""
|
59
59
|
},
|
60
60
|
["Unauthorized"]
|
61
61
|
]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apicraft-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abhishek Sarkar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|