slacker 1.0.4 → 1.0.5

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.
data/bin/slacker CHANGED
File without changes
data/bin/slacker_new CHANGED
File without changes
data/lib/slacker.rb CHANGED
@@ -161,5 +161,10 @@ module Slacker
161
161
  end
162
162
  csv_obj
163
163
  end
164
+
165
+ def mixin_module(module_class)
166
+ extend module_class
167
+ end
168
+
164
169
  end
165
170
  end
@@ -105,9 +105,11 @@ EOF
105
105
  Dir.new(helpers_dir).each do |file_name|
106
106
  if file_name =~ /\.rb$/
107
107
  require file_name
108
+ module_class = Slacker::StringHelper.constantize(Slacker::StringHelper.camelize(file_name.gsub(/\.rb$/,'')))
108
109
  RSpec.configure do |config|
109
- config.include(Slacker::StringHelper.constantize(Slacker::StringHelper.camelize(file_name.gsub(/\.rb$/,''))))
110
+ config.include(module_class)
110
111
  end
112
+ Slacker.mixin_module(module_class)
111
113
  end
112
114
  end
113
115
  end
@@ -1,3 +1,3 @@
1
1
  module Slacker
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: slacker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.4
5
+ version: 1.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Vassil Kovatchev
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-03 00:00:00 Z
13
+ date: 2011-11-10 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler