Commit Graph

88 Commits

Author SHA1 Message Date
Christopher Cocchi-Perrier
9f0a92ecd7 Merge pull request #7 from ccocchi/xml-renderer
Add XML renderer
2012-09-19 08:26:22 -07:00
ccocchi
62cabb5f37 Add entry to CHANGELOG 2012-09-17 15:28:14 +02:00
ccocchi
d81c3bebfe Update README 2012-09-17 15:26:36 +02:00
ccocchi
84cd69bdfd Add XML engine configuration 2012-09-17 15:24:39 +02:00
ccocchi
c566c0d788 Add libxml to faster XML output generation 2012-09-17 15:08:54 +02:00
ccocchi
283b957666 Add tests for XML renderers 2012-09-17 15:08:28 +02:00
ccocchi
9b1abaa691 Merge branch 'master' into xml-renderer 2012-09-17 13:49:19 +02:00
ccocchi
9c9a953e22 Merge branch 'master' into xml-renderer 2012-09-17 13:48:36 +02:00
Christopher Cocchi-Perrier
a769f8a3b1 Merge pull request #6 from shmeltex/defaultJSONEngine-change
Let MultiJson select default JSON adapter
2012-09-14 14:21:28 -07:00
Alex Smelik
7a44da28d2 Update to 0.2.0 2012-09-14 12:52:26 -07:00
Alex Smelik
360d70b838 Revert to old MultiJson syntax. 2012-09-13 08:05:52 -07:00
ccocchi
04defc9a19 Add CHANGELOG entries 2012-09-13 16:08:42 +02:00
ccocchi
e9f0c69f15 Default template to render can be defined per controller 2012-09-13 16:05:29 +02:00
ccocchi
395a3d7439 Use locals in responder. Responder now works out of the box with
Devise
2012-09-13 16:04:43 +02:00
ccocchi
4b61edad64 Locals are now passed to the renderer object.
Allow to skip object or collection definition when using `respond_to` block
2012-09-13 15:57:05 +02:00
Alex Smelik
28f3dbedd0 Let MultiJson select default JSON adapter (engine), support for latest MultiJson syntax 2012-09-12 10:45:45 -07:00
ccocchi
7e6da1a619 Bump to 0.1.3 2012-09-12 10:19:29 +02:00
Christopher Cocchi-Perrier
ed3592566d Update CHANGELOG.md 2012-09-12 02:47:20 +03:00
ccocchi
8376c0d974 RablRails now accepts local methods for child nodes and
root objects. Local methods are used by decent_exposure or
focused_controller
2012-09-12 01:34:54 +02:00
ccocchi
dc66b43638 Replace Struct by Class to avoid stubbing respond_to?
Add some tests with local methods
2012-09-12 01:33:04 +02:00
Christopher Cocchi-Perrier
5ca0a44241 Merge pull request #4 from ccocchi/responder
Add custom responder
2012-09-11 02:53:15 -07:00
ccocchi
5c1490c246 Update CHANGELOG 2012-09-11 11:49:07 +02:00
ccocchi
1a98d69146 Merge branch 'master' into responder
Conflicts:
	lib/rabl-rails.rb
2012-09-11 11:42:19 +02:00
ccocchi
cf39a3f748 Bump 0.1.2 2012-08-03 15:39:08 +02:00
ccocchi
62dfd3b7d5 Fix engines loading.
Load default engines once and setter also set up engine
2012-08-03 15:38:43 +02:00
ccocchi
9ce0e2b350 Update README (configuration and render) 2012-07-26 17:36:36 +02:00
ccocchi
d6f71ad6cf Add .gitignore and remove Gemfile.lock from git 2012-07-26 16:54:53 +02:00
ccocchi
8a49001b0f Do not fail when JSON engine is not found
and fallback to default
2012-07-26 16:44:51 +02:00
ccocchi
6e5fc9c833 Update CHANGELOG 2012-07-26 16:37:09 +02:00
Christopher Cocchi-Perrier
d0b023936b Merge pull request #2 from ccocchi/render-method
Add RablRails#render method
2012-07-26 07:21:36 -07:00
ccocchi
8f5ebfac03 Add test for RablRails#render with instance
variables
2012-07-26 15:24:20 +02:00
ccocchi
b42f63788f Raise error when template is not found 2012-07-26 14:59:28 +02:00
ccocchi
d4c434e6b0 Refactor RablRails#render to use standard library
methods.

Emulate a render and lookup context like Rails.
2012-07-26 02:21:33 +02:00
ccocchi
69a650c673 Bump to 0.1.1 2012-07-26 00:00:13 +02:00
ccocchi
f9709dd034 Remove sqlite3 from developent dependencies 2012-07-25 23:52:42 +02:00
ccocchi
0dc4d16b7e Add CHANGELOG 2012-07-25 23:48:21 +02:00
ccocchi
1c466a3625 Underscore private instance variable @options
to avoid conflicts with view variables
2012-07-25 22:53:09 +02:00
ccocchi
c60306eee5 Add documentation for RablRails#render 2012-07-25 22:46:20 +02:00
ccocchi
9e6b4db8eb Make render work with same signature as
standard RABL gem
2012-07-25 19:22:10 +02:00
ccocchi
63b50b2a31 Merge branch 'master' into render-method 2012-07-25 18:37:40 +02:00
ccocchi
0034e05486 Don't need to retrieve data variable from context
since it's has already been copied from assigns.

Modify test Context class to reflect this change
2012-07-25 18:23:41 +02:00
ccocchi
36fe3ec56e Remove test against undefined variable 2012-07-24 18:29:03 +02:00
ccocchi
042609b5d4 Add RablRails#render 2012-07-24 16:32:32 +02:00
ccocchi
8ef2ab6577 Use MultiJson in test also 2012-07-24 12:13:01 +02:00
ccocchi
959192e275 Update LICENSE 2012-07-24 12:07:26 +02:00
ccocchi
c3758c0cc7 Add LICENSE and update README 2012-07-23 18:29:36 +02:00
Christopher Cocchi-Perrier
8f387a74c9 Update performance block in README 2012-07-23 19:22:27 +03:00
ccocchi
b61fdec326 Allow to set root_name to false in template 2012-07-20 15:14:46 +02:00
ccocchi
cfd9e3e65d Remove useless dependency 2012-07-18 23:43:35 +02:00
ccocchi
1db4cae807 Allow to specify json engine used.
Default to MultiJson (with Yajl engine) instead of ActiveSupport::JSON
2012-07-18 23:42:09 +02:00