francois-gip 0.2.1 → 0.2.2
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/Rakefile +2 -0
- data/VERSION +1 -1
- data/gip.gemspec +6 -4
- data/lib/gip.rb +6 -4
- metadata +16 -6
data/Rakefile
CHANGED
@@ -10,6 +10,8 @@ begin
|
|
10
10
|
gem.homepage = "http://github.com/francois/gip"
|
11
11
|
gem.authors = ["François Beausoleil"]
|
12
12
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
13
|
+
|
14
|
+
gem.add_dependency "thor", "~> 0.11"
|
13
15
|
end
|
14
16
|
|
15
17
|
rescue LoadError
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/gip.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{gip}
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.2"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Fran\303\247ois Beausoleil"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-09-18}
|
10
10
|
s.default_executable = %q{gip}
|
11
11
|
s.email = %q{francois@teksol.info}
|
12
12
|
s.executables = ["gip"]
|
@@ -31,11 +31,10 @@ Gem::Specification.new do |s|
|
|
31
31
|
"test/gip_test.rb",
|
32
32
|
"test/test_helper.rb"
|
33
33
|
]
|
34
|
-
s.has_rdoc = true
|
35
34
|
s.homepage = %q{http://github.com/francois/gip}
|
36
35
|
s.rdoc_options = ["--charset=UTF-8"]
|
37
36
|
s.require_paths = ["lib"]
|
38
|
-
s.rubygems_version = %q{1.3.
|
37
|
+
s.rubygems_version = %q{1.3.5}
|
39
38
|
s.summary = %q{Gip into place: Piston without the SVN cruft}
|
40
39
|
s.test_files = [
|
41
40
|
"test/gip_test.rb",
|
@@ -47,8 +46,11 @@ Gem::Specification.new do |s|
|
|
47
46
|
s.specification_version = 3
|
48
47
|
|
49
48
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
49
|
+
s.add_runtime_dependency(%q<thor>, ["~> 0.11"])
|
50
50
|
else
|
51
|
+
s.add_dependency(%q<thor>, ["~> 0.11"])
|
51
52
|
end
|
52
53
|
else
|
54
|
+
s.add_dependency(%q<thor>, ["~> 0.11"])
|
53
55
|
end
|
54
56
|
end
|
data/lib/gip.rb
CHANGED
@@ -3,11 +3,13 @@ require "uri"
|
|
3
3
|
require "csv"
|
4
4
|
|
5
5
|
class Gip < Thor
|
6
|
+
VERSION = "0.2.2"
|
7
|
+
|
6
8
|
map %w(--version -v) => :version, %w(--help -h) => :help
|
7
9
|
|
10
|
+
desc "Prints version information"
|
8
11
|
def version
|
9
|
-
|
10
|
-
puts File.read(File.dirname(__FILE__) + "/../VERSION")
|
12
|
+
puts "Gip v#{VERSION}"
|
11
13
|
end
|
12
14
|
|
13
15
|
desc "import REPOSITORY_URL [path]", <<DESC
|
@@ -19,7 +21,7 @@ If path is absent, the repository's base name will be used.
|
|
19
21
|
|
20
22
|
In all cases, a .gipinfo file will be created/updated with the correct remotes specified. The .gipinfo file is a CSV file with 2 columns: remote name,repository URL.
|
21
23
|
DESC
|
22
|
-
method_options :commit => :
|
24
|
+
method_options :commit => :string, :remote => :string, :verbose => 0
|
23
25
|
def import(repository_url, path=nil)
|
24
26
|
uri = begin
|
25
27
|
URI.parse(repository_url)
|
@@ -58,7 +60,7 @@ Given a previously imported tree at PATH, updates it to the latest HEAD, or what
|
|
58
60
|
|
59
61
|
--commit defaults to 'master', and will always be prefixed with the remote's name.
|
60
62
|
DESC
|
61
|
-
method_options :verbose => 0, :commit => :
|
63
|
+
method_options :verbose => 0, :commit => :string
|
62
64
|
def update(path=nil)
|
63
65
|
read_gipinfo.each do |remote|
|
64
66
|
next unless remote.path == path
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: francois-gip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Fran\xC3\xA7ois Beausoleil"
|
@@ -9,10 +9,19 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-18 00:00:00 -07:00
|
13
13
|
default_executable: gip
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: thor
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ~>
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0.11"
|
24
|
+
version:
|
16
25
|
description:
|
17
26
|
email: francois@teksol.info
|
18
27
|
executables:
|
@@ -38,8 +47,9 @@ files:
|
|
38
47
|
- lib/gip.rb
|
39
48
|
- test/gip_test.rb
|
40
49
|
- test/test_helper.rb
|
41
|
-
has_rdoc:
|
50
|
+
has_rdoc: false
|
42
51
|
homepage: http://github.com/francois/gip
|
52
|
+
licenses:
|
43
53
|
post_install_message:
|
44
54
|
rdoc_options:
|
45
55
|
- --charset=UTF-8
|
@@ -60,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
70
|
requirements: []
|
61
71
|
|
62
72
|
rubyforge_project:
|
63
|
-
rubygems_version: 1.
|
73
|
+
rubygems_version: 1.3.5
|
64
74
|
signing_key:
|
65
75
|
specification_version: 3
|
66
76
|
summary: "Gip into place: Piston without the SVN cruft"
|