mushin 0.49.0 → 0.50.0

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: 3bf52b8fab3fde11ceeac3756d9548a9113b3641
4
- data.tar.gz: 0acf2558df07d80f205f0b08e0549512e260abe3
3
+ metadata.gz: 304fea553e61663331e7cf03fa1c560ce3ff9236
4
+ data.tar.gz: bd4a53765f18057ce7e5b33db4f96157a36fa5a4
5
5
  SHA512:
6
- metadata.gz: c8f46d08dff716d2796217cac664d5da6cb81756f11b34e74aa1928524830cd283205c99d7c325117866dc26fa7b253094d153d10a4fd4fc57c4547a4d8c0c9f
7
- data.tar.gz: 7084c52500763c52717667b14cc2088d25b78eb538f08836de06c7620d739fc256f904b25b71c732ecb6f1d6e0211287d1209b8d87ec41dbe0954bdf197207c3
6
+ metadata.gz: 3783485daa2edc3c4195b7657226334aa43514791b7406455e3e135be906332fe0eac0df97a36ef7ea7898cf9c9156de52228f23ec6c12a15413ee67f8d194c0
7
+ data.tar.gz: 2ab3ba69d1fbe82eaf9cabc28572ac916e758e14dee84357e6b33574bba1278cde428690c2d0b3b3b132799efcc3d50420d568675955fe2d322e561b84abf852
data/exe/generator.rb CHANGED
@@ -70,6 +70,23 @@ module Mushin
70
70
  end
71
71
  FOO
72
72
 
73
+ =begin
74
+ # generate an additional spec folder and delete the test folder
75
+ add to automatic mushin minitest::spec generated code
76
+ before do
77
+ @env = {}
78
+ end
79
+ it "ext" do
80
+ opts = {:cqrs => :cqrs_command}
81
+ params = {:username => @secrets["github"]["login"], :password => @secrets["github"]["password"]}
82
+ @ext = Github::Ext.new(Proc.new {}, opts, params)
83
+
84
+ @env[:repo_local_path].must_be_nil
85
+ @ext.call(@env)
86
+ @env[:repo_local_path].must_equal "somthing"
87
+ end
88
+ =end
89
+
73
90
  gsub_file file, '# Your code goes here...' do |match|
74
91
  match = @content
75
92
  end
data/lib/mushin/ext.rb CHANGED
@@ -7,6 +7,16 @@ module Mushin
7
7
  def call env
8
8
  raise NotImplementedError, "Mushin Extenstions implement :call that takes an env"
9
9
  end
10
+
11
+
12
+ def check_params key
13
+ if @params.has_key?(key) && !@params[key].nil? then
14
+ return true
15
+ else
16
+ return false
17
+ end
18
+ end
19
+
10
20
  end
11
21
  end
12
22
  end
@@ -1,3 +1,3 @@
1
1
  module Mushin
2
- VERSION = "0.49.0"
2
+ VERSION = "0.50.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mushin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.0
4
+ version: 0.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - zotherstupidguy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-21 00:00:00.000000000 Z
11
+ date: 2016-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler