Commit Graph

616 Commits

Author SHA1 Message Date
Ayrton De Craene
a2d5ca42de Update CHANGELOG.md
Fix typo
2013-10-23 11:43:45 +02:00
Santiago Pastorino
06e4c2c9d6 Test attributes declared as strings
Thanks @mikegee

Closes #380
2013-10-22 11:55:32 -02:00
Santiago Pastorino
db086794c6 Merge pull request #373 from phoet/patch-1
some remarks on testing in the readme
2013-10-22 06:46:44 -07:00
Santiago Pastorino
cf8145230e Merge pull request #413 from strzalek/reorder-readme
Changes to README
2013-10-22 05:05:09 -07:00
Łukasz Strzałkowski
3f4ab36e7e Add AMS heading 2013-10-22 09:53:42 +00:00
Łukasz Strzałkowski
e531df3b4e Move design section to the top 2013-10-22 09:53:33 +00:00
Santiago Pastorino
3efea817b6 Merge pull request #412 from strzalek/thread-safe-config
Make Config class thread safe.
2013-10-21 13:30:53 -07:00
Łukasz Strzałkowski
d46584af40 Wrap config's data hash in mutex 2013-10-21 20:27:01 +00:00
Santiago Pastorino
8f583d2c46 Merge pull request #337 from lserman/update-meta-key-docs
Updating documentation to warn users that { root: false } will ignore the meta key
2013-10-21 13:12:28 -07:00
Santiago Pastorino
594eaa1576 Use scope in docs instead of current_user
Closes #322
2013-10-21 17:56:03 -02:00
Arthur Neves
55baaf2005 Dont use Class.embed on test 2013-10-21 15:10:00 -04:00
Arthur Neves
05ec509e1c Use ActiveSupport::Deprecation.warn instead of warn 2013-10-21 15:02:39 -04:00
Santiago Pastorino
81080c230e Merge pull request #411 from arthurnn/settings_fix
small settings fix
2013-10-21 11:29:49 -07:00
Arthur Neves
2ea0920f08 s/assert/assert_equal 2013-10-21 14:27:18 -04:00
Arthur Neves
455a898714 allow failures on jruby 2013-10-21 14:25:35 -04:00
Santiago Pastorino
7dcef9f0f5 Rename Settings to Config and use accessors to configure things 2013-10-21 16:23:35 -02:00
Santiago Pastorino
5b727cc291 Merge pull request #410 from arthurnn/settings_warn
Deprecate embed method on Serializer class
2013-10-21 11:05:51 -07:00
Arthur Neves
84801301b9 Add deprecation message to .embed method 2013-10-21 13:08:07 -04:00
Arthur Neves
41f1855056 Add accessors to settings class 2013-10-21 13:05:39 -04:00
Santiago Pastorino
e1d9df2e8b Merge pull request #409 from arthurnn/travis_ci
Allow failures on .edge, till we fix rails
2013-10-19 15:02:18 -07:00
Arthur Neves
88df4f6a7c Allow failures on .edge, till we fix rails 2013-10-19 16:59:20 -04:00
Santiago Pastorino
c65d387705 Merge branch 'rewrite' 2013-10-18 17:52:36 -02:00
Santiago Pastorino
5ae47f7859 Add missing entries to CHANGELOG.md 2013-10-18 17:49:22 -02:00
Santiago Pastorino
c51fbcafb4 Use minitest 4.0 in Rails 3.2 2013-10-18 17:49:22 -02:00
Arthur Neves
3032bd7086 Add minitest to rails3
Also add rails3 gemfile to travis
And remote .15 from rails verison
2013-10-18 17:49:22 -02:00
Arthur Neves
f6d5340f89 Require minitest instead of test/unit 2013-10-18 17:49:22 -02:00
Arthur Neves
3c2af149d3 Ignore all .lock files 2013-10-18 17:49:22 -02:00
Arthur Neves
21bf1889be Add rails3 Gemfile
Also point the main Gemfile to rails4
2013-10-18 17:49:22 -02:00
Arthur Neves
cf8b55ea01 Setting join_table on AR tests 2013-10-18 17:49:22 -02:00
Santiago Pastorino
4ab16381bd Bump version to 0.9.0.pre 2013-10-18 17:49:22 -02:00
Santiago Pastorino
477a0ae1d2 Add back README.md file 2013-10-18 17:49:22 -02:00
Santiago Pastorino
0155f41003 AMS requires Ruby 1.9.3+ and Rails 3.2+ 2013-10-18 17:49:21 -02:00
Santiago Pastorino
7d7bc75290 Add .travis.yml file 2013-10-18 17:49:21 -02:00
Santiago Pastorino
ae879d21ac Add Gemfile.edge 2013-10-18 17:49:21 -02:00
Santiago Pastorino
b81deac320 Add coverage tools 2013-10-18 17:49:21 -02:00
Santiago Pastorino
1817398b57 Add back DESIGN.textile file 2013-10-18 17:49:21 -02:00
Santiago Pastorino
c941952eb2 Add back CONTRIBUTING.md file 2013-10-18 17:49:21 -02:00
Santiago Pastorino
bd9d322d17 Leave only MIT-LICENSE file 2013-10-18 17:49:21 -02:00
Santiago Pastorino
82a4f25002 Add CHANGELOG entries 2013-10-18 17:49:21 -02:00
Santiago Pastorino
73774649e3 Implement Generators 2013-10-18 17:49:21 -02:00
Santiago Pastorino
91f9317713 There's no need to define read_attribute_for_serialization in the Serializer class 2013-10-18 17:49:21 -02:00
Santiago Pastorino
b9a6dfac2f Do not call send on associated objects, do it through elem.read_attribute_for_serialization 2013-10-18 17:49:21 -02:00
Santiago Pastorino
94a83c1cc0 Make relationship graph of AR integration tests bigger 2013-10-18 17:49:21 -02:00
Santiago Pastorino
4b91d0e5ec embed :objects is the default
A commit with an integration test that covers this functionality is
coming after this one
2013-10-18 17:49:20 -02:00
Santiago Pastorino
4f70dc2091 has_one serialized objects shouldn't be wrapped in an array and it's key is singular 2013-10-18 17:49:20 -02:00
Santiago Pastorino
23e6ed32be Add default_serializer_options test 2013-10-18 17:49:20 -02:00
Santiago Pastorino
dbf512c14c Make embed nil ids work 2013-10-18 17:49:20 -02:00
Santiago Pastorino
cad8fafa60 Optimize serializer_for for Ruby >= 2.0 2013-10-18 17:49:20 -02:00
Santiago Pastorino
841f3b8181 Add filter to allow users implement filter method to include/exclude attributes and relations 2013-10-18 17:49:20 -02:00
Santiago Pastorino
f6ea07dd22 Do not convert attrs to String until needed 2013-10-18 17:49:20 -02:00