From 5a3c53b26aab280c9e07e1722f82b9d4bc7af7be Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 18 Sep 2013 09:59:24 -0700 Subject: [PATCH 1/2] Use atom-api for requires --- lib/git-diff-view.coffee | 3 +-- spec/git-diff-spec.coffee | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/git-diff-view.coffee b/lib/git-diff-view.coffee index fc3cfb7..994a0aa 100644 --- a/lib/git-diff-view.coffee +++ b/lib/git-diff-view.coffee @@ -1,5 +1,4 @@ -_ = require 'underscore' -Subscriber = require 'subscriber' +{_, Subscriber} = require 'atom-api' module.exports = class GitDiffView diff --git a/spec/git-diff-spec.coffee b/spec/git-diff-spec.coffee index 59ff4d0..2f5cb3d 100644 --- a/spec/git-diff-spec.coffee +++ b/spec/git-diff-spec.coffee @@ -1,5 +1,4 @@ -RootView = require 'root-view' -_ = require 'underscore' +{_, RootView} = require 'atom-api' describe "GitDiff package", -> editor = null From c0801911eadf9fb49ed2e788e2db9b29e43ebbe9 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 19 Sep 2013 12:07:24 -0700 Subject: [PATCH 2/2] Rename require from atom-api to atom --- lib/git-diff-view.coffee | 2 +- spec/git-diff-spec.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/git-diff-view.coffee b/lib/git-diff-view.coffee index 994a0aa..6cf1034 100644 --- a/lib/git-diff-view.coffee +++ b/lib/git-diff-view.coffee @@ -1,4 +1,4 @@ -{_, Subscriber} = require 'atom-api' +{_, Subscriber} = require 'atom' module.exports = class GitDiffView diff --git a/spec/git-diff-spec.coffee b/spec/git-diff-spec.coffee index 2f5cb3d..2640d91 100644 --- a/spec/git-diff-spec.coffee +++ b/spec/git-diff-spec.coffee @@ -1,4 +1,4 @@ -{_, RootView} = require 'atom-api' +{_, RootView} = require 'atom' describe "GitDiff package", -> editor = null