ruby_ext 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rake_ext.rb CHANGED
@@ -21,7 +21,7 @@ require 'fileutils'
21
21
  begin
22
22
  require 'rspec/core/rake_task'
23
23
  task default: :spec
24
- task spec: 'spec:find_and_specs'
24
+ task spec: 'spec:find_and_specs'
25
25
 
26
26
  namespace :spec do
27
27
  desc "Finds Specifications"
@@ -30,7 +30,7 @@ begin
30
30
  t.pattern = "spec/[^_]**/[^_]*_spec.rb"
31
31
  end
32
32
  end
33
-
33
+
34
34
  desc "Run RSpec code exapmples in isolated mode (every spec file in another Ruby process)"
35
35
  task :isolated do
36
36
  Dir.glob("spec/[^_]**/[^_]*_spec.rb").each do |spec_file|
@@ -181,7 +181,7 @@ module RubyExt::Callbacks
181
181
 
182
182
  def set_callback callback_name, type, *executor_or_options, &block
183
183
  callback_name.must_be.a Symbol
184
- type.must_be.a Symbol
184
+ type = type.to_sym #.must_be.a Symbol
185
185
 
186
186
  # parsing arguments
187
187
  opt = executor_or_options.extract_options!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
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: 2011-08-23 00:00:00.000000000Z
12
+ date: 2011-08-24 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: