dev_tasks 1.0.35 → 1.0.37

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: ed9df54a8fe94de343e3a0ae7dba34bfd37c787d
4
- data.tar.gz: d6d6ca6cf81dd9af0353c93589772df52b5db948
3
+ metadata.gz: b4dd5c121f771bbe4a5712e383e1319718276f6b
4
+ data.tar.gz: 5ceef85a5361f84cff9274f0084e0fef16a0c98c
5
5
  SHA512:
6
- metadata.gz: 707ce245e642e5e5a70f50f78c7e3e2343eaf9f53488b3a27bdaa00bd7d49e51acd73a7befc58bdf920a303790b6b66a2ef6293766e29ff2f15c038588582533
7
- data.tar.gz: 4518f56b16cfd28e92f9630b4423670a71a684cdb77e23de4c0ca6200a52a9c1baf35974a083ecad079eab15a7ce7634f74f5588a32dbce641c6c9fa95497298
6
+ metadata.gz: 795159f0daabd97d240b5b1f00df04cb7967f615f2db41c236ddf781065f2bb5f9180e04854a133e3b20d051ff4ab4dec059fe0653a721978672f648c63e360f
7
+ data.tar.gz: 4996749b3c647a9ab9994faffc87626de4c2241f8418126190be2a280ee70440e122422bf73d0008d5d0528506fc67db483b1356cde3fe26d0d3dc7bcc5768bc
data/lib/add.rb CHANGED
@@ -1,6 +1,6 @@
1
- require_relative './commandarray.rb'
1
+ #require_relative './commandarray.rb'
2
2
 
3
- class Add < CommandArray
3
+ class Add #< CommandArray
4
4
 
5
5
  # updates the commands in the Add CommandArray
6
6
  #
data/lib/build.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  require_relative './color.rb'
2
- require_relative './commandarray.rb'
2
+ #require_relative './commandarray.rb'
3
3
  require_relative './msbuild.rb'
4
4
 
5
- class Build < CommandArray
5
+ class Build #< CommandArray
6
6
 
7
7
  def update
8
8
  if(defined?(DEV_TASKS))
data/lib/commit.rb CHANGED
@@ -1,7 +1,7 @@
1
- require_relative('./commandarray.rb')
1
+ #require_relative('./commandarray.rb')
2
2
  require_relative('./environment.rb')
3
3
 
4
- class Commit < CommandArray
4
+ class Commit #< CommandArray
5
5
  def update
6
6
  if(Dir.exists?(".git") && `git config --list`.include?('user.name='))
7
7
  if(`git status`.include?('nothing to commit') || `git status`.include?('untracked files present'))
data/lib/publish.rb CHANGED
@@ -1,8 +1,8 @@
1
- require_relative('./commandarray.rb')
1
+ #require_relative('./commandarray.rb')
2
2
  require_relative('./environment.rb')
3
3
  require_relative('./console.rb')
4
4
 
5
- class Publish < CommandArray
5
+ class Publish #< CommandArray
6
6
 
7
7
  def initialize
8
8
  #if(Environment.scm=='git')
data/lib/pull.rb CHANGED
@@ -1,14 +1,14 @@
1
- require_relative('./commandarray.rb')
1
+ #require_relative('./commandarray.rb')
2
2
  require_relative('./environment.rb')
3
3
  require 'time'
4
4
 
5
- class Pull < CommandArray
5
+ class Pull < Array#< CommandArray
6
6
  def update
7
7
  if(Environment.scm=='git' && Environment.scm_origin.length > 0 && `git config --list`.include?('user.name='))
8
8
  if(Timer.elapsed_exceeds?("last_pull",60*60*2))
9
9
  #if(Timer.get_elapsed("last_pull").nil? || Timer.get_elapsed("last_pull") > 60*60*2)
10
- self.add "<%`git pull 2>&1`%>"
11
- self.add "<%Timer.set_timestamp('last_pull')%>"
10
+ add "<%`git pull 2>&1`%>"
11
+ add "<%Timer.set_timestamp('last_pull')%>"
12
12
  end
13
13
  end
14
14
  end
data/lib/push.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require_relative('./push.rb')
2
2
  require_relative('./environment.rb')
3
3
 
4
- class Push < CommandArray
4
+ class Push #< CommandArray
5
5
  def update
6
6
  if(Environment.scm=='git' && `git config --list`.include?('user.name='))
7
7
  if(`git diff @{u}`.include?('diff'))
data/lib/setup.rb CHANGED
@@ -1,5 +1,5 @@
1
- require_relative('./commandarray.rb')
2
- class Setup < CommandArray
1
+ #require_relative('./commandarray.rb')
2
+ class Setup #< CommandArray
3
3
 
4
4
  def update
5
5
  if(defined?(DEV_TASKS))
data/lib/test.rb CHANGED
@@ -1,6 +1,6 @@
1
- require_relative('./commandarray.rb')
1
+ #require_relative('./commandarray.rb')
2
2
 
3
- class Test < CommandArray
3
+ class Test #< CommandArray
4
4
 
5
5
  def update
6
6
  # rspec tests, 'rspec --pattern="**/*.spec"'
data/lib/upgrade.rb CHANGED
@@ -1,7 +1,7 @@
1
- require_relative('./commandarray.rb')
1
+ #require_relative('./commandarray.rb')
2
2
  require_relative('./environment.rb')
3
3
 
4
- class Upgrade < CommandArray
4
+ class Upgrade < Array#< CommandArray
5
5
 
6
6
  def update
7
7
  if(Environment.scm=='git' && Environment.branch=='develop')
data/lib/verify.rb CHANGED
@@ -1,8 +1,8 @@
1
- require_relative('./commandarray.rb')
1
+ #require_relative('./commandarray.rb')
2
2
  require_relative('./environment.rb')
3
3
  require_relative('./console.rb')
4
4
 
5
- class Verify < CommandArray
5
+ class Verify < Array#< CommandArray
6
6
 
7
7
  def update
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.35
4
+ version: 1.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-10 00:00:00.000000000 Z
11
+ date: 2015-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dev_environment
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.0.8
19
+ version: 0.0.13
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.0.8
26
+ version: 0.0.13
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: dev_environment
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.8
33
+ version: 0.0.13
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.8
40
+ version: 0.0.13
41
41
  description: defines rake tasks for ruby and C# projects
42
42
  email: lou.parslow@gmail.com
43
43
  executables: []
@@ -48,7 +48,6 @@ files:
48
48
  - lib/artifacts.x.rb
49
49
  - lib/build.rb
50
50
  - lib/color.rb
51
- - lib/commandarray.rb
52
51
  - lib/commands.rb
53
52
  - lib/commit.rb
54
53
  - lib/console.rb
data/lib/commandarray.rb DELETED
@@ -1,5 +0,0 @@
1
- class CommandArray < Array
2
- def add command
3
- self << command if(!include?(command))
4
- end
5
- end