Shishir Kakaraddi
81375cfcf7
bump up version to 1.2
2018-05-31 16:36:16 -07:00
Shishir Kakaraddi
ef42fb3031
Changes for version 1.2 ( #220 )
...
params support in blocks, nested includes etc
Co-authored-by: Jodi Showers <jodi@nnovation.ca>
Co-authored-by: Ryan O'Donnell <ryan@gocleary.com>
Co-authored-by: Les Fletcher <les.fletcher@gmail.com>
Co-authored-by: Ankit gupta <ankit.gupta8898@gmail.com>
Co-authored-by: Masato Ohba <over.rye@gmail.com>
Co-authored-by: Shuhei Kitagawa <shuhei.kitagawa@c-fo.com>
Co-authored-by: Zino <rhu5@u.rochester.edu>
Co-authored-by: Carlos Solares <csolares23@gmail.com>
Co-authored-by: Brandon Buck <lordizuriel@gmail.com>
Co-authored-by: Daniel Roux <xuoroux@gmail.com>
Co-authored-by: Dillon Welch <daw0328@gmail.com>
2018-05-31 16:35:59 -07:00
Ankit gupta
5543a5c3e8
Merge pull request #178 from FanaHOVA/patch-1
...
Use proper casing on generator example
2018-04-20 10:56:36 -07:00
Alessio Fanelli
01ac9ccbe7
Use proper casing on generator example
...
`rails g Serializer` isn't a valid command, serializer shouldn't be capitalized.
2018-04-20 14:37:56 +02:00
Marten
18d30f228e
Update .gitignore
2018-03-25 12:03:42 -07:00
Marten
9134930d76
Delete Gemfile.lock
2018-03-25 12:03:42 -07:00
Shishir Kakaraddi
2b0b3d94d1
Merge branch 'hotfix-1.1.1'
1.1.1
2018-03-19 13:18:04 -07:00
Shishir Kakaraddi
652ad51559
Bump version number to 1.1.1
2018-03-19 13:17:30 -07:00
Ihor Dotsenko
270276d264
Fix bug with chaining rescues of FastJsonapi::MultiToJson::Result
2018-03-19 13:13:27 -07:00
Shishir Kakaraddi
cf86cd871e
merging with release-1.1
1.1
2018-03-18 09:37:54 -07:00
Shishir Kakaraddi
c40354e375
Bump version to 1.1.0
2018-03-18 09:04:59 -07:00
Shuhei Kitagawa
fa09c29190
Add document for for set_id method
2018-03-18 08:29:13 -07:00
Shuhei Kitagawa
a15232b47f
Add tests for set_id method
2018-03-18 08:29:13 -07:00
Shuhei Kitagawa
43239aff49
Enable to set customized id column
2018-03-18 08:29:13 -07:00
Shuhei Kitagawa
8f4e716153
Define set_id method
2018-03-18 08:29:13 -07:00
Shishir Kakaraddi
00e960f883
adds the use_hyphen feature back and adds a deprecation warning
2018-03-17 18:33:55 -07:00
Les Fletcher
3a66a6f80b
tear down the aliases
2018-03-12 22:46:41 -07:00
Les Fletcher
c75d7ceadc
do two separate rspec runs because of require issue
2018-03-12 22:46:41 -07:00
Les Fletcher
41bffb1e20
Some docs for the instrumentation
2018-03-12 22:46:41 -07:00
Les Fletcher
8d905dbdfd
taking a crack at the normalizers
2018-03-12 22:46:41 -07:00
Les Fletcher
2da0b5bd87
rework of AS Notifications
2018-03-12 22:46:41 -07:00
corinnekunze
f029cf737a
Adding specs for #as_json method on ObjectSerializer and making sure non-included attributes are removed
2018-03-12 22:36:50 -07:00
Shuhei Kitagawa
1e40b7d2f7
Remove redundant GC.disable and GC.enable
2018-03-12 22:35:06 -07:00
Shuhei Kitagawa
93391aff6a
Remove redundant to_s
2018-03-12 22:30:35 -07:00
Shuhei Kitagawa
b4eaa04c09
Add frozen_string_literal: true
2018-03-12 22:20:48 -07:00
Shuhei Kitagawa
8c630d9b1c
Remove unused local variables from #relationships_hash
2018-03-12 22:20:09 -07:00
Vlado Cingel
765eaa70d6
Title fixed for one spec
2018-03-12 22:18:17 -07:00
Sam Morgan
dfd215d3a1
91 allow includes strings ( #93 )
...
* add hash benchmarking to performance tests
* Add missing attribute in README example
* Disable GC before doing performance test
* Enable oj to AM for fair benchmark test
* add information on performance methodology
* add oss metadata
* Make an error that demonstrates [Issue
* Simple RSpec test that fails with a non-empty string but passes with a
non-empty symbol
* To run the test, rspec spec/lib/object_serializer_spec.rb
* Map includes to symbols if they are provided as strings
* Includes would fail with an ArgumentError unless they were explicitly
provided as symbols (see #97 )
* This is solved by mapping the strings to symbols in the
ObjectSerializer initializer
* No real impact on performance here
2018-02-28 08:29:24 -08:00
Guillermo Iguaran
1ff5fe3b1e
Fix gemspec, README.rdoc isn't present in the project
2018-02-22 09:09:36 -08:00
Jay Hayes
95c136fa0f
Add #to_hash conversion protocol to object serializer
2018-02-22 08:04:40 -08:00
Les Fletcher
08cee7b82d
refactor performance specs
2018-02-16 17:30:51 -08:00
Guillermo Iguaran
eea4496e7b
Add benchmarks for jsonapi-serializers library
2018-02-13 23:06:47 -08:00
Guillermo Iguaran
33f08d925a
Update README to include docs about the Rails generator
2018-02-11 13:12:37 -08:00
Guillermo Iguaran
013f01dd47
Add a generator for Rails
2018-02-11 13:12:37 -08:00
Guillermo Iguaran
6b593cb36a
Allow the use of fast_jsonapi when ActiveRecord isn't present
2018-02-11 08:43:30 -08:00
Christopher Sansone
b30a53bc5f
ability to customize rendering of attributes via a block ( #54 )
...
* add hash benchmarking to performance tests
* Add missing attribute in README example
* Disable GC before doing performance test
* Enable oj to AM for fair benchmark test
* ability to customize rendering of attributes via a block
* fixed attribute render spec
* minimized specs to specifially test this feature
* Update README to include attribute definitions
* Fixed syntax error
* Fixed merge issues
2018-02-09 08:59:07 -08:00
Roberto Quintanilla
6d516c217c
Support for polymorphic associations ( #64 )
...
* add hash benchmarking to performance tests
* Add missing attribute in README example
* Disable GC before doing performance test
* Enable oj to AM for fair benchmark test
* Support for polymorphic associations
* Optional dictionary for polymorphic associations
* Added polymorphic record types memoization
* Updated performance tests for polymorphic examples to include jsonapi-rb
2018-02-08 22:18:46 -08:00
Srinivas Raghunathan
7e59446717
add oss metadata
2018-02-08 14:38:43 -08:00
Benjamin Fleischer
d4b6216ff3
Make our own fast MultiToJson
2018-02-07 18:02:59 -08:00
Benjamin Fleischer
b717ffeccf
Let people choose their JSON serializer; JSON:API is not circular
2018-02-07 18:02:59 -08:00
jeremyjung
e7caa7afd5
Allow has_one nil association ( #48 )
...
* Allow has_one nil association
* add test for when has_one returns nil
* modify has_one extension method, add active record test
* Use try operator to support old rubies
2018-02-07 08:54:53 -08:00
Andrey Lompart
5f7bc4fe62
changed activesupport and activerecord dep to '>= 4.2'
2018-02-06 19:26:43 -08:00
Srinivas Raghunathan
4569f2ec2d
add information on performance methodology
2018-02-06 13:40:39 -08:00
Benjamin Fleischer
fcca5063ca
Correct rubygems url
2018-02-05 22:34:17 -08:00
Benjamin Fleischer
d7df16ba02
Update AMS
2018-02-05 22:34:17 -08:00
Benjamin Fleischer
7843e411f6
Better usage of AMS::Model
2018-02-05 22:34:17 -08:00
Min.Kim
7b029991b8
Put all tests back
2018-02-05 22:30:24 -08:00
Min.Kim
c7b211b0a7
Fix fast_jsonapi.gemspec
2018-02-05 22:30:24 -08:00
Min.Kim
22bea1505f
Add jsonapi-rb test to benchmark suite
2018-02-05 22:30:24 -08:00
Min.Kim
4ccd40ac29
Add jsonapi data models for benchmark
2018-02-05 22:30:24 -08:00