dev_tasks 0.0.113 → 0.0.114

Sign up to get free protection for your applications and to get access to all the features.
data/lib/commands.rb CHANGED
@@ -26,6 +26,7 @@ class Commands < Hash
26
26
 
27
27
  def update
28
28
  self[:upgrade].update
29
+ self[:setup].update
29
30
  end
30
31
 
31
32
  def execute_command command
data/lib/dev_tasks.rb CHANGED
@@ -11,6 +11,7 @@ require_relative './console.rb'
11
11
  require_relative './timer.rb'
12
12
  require_relative './settings.rb'
13
13
  require_relative './text.rb'
14
+ require_relative './svnexports.rb'
14
15
 
15
16
  CLEAN.include('log','*.gem','bin/**/*.dll','bin/**/*.pdb','bin/**/*.exe')
16
17
  CLOBBER.include('bin','obj','TestResults')
@@ -24,6 +25,7 @@ class DevTasks < Hash
24
25
  #hash = JSON.parse File.read("#{File.dirname(__FILE__)}/spec.json")
25
26
  #self[:dev_tasks_gem]=JSON.parse File.read("#{File.dirname(__FILE__)}/spec.json")
26
27
  self[:name]=pwd.split('/').last#Rake.application.original_dir.split('/').last
28
+ self[:svn_exports]=SvnExports.new
27
29
  self[:scm]=Environment.scm
28
30
  self[:branch]=Environment.branch
29
31
  self[:src_glob]="**/{*.{rb,feature,spec,cs,c,m,cpp,cxx,h,hpp,i,jam,csproj,vcproj,snk,vcxproj,xcodeproj,plist,xib,sln,filters,xaml,resx,settings,config},Jamfile,.semver,Gemfile,README,LICENSE}"
@@ -36,6 +38,7 @@ class DevTasks < Hash
36
38
  self[:platform]=RUBY_PLATFORM
37
39
  self[:dev_root]=Environment.dev_root
38
40
  self[:settings]=Settings.new
41
+
39
42
  self[:commands]=Commands.new
40
43
  update
41
44
  end
data/lib/setup.rb CHANGED
@@ -1,6 +1,16 @@
1
1
 
2
2
  class Setup < Array
3
3
 
4
+ def update
5
+ if(defined?(DEV_TASKS))
6
+ DEV_TASKS[:svn_exports].each{|k,v|
7
+ if(!File.exists?("#{Environment.dev_root}/dep/#{k}"))
8
+ add "svn export #{v} #{Environment.dev_root}/dep/#{k}"
9
+ end
10
+ }
11
+ end
12
+ end
13
+
4
14
  def add command
5
15
  self << command if(!include?(command))
6
16
  end
data/lib/spec.json CHANGED
@@ -1 +1 @@
1
- {"name":"dev_tasks","version":"0.0.113"}
1
+ {"name":"dev_tasks","version":"0.0.114"}
data/lib/svnexports.rb ADDED
@@ -0,0 +1,3 @@
1
+
2
+ class SvnExports < Hash
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.113
4
+ version: 0.0.114
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -113,6 +113,7 @@ files:
113
113
  - lib/push.rb
114
114
  - lib/settings.rb
115
115
  - lib/setup.rb
116
+ - lib/svnexports.rb
116
117
  - lib/test.rb
117
118
  - lib/text.rb
118
119
  - lib/timer.rb