Commit Graph

1481 Commits

Author SHA1 Message Date
Tema Bolshakov
f00fe5595d * Rename NullAdapter to SimpleAdapter
* Introduce abstract Adapter class
* Organaze test structure to match convemtions
2014-08-27 08:21:08 +04:00
Steve Klabnik
0c13956311 Merge pull request #610 from bolshakov/feature/array_serializer
ArraySerializer
2014-08-26 11:40:27 -04:00
Tema Bolshakov
a54813806d Tests for ActiveModel::Serializer.serializer_for for not array serializer 2014-08-26 13:27:46 +04:00
Tema Bolshakov
d39a3e0aec serializer_for Array 2014-08-26 12:50:47 +04:00
Steve Klabnik
35e17b5964 Merge pull request #607 from zigomir/patch-1
ruby syntax highlights
2014-08-25 13:31:17 -04:00
Žiga
e8727ae272 ruby syntax highlights 2014-08-25 19:21:15 +02:00
Steve Klabnik
e7dbea383b Merge pull request #602 from JordanFaust/add-dsl-for-assocations
Add DSL for associations
2014-08-23 16:51:53 -04:00
Jordan Faust
00f7cab864 Add DSL for assocations 2014-08-23 15:20:48 -05:00
Steve Klabnik
86fc7d7227 bump version to 0.10.0.pre 2014-08-22 17:02:05 -04:00
Steve Klabnik
09bc715c0b Update README with branch info, etc. 2014-08-22 17:01:14 -04:00
Steve Klabnik
886ada9151 don't hold on to serializer
this is an optimization for now, this may have to change later.
2014-07-09 23:05:41 -04:00
Steve Klabnik
970b542549 Implement basic rendering
Woo actioncontroller
2014-07-09 17:52:31 -04:00
Steve Klabnik
45803f1aa1 Re-add in rails 3.2
it can fail for now, but we will want to support it
2014-07-09 17:14:27 -04:00
Steve Klabnik
ed5499e318 UUUUGH.
This versioning situation sucks.
2014-07-09 17:06:00 -04:00
Steve Klabnik
4cc2060ea4 Depend on minitest 5 2014-07-09 16:53:26 -04:00
Steve Klabnik
1ea83c8bee Implement a NullAdapter.
This adapter basically doesn't do anything, and just serializes
the attributes into plain old JSON.
2014-07-09 16:51:30 -04:00
Steve Klabnik
c6eea916ad Move serializer tests into their own directory.
It'd be nice to keep some hygene here.
2014-07-09 16:19:02 -04:00
Steve Klabnik
729a823868 Getting started: attributes.
Super super basic collection of attributes. Nothing fancy.
2014-07-09 16:16:39 -04:00
Steve Klabnik
a45b5eeda3 Fix link to arel.
ugh.
2014-07-05 13:17:31 -04:00
Steve Klabnik
e021281eef Remove Rails 3.2 support for now.
It is impossible to run our tests on both Rails 3.2 and Rails 4:

1. Rails 3.2 relies on test/unit, which is MiniTest 4.
2. Rails 4 relies on MiniTest 5.
3. MiniTest 5 is not compatible with test/unit.

😢 😢 😢
2014-07-05 13:12:10 -04:00
Steve Klabnik
38ba3cfd0b Add extra declaration on arel because Rails is silly.
https://github.com/rails/rails/issues/16063#issuecomment-48090125
2014-07-05 12:37:59 -04:00
Steve Klabnik
4fc0f679df Add generators.
This seemed like the easiest place to start.
2014-07-05 12:35:29 -04:00
Steve Klabnik
0a81984ab5 Default to Rails 4.1 2014-07-05 12:20:14 -04:00
Steve Klabnik
67688b77e6 Typo.
❤️ @wycats
2014-07-05 12:11:08 -04:00
Steve Klabnik
b08b3c4caa 😅
Rails ~>4.0 is 4.1. :grimace:
2014-07-05 12:10:03 -04:00
Steve Klabnik
a5107b32e2 Set up the test helper and Gemfile.
Now Travis will build across all the Rails-es.
2014-07-05 12:03:48 -04:00
Steve Klabnik
99e3d0f70b Set up minitest 2014-07-05 11:55:45 -04:00
Steve Klabnik
4a2d9853ba First iteration of the README. 2014-07-05 01:50:14 -04:00
Steve Klabnik
4e0538255a Travis badge and first build 2014-07-05 00:58:44 -04:00
Steve Klabnik
8a20377239 Set up gemspec, version, and .travis.yml 2014-07-05 00:56:57 -04:00
Steve Klabnik
c718915075 Generate a basic gem 2014-07-05 00:53:48 -04:00