dev 2.0.204 → 2.0.205

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86605c8d42726b71bea7d18882e534ceef21db78
4
- data.tar.gz: 0d76c518eed9e71ec2b4352091087bbd100f4d14
3
+ metadata.gz: e69f73e2613e5aa521aaf12a5441ada4bd125949
4
+ data.tar.gz: f45c5a1dd08e4cf33c99b5a08347a1b2c3eba00e
5
5
  SHA512:
6
- metadata.gz: e6837508f9bd3084fc7aa88a3ea2dea60c135d2838e743c0b6a0062af86d30e2eca30c7a2af4335e09cc899cd754393bf4653d5befe7f45cba02fb0325954d12
7
- data.tar.gz: 6a2a162f870bdec3a2116f9176a9f4643399405f0ef2daa565f6e5c4b329d15a03c0def56d8a850eadf3d510fa52e470539b3a4a585681b07d8610360aaf94b4
6
+ metadata.gz: 33bf019edb33e9681fea3855c296d0e1e067613a6cfbe8dd10e0e7521f9f4bfe184eb29b42fdcd944382731e04d006fa129e0fe61f2e4a6f46cd1994babafcf9
7
+ data.tar.gz: 43b36f7d3154780c90d1cc6d6b559d787fbc4840bafa9dcb41cd77b84a55417f58275daa363cd6b231bc54e7325b35115d8ff0fd9cbbb13890ae6113646d5479
data/lib/apps/git.rb CHANGED
@@ -112,4 +112,8 @@ class Git
112
112
  end
113
113
  end
114
114
  end
115
+
116
+ def self.latest_tag
117
+ `git describe --abbrev=0 --tags`.strip
118
+ end
115
119
  end
data/lib/base/project.rb CHANGED
@@ -103,7 +103,11 @@ class Project < Hash
103
103
  "#{Environment.dev_root}/make/#{self.fullname}-#{tag}"
104
104
  end
105
105
 
106
- def make tag
106
+ def make tag=''
107
+ tag=Git.latest_tag if tag.length==0
108
+
109
+ raise 'no tag specified' if tag.length==0
110
+
107
111
  rake_default=nil
108
112
  logfile="#{Environment.dev_root}/log/#{self.fullname}/#{tag}/#{Environment.user}@#{Environment.machine}.json"
109
113
  if(File.exists?(logfile))
data/lib/base/projects.rb CHANGED
@@ -39,6 +39,17 @@ class Projects < Hash
39
39
  }
40
40
  end
41
41
 
42
+ def make args
43
+ filter=''
44
+ filter=args[1] if args.length > 0
45
+ self.each{|k,v|
46
+ if filter.length==0 || k.include?(filter)
47
+ puts "making #{k}"
48
+ v.make
49
+ end
50
+ }
51
+ end
52
+
42
53
  def self.user_projects_filename
43
54
  FileUtils.mkdir("#{Environment.dev_root}/data") if(!File.exists?("#{Environment.dev_root}/data"))
44
55
  "#{Environment.dev_root}/data/PROJECTS.json"
data/lib/dev.rb CHANGED
@@ -13,10 +13,10 @@ PROJECT=Project.new()
13
13
 
14
14
  class Dev
15
15
  def self.execute args
16
- puts 'dev'
17
- puts "args: #{args.to_s}"
18
-
19
16
  PROJECTS.show(args.length>1 ? args[1]:'') if args.length > 0 && args[0] == 'list'
17
+ PROJECTS.make(args) if args.length > 0 && args[0] == 'make'
18
+ puts 'Usage:'
19
+ puts ' list [pattern]'
20
20
  end
21
21
  end
22
22
 
data/lib/tasks/default.rb CHANGED
@@ -7,7 +7,7 @@ require_relative('../base/timer.rb')
7
7
 
8
8
  RAKE_DEFAULT_EXISTS=File.exists?('rake.default')
9
9
 
10
- current=Projects.current
10
+
11
11
 
12
12
  if(!defined?(NO_DEFAULT_TASK))
13
13
  desc 'perform project commands to push gem development'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.204
4
+ version: 2.0.205
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow