macros4cuke 0.3.19 → 0.3.20
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/.travis.yml +3 -1
- data/CHANGELOG.md +4 -0
- data/Rakefile +19 -2
- data/examples/demo/features/multiline.feature +1 -1
- data/features/demo06.feature +1 -1
- data/lib/macros4cuke/constants.rb +1 -1
- metadata +2 -2
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.3.20 / 2013-05-23
|
2
|
+
* [CHANGE] File `.travis.yml`: Added more CI environments: ruby-head and jruby-head.
|
3
|
+
* [CHANGE] File `Rakefile`: Added task to push gem to Rubygems.
|
4
|
+
|
1
5
|
## 0.3.19 / 2013-05-22
|
2
6
|
* [CHANGE] File `.rubocop.yml`: Reduced MethodLength to 30 (lines in a method).
|
3
7
|
* [CHANGE] Method `Engine#compile_line refactored: Extract Method pattern => new method line_rep_ending added.
|
data/Rakefile
CHANGED
@@ -1,18 +1,35 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
require 'rubygems'
|
3
|
+
require_relative './lib/macros4cuke/constants'
|
3
4
|
|
5
|
+
namespace :gem do
|
4
6
|
|
5
|
-
|
7
|
+
desc 'Push the gem to rubygems.org'
|
8
|
+
task :push do
|
9
|
+
system("gem push macros4cuke-#{Macros4Cuke::Version}.gem")
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
# Testing-specific tasks
|
15
|
+
|
16
|
+
# Cucumber as testing tool
|
17
|
+
require 'cucumber/rake/task'
|
6
18
|
Cucumber::Rake::Task.new do |t|
|
7
19
|
end
|
8
20
|
|
21
|
+
# RSpec as testing tool
|
9
22
|
require 'rspec/core/rake_task'
|
10
23
|
desc "Run RSpec"
|
11
24
|
RSpec::Core::RakeTask.new do |spec|
|
12
25
|
spec.pattern = 'spec/**/*_spec.rb'
|
13
26
|
end
|
14
27
|
|
28
|
+
# Combine RSpec and Cucumber tests
|
15
29
|
desc "Run tests, with RSpec and Cucumber"
|
16
30
|
task :test => [:spec, :cucumber]
|
17
31
|
|
18
|
-
|
32
|
+
# Default rake task
|
33
|
+
task :default => :test
|
34
|
+
|
35
|
+
# End of file
|
data/features/demo06.feature
CHANGED
@@ -18,7 +18,7 @@ Scenario: Defining a macro with conditional substeps
|
|
18
18
|
<?email>
|
19
19
|
And I fill in "email" with "<email>"
|
20
20
|
</email>
|
21
|
-
# Let's also assume that comment is optional
|
21
|
+
# Let's also assume that comment is also optional
|
22
22
|
<?comment> And I fill in "comment" with "<comment>"</comment>
|
23
23
|
And I click "Save"
|
24
24
|
"""
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: macros4cuke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.20
|
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-05-
|
12
|
+
date: 2013-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|