mushin 0.9.0 → 0.10.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/lib/mushin/dsl_builder.rb +2 -2
- data/lib/mushin/version.rb +1 -1
- data/samples/sample1.rb +7 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4e482e039424a90b36604479ab7e79e4d58d332
|
4
|
+
data.tar.gz: 8cfb989787405f60f65f0100bf007def425df761
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa3f9d1a7747a0bc12290c2f03ba0882ba41b3a0d73a2327af806fca9efe3eab115568a1227911256ca5612dc75a6fcc70bc460230c483946b86d953a018f609
|
7
|
+
data.tar.gz: 9bdbc1eb80b200515d3f37b58c2f3ef231f7b0779291f51e648c558700a5ccd3cc78befe1c164370a9baa248ab44f5343e4a74a9050e6034ad1616f933ef5f57
|
data/lib/mushin/dsl_builder.rb
CHANGED
@@ -68,11 +68,11 @@ module Mushin
|
|
68
68
|
|
69
69
|
def dsl_construct_access_method_and_klass(construct_keyword, ext_set, parent_klass)
|
70
70
|
$log.info "dynamically building app dsl construct access method for: #{construct_keyword}, inside: #{parent_klass}"
|
71
|
-
|
71
|
+
ext_set.reverse!
|
72
72
|
parent_klass.class_eval do
|
73
73
|
define_method(construct_keyword) do |args = {}|
|
74
74
|
p "here replace :symbols with values"
|
75
|
-
p args
|
75
|
+
p args.class
|
76
76
|
ext_set.each do |ext|
|
77
77
|
ext[:params].each do |key, value|
|
78
78
|
args.each do |env_key, env_value|
|
data/lib/mushin/version.rb
CHANGED
data/samples/sample1.rb
CHANGED
@@ -15,10 +15,13 @@ module Sample
|
|
15
15
|
construct 'tpb' do
|
16
16
|
use ext: Sample::TBP, params: {}, opts: {"search_results" => :search_result_max}
|
17
17
|
use ext: Sample::SSD, params: {}, opts: {"ssd_path"=> :storage_path}
|
18
|
+
use ext: Sample::SSD, params: {}, opts: {"ssd_path"=> :storage_path}
|
19
|
+
use ext: Sample::SSD, params: {}, opts: {"ssd_path"=> :storage_path}
|
20
|
+
end
|
21
|
+
construct 'rutracker' do
|
22
|
+
use ext: Sample::RUTracker, params: {"search_results" => :search_result_max}
|
23
|
+
use ext: Sample::Mongodb, params: {"search_results" => :search_result_max}
|
18
24
|
end
|
19
|
-
#construct 'rutracker' do
|
20
|
-
# use ext: Sample::RUTracker, params: {"search_results" => :search_result_max}
|
21
|
-
#end
|
22
25
|
end
|
23
26
|
end
|
24
27
|
|
@@ -28,7 +31,7 @@ module Sample
|
|
28
31
|
Domain.new do
|
29
32
|
torrent_bots do
|
30
33
|
tpb search_result_max: "20", storage_path:"crazypath_here"
|
31
|
-
|
34
|
+
rutracker search_result_max: "s"
|
32
35
|
end
|
33
36
|
end
|
34
37
|
end
|