Permalink
Browse files

Upgraded to be compatible with lein2

Removed dependency on clojure itself
changed to version 1.0.0-SNAPSHOT
  • Loading branch information...
1 parent 3f7cf1f commit f4643134576b79e375f38a1f799161fc439f3b62 Anthony Marcar committed Jun 15, 2012
Showing with 6 additions and 6 deletions.
  1. +1 −0 .gitignore
  2. +2 −3 project.clj
  3. +3 −3 src/leiningen/lobos.clj
View
@@ -7,3 +7,4 @@ pom.xml
*ipr
*iws
*iml
+target/
View
@@ -1,5 +1,4 @@
;;;; Copyright © 2011 José Pablo Fernández Silva
-(defproject lein-lobos "0.8.0-SNAPSHOT"
+(defproject lein-lobos "1.0.0-SNAPSHOT"
:description "Leiningen plugin for running Lobos commands."
- :dependencies [[org.clojure/clojure "1.2.1"]]
- :dev-dependencies [[lein-clojars "0.6.0"]])
+ :eval-in-leiningen true)
View
@@ -1,21 +1,21 @@
;;;; Copyright © 2011 José Pablo Fernández Silva
(ns leiningen.lobos
(:use [leiningen.help :only (help-for)]
- [leiningen.compile :only [eval-in-project]]))
+ [leiningen.core.eval :only [eval-in-project]]))
(defn migrate [project]
(eval-in-project project
`(do
(lobos.connectivity/open-global (assoc lobos.config/db :unsafe true)) ; Establish a connection only when none exists (unsafe true)
(lobos.core/migrate))
- nil nil '(require 'lobos.config 'lobos.core 'lobos.connectivity)))
+ '(require 'lobos.config 'lobos.core 'lobos.connectivity)))
(defn rollback [project]
(eval-in-project project
`(do
(lobos.connectivity/open-global (assoc lobos.config/db :unsafe true)) ; Establish a connection only when none exists (unsafe true)
(lobos.core/rollback))
- nil nil '(require 'lobos.config 'lobos.core 'lobos.connectivity)))
+ '(require 'lobos.config 'lobos.core 'lobos.connectivity)))
(defn lobos
"Run Lobos commands."

0 comments on commit f464313

Please sign in to comment.