dm-cli 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt ADDED
@@ -0,0 +1 @@
1
+
data/Manifest.txt ADDED
@@ -0,0 +1,13 @@
1
+ History.txt
2
+ LICENSE
3
+ Manifest.txt
4
+ README.txt
5
+ Rakefile
6
+ TODO
7
+ bin/.irbrc
8
+ bin/dm
9
+ lib/dm-cli.rb
10
+ lib/dm-cli/cli.rb
11
+ lib/dm-cli/version.rb
12
+ spec/spec.opts
13
+ spec/unit/cli_spec.rb
@@ -1,5 +1,4 @@
1
- dm-cli
2
- ======
1
+ = dm-cli
3
2
 
4
3
  DataMapper plugin allowing interaction with models through a Command-Line
5
4
  Interface (CLI).
data/Rakefile CHANGED
@@ -1,53 +1,45 @@
1
1
  require "rubygems"
2
2
  require "spec"
3
- require "rake/clean"
4
- require "rake/gempackagetask"
5
3
  require "spec/rake/spectask"
6
4
  require "pathname"
7
5
 
8
- CLEAN.include "{log,pkg}/"
6
+ ROOT = Pathname(__FILE__).dirname.expand_path
7
+ require ROOT + 'lib/dm-cli/version'
9
8
 
10
- spec = Gem::Specification.new do |s|
11
- s.name = "dm-cli"
12
- s.version = "0.9.2"
13
- s.platform = Gem::Platform::RUBY
14
- s.has_rdoc = true
15
- s.extra_rdoc_files = %w[ README LICENSE TODO ]
16
- s.summary = "DataMapper plugin allowing interaction with models through a CLI"
17
- s.description = s.summary
18
- s.author = "Wayne E. Seguin"
19
- s.email = "wayneeseguin@gmail.com"
20
- s.homepage = "http://github.com/sam/dm-more/tree/master/dm-cli"
21
- s.executables = [ "dm" ]
22
- s.bindir = "bin"
23
- s.require_path = "lib"
24
- s.files = FileList[ "bin/.*", "{lib,spec}/**/*.rb", "spec/spec.opts", "Rakefile", *s.extra_rdoc_files ]
25
- s.add_dependency("dm-core", "=#{s.version}")
26
- end
9
+ AUTHOR = "Wayne E. Seguin"
10
+ EMAIL = "john@wishVPS.com"
11
+ GEM_NAME = "dm-cli"
12
+ 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'
27
23
 
28
24
  task :default => [ :spec ]
29
25
 
30
26
  WIN32 = (RUBY_PLATFORM =~ /win32|mingw|cygwin/) rescue nil
31
27
  SUDO = WIN32 ? "" : ("sudo" unless ENV["SUDOLESS"])
32
28
 
33
- Rake::GemPackageTask.new(spec) do |pkg|
34
- pkg.gem_spec = spec
35
- end
36
-
37
- desc "Install #{spec.name} #{spec.version} (default ruby)"
29
+ desc "Install #{GEM_NAME} #{GEM_VERSION} (default ruby)"
38
30
  task :install => [ :package ] do
39
- sh "#{SUDO} gem install --local pkg/#{spec.name}-#{spec.version} --no-update-sources", :verbose => false
31
+ sh "#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources", :verbose => false
40
32
  end
41
33
 
42
- desc "Uninstall #{spec.name} #{spec.version} (default ruby)"
34
+ desc "Uninstall #{GEM_NAME} #{GEM_VERSION} (default ruby)"
43
35
  task :uninstall => [ :clobber ] do
44
- sh "#{SUDO} gem uninstall #{spec.name} -v#{spec.version} -I -x", :verbose => false
36
+ sh "#{SUDO} gem uninstall #{GEM_NAME} -v#{GEM_VERSION} -I -x", :verbose => false
45
37
  end
46
38
 
47
39
  namespace :jruby do
48
- desc "Install #{spec.name} #{spec.version} with JRuby"
40
+ desc "Install #{GEM_NAME} #{GEM_VERSION} with JRuby"
49
41
  task :install => [ :package ] do
50
- sh %{#{SUDO} jruby -S gem install --local pkg/#{spec.name}-#{spec.version} --no-update-sources}, :verbose => false
42
+ sh %{#{SUDO} jruby -S gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources}, :verbose => false
51
43
  end
52
44
  end
53
45
 
data/bin/dm CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  require "rubygems"
3
3
 
4
- gem "dm-core", ">=0.9.2"
4
+ gem "dm-core", ">=0.9.3"
5
5
  require "dm-core"
6
6
  require "pathname"
7
7
  require Pathname("data_mapper/cli")
File without changes
@@ -0,0 +1,5 @@
1
+ module DataMapper
2
+ class CLI
3
+ VERSION = "0.9.3"
4
+ end
5
+ end
data/lib/dm-cli.rb ADDED
@@ -0,0 +1 @@
1
+ require File.join(File.dirname(__FILE__), "dm-cli", "cli")
@@ -1,9 +1,9 @@
1
1
  require "rubygems"
2
2
 
3
- gem "dm-core", ">=0.9.2"
3
+ gem "dm-core", ">=0.9.3"
4
4
  require "dm-core"
5
5
 
6
- require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "lib", "data_mapper", "cli"))
6
+ require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "lib", "dm-cli", "cli"))
7
7
 
8
8
  describe DataMapper::CLI do
9
9
 
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.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne E. Seguin
@@ -9,44 +9,60 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-25 00:00:00 -05:00
12
+ date: 2008-07-24 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: dm-core
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
21
  - - "="
21
22
  - !ruby/object:Gem::Version
22
- version: 0.9.2
23
+ version: 0.9.3
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.7.0
23
34
  version:
24
35
  description: DataMapper plugin allowing interaction with models through a CLI
25
- email: wayneeseguin@gmail.com
36
+ email:
37
+ - john@wishVPS.com
26
38
  executables:
27
39
  - dm
28
40
  extensions: []
29
41
 
30
42
  extra_rdoc_files:
31
- - README
43
+ - README.txt
32
44
  - LICENSE
33
45
  - TODO
34
46
  files:
35
- - bin/.
36
- - bin/..
37
- - bin/.irbrc
38
- - lib/data_mapper/cli.rb
39
- - spec/unit/cli_spec.rb
40
- - spec/spec.opts
41
- - Rakefile
42
- - README
47
+ - History.txt
43
48
  - LICENSE
49
+ - Manifest.txt
50
+ - README.txt
51
+ - Rakefile
44
52
  - TODO
53
+ - bin/.irbrc
54
+ - bin/dm
55
+ - lib/dm-cli.rb
56
+ - lib/dm-cli/cli.rb
57
+ - lib/dm-cli/version.rb
58
+ - spec/spec.opts
59
+ - spec/unit/cli_spec.rb
45
60
  has_rdoc: true
46
61
  homepage: http://github.com/sam/dm-more/tree/master/dm-cli
47
62
  post_install_message:
48
- rdoc_options: []
49
-
63
+ rdoc_options:
64
+ - --main
65
+ - README.txt
50
66
  require_paths:
51
67
  - lib
52
68
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -63,8 +79,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
79
  version:
64
80
  requirements: []
65
81
 
66
- rubyforge_project:
67
- rubygems_version: 1.0.1
82
+ rubyforge_project: datamapper
83
+ rubygems_version: 1.2.0
68
84
  signing_key:
69
85
  specification_version: 2
70
86
  summary: DataMapper plugin allowing interaction with models through a CLI