Skip to content

Commit

Permalink
remove active-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Blair Anderson committed Mar 10, 2015
1 parent c804d46 commit 12e57e5
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 76 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'

gem 'active_model_serializers'
gem 'active_api', github: 'blairanderson/active_api'
# gem 'active_api', github: 'blairanderson/active_api'

gem 'jquery-rails'
gem 'pg'
Expand Down
51 changes: 0 additions & 51 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
GIT
remote: git://github.com/blairanderson/active_api.git
revision: ab992dbe74d4568736efb8b8d2abe797c675655c
specs:
active_api (0.0.1)
active_model_serializers
grape-swagger-rails
rails (~> 4.2.0)
will_paginate

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -50,10 +40,6 @@ GEM
tzinfo (~> 1.1)
addressable (2.3.7)
arel (6.0.0)
axiom-types (0.1.1)
descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0)
thread_safe (~> 0.3, >= 0.3.1)
bcrypt (3.1.10)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
Expand All @@ -62,8 +48,6 @@ GEM
columnize (~> 0.8)
debugger-linecache (~> 1.2)
slop (~> 3.6)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
coffee-rails (4.1.0)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
Expand All @@ -74,10 +58,7 @@ GEM
columnize (0.9.0)
debug_inspector (0.0.2)
debugger-linecache (1.2.0)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
diff-lcs (1.2.5)
equalizer (0.0.9)
erubis (2.7.0)
execjs (2.3.0)
factory_girl (4.5.0)
Expand All @@ -91,29 +72,8 @@ GEM
multipart-post (>= 1.2, < 3)
globalid (0.3.3)
activesupport (>= 4.1.0)
grape (0.11.0)
activesupport
builder
hashie (>= 2.1.0)
multi_json (>= 1.3.2)
multi_xml (>= 0.5.2)
rack (>= 1.3.0)
rack-accept
rack-mount
virtus (>= 1.0.0)
grape-entity (0.4.4)
activesupport
multi_json (>= 1.3.2)
grape-swagger (0.9.0)
grape (>= 0.8.0)
grape-entity
grape-swagger-rails (0.1.0)
grape-swagger (>= 0.7.2)
railties (>= 3.2.12)
hashie (3.4.0)
hike (1.2.3)
i18n (0.7.0)
ice_nine (0.11.1)
jquery-rails (4.0.3)
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
Expand Down Expand Up @@ -142,10 +102,6 @@ GEM
rack (~> 1.2)
pg (0.18.1)
rack (1.6.0)
rack-accept (0.4.5)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.0)
Expand Down Expand Up @@ -239,23 +195,16 @@ GEM
validate_url (1.0.0)
activemodel (>= 3.0.0)
addressable
virtus (1.0.4)
axiom-types (~> 0.1)
coercible (~> 1.0)
descendants_tracker (~> 0.0, >= 0.0.3)
equalizer (~> 0.0, >= 0.0.9)
web-console (2.0.0)
activemodel (~> 4.0)
binding_of_caller (>= 0.7.2)
railties (~> 4.0)
sprockets-rails (>= 2.0, < 4.0)
will_paginate (3.0.7)

PLATFORMS
ruby

DEPENDENCIES
active_api!
active_model_serializers
byebug
factory_girl_rails
Expand Down
46 changes: 23 additions & 23 deletions config/initializers/active_api.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
ActiveApi::Engine.config.route_config = [
{
resources: 'items',
do: [
{
resources: 'item_comments',
}
]
},
{
resources: 'users',
serializer: 'human'
}
]

ActiveApi::Engine.config.documentation = {
title: "Rails HackerNews-Reddit-ProductHunt Clone.",
description: "StarterKit for a social news/product site.",
termsOfServiceUrl: "http://github.com/blairanderson/active_api",
# contact: "[email protected]",
license: "MIT",
licenseUrl: "http://github.com/blairanderson/active_api/tree/master/LICENSE.md"
}
# ActiveApi::Engine.config.route_config = [
# {
# resources: 'items',
# do: [
# {
# resources: 'item_comments',
# }
# ]
# },
# {
# resources: 'users',
# serializer: 'human'
# }
# ]
#
# ActiveApi::Engine.config.documentation = {
# title: "Rails HackerNews-Reddit-ProductHunt Clone.",
# description: "StarterKit for a social news/product site.",
# termsOfServiceUrl: "http://github.com/blairanderson/active_api",
# # contact: "[email protected]",
# license: "MIT",
# licenseUrl: "http://github.com/blairanderson/active_api/tree/master/LICENSE.md"
# }
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@

get 'login' => 'user_sessions#new', as: :login
post 'logout' => 'user_sessions#destroy', as: :logout
mount ActiveApi::Engine => '/api'
# mount ActiveApi::Engine => '/api'
end

0 comments on commit 12e57e5

Please sign in to comment.