dm-cli 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1,3 @@
1
+ === 0.9.8 / 2008-12-07
1
2
 
3
+ * No changes this version
@@ -11,3 +11,5 @@ lib/dm-cli/cli.rb
11
11
  lib/dm-cli/version.rb
12
12
  spec/spec.opts
13
13
  spec/unit/cli_spec.rb
14
+ tasks/install.rb
15
+ tasks/spec.rb
data/Rakefile CHANGED
@@ -1,59 +1,26 @@
1
- require "rubygems"
2
- require "spec"
3
- require "spec/rake/spectask"
4
- require "pathname"
1
+ require 'pathname'
2
+ require 'rubygems'
3
+
4
+ ROOT = Pathname(__FILE__).dirname.expand_path
5
+ JRUBY = RUBY_PLATFORM =~ /java/
6
+ WINDOWS = Gem.win_platform?
7
+ SUDO = (WINDOWS || JRUBY) ? '' : ('sudo' unless ENV['SUDOLESS'])
5
8
 
6
- ROOT = Pathname(__FILE__).dirname.expand_path
7
9
  require ROOT + 'lib/dm-cli/version'
8
10
 
9
- AUTHOR = "Wayne E. Seguin"
10
- EMAIL = "john@wishVPS.com"
11
- GEM_NAME = "dm-cli"
11
+ AUTHOR = 'Wayne E. Seguin'
12
+ EMAIL = 'wayneeseguin [a] gmail [d] com'
13
+ GEM_NAME = 'dm-cli'
12
14
  GEM_VERSION = DataMapper::CLI::VERSION
13
- GEM_DEPENDENCIES = [["dm-core", GEM_VERSION]]
14
- GEM_CLEAN = ["log", "pkg"]
15
- GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.txt LICENSE TODO ],
16
- :executables => %w[ dm ], :bindir => "bin" }
17
-
18
- PROJECT_NAME = "datamapper"
19
- PROJECT_URL = "http://github.com/sam/dm-more/tree/master/dm-cli"
20
- PROJECT_DESCRIPTION = PROJECT_SUMMARY = "DataMapper plugin allowing interaction with models through a CLI"
21
-
22
- require ROOT.parent + 'tasks/hoe'
23
-
24
- task :default => [ :spec ]
25
-
26
- WIN32 = (RUBY_PLATFORM =~ /win32|mingw|cygwin/) rescue nil
27
- SUDO = WIN32 ? "" : ("sudo" unless ENV["SUDOLESS"])
28
-
29
- desc "Install #{GEM_NAME} #{GEM_VERSION} (default ruby)"
30
- task :install => [ :package ] do
31
- sh "#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources", :verbose => false
32
- end
33
-
34
- desc "Uninstall #{GEM_NAME} #{GEM_VERSION} (default ruby)"
35
- task :uninstall => [ :clobber ] do
36
- sh "#{SUDO} gem uninstall #{GEM_NAME} -v#{GEM_VERSION} -I -x", :verbose => false
37
- end
38
-
39
- namespace :jruby do
40
- desc "Install #{GEM_NAME} #{GEM_VERSION} with JRuby"
41
- task :install => [ :package ] do
42
- sh %{#{SUDO} jruby -S gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources}, :verbose => false
43
- end
44
- end
15
+ GEM_DEPENDENCIES = [['dm-core', "~>#{GEM_VERSION}"]]
16
+ GEM_CLEAN = %w[ log pkg coverage ]
17
+ GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.txt LICENSE TODO History.txt ],
18
+ :executables => %w[ dm ], :bindir => 'bin' }
45
19
 
46
- desc "Run specifications"
47
- Spec::Rake::SpecTask.new(:spec) do |t|
48
- t.spec_opts << "--options" << "spec/spec.opts" if File.exists?("spec/spec.opts")
49
- t.spec_files = Pathname.glob((ROOT + 'spec/**/*_spec.rb').to_s)
20
+ PROJECT_NAME = 'datamapper'
21
+ PROJECT_URL = "http://github.com/sam/dm-more/tree/master/#{GEM_NAME}"
22
+ PROJECT_DESCRIPTION = PROJECT_SUMMARY = 'DataMapper plugin allowing interaction with models through a CLI'
50
23
 
51
- begin
52
- t.rcov = ENV.has_key?("NO_RCOV") ? ENV["NO_RCOV"] != "true" : true
53
- t.rcov_opts << "--exclude" << "spec"
54
- t.rcov_opts << "--text-summary"
55
- t.rcov_opts << "--sort" << "coverage" << "--sort-reverse"
56
- rescue Exception
57
- # rcov not installed
58
- end
24
+ [ ROOT, ROOT.parent ].each do |dir|
25
+ Pathname.glob(dir.join('tasks/**/*.rb').to_s).each { |f| require f }
59
26
  end
