grape-rabl 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -8
- data/CHANGELOG.md +38 -31
- data/Dangerfile +1 -0
- data/Gemfile +1 -4
- data/README.md +2 -7
- data/RELEASING.md +64 -0
- data/grape-rabl.gemspec +1 -1
- data/lib/grape-rabl.rb +0 -1
- data/lib/grape-rabl/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8192a5ce63fc8fcde53a8948ad61e8b659f1e4b7
|
4
|
+
data.tar.gz: d10abacc60cfc20af4679e18302cbe2d2cdb1220
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea70396b25b43e9ca3daa526679c86989fef25b014ae9683048d2b17ad57ef82f5459ea17667c85a546b03b75c6b2f13c06a95cb029f1527e632496cf5eacbd7
|
7
|
+
data.tar.gz: 3ef3faaa10a3f10bb83f2b68fe3fb00ebccae89e450a49e9c1912bdd58dd93711906e40abea81e431edae320b8694a8cb7b2022ad077906f42f383764ab81628
|
data/.travis.yml
CHANGED
@@ -1,14 +1,13 @@
|
|
1
|
+
before_install: gem install bundler -v '1.15.0'
|
1
2
|
rvm:
|
2
|
-
- 2.
|
3
|
-
- 2.
|
3
|
+
- 2.2.0
|
4
|
+
- 2.3.0
|
4
5
|
- ruby-head
|
5
|
-
- jruby-19mode
|
6
|
-
- jruby-head
|
7
|
-
- rbx-2
|
8
6
|
|
9
7
|
matrix:
|
8
|
+
include:
|
9
|
+
- rvm: 2.3.1
|
10
|
+
script:
|
11
|
+
- bundle exec danger
|
10
12
|
allow_failures:
|
11
|
-
- rvm: jruby-19mode
|
12
|
-
- rvm: jruby-head
|
13
13
|
- rvm: ruby-head
|
14
|
-
- rvm: rbx-2
|
data/CHANGELOG.md
CHANGED
@@ -1,75 +1,82 @@
|
|
1
|
+
#### v0.4.3
|
2
|
+
|
3
|
+
* [#44](https://github.com/ruby-grape/grape-rabl/issues/44): Don't require unused hashie - [@tsuwatch](https://github.com/tsuwatch).
|
4
|
+
* [#44](https://github.com/ruby-grape/grape-rabl/issues/44): Support Ruby >= 2.2 - [@tsuwatch](https://github.com/tsuwatch).
|
5
|
+
* [#45](https://github.com/ruby-grape/grape-rabl/pull/45): Added danger, PR linter - [@dblock](https://github.com/dblock).
|
6
|
+
|
1
7
|
#### v0.4.2
|
2
8
|
|
3
|
-
*
|
9
|
+
* [#43](https://github.com/ruby-grape/grape-rabl/pull/43): Fix template caching for multiple formats - [@kushkella](https://github.com/kushkella).
|
4
10
|
|
5
11
|
#### v0.4.1
|
6
12
|
|
7
|
-
*
|
13
|
+
* [#39](https://github.com/ruby-grape/grape-rabl/issues/39): Automatically require 'grape/rabl' - [@martinezcoder](https://github.com/martinezcoder).
|
8
14
|
|
9
15
|
#### v0.4.0
|
10
16
|
|
11
|
-
*
|
17
|
+
* [#37](https://github.com/ruby-grape/grape-rabl/issues/37): Make grape-rabl thread-safe - [@kushkella](https://github.com/kushkella).
|
12
18
|
|
13
19
|
#### v0.3.1
|
14
20
|
|
15
|
-
* The `render` method will no longer modify endpoint options at runtime
|
21
|
+
* [#35](https://github.com/ruby-grape/grape-rabl/issues/35): The `render` method will no longer modify endpoint options at runtime - [@yesmeck](https://github.com/yesmeck).
|
16
22
|
|
17
23
|
#### v0.3.0
|
18
24
|
|
19
|
-
* Enable using a layout template in Rabl
|
20
|
-
* Implemented Rubocop, Ruby style linter
|
21
|
-
* Removed JRuby support
|
22
|
-
* Enable using locals with
|
23
|
-
* Enable support for template caching
|
25
|
+
* [#22](https://github.com/ruby-grape/grape-rabl/pull/22): Enable using a layout template in Rabl - [@koko1000ban](https://github.com/koko1000ban).
|
26
|
+
* Implemented Rubocop, Ruby style linter - [@dblock](https://github.com/dblock).
|
27
|
+
* Removed JRuby support - [@dblock](https://github.com/dblock).
|
28
|
+
* Enable using locals with `.render` - [@hobofan](https://github.com/hobofan).
|
29
|
+
* Enable support for template caching - [@kushkella](https://github.com/kushkella).
|
30
|
+
|
24
31
|
|
25
32
|
#### v0.2.2
|
26
33
|
|
27
|
-
*
|
34
|
+
* [#20](https://github.com/ruby-grape/grape-rabl/pull/20): Relaxed dependency on a specific version of Grape - [@cheef](https://github.com/cheef).
|
28
35
|
|
29
36
|
#### v0.2.1
|
30
37
|
|
31
|
-
*
|
38
|
+
* [#11](https://github.com/ruby-grape/grape-rabl/pull/11): Fix: render template according to request format - [@alovak](https://github.com/alovak).
|
32
39
|
|
33
40
|
#### v0.2.0
|
34
41
|
|
35
|
-
*
|
36
|
-
* Stick to gem conventions
|
37
|
-
* Update for Grape 0.3 compatibility
|
38
|
-
* Format fix
|
42
|
+
* [#10](https://github.com/ruby-grape/grape-rabl/pull/10): Allow to use partials in Grape - [@ichilton](https://github.com/ichilton).
|
43
|
+
* Stick to gem conventions - [@LTe](https://github.com/lte).
|
44
|
+
* [#13](https://github.com/ruby-grape/grape-rabl/pull/13): Update for Grape 0.3 compatibility - [@alovak](https://github.com/alovak).
|
45
|
+
* Format fix - [@LTe](https://github.com/LTe).
|
39
46
|
|
40
47
|
#### v0.1.0
|
41
48
|
|
42
|
-
* Updated w/
|
43
|
-
* Added link to Rabl
|
44
|
-
* Grape 0.2.x and put back dependency status
|
45
|
-
* Grape 0.2.3
|
46
|
-
* Updated Grape dependency via .gemspec
|
49
|
+
* Updated w/released Grape 0.2.3 - [@dblock](https://github.com/dblock).
|
50
|
+
* Added link to Rabl - [@dblock](https://github.com/dblock).
|
51
|
+
* Grape 0.2.x and put back dependency status - [@dblock](https://github.com/dblock).
|
52
|
+
* Grape 0.2.3 - [@dblock](https://github.com/dblock).
|
53
|
+
* Updated Grape dependency via .gemspec - [@dblock](https://github.com/dblock).
|
47
54
|
|
48
55
|
#### v0.0.6
|
49
56
|
|
50
|
-
* Use Grape formatter syntax instead of monkey-patching
|
51
|
-
* Close block code in README
|
52
|
-
* Change home to user
|
57
|
+
* [#6](https://github.com/ruby-grape/grape-rabl/pull/6): Use Grape formatter syntax instead of monkey-patching - [@dblock](https://github.com/dblock).
|
58
|
+
* Close block code in README - [@LTe](https://github.com/LTe).
|
59
|
+
* Change home to user - [@LTe](https://github.com/LTe).
|
53
60
|
|
54
61
|
#### v0.0.5
|
55
62
|
|
56
|
-
* Respect default_format for rabl response
|
63
|
+
* Respect `default_format` for rabl response - [@LTe](https://github.com/LTe).
|
57
64
|
|
58
65
|
#### v0.0.4
|
59
66
|
|
60
|
-
* Require `grape/rabl
|
67
|
+
* Require `grape/rabl` - [@LTe](https://github.com/LTe).
|
61
68
|
|
62
69
|
#### v0.0.3
|
63
70
|
|
64
|
-
* Template without `.rabl
|
71
|
+
* Template without `.rabl` - [@LTe](https://github.com/LTe).
|
65
72
|
|
66
73
|
#### v0.0.2
|
67
74
|
|
68
|
-
* Add Travis
|
69
|
-
* Remove ruby debug
|
70
|
-
* Works with rubinius
|
71
|
-
* Add dependency status
|
75
|
+
* Add Travis - [@LTe](https://github.com/LTe).
|
76
|
+
* Remove ruby debug - [@LTe](https://github.com/LTe).
|
77
|
+
* Works with rubinius - [@LTe](https://github.com/LTe).
|
78
|
+
* Add dependency status - [@LTe](https://github.com/LTe).
|
72
79
|
|
73
80
|
#### v0.0.1
|
74
81
|
|
75
|
-
* Initial public release
|
82
|
+
* Initial public release - [@LTe](https://github.com/lte).
|
data/Dangerfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
danger.import_dangerfile(gem: 'ruby-grape-danger')
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -24,6 +24,7 @@ And then execute:
|
|
24
24
|
## Usage
|
25
25
|
|
26
26
|
### Setup view root directory
|
27
|
+
|
27
28
|
```ruby
|
28
29
|
# config.ru
|
29
30
|
use Rack::Config do |env|
|
@@ -194,15 +195,9 @@ See ["Writing Tests"](https://github.com/intridea/grape#writing-tests) in [https
|
|
194
195
|
|
195
196
|
Enjoy :)
|
196
197
|
|
197
|
-
|
198
198
|
## Contributing
|
199
199
|
|
200
|
-
|
201
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
202
|
-
3. Commit your changes (`git commit -am 'Added some feature'`)
|
203
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
204
|
-
5. Create new Pull Request
|
205
|
-
|
200
|
+
See [CONTRIBUTING](CONTRIBUTING.md).
|
206
201
|
|
207
202
|
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/ruby-grape/grape-rabl/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
|
208
203
|
|
data/RELEASING.md
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# Releasing Grape-Rabl
|
2
|
+
|
3
|
+
There're no particular rules about when to release grape-rabl. Release bug fixes frequently, features not so frequently and breaking API changes rarely.
|
4
|
+
|
5
|
+
### Release
|
6
|
+
|
7
|
+
Run tests, check that all tests succeed locally.
|
8
|
+
|
9
|
+
```
|
10
|
+
bundle install
|
11
|
+
rake
|
12
|
+
```
|
13
|
+
|
14
|
+
Check that the last build succeeded in [Travis CI](https://travis-ci.org/ruby-grape/grape-rabl) for all supported platforms.
|
15
|
+
|
16
|
+
Increment the version, modify [lib/grape-rabl/version.rb](lib/grape-rabl/version.rb).
|
17
|
+
|
18
|
+
* Increment the third number if the release has bug fixes and/or very minor features, only (eg. change `0.7.1` to `0.7.2`).
|
19
|
+
* Increment the second number if the release contains major features or breaking API changes (eg. change `0.7.1` to `0.8.0`).
|
20
|
+
|
21
|
+
Change "Next Release" in [CHANGELOG.md](CHANGELOG.md) to the new version.
|
22
|
+
|
23
|
+
```
|
24
|
+
### 0.7.2 (February 6, 2014)
|
25
|
+
```
|
26
|
+
|
27
|
+
Remove the line with "Your contribution here.", since there will be no more contributions to this release.
|
28
|
+
|
29
|
+
Commit your changes.
|
30
|
+
|
31
|
+
```
|
32
|
+
git add CHANGELOG.md lib/grape-rabl/version.rb
|
33
|
+
git commit -m "Preparing for release, 0.7.2."
|
34
|
+
git push origin master
|
35
|
+
```
|
36
|
+
|
37
|
+
Release.
|
38
|
+
|
39
|
+
```
|
40
|
+
$ rake release
|
41
|
+
|
42
|
+
grape-rabl 0.7.2 built to pkg/grape-rabl-0.7.2.gem.
|
43
|
+
Tagged v0.7.2.
|
44
|
+
Pushed git commits and tags.
|
45
|
+
Pushed grape-rabl 0.7.2 to rubygems.org.
|
46
|
+
```
|
47
|
+
|
48
|
+
### Prepare for the Next Version
|
49
|
+
|
50
|
+
Add the next release to [CHANGELOG.md](CHANGELOG.md).
|
51
|
+
|
52
|
+
```
|
53
|
+
#### Next
|
54
|
+
|
55
|
+
* Your contribution here.
|
56
|
+
```
|
57
|
+
|
58
|
+
Commit your changes.
|
59
|
+
|
60
|
+
```
|
61
|
+
git add CHANGELOG.md
|
62
|
+
git commit -m "Preparing for next development iteration, 0.7.3."
|
63
|
+
git push origin master
|
64
|
+
```
|
data/grape-rabl.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.name = 'grape-rabl'
|
15
15
|
gem.require_paths = ['lib']
|
16
16
|
gem.version = Grape::Rabl::VERSION
|
17
|
-
gem.required_ruby_version = '>=
|
17
|
+
gem.required_ruby_version = '>= 2.2.0'
|
18
18
|
|
19
19
|
gem.add_dependency 'grape'
|
20
20
|
gem.add_dependency 'rabl'
|
data/lib/grape-rabl.rb
CHANGED
data/lib/grape-rabl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape-rabl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Niełacny
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grape
|
@@ -81,9 +81,11 @@ files:
|
|
81
81
|
- ".travis.yml"
|
82
82
|
- CHANGELOG.md
|
83
83
|
- CONTRIBUTING.md
|
84
|
+
- Dangerfile
|
84
85
|
- Gemfile
|
85
86
|
- LICENSE
|
86
87
|
- README.md
|
88
|
+
- RELEASING.md
|
87
89
|
- Rakefile
|
88
90
|
- grape-rabl.gemspec
|
89
91
|
- lib/grape-rabl.rb
|
@@ -120,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
122
|
requirements:
|
121
123
|
- - ">="
|
122
124
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
125
|
+
version: 2.2.0
|
124
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
127
|
requirements:
|
126
128
|
- - ">="
|
@@ -128,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
130
|
version: '0'
|
129
131
|
requirements: []
|
130
132
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.6.
|
133
|
+
rubygems_version: 2.6.12
|
132
134
|
signing_key:
|
133
135
|
specification_version: 4
|
134
136
|
summary: Use rabl in grape
|