grape-roar 0.3.0 → 0.4.0

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
  SHA1:
3
- metadata.gz: f093829bf015a0d7e28dfde89dd892ef75f476ad
4
- data.tar.gz: 510c6d4ca8038ca89c9ffceb08ab4e4f331fdbea
3
+ metadata.gz: 35902dfffe597a1d52445e821a2bfa9dd69659eb
4
+ data.tar.gz: b0e312c15b9f890086c4238e1cfc6bd21a939d73
5
5
  SHA512:
6
- metadata.gz: 96fc420d047ff343877c733b2cba4c5a3e5dbec12dd10a4aaa8848145cf60313209cab853e60210783d6c58fc67cfd94d702f6d0e11a349b6d115e75ef2bc557
7
- data.tar.gz: aa92afe084b80dc6b09677b073a233c04d69ee65b7a0f17b699ffb92da87be20c8a103334fad6a2132ebfd0184deed23d60a4df01b1029eb00769bee6bf0ff3a
6
+ metadata.gz: 9764c7913adbb061397bc7a589ace6205e05d91ad4abcfcc6db4fe846789236e67938eda3cd47a78f1fd8b5af97dfd56d05553a2ad04fb03fdb00f1827d4220e
7
+ data.tar.gz: 4e2b82c862999d5f8e748624d7b8cfd099a5f3b4e057efc122bc2ecbdeb5e0aca356b034d28f393ec112bba45cbc2323406f38004765343eefb168f669ebea43
@@ -6,8 +6,5 @@ cache: bundler
6
6
 
7
7
  rvm:
8
8
  - ruby-head
9
- - 2.1.2
10
- - 2.0.0
11
- - 1.9.3
12
- - jruby-19mode
13
- - rbx-2.2.10
9
+ - 2.2.2
10
+ - 2.3.1
@@ -1,3 +1,7 @@
1
+ 0.4.0 (02/18/2017)
2
+ ------------------
3
+ * [#21](https://github.com/ruby-grape/grape-roar/pull/21): Fixes serialization issue due to [representable](https://github.com/trailblazer/representable) API change, drop support for Ruby < `2.1.0` - [@mach-kernel](https://github.com/mach-kernel).
4
+
1
5
  0.3.0 (12/31/2014)
2
6
  ------------------
3
7
 
@@ -6,7 +10,7 @@
6
10
  0.2.0 (12/18/2014)
7
11
  ------------------
8
12
 
9
- * [#10](https://github.com/dblock/grape-roar/pull/10): Support for Roar decorator - [@sdbondi](https://github.com/sdbondi).
13
+ * [#10](https://github.com/ruby-grape/grape-roar/pull/10): Support for Roar decorator - [@sdbondi](https://github.com/sdbondi).
10
14
 
11
15
  0.1.0 (7/17/2014)
12
16
  -----------------
@@ -1,16 +1,16 @@
1
1
  Contributing to Grape-Roar
2
2
  ==========================
3
3
 
4
- Grape-Roar is work of [many of contributors](https://github.com/dblock/grape-roar/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/dblock/grape-roar/pulls), [propose features and discuss issues](https://github.com/dblock/grape-roar/issues). When in doubt, ask a question in the [Grape Google Group](http://groups.google.com/group/ruby-grape).
4
+ Grape-Roar is work of [many of contributors](https://github.com/ruby-grape/grape-roar/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/ruby-grape/grape-roar/pulls), [propose features and discuss issues](https://github.com/ruby-grape/grape-roar/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/dblock/grape-roar) and check out your copy.
8
+ Fork the [project on Github](https://github.com/ruby-grape/grape-roar) and check out your copy.
9
9
 
10
10
  ```
11
11
  git clone https://github.com/contributor/grape-roar.git
12
12
  cd grape-roar
13
- git remote add upstream https://github.com/dblock/grape-roar.git
13
+ git remote add upstream https://github.com/ruby-grape/grape-roar.git
14
14
  ```
15
15
 
16
16
  #### Create a Topic Branch
@@ -63,10 +63,10 @@ git config --global user.name "Your Name"
63
63
  git config --global user.email "contributor@example.com"
64
64
  ```
65
65
 
66
- Writing good commit logs is important. A commit log should describe what changed and why.
66
+ Writing good commit logs is important. A commit log should describe what changed and why. Using the `-p` flag while committing will show you the diff of your changes as you add them to the current commit which helps avoid small errors (e.g. syntax or indentation) that sometimes make it through.
67
67
 
68
68
  ```
69
- git add ...
69
+ git add -p ...
70
70
  git commit
71
71
  ```
72
72
 
@@ -95,7 +95,7 @@ git push origin my-feature-branch -f
95
95
  Update the [CHANGELOG](CHANGELOG.md) with the pull request number. A typical entry looks as follows.
96
96
 
97
97
  ```
98
- * [#123](https://github.com/dblock/grape-roar/pull/123): Reticulated splines - [@contributor](https://github.com/contributor).
98
+ * [#123](https://github.com/ruby-grape/grape-roar/pull/123): Reticulated splines - [@contributor](https://github.com/contributor).
99
99
  ```
100
100
 
101
101
  Amend your previous commit and force push the changes.
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development do
6
- gem 'rake'
6
+ gem 'rake', '~> 10.5.0'
7
7
  end
8
8
 
9
9
  group :test do
data/README.md CHANGED
@@ -2,16 +2,16 @@ Grape::Roar
2
2
  ------------
3
3
 
4
4
  [![Gem Version](http://img.shields.io/gem/v/grape-roar.svg)](http://badge.fury.io/rb/grape-roar)
5
- [![Build Status](http://img.shields.io/travis/dblock/grape-roar.svg)](https://travis-ci.org/dblock/grape-roar)
6
- [![Dependency Status](https://gemnasium.com/dblock/grape-roar.svg)](https://gemnasium.com/dblock/grape-roar)
7
- [![Code Climate](https://codeclimate.com/github/dblock/grape-roar.svg)](https://codeclimate.com/github/dblock/grape-roar)
5
+ [![Build Status](http://img.shields.io/travis/ruby-grape/grape-roar.svg)](https://travis-ci.org/ruby-grape/grape-roar)
6
+ [![Dependency Status](https://gemnasium.com/ruby-grape/grape-roar.svg)](https://gemnasium.com/ruby-grape/grape-roar)
7
+ [![Code Climate](https://codeclimate.com/github/ruby-grape/grape-roar.svg)](https://codeclimate.com/github/ruby-grape/grape-roar)
8
8
 
9
9
  Use [Roar](https://github.com/apotonick/roar) with [Grape](https://github.com/intridea/grape).
10
10
 
11
11
  Demo
12
12
  ----
13
13
 
14
- The [grape-with-roar](https://github.com/dblock/grape-with-roar) project deployed [here on heroku](http://grape-with-roar.herokuapp.com).
14
+ The [grape-with-roar](https://github.com/ruby-grape/grape-with-roar) project deployed [here on heroku](http://grape-with-roar.herokuapp.com).
15
15
 
16
16
  Installation
17
17
  ------------
@@ -67,7 +67,7 @@ module ProductsRepresenter
67
67
  include Roar::Hypermedia
68
68
  include Grape::Roar::Representer
69
69
 
70
- collection :entries, extend: ProductPresenter, as: :products, embedded: true
70
+ collection :entries, extend: ProductRepresenter, as: :products, embedded: true
71
71
  end
72
72
  ```
73
73
 
@@ -0,0 +1,77 @@
1
+ # Releasing grape-roar
2
+
3
+ There're no particular rules about when to release grape-roar. 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-roar) for all supported platforms.
15
+
16
+ Increment the version, modify [lib/grape-roar/version.rb](lib/grape-roar/version.rb).
17
+
18
+ * Increment the third number if the release has bug fixes and/or very minor features, only (eg. change `0.3.1` to `0.3.2`).
19
+ * Increment the second number if the release contains major features or breaking API changes (eg. change `0.3.1` to `0.4.0`).
20
+
21
+ Change "Next Release" in [CHANGELOG.md](CHANGELOG.md) to the new version.
22
+
23
+ ```
24
+ ### 0.3.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 -p CHANGELOG.md lib/grape-roar/version.rb
33
+ git commit -m "Preparing for release, 0.4.0."
34
+ git tag 0.4.0
35
+ git push origin master
36
+ ```
37
+
38
+ Release.
39
+
40
+ ```
41
+ $ gem build grape-roar.gemspec
42
+ $ gem push grape-roar-0.4.0
43
+ ```
44
+
45
+ ### Prepare for the Next Version
46
+
47
+ Add the next release to [CHANGELOG.md](CHANGELOG.md).
48
+
49
+ ```
50
+ Next Release
51
+ ============
52
+
53
+ * Your contribution here.
54
+ ```
55
+
56
+ Commit your changes.
57
+
58
+ ```
59
+ git add CHANGELOG.md
60
+ git commit -m "Preparing for next release."
61
+ git push origin master
62
+ ```
63
+
64
+ ### Make an Announcement
65
+
66
+ Make an announcement on the [ruby-grape@googlegroups.com](mailto:ruby-grape@googlegroups.com) mailing list. The general format is as follows.
67
+
68
+ ```
69
+ grape-roar 0.4.0 has been released.
70
+
71
+ There was 1 contributor to this release, not counting documentation.
72
+
73
+ Please note the breaking API change in ...
74
+
75
+ [copy/paste CHANGELOG here]
76
+
77
+ ```
@@ -6,7 +6,8 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ['dblock@dblock.org']
7
7
  gem.description = 'Use Roar with Grape'
8
8
  gem.summary = 'Enable Resource-Oriented Architectures in Grape API DSL'
9
- gem.homepage = 'http://github.com/dblock/grape-roar'
9
+ gem.homepage = 'http://github.com/ruby-grape/grape-roar'
10
+ gem.license = 'MIT'
10
11
 
11
12
  gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
12
13
  gem.files = `git ls-files`.split("\n")
@@ -16,5 +17,6 @@ Gem::Specification.new do |gem|
16
17
  gem.version = Grape::Roar::VERSION
17
18
 
18
19
  gem.add_dependency 'grape'
19
- gem.add_dependency 'roar', '>= 1.0'
20
+ gem.add_dependency 'roar', '~> 1.1.0'
21
+ gem.required_ruby_version = '>= 2.1.0'
20
22
  end
@@ -3,7 +3,7 @@ module Grape
3
3
  module Roar
4
4
  class << self
5
5
  def call(object, env)
6
- object.respond_to?(:to_json) ? object.to_json(env: env) : MultiJson.dump(object)
6
+ object.respond_to?(:to_json) ? object.to_json(user_options: { env: env }) : MultiJson.dump(object)
7
7
  end
8
8
  end
9
9
  end
@@ -1,5 +1,5 @@
1
1
  module Grape
2
2
  module Roar
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
@@ -2,6 +2,7 @@ require 'support/article_representer'
2
2
 
3
3
  class Article
4
4
  include Roar::JSON
5
+ include Roar::Hypermedia
5
6
  include ArticleRepresenter
6
7
 
7
8
  attr_accessor :title, :id
@@ -2,6 +2,7 @@ require 'support/order_representer'
2
2
 
3
3
  class Order
4
4
  include Roar::JSON
5
+ include Roar::Hypermedia
5
6
  include OrderRepresenter
6
7
 
7
8
  attr_accessor :id, :client_id, :articles
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-roar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Doubrovkine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-31 00:00:00.000000000 Z
11
+ date: 2017-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: roar
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: 1.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: 1.1.0
41
41
  description: Use Roar with Grape
42
42
  email:
43
43
  - dblock@dblock.org
@@ -55,6 +55,7 @@ files:
55
55
  - Gemfile
56
56
  - LICENSE
57
57
  - README.md
58
+ - RELEASING.md
58
59
  - Rakefile
59
60
  - UPGRADING.md
60
61
  - grape-roar.gemspec
@@ -77,8 +78,9 @@ files:
77
78
  - spec/support/product_representer.rb
78
79
  - spec/support/user.rb
79
80
  - spec/support/user_representer.rb
80
- homepage: http://github.com/dblock/grape-roar
81
- licenses: []
81
+ homepage: http://github.com/ruby-grape/grape-roar
82
+ licenses:
83
+ - MIT
82
84
  metadata: {}
83
85
  post_install_message:
84
86
  rdoc_options: []
@@ -88,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
90
  requirements:
89
91
  - - ">="
90
92
  - !ruby/object:Gem::Version
91
- version: '0'
93
+ version: 2.1.0
92
94
  required_rubygems_version: !ruby/object:Gem::Requirement
93
95
  requirements:
94
96
  - - ">="
@@ -96,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
98
  version: '0'
97
99
  requirements: []
98
100
  rubyforge_project:
99
- rubygems_version: 2.2.2
101
+ rubygems_version: 2.5.2
100
102
  signing_key:
101
103
  specification_version: 4
102
104
  summary: Enable Resource-Oriented Architectures in Grape API DSL