data/TODO CHANGED
@@ -1,8 +0,0 @@
1
- TODO
2
- ====
3
-
4
-
5
-
6
- ---
7
- TODO tickets may also be found in the DataMapper Issue Tracker:
8
- http://wm.lighthouseapp.com/projects/4819-datamapper/overview
data/bin/dm CHANGED
@@ -1,10 +1,13 @@
1
1
  #!/usr/bin/env ruby
2
- require "rubygems"
3
2
 
4
- gem "dm-core", "~>0.9.7"
5
- require "dm-core"
6
- require "dm-cli"
7
- require "optparse"
3
+ require 'optparse'
4
+ require 'rubygems'
5
+
6
+ gem 'dm-core', '~>0.9.8'
7
+ require 'dm-core'
8
+
9
+ gem 'dm-cli', '~>0.9.8'
10
+ require 'dm-cli'
8
11
 
9
12
  DataMapper::CLI::BinDir = File.dirname(__FILE__)
10
13
  DataMapper::CLI.start
@@ -1,5 +1,5 @@
1
1
  module DataMapper
2
2
  class CLI
3
- VERSION = "0.9.7"
3
+ VERSION = '0.9.8'
4
4
  end
5
5
  end
@@ -1,2 +1 @@
1
- --format specdoc
2
1
  --colour
@@ -1,7 +1,7 @@
1
- require "rubygems"
1
+ require 'rubygems'
2
2
 
3
- gem "dm-core", "~>0.9.7"
4
- require "dm-core"
3
+ gem 'dm-core', '~>0.9.8'
4
+ require 'dm-core'
5
5
 
6
6
  require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "lib", "dm-cli", "cli"))
7
7
 
@@ -0,0 +1,13 @@
1
+ def sudo_gem(cmd)
2
+ sh "#{SUDO} #{RUBY} -S gem #{cmd}", :verbose => false
3
+ end
4
+
5
+ desc "Install #{GEM_NAME} #{GEM_VERSION}"
6
+ task :install => [ :package ] do
7
+ sudo_gem "install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources"
8
+ end
9
+
10
+ desc "Uninstall #{GEM_NAME} #{GEM_VERSION}"
11
+ task :uninstall => [ :clobber ] do
12
+ sudo_gem "uninstall #{GEM_NAME} -v#{GEM_VERSION} -Ix"
13
+ end
@@ -0,0 +1,25 @@
1
+ begin
2
+ gem 'rspec', '~>1.1.11'
3
+ require 'spec'
4
+ require 'spec/rake/spectask'
5
+
6
+ task :default => [ :spec ]
7
+
8
+ desc 'Run specifications'
9
+ Spec::Rake::SpecTask.new(:spec) do |t|
10
+ t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
11
+ t.spec_files = Pathname.glob((ROOT + 'spec/**/*_spec.rb').to_s)
12
+
13
+ begin
14
+ gem 'rcov', '~>0.8'
15
+ t.rcov = JRUBY ? false : (ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true)
16
+ t.rcov_opts << '--exclude' << 'spec'
17
+ t.rcov_opts << '--text-summary'
18
+ t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
19
+ rescue LoadError
20
+ # rcov not installed
21
+ end
22
+ end
23
+ rescue LoadError
24
+ # rspec not installed
25
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne E. Seguin
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-18 00:00:00 -08:00
12
+ date: 2008-12-07 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -18,23 +18,13 @@ dependencies:
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - "="
21
+ - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 0.9.7
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: hoe
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.8.2
23
+ version: 0.9.8
34
24
  version:
35
25
  description: DataMapper plugin allowing interaction with models through a CLI
36
26
  email:
37
- - john@wishVPS.com
27
+ - wayneeseguin [a] gmail [d] com
38
28
  executables:
39
29
  - dm
40
30
  extensions: []
@@ -43,6 +33,7 @@ extra_rdoc_files:
43
33
  - README.txt
44
34
  - LICENSE
45
35
  - TODO
36
+ - History.txt
46
37
  files:
47
38
  - History.txt
48
39
  - LICENSE
@@ -57,6 +48,8 @@ files:
57
48
  - lib/dm-cli/version.rb
58
49
  - spec/spec.opts
59
50
  - spec/unit/cli_spec.rb
51
+ - tasks/install.rb
52
+ - tasks/spec.rb
60
53
  has_rdoc: true
61
54
  homepage: http://github.com/sam/dm-more/tree/master/dm-cli
62
55
  post_install_message: