sushi_fabric 0.1.0 → 0.1.1

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.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Version = '20131128-161947'
3
+ # Version = '20140228-140214'
4
4
 
5
5
  require 'csv'
6
6
  require 'fileutils'
@@ -691,6 +691,19 @@ rm -rf #{@scratch_dir} || exit 1
691
691
  puts "All checks \e[32mPASSED\e[0m"
692
692
  end
693
693
  end
694
+ def builder_selector(base_dir, shown_pattern=nil)
695
+ selector = {}
696
+ Dir[base_dir].sort.select{|dir| File.directory?(dir)}.each do |dir|
697
+ key = if shown_pattern
698
+ dir.gsub(shown_pattern.keys.first,shown_pattern)
699
+ else
700
+ dir
701
+ end
702
+ value = File.basename(dir)
703
+ selector[key] = value
704
+ end
705
+ selector
706
+ end
694
707
  end
695
708
 
696
709
 
@@ -1,3 +1,3 @@
1
1
  module SushiFabric
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sushi_fabric
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-28 00:00:00.000000000 Z
12
+ date: 2014-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler