racatt 0.0.3 → 1.0.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.
@@ -1,3 +1,9 @@
1
+ === Version 1.0.0 / 2016-01-27
2
+
3
+ * Separate argument lists can be given to the RSpec and Cucumber tasks instead of having to use the same arguments for both.
4
+ * There are no default arguments used by either the RSpec or the Cucumber task. Only the arguments that are provided are used.
5
+
6
+
1
7
  === Version 0.0.3 / 2016-01-20
2
8
 
3
9
  * Bug fix: Fixed a task scoping bug where the combined Rake task would only work if the gem's tasks were created inside of a namespace.
@@ -13,17 +13,13 @@ module Racatt
13
13
  ENV['CUCUMBER_OPTS'] = options
14
14
  end
15
15
 
16
- def self.combine_options(set_1, set_2)
17
- set_2 ? "#{set_1} #{set_2}" : set_1
18
- end
19
-
20
16
  def self.create_tasks
21
17
  current_scope = Rake.application.current_scope.path
22
18
 
23
19
  namespace 'cucumber' do
24
20
  desc 'Run all of the Cucumber features'
25
21
  task :features, [:command_options] do |_t, args|
26
- set_cucumber_options(combine_options('-t ~@wip -t ~@off', args[:command_options]))
22
+ set_cucumber_options(args[:command_options]) if args[:command_options]
27
23
  end
28
24
  Cucumber::Rake::Task.new(:features)
29
25
  end
@@ -31,17 +27,16 @@ module Racatt
31
27
  namespace 'rspec' do
32
28
  desc 'Run all of the RSpec specifications'
33
29
  RSpec::Core::RakeTask.new(:specs, :command_options) do |t, args|
34
- t.rspec_opts = "-t ~wip -t ~off "
35
- t.rspec_opts << args[:command_options] if args[:command_options]
30
+ t.rspec_opts = args[:command_options] if args[:command_options]
36
31
  end
37
32
  end
38
33
 
39
34
  desc 'Test All The Things!'
40
- task :test_everything, [:command_options] do |_t, args|
35
+ task :test_everything, [:rspec_command_options, :cucumber_command_options] do |_t, args|
41
36
  scope_string = current_scope.empty? ? '' : "#{current_scope}:"
42
37
 
43
- Rake::Task["#{scope_string}rspec:specs"].invoke(args[:command_options])
44
- Rake::Task["#{scope_string}cucumber:features"].invoke(args[:command_options])
38
+ Rake::Task["#{scope_string}rspec:specs"].invoke(args[:rspec_command_options])
39
+ Rake::Task["#{scope_string}cucumber:features"].invoke(args[:cucumber_command_options])
45
40
  end
46
41
 
47
42
  end
@@ -1,3 +1,3 @@
1
1
  module Racatt
2
- VERSION = "0.0.3"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: racatt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 1.0.0
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: 2016-01-21 00:00:00.000000000 Z
12
+ date: 2016-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber