dev 2.0.293 → 2.0.294
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/base/environment.rb +6 -10
- data/lib/base/source.rb +1 -1
- data/lib/tasks/publish.rb +1 -1
- data/lib/tasks/push.rb +5 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 575919f6f3542da25bc7531c17edc2e205e5f167
|
4
|
+
data.tar.gz: e798408d0feb4e0fda6c001bd8149b05ccf5c5e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb1073ff9933775b434d07a3098cd833f4aef65addd70d93163c1229d737c75b6d334e39e03c9cc7da2cee2b187fea5c60eb03db52a544b10b031b3ee3d96fa8
|
7
|
+
data.tar.gz: 56bb5cf0e24b1ac2645c0b3f0c78c191c80ae6c5c219cc2e92ca08859f90e56cbca0d3b98e5611230614b415968ae9fbe216269b7f2f77914ce5074470ab0fbc
|
data/lib/base/environment.rb
CHANGED
@@ -3,7 +3,7 @@ puts __FILE__ if defined?(DEBUG)
|
|
3
3
|
require_relative('string.rb')
|
4
4
|
|
5
5
|
class Environment < Hash
|
6
|
-
attr_accessor :output
|
6
|
+
attr_accessor :output
|
7
7
|
@@default=nil
|
8
8
|
def self.default
|
9
9
|
@@default=Environment.new if @@default.nil?
|
@@ -12,7 +12,6 @@ class Environment < Hash
|
|
12
12
|
|
13
13
|
def initialize env=nil
|
14
14
|
@output=''
|
15
|
-
|
16
15
|
@env=Hash.new
|
17
16
|
@env_aliases={'HOME' => ['USERPROFILE'],
|
18
17
|
'DEV_ROOT' => ['DEV_HOME','HOME','USERPROFILE'],
|
@@ -20,9 +19,6 @@ class Environment < Hash
|
|
20
19
|
}
|
21
20
|
env.each{|k,v| @env[k.to_s]=v} if !env.nil?
|
22
21
|
@@default=self if @@default.nil?
|
23
|
-
|
24
|
-
@publish_dir="#{root_dir}/publish"
|
25
|
-
FileUtils.mkdir_p @publish_dir if !File.exists? @publish_dir
|
26
22
|
end
|
27
23
|
|
28
24
|
#####Begin LEGACY support
|
@@ -57,11 +53,11 @@ class Environment < Hash
|
|
57
53
|
dir
|
58
54
|
end
|
59
55
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
56
|
+
def publish_dir
|
57
|
+
dir="#{root_dir}/publish"
|
58
|
+
FileUtils.mkdir_p dir if !File.exists? dir
|
59
|
+
dir
|
60
|
+
end
|
65
61
|
|
66
62
|
def wrk_dir
|
67
63
|
dir="#{root_dir}/wrk"
|
data/lib/base/source.rb
CHANGED
@@ -9,7 +9,7 @@ SOURCE.include('**/*.{cpp,hpp}')
|
|
9
9
|
SOURCE.include('**/*.{swift}')
|
10
10
|
SOURCE.include('**/*.{xcodeproj,plist,storyboard,json}')
|
11
11
|
SOURCE.include('**/*.{csproj,sln,nuspec,config,snk}')
|
12
|
-
SOURCE.include('**/*.{jpeg}')
|
12
|
+
SOURCE.include('**/*.{jpeg,jpg}')
|
13
13
|
SOURCE.include('**/*.{wxs}')
|
14
14
|
SOURCE.exclude('bin','obj','lib')
|
15
15
|
SOURCE.exclude('**/obj/**/*.*')
|
data/lib/tasks/publish.rb
CHANGED
@@ -28,7 +28,7 @@ class Publish < Array
|
|
28
28
|
|
29
29
|
Dir.glob("#{Rake.application.original_dir}/**/*.{nupkg,msi,gem}").each{|publish_file|
|
30
30
|
dest="#{Environment.default.publish_dir}/#{File.basename(publish_file)}"
|
31
|
-
add_quiet "<%FileUtils.cp('#{publish_file}','#{dest}')%>" if(!File.exists?(dest)
|
31
|
+
add_quiet "<%FileUtils.cp('#{publish_file}','#{dest}')%>" if(!File.exists?(dest) || dest.include?('0.0'))
|
32
32
|
}
|
33
33
|
end
|
34
34
|
end
|
data/lib/tasks/push.rb
CHANGED
@@ -3,9 +3,11 @@ task :push do Tasks.execute_task :push;end
|
|
3
3
|
|
4
4
|
class Push < Array
|
5
5
|
def update
|
6
|
-
if(File.exists?('.git') && `git config --list`.include?('user.name=')
|
7
|
-
|
8
|
-
|
6
|
+
if(File.exists?('.git') && `git config --list`.include?('user.name='))
|
7
|
+
if(`git branch`.include?('* master') || `git branch`.include?('* develop'))
|
8
|
+
add_quiet 'git push'
|
9
|
+
add_quiet 'git push --tags'
|
10
|
+
end
|
9
11
|
end
|
10
12
|
end
|
11
13
|
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.0.
|
4
|
+
version: 2.0.294
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lou Parslow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
127
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.4.5
|
128
|
+
rubygems_version: 2.4.5
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: dev
|