grape-rabl 0.4.2 → 0.4.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f66c2fd9f44ff3363235629017ad85ef7aed831
4
- data.tar.gz: d97536b97d1bce6b360f967d59b8047651a1afda
3
+ metadata.gz: 8192a5ce63fc8fcde53a8948ad61e8b659f1e4b7
4
+ data.tar.gz: d10abacc60cfc20af4679e18302cbe2d2cdb1220
5
5
  SHA512:
6
- metadata.gz: a044c927a6dd449c97963c3f8dcf4450aa548db7d382c6fbb371f6ec43d0e3c6fbf4b4a896ae095648ffdf8233c8e342ca0148d49427c09103d8269ed06eb483
7
- data.tar.gz: 4dae323c5e5ef547e406eeb2c6b11ea7d2e3a473bc67fe6a7452ff0290fdcd7db4a395e004920f9bb8d22acc41d2d9396fd36aee8ceb974288e95ce199623fa0
6
+ metadata.gz: ea70396b25b43e9ca3daa526679c86989fef25b014ae9683048d2b17ad57ef82f5459ea17667c85a546b03b75c6b2f13c06a95cb029f1527e632496cf5eacbd7
7
+ data.tar.gz: 3ef3faaa10a3f10bb83f2b68fe3fb00ebccae89e450a49e9c1912bdd58dd93711906e40abea81e431edae320b8694a8cb7b2022ad077906f42f383764ab81628
@@ -1,14 +1,13 @@
1
+ before_install: gem install bundler -v '1.15.0'
1
2
  rvm:
2
- - 2.0.0
3
- - 2.1.0
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
@@ -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
- * Fix template caching for multiple formats. [#43](https://github.com/ruby-grape/grape-rabl/pull/43) [@kushkella](https://github.com/kushkella)
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
- * Automatically require 'grape/rabl'. [#39](https://github.com/ruby-grape/grape-rabl/issues/39) [@martinezcoder](https://github.com/martinezcoder)
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
- * Make grape-rabl thread-safe. [#37](https://github.com/ruby-grape/grape-rabl/issues/37) [@kushkella](https://github.com/kushkella)
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. [#35](https://github.com/ruby-grape/grape-rabl/issues/35) [@yesmeck](https://github.com/yesmeck)
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. [@koko1000ban](https://github.com/koko1000ban) [view commit](https://github.com/ruby-grape/grape-rabl/commit/1fbfbd58c3fb320be1b52b3247fda2a23cacc9fc)
20
- * Implemented Rubocop, Ruby style linter. [@dblock](https://github.com/dblock) [view commit](https://github.com/ruby-grape/grape-rabl/commit/1211056de22a5989c063d57b7b37ebb1f1977e83)
21
- * Removed JRuby support. [@dblock](https://github.com/dblock) [view commit](https://github.com/ruby-grape/grape-rabl/commit/59905c1b09670fe08501e09bad4ec8714839f2d3)
22
- * Enable using locals with #render. [@hobofan](https://github.com/hobofan) [view commit](https://github.com/ruby-grape/grape-rabl/commit/6c24130f6a670e52e6119c56904b8ed2e6f60b39)
23
- * Enable support for template caching. [#28](https://github.com/ruby-grape/grape-rabl/pull/28) [@kushkella](https://github.com/kushkella) [view commit](https://github.com/ruby-grape/grape-rabl/commit/79b1e58d767c6286b510af669e718310c0ad25c2)
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
- * Relaxed dependency on a specific version of Grape. [#20](https://github.com/ruby-grape/grape-rabl/pull/20) [@cheef](https://github.com/cheef) [view commit](https://github.com/ruby-grape/grape-rabl/commit/56da0a5bcecb16501cdd93ac25f3b6ca6d7a86f0)
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
- * Fix: render template according to request format. [#11](https://github.com/ruby-grape/grape-rabl/pull/11) [@alovak](https://github.com/alovak) [view commit](http://github.com/ruby-grape/grape-rabl/commit/f9658cf7a3026122afbb77e0da613731a5828338)
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
- * Allow to use partials in Grape. [#10](https://github.com/ruby-grape/grape-rabl/pull/10) [@ichilton](https://github.com/ichilton) [view commit](http://github.com/ruby-grape/grape-rabl/commit/72c96c5acc9d8000f56ee8400ae0229053fb3e7e)
36
- * Stick to gem conventions. [@LTe](https://github.com/lte) [view commit](http://github.com/ruby-grape/grape-rabl/commit/aabd0e2ad72f56a75427eebcc586deed57cf5f58)
37
- * Update for Grape 0.3 compatibility. [@alovak](https://github.com/alovak) [view commit](http://github.com/ruby-grape/grape-rabl/commit/78bfdceffbfe90b700868ff1e79ab87e8baded81)
38
- * Format fix. [@LTe](https://github.com/lte) [view commit](http://github.com/ruby-grape/grape-rabl/commit/13749cc18d332dcd0050bb32980cc233868a7992)
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/ released Grape 0.2.3. [view commit](http://github.com/ruby-grape/grape-rabl/commit/9a055dfd8e13e0952a587de7a2e19c9f762e939c)
43
- * Added link to Rabl. [view commit](http://github.com/ruby-grape/grape-rabl/commit/2a7650cb5f9327761cac8b928453e451a973e131)
44
- * Grape 0.2.x and put back dependency status. [view commit](http://github.com/ruby-grape/grape-rabl/commit/9c1183f3758db8a79737ff35f0c328be646a3f65)
45
- * Grape 0.2.3. [view commit](http://github.com/ruby-grape/grape-rabl/commit/d06a6559a02095e1d84fbbd8df0c3eccdd31930b)
46
- * Updated Grape dependency via .gemspec. [view commit](http://github.com/ruby-grape/grape-rabl/commit/fd44b6a91fa327438eac968fea62ac00ec3ae01f)
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. [view commit](http://github.com/ruby-grape/grape-rabl/commit/bfba4c382933fd0f912d9114676b6d79d627c3be)
51
- * Close block code in README. [view commit](http://github.com/ruby-grape/grape-rabl/commit/f397a0de4399d0797b5e327d56234464091d7e3d)
52
- * Change home to user. [view commit](http://github.com/ruby-grape/grape-rabl/commit/45178ec13c613d872c65475b330d20a548459681)
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. [view commit](http://github.com/ruby-grape/grape-rabl/commit/ac54ebbb1d43d1fb76ee9516c5aa683c750c73b0)
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`. [view commit](http://github.com/ruby-grape/grape-rabl/commit/e99a185b20974f5e72ac3c19ec377a5853780a33)
67
+ * Require `grape/rabl` - [@LTe](https://github.com/LTe).
61
68
 
62
69
  #### v0.0.3
63
70
 
64
- * Template without `.rabl`. [view commit](http://github.com/ruby-grape/grape-rabl/commit/cecca03a680f8ae50b406e1b8c170eba27d1bc99)
71
+ * Template without `.rabl` - [@LTe](https://github.com/LTe).
65
72
 
66
73
  #### v0.0.2
67
74
 
68
- * Add Travis. [view commit](http://github.com/ruby-grape/grape-rabl/commit/71c905bc91066c6fdb628afb555561e23219e213)
69
- * Remove ruby debug. [view commit](http://github.com/ruby-grape/grape-rabl/commit/f80fad14a49b14ae7264b08eff12832c37cbd0b2)
70
- * Works with rubinius. [view commit](http://github.com/ruby-grape/grape-rabl/commit/fceece344de095916ded7c477bb5891537bb8663)
71
- * Add dependency status. [view commit](http://github.com/ruby-grape/grape-rabl/commit/66820fb52155c65d4cd9bd7b67f0f22c1105fa46)
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. [@LTe](https://github.com/lte)
82
+ * Initial public release - [@LTe](https://github.com/lte).
@@ -0,0 +1 @@
1
+ danger.import_dangerfile(gem: 'ruby-grape-danger')
data/Gemfile CHANGED
@@ -13,8 +13,5 @@ group :test do
13
13
  gem 'rake'
14
14
  gem 'coveralls', require: false
15
15
  gem 'rabl'
16
-
17
- platforms :rbx do
18
- gem 'iconv'
19
- end
16
+ gem 'ruby-grape-danger', '~> 0.1.1', require: false
20
17
  end
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
- 1. Fork it
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
 
@@ -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
+ ```
@@ -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 = '>= 1.9.3'
17
+ gem.required_ruby_version = '>= 2.2.0'
18
18
 
19
19
  gem.add_dependency 'grape'
20
20
  gem.add_dependency 'rabl'
@@ -1,6 +1,5 @@
1
1
  require 'rabl'
2
2
  require 'grape'
3
- require 'hashie/hash'
4
3
  require 'grape/rabl'
5
4
  require 'grape-rabl/tilt'
6
5
  require 'grape-rabl/version'
@@ -1,5 +1,5 @@
1
1
  module Grape
2
2
  module Rabl
3
- VERSION = '0.4.2'.freeze
3
+ VERSION = '0.4.3'.freeze
4
4
  end
5
5
  end
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.2
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: 2016-06-08 00:00:00.000000000 Z
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: 1.9.3
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.4
133
+ rubygems_version: 2.6.12
132
134
  signing_key:
133
135
  specification_version: 4
134
136
  summary: Use rabl in grape