dev_tasks 0.0.96 → 0.0.97

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: deb8a2336edb57b4363a49b754b0f166bd0fe69d
4
- data.tar.gz: fe0690e3674555cb94528e15e153d7542f6752b6
3
+ metadata.gz: fb2cc6ccb263dc95237dcb872c5708afb39dda38
4
+ data.tar.gz: db3144138408505838bcd138362d16277905ccae
5
5
  SHA512:
6
- metadata.gz: 80d9a9e6107aefc9a4c5671a7c6de12f80abf3c0ba5523301bab27222b17a01ab8cd8c6c716b1960280bacfa7ba7a69b5400904d8947bd4fd7630fb59d98c2d8
7
- data.tar.gz: 092d0d3b1f5da868f59c2d33c47dd31af187e1cfd9ec462e8cc16d89edc72161ab85cbf8bb54b458506cd7d05d825eb6740d06cf54cc154a1ce4b965a3e3b65e
6
+ metadata.gz: ce5f43704a70095d7ab1c2d7ed572f4161f4d11f36f38883eee87157b79ba0125d95006ee5c11aad9c542c7daf33fbc9c6cb7a9b2ca77435f247a0546fc70a13
7
+ data.tar.gz: fbc1b770fb0cc6620a51fbf159a93201d93817e6a28a70f6be4c5aec80a53887e860dd562a812549de71ab191238b2c3435d43cd32a9beab28340dbdd6d1362d
data/lib/commands.rb CHANGED
@@ -12,18 +12,18 @@ class Commands < Hash
12
12
  attr_accessor :build
13
13
 
14
14
  def initialize
15
- self["pull"] = Pull.new
16
- self["upgrade"] = Upgrade.new
17
- self["build"] = Build.new
18
- self["test"] = Test.new
19
- self["add"] = Add.new
20
- self["commit"] = Commit.new
21
- self["publish"] = Publish.new
22
- self["push"] = Push.new
15
+ self[:pull] = Pull.new
16
+ self[:upgrade] = Upgrade.new
17
+ self[:build] = Build.new
18
+ self[:test] = Test.new
19
+ self[:add] = Add.new
20
+ self[:commit] = Commit.new
21
+ self[:publish] = Publish.new
22
+ self[:push] = Push.new
23
23
  end
24
24
 
25
25
  def update
26
- self["upgrade"].update
26
+ self[:upgrade].update
27
27
  end
28
28
 
29
29
  def execute_command command
data/lib/dev_tasks.rb CHANGED
@@ -72,13 +72,14 @@ class DevTasks < Hash
72
72
  end
73
73
 
74
74
  def execute_task task
75
+ sym_task = task.to_sym
75
76
  timer=Timer.new
76
77
  #start_time=Time.now
77
78
  Console.announce_task_start task
78
- if(!self[:commands].has_key?(task))
79
+ if(!self[:commands].has_key?(sym_task))
79
80
  puts "no commands discovered for task " + task
80
81
  else
81
- self[:commands][task].each {|c| self[:commands].execute_command(c) }
82
+ self[:commands][sym_task].each {|c| self[:commands].execute_command(c) }
82
83
  end
83
84
  elapsed = timer.elapsed
84
85
  #end_time=Time.now
data/lib/spec.json CHANGED
@@ -1 +1 @@
1
- {"name":"dev_tasks","version":"0.0.96"}
1
+ {"name":"dev_tasks","version":"0.0.97"}
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.96
4
+ version: 0.0.97
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow