dm-cli 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +1 -0
- data/Manifest.txt +13 -0
- data/{README → README.txt} +1 -2
- data/Rakefile +22 -30
- data/bin/dm +1 -1
- data/lib/{data_mapper → dm-cli}/cli.rb +0 -0
- data/lib/dm-cli/version.rb +5 -0
- data/lib/dm-cli.rb +1 -0
- data/spec/unit/cli_spec.rb +2 -2
- metadata +33 -17
data/History.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
|
data/Manifest.txt
ADDED
data/{README → README.txt}
RENAMED
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
|
-
|
6
|
+
ROOT = Pathname(__FILE__).dirname.expand_path
|
7
|
+
require ROOT + 'lib/dm-cli/version'
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
-
|
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/#{
|
31
|
+
sh "#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources", :verbose => false
|
40
32
|
end
|
41
33
|
|
42
|
-
desc "Uninstall #{
|
34
|
+
desc "Uninstall #{GEM_NAME} #{GEM_VERSION} (default ruby)"
|
43
35
|
task :uninstall => [ :clobber ] do
|
44
|
-
sh "#{SUDO} gem uninstall #{
|
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 #{
|
40
|
+
desc "Install #{GEM_NAME} #{GEM_VERSION} with JRuby"
|
49
41
|
task :install => [ :package ] do
|
50
|
-
sh %{#{SUDO} jruby -S gem install --local pkg/#{
|
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
File without changes
|
data/lib/dm-cli.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), "dm-cli", "cli")
|
data/spec/unit/cli_spec.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
require "rubygems"
|
2
2
|
|
3
|
-
gem "dm-core", ">=0.9.
|
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", "
|
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.
|
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-
|
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.
|
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:
|
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
|
-
-
|
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
|
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
|