]> cat aescling's git repositories - mastodon.git/commit
Refactor of API timeline actions (#3263)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Tue, 23 May 2017 16:11:39 +0000 (12:11 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 23 May 2017 16:11:39 +0000 (18:11 +0200)
commit4289ed1d13b9c3b91663581c44635105c4bc0412
tree5f8f006a47676ac15bb0374c21a2dea4a6a40910
parent256e3adc1d9508423aab8fcfb13745c9f85ff948
Refactor of API timeline actions (#3263)

- Increase coverage to exercise all parts of each action
- Move into namespace to share common code
- Misc refactor of each action for smaller methods, simpler code
app/controllers/api/v1/timelines/base_controller.rb [new file with mode: 0644]
app/controllers/api/v1/timelines/home_controller.rb [new file with mode: 0644]
app/controllers/api/v1/timelines/public_controller.rb [new file with mode: 0644]
app/controllers/api/v1/timelines/tag_controller.rb [new file with mode: 0644]
app/controllers/api/v1/timelines_controller.rb [deleted file]
app/views/api/v1/timelines/base/show.rabl [moved from app/views/api/v1/timelines/index.rabl with 100% similarity]
config/routes.rb
spec/controllers/api/v1/timelines/home_controller_spec.rb [new file with mode: 0644]
spec/controllers/api/v1/timelines/public_controller_spec.rb [moved from spec/controllers/api/v1/timelines_controller_spec.rb with 50% similarity]
spec/controllers/api/v1/timelines/tag_controller_spec.rb [new file with mode: 0644]
spec/routing/api_timelines_spec.rb [new file with mode: 0644]