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 CHANGED
@@ -3,7 +3,9 @@ rvm:
3
3
  - 2.0.0
4
4
  - 1.9.3
5
5
  - 1.9.2
6
- - jruby
6
+ - jruby-19mode
7
+ - ruby-head
8
+ - jruby-head
7
9
 
8
10
  gemfile:
9
11
  - Gemfile
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
- require 'cucumber/rake/task' #
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
- task :default => :test
32
+ # Default rake task
33
+ task :default => :test
34
+
35
+ # End of file
@@ -1,6 +1,6 @@
1
1
  # File: multiline.feature
2
2
 
3
- Feature: Show how multiline text inside macros
3
+ Feature: Show how to use multiline text inside macros
4
4
  As a Cuke user
5
5
  So that I enjoy writing scenario.
6
6
 
@@ -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
  """
@@ -4,7 +4,7 @@
4
4
 
5
5
  module Macros4Cuke # Module used as a namespace
6
6
  # The version number of the gem.
7
- Version = '0.3.19'
7
+ Version = '0.3.20'
8
8
 
9
9
  # Brief description of the gem.
10
10
  Description = "Macros for Cucumber"
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.19
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-22 00:00:00.000000000 Z
12
+ date: 2013-05-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber