Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
7aff9ef
start v0.7.0 from scratch. Backwards incompatible
ismasan Sep 19, 2018
35dd108
HAL properties using Parametric, first pass
ismasan Sep 19, 2018
4b11f06
Property coercions using Parametric
ismasan Sep 19, 2018
63ca2a4
Raise own Oat::NoMethodError when item doesn’t support method
ismasan Sep 19, 2018
317a4f0
Serializer.example outputs example as per HAL adapter
ismasan Sep 19, 2018
ed68c7a
Make adapters switchable at class and run-time level
ismasan Sep 19, 2018
2014b60
Sub-entity schemas #entity and #entities
ismasan Sep 19, 2018
6a539a0
DRY-up entity definition
ismasan Sep 19, 2018
75bfa12
Optional serializer decorator methods
ismasan Sep 19, 2018
de7a4a0
:if argument to omit/include keys in serialized output
ismasan Sep 19, 2018
62679ff
HAL adapter does not include _embedded if empty
ismasan Sep 19, 2018
fb57586
Optional presenter blocks in serializer
ismasan Sep 19, 2018
635f5ad
Named presenters
ismasan Sep 19, 2018
978afc1
Can define type-specific presenters per serializer
ismasan Sep 19, 2018
08e3015
Require SimpleDelegator for older Rubies
ismasan Sep 19, 2018
041b290
Links, take 1
ismasan Sep 19, 2018
a56a76d
decorator methods take entire item
ismasan Sep 20, 2018
c0c0e7a
:decorate => :helper
ismasan Sep 20, 2018
45719c5
Wrap items in presenters on .serializer
ismasan Sep 20, 2018
f1b3016
Link hrefs work take value from :from or :helper options, just like p…
ismasan Sep 20, 2018
3a20f7f
Generate link examples correctly
ismasan Sep 20, 2018
56245ad
Make sure embedded entities generate correct example data
ismasan Sep 20, 2018
e5caa18
Update deps
ismasan May 17, 2019
e311404
Notes
ismasan May 17, 2019
a097d9e
Inherit presenters
ismasan May 18, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 11 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
*.gem
*.rbc
.bundle
.config
.yardoc
Gemfile.lock
gemfiles/Gemfile*.lock
InstalledFiles
_yardoc
coverage
doc/
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
/.bundle/
/.yardoc
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/

# rspec failure tracking
.rspec_status
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
--format documentation
--color
--require spec_helper
9 changes: 2 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
sudo: false
language: ruby
rvm:
- 2.1.2
- 1.9.3

matrix:
include:
- rvm: 1.9.3
- rvm: 2.1.2
- 2.4.2
before_install: gem install bundler -v 1.16.2
8 changes: 7 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
source 'https://rubygems.org'
source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

# Specify your gem's dependencies in oat.gemspec
gemspec

group :test do
gem 'byebug'
end
39 changes: 39 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
PATH
remote: .
specs:
oat (0.7.0)
parametric (~> 0.2)

GEM
remote: https://rubygems.org/
specs:
byebug (11.0.1)
diff-lcs (1.3)
parametric (0.2.5)
rake (10.5.0)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.0)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.0)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.16)
byebug
oat!
rake (~> 10.0)
rspec (~> 3.0)

BUNDLED WITH
1.16.5
Loading