Created
June 11, 2013 13:21
-
-
Save jumski/5756768 to your computer and use it in GitHub Desktop.
rails.vim projections
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"vendor/alle_api/lib/alle_api/job/*.rb": { | |
"command": "job", | |
"template": "module AlleApi\n module Job\n class %S < Base\n def perform\n end\n end\n end\nend", | |
"test": "spec/alle_api/job/%s_spec.rb" | |
}, | |
"vendor/alle_api/lib/alle_api/wrapper/*.rb": { | |
"command": "wrapper", | |
"template": "module AlleApi\n module Wrapper\n class %S < Base\n def wrap_multiple\n end\n end\n end\nend", | |
"test": "spec/alle_api/wrapper/%s_spec.rb" | |
}, | |
"vendor/alle_api/lib/alle_api/helper/*.rb": { | |
"command": "ahelper", | |
"template": "module AlleApi\n module Helper\n class %S\n end\n end\nend", | |
"test": "spec/alle_api/helper/%s_spec.rb" | |
}, | |
"vendor/alle_api/lib/alle_api/type/*.rb": { | |
"command": "type", | |
"template": "module AlleApi\n module Type\n class %S\n end\n end\nend", | |
"test": "spec/alle_api/type/%s_spec.rb" | |
}, | |
"vendor/alle_api/lib/alle_api/action/*.rb": { | |
"command": "action", | |
"template": "module AlleApi\n module Action\n class %S < Base\n end\n end\nend", | |
"test": "spec/alle_api/action/%s_spec.rb" | |
}, | |
"vendor/alle_api/lib/alle_api/*.rb": { | |
"command": "alib", | |
"test": "vendor/alle_api/spec/lib/alle_api/%s_spec.rb" | |
}, | |
"vendor/alle_api/spec/alle_api/*_spec.rb": { | |
"command": "aspec", | |
}, | |
"vendor/alle_api/app/models/alle_api/*.rb": { | |
"command": "model", | |
"test": "spec/models/alle_api/%s_spec.rb", | |
"affinity": "model" | |
}, | |
"vendor/alle_api/app/models/alle_api/concerns/*.rb": { | |
"command": "concern", | |
"test": "spec/models/alle_api/concerns/%s_spec.rb", | |
}, | |
"vendor/alle_api/spec/factories/*.rb": { | |
"command": "factory", | |
"affinity": "collection" | |
}, | |
"vendor/alle_api/spec/support/*.rb": { | |
"command": "support" | |
}, | |
"app/controllers/admin/*_controller.rb": { | |
"command": "acontroller", | |
"test": "spec/controllers/admin/%s_controller_spec.rb" | |
}, | |
"app/views/admin/*.html.haml": { | |
"command": "aview", | |
}, | |
"app/jobs/*_job.rb": { | |
"command": "job", | |
"template": "class %SJob\nend", | |
"test": "spec/jobs/%s_job_spec.rb", | |
}, | |
"app/services/*_service.rb": { | |
"command" : "service", | |
"template": "class %SService\nend", | |
"test": "spec/services/%s_service_spec.rb" | |
}, | |
"spec/factories/*.rb": { | |
"command": "factory", | |
"affinity": "collection", | |
}, | |
"app/serializers/*_serializer.rb": { | |
"command": "serializer", | |
"affinity": "model", | |
"template": "class %SSerializer < ActiveModel::Serializer\nend" | |
}, | |
"app/presenters/*_presenter.rb": { | |
"command": "presenter", | |
"affinity": "model", | |
"template": "class %SPresenter < BasePresenter\nend", | |
"test": "spec/presenters/%s_presenter_spec.rb", | |
"alternate":"spec/presenters/%s_presenter_spec.rb", | |
"keywords": "concat content_tag link_to image_tag tag" | |
}, | |
"app/handlers/*_handler.rb": { | |
"command": "handler", | |
"test": "spec/handlers/%s_spec.rb" | |
}, | |
"app/models/concerns/*.rb": { | |
"command": "concern", | |
"test": "spec/models/concerns/%s_spec.rb" | |
}, | |
"app/cells/*_cell.rb": { | |
"command": "cell", | |
"test": "spec/cells/%s_cell_spec.rb" | |
}, | |
"app/cells/*.haml": { | |
"command": "cview" | |
}, | |
"app/assets/javascripts/views/*.js.coffee": { | |
"command": "jview", | |
"alternate": "spec/javascripts/views/%s_spec.js.coffee", | |
"template": "#= require antykwariusz\nclass lib.views.%S extends Backbone.View" | |
}, | |
"app/assets/javascripts/views/*_form.js.coffee": { | |
"command": "jform", | |
"template": "#= require antykwariusz\nclass lib.views.%SForm extends Backbone.View" | |
}, | |
"app/assets/javascripts/models/*.js.coffee": { | |
"command": "jmodel", | |
"alternate": "spec/javascripts/models/%s_spec.js.coffee", | |
"template": "#= require antykwariusz\nclass lib.models.%S extends Backbone.Model" | |
}, | |
"app/assets/javascripts/collections/*.js.coffee": { | |
"command": "jcollection", | |
"alternate": "spec/javascripts/collections/%s_spec.js.coffee", | |
"template": "#= require antykwariusz\nclass lib.collections.%S extends Backbone.Collection" | |
}, | |
"app/assets/javascripts/routers/*.js.coffee": { | |
"command": "jrouter", | |
"alternate": "spec/javascripts/routers/%s_spec.js.coffee", | |
"template": "#= require antykwariusz\nclass lib.routers.%S extends Backbone.Router" | |
}, | |
"app/assets/javascripts/helpers/*.js.coffee": { | |
"command": "jhelper", | |
"alternate": "spec/javascripts/helpers/%s_spec.js.coffee", | |
"template": "#= require antykwariusz\nclass lib.helpers.%S" | |
}, | |
"spec/javascripts/*_spec.js.coffee": { | |
"command": "jspec", | |
"alternate": "app/assets/javascripts/%s.js.coffee", | |
"template": "#= require antykwariusz\ndescribe 'lib.%s', ->" | |
}, | |
"spec/javascripts/fixtures/*.hamlc": { | |
"command": "jfixture", | |
"related": "spec/javascripts/views/%s_spec.js.coffee", | |
"alternate": "app/assets/javascripts/views/%s.js.coffee" | |
}, | |
"app/assets/templates/*.hamlc": { | |
"command": "template" | |
}, | |
"config/*.yml": {"command": "cfg"}, | |
"config/*.rb": {"command": "cfg"}, | |
"config/*.json": {"command": "cfg"}, | |
"spec/support/*.rb": { | |
"command": "support" | |
}, | |
"spec/support/prisms/*.rb": { | |
"command": "prism", | |
"template": "class %S < SitePrism::Page\n set_url \"\"\nend" | |
}, | |
"db/data/*.rb": { | |
"command": "datamigration", | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment