mushin 0.49.0 → 0.50.0
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 +4 -4
- data/exe/generator.rb +17 -0
- data/lib/mushin/ext.rb +10 -0
- data/lib/mushin/version.rb +1 -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: 304fea553e61663331e7cf03fa1c560ce3ff9236
|
4
|
+
data.tar.gz: bd4a53765f18057ce7e5b33db4f96157a36fa5a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/mushin/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|