dev_projects 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/project.rb +1 -1
- data/lib/projects.rb +1 -0
- data/spec/project_spec.rb +7 -2
- metadata +6 -5
data/lib/project.rb
CHANGED
@@ -35,7 +35,7 @@ attr_accessor :filename
|
|
35
35
|
|
36
36
|
def clone
|
37
37
|
if(!File.exists?(wrk_dir) && self[:url].include?('.git'))
|
38
|
-
puts "cloning #{self
|
38
|
+
puts "cloning #{self[:url]} to #{self.wrk_dir}"
|
39
39
|
puts `git clone #{self[:url]} #{self.wrk_dir}`
|
40
40
|
end
|
41
41
|
end
|
data/lib/projects.rb
CHANGED
data/spec/project_spec.rb
CHANGED
@@ -16,7 +16,12 @@ describe Project do
|
|
16
16
|
expect(unique_id.length).to eq(40)
|
17
17
|
end
|
18
18
|
|
19
|
-
it "should be able to
|
20
|
-
|
19
|
+
it "should be able to rake" do
|
20
|
+
project=Project.new( :url => 'https://github.com/lou-parslow/dev_git.gem.git', :name => 'test/dev_git.gem')
|
21
|
+
project.clone
|
22
|
+
expect(File.exists?(project.wrk_dir)).to eq(true)
|
23
|
+
|
24
|
+
FileUtils.rm_r(project.wrk_dir)
|
25
|
+
expect(File.exists?(project.wrk_dir)).to eq(false)
|
21
26
|
end
|
22
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev_projects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-01-
|
12
|
+
date: 2015-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dev_git
|
@@ -85,7 +85,7 @@ dependencies:
|
|
85
85
|
version: 0.0.0
|
86
86
|
- - ! '>='
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: 0.0.
|
88
|
+
version: 0.0.54
|
89
89
|
type: :runtime
|
90
90
|
prerelease: false
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -96,7 +96,7 @@ dependencies:
|
|
96
96
|
version: 0.0.0
|
97
97
|
- - ! '>='
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 0.0.
|
99
|
+
version: 0.0.54
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
name: rspec
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,8 +148,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project:
|
151
|
-
rubygems_version: 1.8.
|
151
|
+
rubygems_version: 1.8.28
|
152
152
|
signing_key:
|
153
153
|
specification_version: 3
|
154
154
|
summary: gem to manage development projects
|
155
155
|
test_files: []
|
156
|
+
has_rdoc:
|