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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eff3867b98cd4f91cd816b80166b3a6761e6db77
4
- data.tar.gz: 2799910dab4a2dab134173c25fe89451c19fd798
3
+ metadata.gz: e52baa276ec4cdd5ce67c5c285cbd5dcab39c3de
4
+ data.tar.gz: 41bbf46ab40cf0b4bd60fc3b7fb03a16d31e0948
5
5
  SHA512:
6
- metadata.gz: 52a916183c9a8c6d2b828a8a12c1e28acc9d55b381b411d6c4b0241f6788a75bc7a55fdaf7a3db1246f11c269412fd773505c5cb2923aead113fb76ef3b3a5fe
7
- data.tar.gz: 901ef651cb25079f268b7696359d9df52ed2786b23264696b234377023c2ac1eceb7259f66257cb24cfc8d650b9bbb14c331fee2d38b87fad40f6470bb065a47
6
+ metadata.gz: 8e33bc194e759fb6d54d151dc9c1f45b1c0c114ccd88a14d6fc6fe7456aac2ed66b8a3d8005ddf06e41caaad318018037fab19d026155c40185ef464135a8440
7
+ data.tar.gz: d73d1e039f6d4cf8b597ca2567262926345347f4bd9a618200777a04ac03cbce1d14b47ad0640c4b359e77ca69a4ff0089d3835efff2135bb481d26e43f355c4
@@ -1,3 +1,3 @@
1
1
  module Gisture
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
@@ -1,9 +1,17 @@
1
1
  require 'gisture'
2
2
 
3
- namespace 'gisture' do
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.8
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-06-18 00:00:00.000000000 Z
11
+ date: 2015-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: canfig