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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 140ed42cc5d343e6daf4d8996a0a35f7947c338f
4
- data.tar.gz: 631d955207007eb2ea568a7fcc33c42dfb1c2f9c
3
+ metadata.gz: d4e482e039424a90b36604479ab7e79e4d58d332
4
+ data.tar.gz: 8cfb989787405f60f65f0100bf007def425df761
5
5
  SHA512:
6
- metadata.gz: f636a201415bd0f160ca69a8709ede7069fb3540934f0056229dd44ab4e142cd9d08f1526a2b143207f21460a471fc04a45d0d0ceb70da43980c483b6e98d2af
7
- data.tar.gz: d312a250c3943e31a8011345350531afed055ad6ece23bb73445c81989643b51f0f61a209443b6f51932c43c24bb3503dab6ef5e1eac63938c017f4da268963a
6
+ metadata.gz: fa3f9d1a7747a0bc12290c2f03ba0882ba41b3a0d73a2327af806fca9efe3eab115568a1227911256ca5612dc75a6fcc70bc460230c483946b86d953a018f609
7
+ data.tar.gz: 9bdbc1eb80b200515d3f37b58c2f3ef231f7b0779291f51e648c558700a5ccd3cc78befe1c164370a9baa248ab44f5343e4a74a9050e6034ad1616f933ef5f57
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module Mushin
2
- VERSION = "0.9.0"
2
+ VERSION = "0.10.0"
3
3
  end
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
- # rutracker search_result_max: s
34
+ rutracker search_result_max: "s"
32
35
  end
33
36
  end
34
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mushin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - zotherstupidguy