You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
Contributing to Grape
2
2
=====================
3
3
4
-
Grape is work of [hundreds of contributors](https://github.com/intridea/grape/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/intridea/grape/pulls), [propose features and discuss issues](https://github.com/intridea/grape/issues). When in doubt, ask a question in the [Grape Google Group](http://groups.google.com/group/ruby-grape).
4
+
Grape is work of [hundreds of contributors](https://github.com/ruby-grape/grape/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/ruby-grape/grape/pulls), [propose features and discuss issues](https://github.com/ruby-grape/grape/issues). When in doubt, ask a question in the [Grape Google Group](http://groups.google.com/group/ruby-grape).
5
5
6
6
#### Fork the Project
7
7
8
-
Fork the [project on Github](https://github.com/intridea/grape) and check out your copy.
8
+
Fork the [project on Github](https://github.com/ruby-grape/grape) and check out your copy.
You can present documented errors with a Grape entity using the the [grape-entity](https://github.com/intridea/grape-entity) gem.
1424
+
You can present documented errors with a Grape entity using the the [grape-entity](https://github.com/ruby-grape/grape-entity) gem.
1425
1425
1426
1426
```ruby
1427
1427
moduleAPI
@@ -1942,8 +1942,8 @@ hash may include `:with`, which defines the entity to expose.
1942
1942
1943
1943
### Grape Entities
1944
1944
1945
-
Add the [grape-entity](https://github.com/intridea/grape-entity) gem to your Gemfile.
1946
-
Please refer to the [grape-entity documentation](https://github.com/intridea/grape-entity/blob/master/README.md)
1945
+
Add the [grape-entity](https://github.com/ruby-grape/grape-entity) gem to your Gemfile.
1946
+
Please refer to the [grape-entity documentation](https://github.com/ruby-grape/grape-entity/blob/master/README.md)
1947
1947
for more details.
1948
1948
1949
1949
The following example exposes statuses.
@@ -2644,7 +2644,7 @@ See [CONTRIBUTING](CONTRIBUTING.md).
2644
2644
You can start hacking on Grape on
2645
2645
[Nitrous.IO](https://www.nitrous.io/?utm_source=github.com&utm_campaign=grape&utm_medium=hackonnitrous) in a matter of seconds:
2646
2646
2647
-
[](https://www.nitrous.io/hack_button?source=embed&runtime=rails&repo=intridea%2Fgrape&file_to_open=README.md)
2647
+
[](https://www.nitrous.io/hack_button?source=embed&runtime=rails&repo=intridea%2Fgrape&file_to_open=README.md)
Copy file name to clipboardExpand all lines: RELEASING.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,12 @@ bundle install
12
12
rake
13
13
```
14
14
15
-
Check that the last build succeeded in [Travis CI](https://travis-ci.org/intridea/grape) for all supported platforms.
15
+
Check that the last build succeeded in [Travis CI](https://travis-ci.org/ruby-grape/grape) for all supported platforms.
16
16
17
-
Those with r/w permissions to the [master Intridea repository](https://github.com/intridea/grape) generally have large Grape-based projects. Point one to Grape HEAD and run all your API tests to catch any obvious regressions.
17
+
Those with r/w permissions to the [master Intridea repository](https://github.com/ruby-grape/grape) generally have large Grape-based projects. Point one to Grape HEAD and run all your API tests to catch any obvious regressions.
18
18
19
19
```
20
-
gem grape, github: 'intridea/grape'
20
+
gem grape, github: 'ruby-grape/grape'
21
21
```
22
22
23
23
Increment the version, modify [lib/grape/version.rb](lib/grape/version.rb).
@@ -69,7 +69,7 @@ Modify the "Stable Release" section in [README.md](README.md). Change the text t
69
69
## Stable Release
70
70
71
71
You're reading the documentation for the next release of Grape, which should be 0.6.1.
72
-
The current stable release is [0.6.0](https://github.com/intridea/grape/blob/v0.6.0/README.md).
72
+
The current stable release is [0.6.0](https://github.com/ruby-grape/grape/blob/v0.6.0/README.md).
73
73
```
74
74
75
75
Add the next release to [CHANGELOG.md](CHANGELOG.md).
Copy file name to clipboardExpand all lines: UPGRADING.md
+23-23
Original file line number
Diff line number
Diff line change
@@ -29,13 +29,13 @@ class CacheBusterMiddleware < Grape::Middleware::Base
29
29
end
30
30
```
31
31
32
-
See [#1029](https://github.com/intridea/grape/pull/1029) for more information.
32
+
See [#1029](https://github.com/ruby-grape/grape/pull/1029) for more information.
33
33
34
34
#### Changes in present
35
35
36
36
Using `present` with objects that responded to `merge` would cause early evaluation of the represented object, with unexpected side-effects, such as missing parameters or environment within rendering code. Grape now only merges represented objects with a previously rendered body, usually when multiple `present` calls are made in the same route.
37
37
38
-
See [grape-with-roar#5](https://github.com/dblock/grape-with-roar/issues/5) and [#1023](https://github.com/intridea/grape/issues/1023).
38
+
See [grape-with-roar#5](https://github.com/dblock/grape-with-roar/issues/5) and [#1023](https://github.com/ruby-grape/grape/issues/1023).
39
39
40
40
#### Changes to regexp validator
41
41
@@ -47,7 +47,7 @@ params do
47
47
end
48
48
```
49
49
50
-
See [#957](https://github.com/intridea/grape/pull/957) for more information.
50
+
See [#957](https://github.com/ruby-grape/grape/pull/957) for more information.
51
51
52
52
#### Replace error_response with error! in rescue_from blocks
See [#889](https://github.com/intridea/grape/issues/889) for more information.
91
+
See [#889](https://github.com/ruby-grape/grape/issues/889) for more information.
92
92
93
93
#### Changes to routes when using `format`
94
94
95
-
Version 0.10.0 has introduced a change via [#809](https://github.com/intridea/grape/pull/809) whereas routes no longer got file-type suffixes added if you declared a single API `format`. This has been reverted, it's now again possible to call API with proper suffix when single `format` is defined:
95
+
Version 0.10.0 has introduced a change via [#809](https://github.com/ruby-grape/grape/pull/809) whereas routes no longer got file-type suffixes added if you declared a single API `format`. This has been reverted, it's now again possible to call API with proper suffix when single `format` is defined:
96
96
97
97
```ruby
98
98
classAPI < Grape::API
@@ -108,7 +108,7 @@ Will respond with JSON to `/hello` **and** `/hello.json`.
108
108
109
109
Will respond with 404 to `/hello.xml`, `/hello.txt` etc.
110
110
111
-
See the [#1001](https://github.com/intridea/grape/pull/1001) and [#914](https://github.com/intridea/grape/issues/914) for more info.
111
+
See the [#1001](https://github.com/ruby-grape/grape/pull/1001) and [#914](https://github.com/ruby-grape/grape/issues/914) for more info.
112
112
113
113
### Upgrading to >= 0.11.0
114
114
@@ -120,36 +120,36 @@ Grape now supports, but doesn't require Rack 1.6.0. If you encounter an issue wi
120
120
gem 'rack', '~> 1.6.0'
121
121
```
122
122
123
-
See [#559](https://github.com/intridea/grape/issues/559) for more information.
123
+
See [#559](https://github.com/ruby-grape/grape/issues/559) for more information.
124
124
125
125
#### Removed route_info
126
126
127
127
Key route_info is excluded from params.
128
128
129
-
See [#879](https://github.com/intridea/grape/pull/879) for more information.
129
+
See [#879](https://github.com/ruby-grape/grape/pull/879) for more information.
130
130
131
131
132
132
#### Fix callbacks within a version block
133
133
134
134
Callbacks defined in a version block are only called for the routes defined in that block. This was a regression introduced in Grape 0.10.0, and is fixed in this version.
135
135
136
-
See [#901](https://github.com/intridea/grape/pull/901) for more information.
136
+
See [#901](https://github.com/ruby-grape/grape/pull/901) for more information.
137
137
138
138
139
139
#### Make type of group of parameters required
140
140
141
141
Groups of parameters now require their type to be set explicitly as Array or Hash.
142
142
Not setting the type now results in MissingGroupTypeError, unsupported type will raise UnsupportedTypeError.
143
143
144
-
See [#886](https://github.com/intridea/grape/pull/886) for more information.
144
+
See [#886](https://github.com/ruby-grape/grape/pull/886) for more information.
145
145
146
146
### Upgrading to >= 0.10.1
147
147
148
148
#### Changes to `declared(params, include_missing: false)`
149
149
150
150
Attributes with `nil` values or with values that evaluate to `false` are no longer considered *missing* and will be returned when `include_missing` is set to `false`.
151
151
152
-
See [#864](https://github.com/intridea/grape/pull/864) for more information.
152
+
See [#864](https://github.com/ruby-grape/grape/pull/864) for more information.
153
153
154
154
### Upgrading to >= 0.10.0
155
155
@@ -284,13 +284,13 @@ get do
284
284
end
285
285
```
286
286
287
-
For more information see [#836](https://github.com/intridea/grape/issues/836).
287
+
For more information see [#836](https://github.com/ruby-grape/grape/issues/836).
288
288
289
289
#### Changes to Custom Validators
290
290
291
291
To implement a custom validator, you need to inherit from `Grape::Validations::Base` instead of `Grape::Validations::Validator`.
292
292
293
-
For more information see [Custom Validators](https://github.com/intridea/grape#custom-validators) in the documentation.
293
+
For more information see [Custom Validators](https://github.com/ruby-grape/grape#custom-validators) in the documentation.
294
294
295
295
#### Changes to Raising Grape::Exceptions::Validation
296
296
@@ -337,7 +337,7 @@ class API < Grape::API
337
337
end
338
338
```
339
339
340
-
See the [the updated API Formats documentation](https://github.com/intridea/grape#api-formats) and [#809](https://github.com/intridea/grape/pull/809) for more info.
340
+
See the [the updated API Formats documentation](https://github.com/ruby-grape/grape#api-formats) and [#809](https://github.com/ruby-grape/grape/pull/809) for more info.
341
341
342
342
#### Changes to Evaluation of Permitted Parameter Values
343
343
@@ -357,7 +357,7 @@ params do
357
357
end
358
358
```
359
359
360
-
See [#801](https://github.com/intridea/grape/issues/801) for more information.
360
+
See [#801](https://github.com/ruby-grape/grape/issues/801) for more information.
361
361
362
362
#### Changes to version
363
363
@@ -389,7 +389,7 @@ end
389
389
390
390
when making a API call `GET /foo/v2/1`, the API would set instance variable `@output` to `hello1-v2`
391
391
392
-
See [#898](https://github.com/intridea/grape/issues/898) for more information.
392
+
See [#898](https://github.com/ruby-grape/grape/issues/898) for more information.
*`Grape::Middleware::Auth::OAuth2` => [warden-oauth2](https://github.com/opperator/warden-oauth2) or [rack-oauth2](https://github.com/nov/rack-oauth2)
424
424
425
-
If this is not possible you can extract the middleware files from [grape v0.7.0](https://github.com/intridea/grape/tree/v0.7.0/lib/grape/middleware/auth)
425
+
If this is not possible you can extract the middleware files from [grape v0.7.0](https://github.com/ruby-grape/grape/tree/v0.7.0/lib/grape/middleware/auth)
426
426
and host these files within your application
427
427
428
-
See [#703](https://github.com/intridea/Grape/pull/703) for more information.
428
+
See [#703](https://github.com/ruby-grape/Grape/pull/703) for more information.
429
429
430
430
### Upgrading to >= 0.7.0
431
431
@@ -462,7 +462,7 @@ rescue_from ParentError, rescue_subclasses: false do |e|
462
462
end
463
463
```
464
464
465
-
See [#544](https://github.com/intridea/grape/pull/544) for more information.
465
+
See [#544](https://github.com/ruby-grape/grape/pull/544) for more information.
466
466
467
467
468
468
#### Changes in the Default HTTP Status Code
@@ -485,7 +485,7 @@ You may also use `default_error_status` to change the global default.
485
485
default_error_status 400
486
486
```
487
487
488
-
See [#525](https://github.com/intridea/Grape/pull/525) for more information.
488
+
See [#525](https://github.com/ruby-grape/Grape/pull/525) for more information.
489
489
490
490
491
491
#### Changes in Parameter Declaration and Validation
@@ -502,7 +502,7 @@ params do
502
502
end
503
503
```
504
504
505
-
This caused the ambiguity and unexpected errors described in [#543](https://github.com/intridea/Grape/issues/543).
505
+
This caused the ambiguity and unexpected errors described in [#543](https://github.com/ruby-grape/Grape/issues/543).
506
506
507
507
In Grape 0.7.0, the `group`, `optional` and `requires` keywords take an additional `type` attribute which defaults to `Array`. This means that without a `type` attribute, these nested parameters will no longer accept a single hash, only an array (of hashes).
508
508
@@ -530,7 +530,7 @@ params do
530
530
end
531
531
```
532
532
533
-
See [#545](https://github.com/intridea/Grape/pull/545) for more information.
533
+
See [#545](https://github.com/ruby-grape/Grape/pull/545) for more information.
534
534
535
535
536
536
### Upgrading to 0.6.0
@@ -547,4 +547,4 @@ rescue_from Grape::Exceptions::Validations do |e|
547
547
end
548
548
```
549
549
550
-
For more information see [#462](https://github.com/intridea/grape/issues/462).
550
+
For more information see [#462](https://github.com/ruby-grape/grape/issues/462).
0 commit comments