gisture 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gisture/version.rb +1 -1
- data/lib/tasks/gisture.rake +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e52baa276ec4cdd5ce67c5c285cbd5dcab39c3de
|
4
|
+
data.tar.gz: 41bbf46ab40cf0b4bd60fc3b7fb03a16d31e0948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e33bc194e759fb6d54d151dc9c1f45b1c0c114ccd88a14d6fc6fe7456aac2ed66b8a3d8005ddf06e41caaad318018037fab19d026155c40185ef464135a8440
|
7
|
+
data.tar.gz: d73d1e039f6d4cf8b597ca2567262926345347f4bd9a618200777a04ac03cbce1d14b47ad0640c4b359e77ca69a4ff0089d3835efff2135bb481d26e43f355c4
|
data/lib/gisture/version.rb
CHANGED
data/lib/tasks/gisture.rake
CHANGED
@@ -1,9 +1,17 @@
|
|
1
1
|
require 'gisture'
|
2
2
|
|
3
|
-
namespace
|
3
|
+
namespace :gisture do
|
4
4
|
desc 'Run a github gist in a rake task'
|
5
5
|
task :run, [:gist_id, :strategy, :filename, :version, :runner] => :environment do |t,args|
|
6
6
|
runner = Proc.new { eval(args.runner.to_s) }
|
7
7
|
Gisture.run(args.gist_id, strategy: args.strategy, filename: args.filename, version: args.version, &runner)
|
8
8
|
end
|
9
|
+
|
10
|
+
namespace :repo do
|
11
|
+
desc 'Run a file from a github repo in a rake task'
|
12
|
+
task :run, [:repo, :filename, :strategy, :runner] => :environment do |t,args|
|
13
|
+
runner = Proc.new { eval(args.runner.to_s) }
|
14
|
+
Gisture.repo(args.repo).file(args.filename, strategy: args.strategy).run!(&runner)
|
15
|
+
end
|
16
|
+
end
|
9
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gisture
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Rebec
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: canfig
|