grape-roar 0.4.0 → 0.5.0
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 +5 -5
- data/.github/FUNDING.yml +2 -0
- data/.github/dependabot.yml +6 -0
- data/.github/workflows/danger.yml +22 -0
- data/.github/workflows/lint.yml +15 -0
- data/.github/workflows/test-activerecord.yml +34 -0
- data/.github/workflows/test-mongodb.yml +33 -0
- data/.github/workflows/test.yml +19 -0
- data/.gitignore +1 -0
- data/.rspec +1 -0
- data/.rubocop.yml +6 -1
- data/.rubocop_todo.yml +181 -10
- data/CHANGELOG.md +20 -8
- data/Dangerfile +4 -0
- data/Gemfile +18 -7
- data/Gemfile.danger +6 -0
- data/README.md +255 -18
- data/Rakefile +3 -1
- data/grape-roar.gemspec +5 -3
- data/lib/grape/roar/decorator.rb +2 -0
- data/lib/grape/roar/extensions/relations/adapters/active_record.rb +35 -0
- data/lib/grape/roar/extensions/relations/adapters/base.rb +49 -0
- data/lib/grape/roar/extensions/relations/adapters/mongoid.rb +38 -0
- data/lib/grape/roar/extensions/relations/adapters.rb +22 -0
- data/lib/grape/roar/extensions/relations/dsl_methods.rb +86 -0
- data/lib/grape/roar/extensions/relations/exceptions.rb +14 -0
- data/lib/grape/roar/extensions/relations/mapper.rb +94 -0
- data/lib/grape/roar/extensions/relations/validations/active_record.rb +40 -0
- data/lib/grape/roar/extensions/relations/validations/misc.rb +18 -0
- data/lib/grape/roar/extensions/relations/validations/mongoid/6.rb +48 -0
- data/lib/grape/roar/extensions/relations/validations/mongoid/7.rb +75 -0
- data/lib/grape/roar/extensions/relations/validations/mongoid.rb +9 -0
- data/lib/grape/roar/extensions/relations/validations.rb +5 -0
- data/lib/grape/roar/extensions/relations.rb +23 -0
- data/lib/grape/roar/extensions.rb +3 -0
- data/lib/grape/roar/formatter.rb +2 -0
- data/lib/grape/roar/representer.rb +6 -1
- data/lib/grape/roar/version.rb +3 -1
- data/lib/grape/roar.rb +3 -0
- data/lib/grape-roar.rb +2 -0
- data/spec/config/mongoid.yml +6 -0
- data/spec/decorator_spec.rb +1 -1
- data/spec/extensions/relations/adapters/active_record_spec.rb +30 -0
- data/spec/extensions/relations/adapters/adapters_module_spec.rb +12 -0
- data/spec/extensions/relations/adapters/mongoid_spec.rb +30 -0
- data/spec/extensions/relations/dsl_methods_spec.rb +159 -0
- data/spec/extensions/relations/mapper_spec.rb +88 -0
- data/spec/extensions/relations/validations/active_record_spec.rb +49 -0
- data/spec/extensions/relations/validations/mongoid_spec.rb +91 -0
- data/spec/nested_representer_spec.rb +3 -14
- data/spec/present_with_spec.rb +2 -13
- data/spec/relations_spec.rb +77 -0
- data/spec/representer_spec.rb +36 -19
- data/spec/spec_helper.rb +19 -1
- data/spec/support/{article.rb → all/article.rb} +3 -1
- data/spec/support/{article_representer.rb → all/article_representer.rb} +3 -0
- data/spec/support/all/grape_app_context.rb +16 -0
- data/spec/support/{order.rb → all/order.rb} +3 -1
- data/spec/support/{order_representer.rb → all/order_representer.rb} +3 -1
- data/spec/support/{product.rb → all/product.rb} +2 -0
- data/spec/support/{product_representer.rb → all/product_representer.rb} +3 -1
- data/spec/support/{user.rb → all/user.rb} +2 -0
- data/spec/support/{user_representer.rb → all/user_representer.rb} +2 -0
- data/spec/support/mongoid/relational_models/cart.rb +7 -0
- data/spec/support/mongoid/relational_models/item.rb +7 -0
- data/spec/support/mongoid/relational_models/mongoid_cart_representer.rb +27 -0
- data/spec/support/mongoid/relational_models/mongoid_item_representer.rb +13 -0
- metadata +68 -17
- data/.travis.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 887bd8d1a53f42649682a8df91a13dc3143225a87ded8dc347c57971e5af4e0d
|
4
|
+
data.tar.gz: 1e4993cb040f531d43c0f4c7667c36e4f60c78913fd924d1acc85d56c4b33121
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a34c2b45f19f32fe162888b1aead79d38c873b8e401359f508fa64871be69544c536dab862c339b6352a67bb48c1f65653b175040ddcdf9845366a281cb1625f
|
7
|
+
data.tar.gz: 507e0234bd5c0835926d4d13a68f7ea0fc506ca371de03a5231a5ad560fa9a33be72e15e67bcf82b92ff80f8fcb4a13b8a5b20f151b2123ba79c0cb65b5be543
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
name: danger
|
2
|
+
on: pull_request
|
3
|
+
jobs:
|
4
|
+
danger:
|
5
|
+
name: Dangerfile
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
env:
|
8
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/Gemfile.danger
|
9
|
+
steps:
|
10
|
+
- name: Checkout
|
11
|
+
uses: actions/checkout@v5
|
12
|
+
with:
|
13
|
+
fetch-depth: 0
|
14
|
+
- name: Set up Ruby
|
15
|
+
uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: '3.4'
|
18
|
+
bundler-cache: true
|
19
|
+
- run: |
|
20
|
+
# the token is public, has public_repo scope and belongs to the grape-bot user owned by @dblock, this is ok
|
21
|
+
TOKEN=$(echo -n Z2hwX2lYb0dPNXNyejYzOFJyaTV3QUxUdkNiS1dtblFwZTFuRXpmMwo= | base64 --decode)
|
22
|
+
DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
|
@@ -0,0 +1,15 @@
|
|
1
|
+
name: lint
|
2
|
+
on: [push, pull_request]
|
3
|
+
jobs:
|
4
|
+
rubocop:
|
5
|
+
name: RuboCop
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
steps:
|
8
|
+
- name: Checkout
|
9
|
+
uses: actions/checkout@v5
|
10
|
+
- name: Set up Ruby
|
11
|
+
uses: ruby/setup-ruby@v1
|
12
|
+
with:
|
13
|
+
ruby-version: '3.4'
|
14
|
+
bundler-cache: true
|
15
|
+
- run: bundle exec rubocop
|
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
name: test-activerecord
|
3
|
+
on: [push, pull_request]
|
4
|
+
jobs:
|
5
|
+
test:
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
strategy:
|
8
|
+
matrix:
|
9
|
+
entry:
|
10
|
+
- { ruby: '3.4', postgresql: '15', activerecord: '~> 6.1.0', grape: '~> 1.8.0' }
|
11
|
+
- { ruby: '3.4', postgresql: '16', activerecord: '~> 7.2.0', grape: '~> 2.4.0' }
|
12
|
+
- { ruby: '3.4', postgresql: '17', activerecord: '~> 8.0.3', grape: '~> 2.4.0' }
|
13
|
+
name: test (ruby=${{ matrix.entry.ruby }}, postgresql=${{ matrix.entry.postgresql }}, activerecord=${{ matrix.entry.activerecord }}, grape=${{ matrix.entry.grape }})
|
14
|
+
env:
|
15
|
+
ACTIVERECORD_VERSION: ${{ matrix.entry.activerecord }}
|
16
|
+
GRAPE_VERSION: ${{ matrix.entry.grape }}
|
17
|
+
steps:
|
18
|
+
- uses: harmon758/postgresql-action@v1
|
19
|
+
with:
|
20
|
+
postgresql version: ${{ matrix.entry.postgresql }}
|
21
|
+
postgresql db: slack_ruby_bot_server_test
|
22
|
+
postgresql user: test
|
23
|
+
postgresql password: password
|
24
|
+
- uses: actions/checkout@v5
|
25
|
+
- uses: ruby/setup-ruby@v1
|
26
|
+
with:
|
27
|
+
ruby-version: ${{ matrix.entry.ruby }}
|
28
|
+
bundler-cache: true
|
29
|
+
- name: Run ActiveRecord Tests
|
30
|
+
env:
|
31
|
+
SPEC_OPTS: --tag activerecord
|
32
|
+
run: bundle exec rake
|
33
|
+
- name: Run Tests
|
34
|
+
run: bundle exec rake
|
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
name: test-mongodb
|
3
|
+
on: [push, pull_request]
|
4
|
+
jobs:
|
5
|
+
test:
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
strategy:
|
8
|
+
matrix:
|
9
|
+
entry:
|
10
|
+
- { ruby: '3.4', mongoid: '~> 6.4.8', mongodb: '6.0', grape: '~> 1.7.0' }
|
11
|
+
- { ruby: '3.4', mongoid: '~> 6.4.8', mongodb: '6.0', grape: '~> 2.0.0' }
|
12
|
+
- { ruby: '3.4', mongoid: '~> 7.5.4', mongodb: '7.0', grape: '~> 2.4.0' }
|
13
|
+
- { ruby: '3.4', mongoid: '~> 8.1.11', mongodb: '8.0', grape: '~> 2.4.0' }
|
14
|
+
- { ruby: '3.4', mongoid: '~> 9.0.8', mongodb: '8.0', grape: '~> 2.4.0' }
|
15
|
+
name: test (ruby=${{ matrix.entry.ruby }}, mongoid=${{ matrix.entry.mongoid }}, mongodb=${{ matrix.entry.mongodb }}, grape=${{ matrix.entry.grape }})
|
16
|
+
env:
|
17
|
+
MONGOID_VERSION: ${{ matrix.entry.mongoid }}
|
18
|
+
GRAPE_VERSION: ${{ matrix.entry.grape }}
|
19
|
+
steps:
|
20
|
+
- uses: actions/checkout@v5
|
21
|
+
- uses: ruby/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.entry.ruby }}
|
24
|
+
bundler-cache: true
|
25
|
+
- uses: supercharge/mongodb-github-action@1.12.0
|
26
|
+
with:
|
27
|
+
mongodb-version: ${{ matrix.entry.mongodb }}
|
28
|
+
- name: Run Tests
|
29
|
+
run: bundle exec rake
|
30
|
+
- name: Run Mongoid Tagged Tests
|
31
|
+
env:
|
32
|
+
SPEC_OPTS: --tag mongoid
|
33
|
+
run: bundle exec rake
|
@@ -0,0 +1,19 @@
|
|
1
|
+
---
|
2
|
+
name: test
|
3
|
+
on: [push, pull_request]
|
4
|
+
jobs:
|
5
|
+
test:
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
strategy:
|
8
|
+
matrix:
|
9
|
+
entry:
|
10
|
+
- { ruby: 3.4 }
|
11
|
+
name: test (ruby=${{ matrix.entry.ruby }})
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v5
|
14
|
+
- uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: ${{ matrix.entry.ruby }}
|
17
|
+
bundler-cache: true
|
18
|
+
- name: Run Tests
|
19
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/.rspec
CHANGED
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,20 +1,191 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
#
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2025-09-25 02:19:21 UTC using RuboCop version 1.80.2.
|
3
4
|
# The point is for the user to remove these configuration records
|
4
5
|
# one by one as the offenses are removed from the code base.
|
5
6
|
# Note that changes in the inspected code, or installation of new
|
6
7
|
# versions of RuboCop, may require this file to be generated again.
|
7
8
|
|
9
|
+
# Offense count: 1
|
10
|
+
# Configuration parameters: Severity.
|
11
|
+
Gemspec/RequiredRubyVersion:
|
12
|
+
Exclude:
|
13
|
+
- 'grape-roar.gemspec'
|
14
|
+
|
15
|
+
# Offense count: 1
|
16
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
17
|
+
Metrics/MethodLength:
|
18
|
+
Max: 11
|
19
|
+
|
20
|
+
# Offense count: 1
|
21
|
+
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
22
|
+
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
|
23
|
+
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
24
|
+
Naming/FileName:
|
25
|
+
Exclude:
|
26
|
+
- 'Rakefile.rb'
|
27
|
+
- 'lib/grape-roar.rb'
|
28
|
+
|
29
|
+
# Offense count: 9
|
30
|
+
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros, UseSorbetSigs.
|
31
|
+
# NamePrefix: is_, has_, have_, does_
|
32
|
+
# ForbiddenPrefixes: is_, has_, have_, does_
|
33
|
+
# AllowedMethods: is_a?
|
34
|
+
# MethodDefinitionMacros: define_method, define_singleton_method
|
35
|
+
Naming/PredicatePrefix:
|
36
|
+
Exclude:
|
37
|
+
- 'spec/**/*'
|
38
|
+
- 'lib/grape/roar/extensions/relations/validations/active_record.rb'
|
39
|
+
- 'lib/grape/roar/extensions/relations/validations/mongoid/6.rb'
|
40
|
+
- 'lib/grape/roar/extensions/relations/validations/mongoid/7.rb'
|
41
|
+
|
8
42
|
# Offense count: 8
|
9
|
-
#
|
10
|
-
|
11
|
-
|
43
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
44
|
+
RSpec/BeEql:
|
45
|
+
Exclude:
|
46
|
+
- 'spec/extensions/relations/adapters/active_record_spec.rb'
|
47
|
+
- 'spec/extensions/relations/adapters/mongoid_spec.rb'
|
48
|
+
- 'spec/extensions/relations/validations/active_record_spec.rb'
|
49
|
+
- 'spec/extensions/relations/validations/mongoid_spec.rb'
|
50
|
+
- 'spec/relations_spec.rb'
|
51
|
+
|
52
|
+
# Offense count: 11
|
53
|
+
# Configuration parameters: Prefixes, AllowedPatterns.
|
54
|
+
# Prefixes: when, with, without
|
55
|
+
RSpec/ContextWording:
|
56
|
+
Exclude:
|
57
|
+
- 'spec/decorator_spec.rb'
|
58
|
+
- 'spec/extensions/relations/validations/mongoid_spec.rb'
|
59
|
+
- 'spec/nested_representer_spec.rb'
|
60
|
+
- 'spec/present_with_spec.rb'
|
61
|
+
- 'spec/relations_spec.rb'
|
62
|
+
- 'spec/representer_spec.rb'
|
63
|
+
- 'spec/support/all/grape_app_context.rb'
|
64
|
+
|
65
|
+
# Offense count: 4
|
66
|
+
# Configuration parameters: CountAsOne.
|
67
|
+
RSpec/ExampleLength:
|
68
|
+
Max: 14
|
69
|
+
|
70
|
+
# Offense count: 3
|
71
|
+
RSpec/ExpectInHook:
|
72
|
+
Exclude:
|
73
|
+
- 'spec/extensions/relations/dsl_methods_spec.rb'
|
74
|
+
- 'spec/extensions/relations/validations/active_record_spec.rb'
|
75
|
+
- 'spec/extensions/relations/validations/mongoid_spec.rb'
|
76
|
+
|
77
|
+
# Offense count: 1
|
78
|
+
RSpec/MessageChain:
|
79
|
+
Exclude:
|
80
|
+
- 'spec/extensions/relations/dsl_methods_spec.rb'
|
81
|
+
|
82
|
+
# Offense count: 18
|
83
|
+
# Configuration parameters: .
|
84
|
+
# SupportedStyles: have_received, receive
|
85
|
+
RSpec/MessageSpies:
|
86
|
+
EnforcedStyle: receive
|
12
87
|
|
13
|
-
# Offense count:
|
88
|
+
# Offense count: 10
|
89
|
+
RSpec/MultipleExpectations:
|
90
|
+
Max: 5
|
91
|
+
|
92
|
+
# Offense count: 58
|
93
|
+
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
|
94
|
+
# SupportedStyles: always, named_only
|
95
|
+
RSpec/NamedSubject:
|
96
|
+
Exclude:
|
97
|
+
- 'spec/decorator_spec.rb'
|
98
|
+
- 'spec/extensions/relations/adapters/active_record_spec.rb'
|
99
|
+
- 'spec/extensions/relations/adapters/mongoid_spec.rb'
|
100
|
+
- 'spec/extensions/relations/dsl_methods_spec.rb'
|
101
|
+
- 'spec/extensions/relations/mapper_spec.rb'
|
102
|
+
- 'spec/extensions/relations/validations/active_record_spec.rb'
|
103
|
+
- 'spec/extensions/relations/validations/mongoid_spec.rb'
|
104
|
+
- 'spec/nested_representer_spec.rb'
|
105
|
+
- 'spec/present_with_spec.rb'
|
106
|
+
- 'spec/relations_spec.rb'
|
107
|
+
- 'spec/representer_spec.rb'
|
108
|
+
- 'spec/support/all/grape_app_context.rb'
|
109
|
+
|
110
|
+
# Offense count: 2
|
111
|
+
# Configuration parameters: AllowedGroups.
|
112
|
+
RSpec/NestedGroups:
|
113
|
+
Max: 4
|
114
|
+
|
115
|
+
# Offense count: 2
|
116
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
117
|
+
RSpec/ReceiveMessages:
|
118
|
+
Exclude:
|
119
|
+
- 'spec/extensions/relations/mapper_spec.rb'
|
120
|
+
|
121
|
+
# Offense count: 8
|
122
|
+
# Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata.
|
123
|
+
RSpec/SpecFilePathFormat:
|
124
|
+
Exclude:
|
125
|
+
- '**/spec/routing/**/*'
|
126
|
+
- 'spec/decorator_spec.rb'
|
127
|
+
- 'spec/extensions/relations/adapters/adapters_module_spec.rb'
|
128
|
+
- 'spec/extensions/relations/dsl_methods_spec.rb'
|
129
|
+
- 'spec/extensions/relations/mapper_spec.rb'
|
130
|
+
- 'spec/nested_representer_spec.rb'
|
131
|
+
- 'spec/present_with_spec.rb'
|
132
|
+
- 'spec/relations_spec.rb'
|
133
|
+
- 'spec/representer_spec.rb'
|
134
|
+
|
135
|
+
# Offense count: 3
|
136
|
+
RSpec/StubbedMock:
|
137
|
+
Exclude:
|
138
|
+
- 'spec/extensions/relations/dsl_methods_spec.rb'
|
139
|
+
- 'spec/extensions/relations/mapper_spec.rb'
|
140
|
+
|
141
|
+
# Offense count: 11
|
142
|
+
RSpec/SubjectStub:
|
143
|
+
Exclude:
|
144
|
+
- 'spec/extensions/relations/dsl_methods_spec.rb'
|
145
|
+
- 'spec/extensions/relations/mapper_spec.rb'
|
146
|
+
|
147
|
+
# Offense count: 1
|
148
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
149
|
+
RSpec/VerifiedDoubleReference:
|
150
|
+
Exclude:
|
151
|
+
- 'spec/extensions/relations/mapper_spec.rb'
|
152
|
+
|
153
|
+
# Offense count: 15
|
154
|
+
# Configuration parameters: AllowedConstants.
|
14
155
|
Style/Documentation:
|
15
|
-
|
156
|
+
Exclude:
|
157
|
+
- 'spec/**/*'
|
158
|
+
- 'test/**/*'
|
159
|
+
- 'lib/grape/roar/decorator.rb'
|
160
|
+
- 'lib/grape/roar/extensions/relations.rb'
|
161
|
+
- 'lib/grape/roar/extensions/relations/adapters.rb'
|
162
|
+
- 'lib/grape/roar/extensions/relations/adapters/active_record.rb'
|
163
|
+
- 'lib/grape/roar/extensions/relations/adapters/base.rb'
|
164
|
+
- 'lib/grape/roar/extensions/relations/adapters/mongoid.rb'
|
165
|
+
- 'lib/grape/roar/extensions/relations/dsl_methods.rb'
|
166
|
+
- 'lib/grape/roar/extensions/relations/mapper.rb'
|
167
|
+
- 'lib/grape/roar/extensions/relations/validations/active_record.rb'
|
168
|
+
- 'lib/grape/roar/extensions/relations/validations/misc.rb'
|
169
|
+
- 'lib/grape/roar/extensions/relations/validations/mongoid/6.rb'
|
170
|
+
- 'lib/grape/roar/extensions/relations/validations/mongoid/7.rb'
|
171
|
+
- 'lib/grape/roar/formatter.rb'
|
172
|
+
- 'lib/grape/roar/representer.rb'
|
173
|
+
|
174
|
+
# Offense count: 2
|
175
|
+
Style/OpenStructUse:
|
176
|
+
Exclude:
|
177
|
+
- 'spec/extensions/relations/dsl_methods_spec.rb'
|
16
178
|
|
17
179
|
# Offense count: 1
|
18
|
-
# Configuration parameters:
|
19
|
-
|
20
|
-
|
180
|
+
# Configuration parameters: AllowedMethods.
|
181
|
+
# AllowedMethods: respond_to_missing?
|
182
|
+
Style/OptionalBooleanParameter:
|
183
|
+
Exclude:
|
184
|
+
- 'lib/grape/roar/extensions/relations/dsl_methods.rb'
|
185
|
+
|
186
|
+
# Offense count: 2
|
187
|
+
# This cop supports safe autocorrection (--autocorrect).
|
188
|
+
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
|
189
|
+
# URISchemes: http, https
|
190
|
+
Layout/LineLength:
|
191
|
+
Max: 304
|
data/CHANGELOG.md
CHANGED
@@ -1,18 +1,30 @@
|
|
1
|
-
0.
|
2
|
-
|
1
|
+
### 0.5.0 (2025/09/25)
|
2
|
+
|
3
|
+
* [#31](https://github.com/ruby-grape/grape-roar/pull/31): Add support for Mongoid 7, 8 and 9 - [@dblock](https://github.com/dblock).
|
4
|
+
* [#23](https://github.com/ruby-grape/grape-roar/pull/23): Resolves pollution issue with invoking representers on singletons - [@mach-kernel](https://github.com/mach-kernel).
|
5
|
+
* [#28](https://github.com/ruby-grape/grape-roar/pull/28): Replaced Travis-CI with GHA - [@dblock](https://github.com/dblock).
|
6
|
+
|
7
|
+
|
8
|
+
### 0.4.1 (2017/07/14)
|
9
|
+
|
10
|
+
* [#22](https://github.com/ruby-grape/grape-roar/pull/22): Adds Grape::Roar::Extensions::Relations - [@mach-kernel](https://github.com/mach-kernel).
|
11
|
+
|
12
|
+
|
13
|
+
### 0.4.0 (2017/02/18)
|
14
|
+
|
3
15
|
* [#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
16
|
|
5
|
-
|
6
|
-
|
17
|
+
|
18
|
+
### 0.3.0 (2014/12/31)
|
7
19
|
|
8
20
|
* Added support for Roar 1.0 - [@dblock](https://github.com/dblock).
|
9
21
|
|
10
|
-
|
11
|
-
|
22
|
+
|
23
|
+
### 0.2.0 (2014/12/18)
|
12
24
|
|
13
25
|
* [#10](https://github.com/ruby-grape/grape-roar/pull/10): Support for Roar decorator - [@sdbondi](https://github.com/sdbondi).
|
14
26
|
|
15
|
-
|
16
|
-
|
27
|
+
|
28
|
+
### 0.1.0 (2014/7/17)
|
17
29
|
|
18
30
|
* Initial public release, with support for Grape `present` - [@dblock](https://github.com/dblock).
|
data/Dangerfile
ADDED
data/Gemfile
CHANGED
@@ -1,17 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
source 'https://rubygems.org'
|
2
4
|
|
3
|
-
|
5
|
+
gem 'activerecord', ENV['ACTIVERECORD_VERSION'], require: 'active_record' if ENV.key?('ACTIVERECORD_VERSION')
|
6
|
+
gem 'grape', ENV['GRAPE_VERSION'] if ENV.key?('GRAPE_VERSION')
|
7
|
+
gem 'mongoid', ENV['MONGOID_VERSION'], require: 'mongoid' if ENV.key?('MONGOID_VERSION')
|
4
8
|
|
5
|
-
|
6
|
-
gem 'rake', '~> 10.5.0'
|
7
|
-
end
|
9
|
+
gemspec
|
8
10
|
|
9
11
|
group :test do
|
10
|
-
gem 'rspec', '~> 3.1'
|
11
12
|
gem 'rack-test'
|
13
|
+
gem 'rspec'
|
12
14
|
end
|
13
15
|
|
14
16
|
group :development, :test do
|
15
|
-
gem '
|
16
|
-
gem '
|
17
|
+
gem 'base64'
|
18
|
+
gem 'bigdecimal'
|
19
|
+
gem 'mutex_m'
|
20
|
+
gem 'nokogiri'
|
21
|
+
gem 'ostruct'
|
22
|
+
gem 'rack', '~> 2.2.17'
|
23
|
+
gem 'rake'
|
24
|
+
gem 'rubocop', '1.80.2'
|
25
|
+
gem 'rubocop-rake'
|
26
|
+
gem 'rubocop-rspec'
|
27
|
+
gem 'sorted_set'
|
17
28
|
end
|