dev_projects 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/project.rb +6 -2
  2. metadata +23 -3
  3. data/lib/build.rb +0 -5
  4. data/spec/build_spec.rb +0 -22
data/lib/project.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'json'
2
+ require 'dev_commands'
2
3
 
3
4
  class Project < Hash
4
5
  attr_accessor :filename
@@ -53,8 +54,11 @@ attr_accessor :filename
53
54
  end
54
55
  if(File.exists?(self.wrk_dir))
55
56
  Dir.chdir(self.wrk_dir) do
56
- puts "rake (#{self.wrk_dir})"
57
- puts `rake`
57
+ rake = Command.new({ :input => 'rake', :timeout => 300, :ignore_failure => true })
58
+ #puts "rake (#{self.wrk_dir})"
59
+ #puts `rake`
60
+ rake.execute
61
+ puts rake.summary
58
62
  end
59
63
  end
60
64
  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.17
4
+ version: 0.0.18
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -75,6 +75,28 @@ dependencies:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
77
  version: 0.0.15
78
+ - !ruby/object:Gem::Dependency
79
+ name: dev_commands
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: 0.0.0
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: 0.0.50
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 0.0.0
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: 0.0.50
78
100
  - !ruby/object:Gem::Dependency
79
101
  name: rspec
80
102
  requirement: !ruby/object:Gem::Requirement
@@ -97,11 +119,9 @@ executables: []
97
119
  extensions: []
98
120
  extra_rdoc_files: []
99
121
  files:
100
- - lib/build.rb
101
122
  - lib/dev_projects.rb
102
123
  - lib/project.rb
103
124
  - lib/projects.rb
104
- - spec/build_spec.rb
105
125
  - spec/dev_projects_spec.rb
106
126
  - spec/projects_spec.rb
107
127
  - spec/project_spec.rb
data/lib/build.rb DELETED
@@ -1,5 +0,0 @@
1
- class Build < Hash
2
- def initialize
3
- self[:unique_id]=''
4
- end
5
- end
data/spec/build_spec.rb DELETED
@@ -1,22 +0,0 @@
1
- require_relative '../lib/build.rb'
2
-
3
- describe Build do
4
- it "should support the :unique_id key" do
5
- build=Build.new
6
- # :unique_id
7
- expect(build[:unique_id]).to eq('')
8
- build[:unique_id]='51ed9c9d45ba3979c808740d75ba1831c85aff5d'
9
- expect(build[:unique_id]).to eq('51ed9c9d45ba3979c808740d75ba1831c85aff5d')
10
- end
11
-
12
- it "should be able to support the :project key" do
13
- build=Build.new
14
- expect(build[:project]).to eq(nil)
15
- #build[:unique_id]='51ed9c9d45ba3979c808740d75ba1831c85aff5d'
16
- #expect(build[:unique_id]).to eq('51ed9c9d45ba3979c808740d75ba1831c85aff5d')
17
- end
18
-
19
- it "should be able to execute" do
20
-
21
- end
22
- end