dev_tasks 0.0.59 → 0.0.60

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed15791f5ae0bafbeff30bd4fa77488b366c3912
4
- data.tar.gz: d221966bb81ceffd16e2281170a891bbb88e6534
3
+ metadata.gz: c1570de04f72fb8713d6baaf062c1632aa23fa65
4
+ data.tar.gz: 79c1068f95aaf2ae0b5cd29722dec0a53ee639dd
5
5
  SHA512:
6
- metadata.gz: e6fa9bc008e4cf11c5543c097a6db094138788eb6383497888547585d8009783d697d769f4cdbff0b3c25eb60fb345d7dc2d026bcaa5ef509e54c0f4b1c7cecf
7
- data.tar.gz: ab2a8ab3e9c22535d9a370c78c995759ec7507b71dd7eb7046bbdba38ac8c96cacd32c25e75338b8502c9dd17e515979d36ccfcfc0061455cf72f20782a5c61c
6
+ metadata.gz: a51c9c625920d62f1d838fb3f2903008f98e8618954900f5718bf1c4453f9cd43242ee01d48f8854413bced020ffd831abb16635cdc2f7da30cebe355671cbb0
7
+ data.tar.gz: 65615fefd277c133405e41066a200296e6b5211e3167d84b9562a244acfb5a4d6d9b3d923d48e71a46e3a7fa891e2e6fe7523b6fd69b5460761cbabd35a033f6
data/lib/commands.rb CHANGED
@@ -3,6 +3,8 @@ require_relative './test.rb'
3
3
  require_relative './add.rb'
4
4
  require_relative './commit.rb'
5
5
  require_relative './publish.rb'
6
+ require_relative './pull.rb'
7
+ require_relative './push.rb'
6
8
  require_relative './upgrade.rb'
7
9
  require_relative './timer.rb'
8
10
 
@@ -10,12 +12,14 @@ class Commands < Hash
10
12
  attr_accessor :build
11
13
 
12
14
  def initialize
15
+ self["pull"] = Pull.new
13
16
  self["upgrade"] = Upgrade.new
14
17
  self["build"] = Build.new
15
18
  self["test"] = Test.new
16
19
  self["add"] = Add.new
17
20
  self["commit"] = Commit.new
18
21
  self["publish"] = Publish.new
22
+ self["push"] = Push.new
19
23
  end
20
24
 
21
25
  def update
data/lib/dev_tasks.rb CHANGED
@@ -25,7 +25,7 @@ class DevTasks < Hash
25
25
  self[:name]=pwd.split('/').last#Rake.application.original_dir.split('/').last
26
26
  self[:scm]=Environment.scm
27
27
  self[:branch]=Environment.branch
28
- self[:command_order]=['upgrade','add','build','test','commit','publish']
28
+ self[:command_order]=['pull','upgrade','add','build','test','commit','publish','push']
29
29
  self[:relative_directory]=Environment.relative_directory
30
30
  self[:working_directory]=Environment.working_directory
31
31
  self[:context]=Environment.context
data/lib/pull.rb ADDED
@@ -0,0 +1,17 @@
1
+
2
+ class Pull < Array
3
+
4
+ def initialize
5
+ update
6
+ end
7
+
8
+ def update
9
+ if(Environment.scm=='git')
10
+ self.add "<%`git pull`%>"
11
+ end
12
+ end
13
+
14
+ def add command
15
+ self << command if(!include?(command))
16
+ end
17
+ end
data/lib/push.rb ADDED
@@ -0,0 +1,17 @@
1
+
2
+ class Push < Array
3
+
4
+ def initialize
5
+ update
6
+ end
7
+
8
+ def update
9
+ if(Environment.scm=='git')
10
+ self.add "<%`git push`%>"
11
+ end
12
+ end
13
+
14
+ def add command
15
+ self << command if(!include?(command))
16
+ end
17
+ end
data/lib/spec.json CHANGED
@@ -1 +1 @@
1
- {"name":"dev_tasks","version":"0.0.59"}
1
+ {"name":"dev_tasks","version":"0.0.60"}
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.59
4
+ version: 0.0.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
@@ -97,6 +97,8 @@ files:
97
97
  - lib/dev_tasks.rb
98
98
  - lib/environment.rb
99
99
  - lib/publish.rb
100
+ - lib/pull.rb
101
+ - lib/push.rb
100
102
  - lib/settings.rb
101
103
  - lib/test.rb
102
104
  - lib/timer.rb