c42 0.0.1 → 0.0.2

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: 4b90e523311c3d050cf4d5200875e76f9b3a4fd9
4
- data.tar.gz: c9e4308382bfc8372d4027a4990d18cee56df8fd
3
+ metadata.gz: 7b4eed89bdd11191a022b3a1c72da4da359029d0
4
+ data.tar.gz: bac13b5d3b7f3946bc94f2f7dfca424e90043e5d
5
5
  SHA512:
6
- metadata.gz: e2ac7dae107d4ae60791ab3c4a7375c03a529a29a91bbbc54da09237112783c807b4208076bb84b1272b86426d0d2a86e9d07b15d7bb5f548ae82400f2f53156
7
- data.tar.gz: ae12608b692ef4b9e92be850c9de9e0403f88474c011b87eb8aac84f1f8b3abf8cbc3c29914b21c15fa81f62ad39abd156a623e4e61076238cda84d7040798bf
6
+ metadata.gz: 1345f3f51245d94d5a74e50d77fa9110dfa808c2ebc1e0fc1b231d6131d7d1f8763d0122d2ad311c31caf1ac3a13d3eb7871da1c9a722fd2b67b959a6b0e199b
7
+ data.tar.gz: 255f0bccfd3cbb2a286e2e663f1ab961a58cdf782a1dc658557f9616427ac17c773aabc93d7a4b705dc07b4949e34c92cf4f5e189b2bdcc253fe36b89be23f80
data/lib/c42/c42file.rb CHANGED
@@ -10,18 +10,17 @@ module C42
10
10
  end
11
11
 
12
12
  def shell_proxy(name, command)
13
- self.instance_eval do
14
- task name do |*args|
15
- Kernel.send(
16
- :exec,
17
- *(
18
- [command.is_a?(String) ? command.split(" ") : command].flatten |
19
- (args || [])
20
- )
13
+ task :"#{name}" do |*args|
14
+ Kernel.send(
15
+ :exec,
16
+ *(
17
+ [command.is_a?(String) ? command.split(" ") : command].flatten |
18
+ (args || [])
21
19
  )
22
- end
20
+ )
23
21
  end
24
22
  end
23
+
25
24
  end
26
25
  end
27
26
  end
data/lib/c42/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module C42
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c42
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - commit42