Skip to content

Commit

Permalink
Merge pull request #21 from haad/atom-1.0-fixes
Browse files Browse the repository at this point in the history
Fix rest-client module loading on atom > 1.0
  • Loading branch information
ddavison committed Aug 17, 2015
2 parents 4c69cb6 + 6b74d29 commit f025a47
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/rest-client-view.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{$, ScrollView} = require 'atom'
{$, ScrollView} = require 'atom-space-pen-views'
querystring = require 'querystring'
request = require 'request'
fs = require 'fs'
Expand Down
6 changes: 3 additions & 3 deletions lib/rest-client.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ atom.deserializers.add(deserializer)

module.exports =
activate: ->
atom.workspace.registerOpener (filePath) ->
atom.workspace.addOpener (filePath) ->
createRestClientView(uri: restClientUri) if filePath is restClientUri

atom.workspaceView.command 'rest-client:show', ->
atom.workspaceView.open(restClientUri)
atom.commands.add 'atom-workspace', 'rest-client:show', ->
atom.workspace.open(restClientUri)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
"restful",
"http-request"
],
"version": "0.3.3",
"version": "0.4.0",
"description": "A simple REST client for your favorite editor",
"repository": "https://github.com/ddavison/rest-client",
"license": "MIT",
"engines": {
"atom": ">0.50.0"
},
"dependencies": {
"atom-space-pen-views": "^2.0.3",
"request": "*"
}
}

0 comments on commit f025a47

Please sign in to comment.