dev 2.1.70 → 2.1.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +202 -202
- data/lib/apps/svn.rb +151 -151
- data/lib/apps/xcodebuild.rb +15 -15
- data/lib/apps.rb +2 -2
- data/lib/base/dir.rb +98 -98
- data/lib/base/file.rb +34 -34
- data/lib/base/gemspec.rb +50 -50
- data/lib/base/hash.rb +20 -20
- data/lib/base/history.rb +38 -38
- data/lib/base/internet.rb +24 -24
- data/lib/base/project.rb +458 -458
- data/lib/base/string.rb +6 -6
- data/lib/base/text.rb +29 -29
- data/lib/base/timeout.rb +121 -121
- data/lib/base/timer.rb +44 -44
- data/lib/base/version.rb +82 -82
- data/lib/base.rb +4 -4
- data/lib/dev.config.rb +7 -7
- data/lib/tasks/clean.rb +9 -9
- data/lib/tasks/clobber.rb +25 -25
- data/lib/tasks/doc.rb +9 -9
- data/lib/tasks/info.rb +9 -9
- data/lib/tasks/publish.rb +33 -33
- data/lib/tasks/pull.rb +11 -11
- data/lib/tasks/setup.rb +12 -0
- data/lib/tasks/update.rb +14 -14
- metadata +3 -4
data/lib/tasks/doc.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
desc 'performs documentation commands'
|
2
|
-
task :doc do Tasks.execute_task :doc;end
|
3
|
-
|
4
|
-
class Doc < Array
|
5
|
-
def update
|
6
|
-
if(Command.exit_code('yard --version'))
|
7
|
-
add_quiet 'yard doc - LICENSE' if File.exists?('README.md') && File.exists?('LICENSE')
|
8
|
-
end
|
9
|
-
end
|
1
|
+
desc 'performs documentation commands'
|
2
|
+
task :doc do Tasks.execute_task :doc;end
|
3
|
+
|
4
|
+
class Doc < Array
|
5
|
+
def update
|
6
|
+
if(Command.exit_code('yard --version'))
|
7
|
+
add_quiet 'yard doc - LICENSE' if File.exists?('README.md') && File.exists?('LICENSE')
|
8
|
+
end
|
9
|
+
end
|
10
10
|
end
|
data/lib/tasks/info.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
desc 'displays project info'
|
2
|
-
task :info do
|
3
|
-
Environment.default.info
|
4
|
-
puts ' '
|
5
|
-
#PROJECT.info
|
6
|
-
puts ' '
|
7
|
-
COMMANDS.info
|
8
|
-
end
|
9
|
-
|
1
|
+
desc 'displays project info'
|
2
|
+
task :info do
|
3
|
+
Environment.default.info
|
4
|
+
puts ' '
|
5
|
+
#PROJECT.info
|
6
|
+
puts ' '
|
7
|
+
COMMANDS.info
|
8
|
+
end
|
9
|
+
|
data/lib/tasks/publish.rb
CHANGED
@@ -1,34 +1,34 @@
|
|
1
|
-
require_relative '../base/array.rb'
|
2
|
-
desc 'performs publish commands'
|
3
|
-
task :publish do Tasks.execute_task :publish; end
|
4
|
-
|
5
|
-
class Publish < Array
|
6
|
-
|
7
|
-
def update
|
8
|
-
if(File.exists?('.git') && defined?(VERSION))
|
9
|
-
add_quiet "<%Git.tag('#{Rake.application.original_dir}','#{VERSION}')%>"
|
10
|
-
end
|
11
|
-
|
12
|
-
if(Internet.available?)
|
13
|
-
if(File.exists?('.git'))
|
14
|
-
if(`git branch`.include?('* master'))
|
15
|
-
Dir.glob('*.gemspec').each{|gemspec_file|
|
16
|
-
add_passive "gem push #{Gemspec.gemfile(gemspec_file)}" if !Gemspec.published? gemspec_file
|
17
|
-
}
|
18
|
-
end
|
19
|
-
end
|
20
|
-
if(File.exists?('.svn'))
|
21
|
-
if(`svn info`.include?('/trunk'))
|
22
|
-
Dir.glob('*.gemspec').each{|gemspec_file|
|
23
|
-
add_quiet "gem push #{Gemspec.gemfile(gemspec_file)}" if !Gemspec.published? gemspec_file
|
24
|
-
}
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
Dir.glob("#{Rake.application.original_dir}/**/*.{nupkg,msi,gem}").each{|publish_file|
|
30
|
-
dest="#{Environment.default.publish_dir}/#{File.basename(publish_file)}"
|
31
|
-
add_quiet "<%FileUtils.cp('#{publish_file}','#{dest}')%>" if(!File.exists?(dest) && !publish_file.include?('packages/'))
|
32
|
-
}
|
33
|
-
end
|
1
|
+
require_relative '../base/array.rb'
|
2
|
+
desc 'performs publish commands'
|
3
|
+
task :publish do Tasks.execute_task :publish; end
|
4
|
+
|
5
|
+
class Publish < Array
|
6
|
+
|
7
|
+
def update
|
8
|
+
if(File.exists?('.git') && defined?(VERSION))
|
9
|
+
add_quiet "<%Git.tag('#{Rake.application.original_dir}','#{VERSION}')%>"
|
10
|
+
end
|
11
|
+
|
12
|
+
if(Internet.available?)
|
13
|
+
if(File.exists?('.git'))
|
14
|
+
if(`git branch`.include?('* master'))
|
15
|
+
Dir.glob('*.gemspec').each{|gemspec_file|
|
16
|
+
add_passive "gem push #{Gemspec.gemfile(gemspec_file)}" if !Gemspec.published? gemspec_file
|
17
|
+
}
|
18
|
+
end
|
19
|
+
end
|
20
|
+
if(File.exists?('.svn'))
|
21
|
+
if(`svn info`.include?('/trunk'))
|
22
|
+
Dir.glob('*.gemspec').each{|gemspec_file|
|
23
|
+
add_quiet "gem push #{Gemspec.gemfile(gemspec_file)}" if !Gemspec.published? gemspec_file
|
24
|
+
}
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
Dir.glob("#{Rake.application.original_dir}/**/*.{nupkg,msi,gem}").each{|publish_file|
|
30
|
+
dest="#{Environment.default.publish_dir}/#{File.basename(publish_file)}"
|
31
|
+
add_quiet "<%FileUtils.cp('#{publish_file}','#{dest}')%>" if(!File.exists?(dest) && !publish_file.include?('packages/'))
|
32
|
+
}
|
33
|
+
end
|
34
34
|
end
|
data/lib/tasks/pull.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
desc 'performs a git pull'
|
2
|
-
task :pull do Tasks.execute_task :pull; end
|
3
|
-
|
4
|
-
class Pull < Array
|
5
|
-
def update
|
6
|
-
if(!defined?(NO_PULL))
|
7
|
-
if(File.exists?('.git') && `git config --list`.include?('user.name=') )
|
8
|
-
add_passive('git pull') if Git.branch == 'master'
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
1
|
+
desc 'performs a git pull'
|
2
|
+
task :pull do Tasks.execute_task :pull; end
|
3
|
+
|
4
|
+
class Pull < Array
|
5
|
+
def update
|
6
|
+
if(!defined?(NO_PULL))
|
7
|
+
if(File.exists?('.git') && `git config --list`.include?('user.name=') )
|
8
|
+
add_passive('git pull') if Git.branch == 'master'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
12
|
end
|
data/lib/tasks/setup.rb
CHANGED
@@ -106,6 +106,18 @@ class Setup < Array
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
}
|
109
|
+
Dir.glob('**/*.csproj').each{|csproj|
|
110
|
+
current_version=IO.read(nuspec).scan(/<PackageVersion>[\d.]+<\/PackageVersion>/)[0]
|
111
|
+
if(!current_version.nil?)
|
112
|
+
puts "#{csproj} current version=#{current_version}" if env.debug?
|
113
|
+
if(current_version.include?('<PackageVersion>'))
|
114
|
+
target_version="<PackageVersion>#{VERSION}</PackageVersion>"
|
115
|
+
if(current_version != target_version)
|
116
|
+
add_quiet "<%Text.replace_in_file('#{csproj}','#{current_version}','#{target_version}')%>"
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
}
|
109
121
|
Dir.glob('**/*.{wxs,_wxs}').each{|wxs|
|
110
122
|
begin
|
111
123
|
current_version=IO.read(wxs).scan(/\sVersion=[\"']([\d.]+)[\"']/)[0][0]
|
data/lib/tasks/update.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
desc 'performs svn update'
|
2
|
-
task :update do Tasks.execute_task :update; end
|
3
|
-
|
4
|
-
class Update < Array
|
5
|
-
def update
|
6
|
-
add_quiet 'svn update' if File.exists?('.svn') && Internet.available?
|
7
|
-
|
8
|
-
if(Dir.glob('**/packages.config').length > 0)
|
9
|
-
Dir.glob('*.sln').each{|sln_file|
|
10
|
-
#add_quiet "nuget restore #{sln_file}"
|
11
|
-
add_quiet "nuget update #{sln_file}"
|
12
|
-
}
|
13
|
-
end
|
14
|
-
end
|
1
|
+
desc 'performs svn update'
|
2
|
+
task :update do Tasks.execute_task :update; end
|
3
|
+
|
4
|
+
class Update < Array
|
5
|
+
def update
|
6
|
+
add_quiet 'svn update' if File.exists?('.svn') && Internet.available?
|
7
|
+
|
8
|
+
if(Dir.glob('**/packages.config').length > 0)
|
9
|
+
Dir.glob('*.sln').each{|sln_file|
|
10
|
+
#add_quiet "nuget restore #{sln_file}"
|
11
|
+
add_quiet "nuget update #{sln_file}"
|
12
|
+
}
|
13
|
+
end
|
14
|
+
end
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.71
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -127,9 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
129
|
rubyforge_project:
|
130
|
-
rubygems_version: 2.
|
130
|
+
rubygems_version: 2.6.13
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: dev
|
134
134
|
test_files: []
|
135
|
-
has_rdoc:
|