transpec 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3bc90b69deb7ecd6c16aad1ea76d165efafe220
4
- data.tar.gz: 27ea84e9492410a212bd0bf12f24d05ac6c578d0
3
+ metadata.gz: 0b8de9ebab18fff6380696a3a783ccf4ce9ed8af
4
+ data.tar.gz: e193341f8e9614397330090af1eff772a5efe427
5
5
  SHA512:
6
- metadata.gz: a84904de40d64efeacd01ea3b987e7be6ba3ec684cd6c3c583b582ff85af474d9ee10a3b194b201aebe91b172a6cfa9ce141b3d2d04b9e2753485f72765f512c
7
- data.tar.gz: 65b09567e243ee63bf39b2a35d3ce068e5573c5328e62bfe20f757b098fdc856eae83938355ae8eb980a0593b792a1c9d974c942151afe64fdd6ab3ecfeac232
6
+ metadata.gz: 0a77f0a729eb8d00145ff1b0c2af16d4ddb86e4187391077ff63a96be47ffebf7d9c641c43ef9c99250f99a89808c1e039d031b6bf109cf6e6bbaea2411b47e6
7
+ data.tar.gz: a98eb793b1d027164f716938ddec92f5ed2f70a19363fbe0a66d537d872f2e2f4d405f0dd246bada22a965366fecbb4943ffaf76b5ff04f175f7c8a8e31a13a0
data/.gitignore CHANGED
@@ -15,4 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
- vendor/bundle
18
+ /vendor
data/.rubocop.yml CHANGED
@@ -4,6 +4,7 @@ AllCops:
4
4
  - tasks/*.rake
5
5
  Excludes:
6
6
  - tmp/*
7
+ - vendor/*
7
8
 
8
9
  LineLength:
9
10
  Max: 100
data/.travis.yml CHANGED
@@ -2,5 +2,6 @@ language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
+ - 2.1.0-preview2
5
6
  - jruby-19mode
6
7
  script: bundle exec rake spec style readme test:all
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Development
4
4
 
5
+ ## v1.4.1
6
+
7
+ * Support Ruby 2.1 runtime by falling back to Ruby 2.0 parser
8
+
5
9
  ## v1.4.0
6
10
 
7
11
  * Support conversion of `RSpec::Core::ExampleGroup#example` ([#23](https://github.com/yujinakayama/transpec/issues/23))
data/Gemfile CHANGED
@@ -2,6 +2,8 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
+ gem 'rubocop', github: 'bbatsov/rubocop' if RUBY_VERSION.start_with?('2.1')
6
+
5
7
  group :test do
6
8
  gem 'coveralls', '~> 0.6'
7
9
  gem 'simplecov-rcov', '~> 0.2'
data/README.md CHANGED
@@ -122,7 +122,7 @@ Then, run `transpec` (using `-m/--generate-commit-message` is recommended) in th
122
122
  ```bash
123
123
  $ cd some-project
124
124
  $ transpec -m
125
- Copying project for dynamic analysis...
125
+ Copying the project for dynamic analysis...
126
126
  Running dynamic analysis with command "bundle exec rspec"...
127
127
  ...............................................................................
128
128
  ...................
@@ -139,17 +139,16 @@ Converting spec/transpec/ast/node_spec.rb
139
139
 
140
140
  This will run the specs, convert them, and overwrite all spec files in the `spec` directory.
141
141
 
142
- After the conversion, run `rspec` again and check whether all pass:
142
+ After the conversion, run `rspec` again and check whether everything is green:
143
143
 
144
144
  ```bash
145
145
  $ bundle exec rspec
146
146
  ```
147
147
 
148
- If all pass, commit the changes with auto-generated message:
148
+ If it's green, commit the changes with auto-generated message:
149
149
 
150
150
  ```bash
151
- $ git add -u
152
- $ git commit -eF .git/COMMIT_EDITMSG
151
+ $ git commit -aeF .git/COMMIT_EDITMSG
153
152
  ```
154
153
 
155
154
  And you are done!
@@ -182,19 +181,19 @@ Skip dynamic analysis and convert with only static analysis. Note that specifyin
182
181
 
183
182
  ### `-c/--rspec-command`
184
183
 
185
- Specify command to run RSpec that is used for dynamic analysis.
184
+ Specify a command to run RSpec that is used for dynamic analysis.
186
185
 
187
186
  Transpec needs to run your specs in a copied project directory for dynamic analysis.
188
- If your project requires some special setup or commands to run specs, use this option.
187
+ If your project requires some special setups or commands to run specs, use this option.
189
188
  `bundle exec rspec` is used by default.
190
189
 
191
190
  ```bash
192
- $ transpec --rspec-command "./some_special_setup.sh && bundle exec rspec"
191
+ $ transpec --rspec-command "./special_setup.sh && bundle exec rspec"
193
192
  ```
194
193
 
195
194
  ### `-m/--generate-commit-message`
196
195
 
197
- Generate commit message that describes conversion summary.
196
+ Generate a commit message that describes conversion summary.
198
197
  Currently only Git is supported.
199
198
 
200
199
  When you commit, you need to run the following command to use the generated message:
@@ -227,7 +226,7 @@ See [Supported Conversions](#supported-conversions) for more details.
227
226
 
228
227
  ### `-n/--negative-form`
229
228
 
230
- Specify negative form of `to` that is used in the `expect` syntax.
229
+ Specify a negative form of `to` that is used in the `expect` syntax.
231
230
  Either `not_to` or `to_not`.
232
231
  `not_to` is used by default.
233
232
 
@@ -375,7 +374,7 @@ it { is_expected.to_not matcher } # with `--negative-form to_not`
375
374
 
376
375
  `is_expected.to` is designed for the consistency with the `expect` syntax.
377
376
  However the one-liner `should` is still _not_ deprecated in RSpec 3.0
378
- and available even if the `should` syntax is disabled in `RSpec.configure`.
377
+ and available even if the `should` syntax is disabled with `RSpec.configure`.
379
378
  So if you think `is_expected.to` is verbose,
380
379
  feel free to disable this conversion and continue using the one-liner `should`.
381
380
 
@@ -433,7 +432,7 @@ expect(obj).to be false
433
432
  * `be_truthy` and `be_falsey` matchers are renamed version of `be_true` and `be_false` and their behaviors are same.
434
433
  * `be true` and `be false` are not new things. These are combinations of `be` matcher and boolean literals. These pass if expectation subject is exactly equal to boolean value.
435
434
 
436
- So, converting `be_true`/`be_false` to `be_truthy`/`be_falsey` never breaks your specs and this is the Transpec's default. If you are willing to test boolean values strictly, you can convert them to `be true`/`be false` with `--boolean-matcher true,false` option. Note that this may break your specs if your library codes don't return exact boolean values.
435
+ So, converting `be_true`/`be_false` to `be_truthy`/`be_falsey` never breaks your specs and this is the Transpec's default. If you are willing to test boolean values strictly, you can convert them to `be true`/`be false` with `--boolean-matcher true,false` option. Note that this may break your specs if your application codes don't return exact boolean values.
437
436
 
438
437
  ---
439
438
 
data/README.md.erb CHANGED
@@ -95,7 +95,7 @@ Then, run `transpec` (using `-m/--generate-commit-message` is recommended) in th
95
95
  ```bash
96
96
  $ cd some-project
97
97
  $ transpec -m
98
- Copying project for dynamic analysis...
98
+ Copying the project for dynamic analysis...
99
99
  Running dynamic analysis with command "bundle exec rspec"...
100
100
  ...............................................................................
101
101
  ...................
@@ -112,17 +112,16 @@ Converting spec/transpec/ast/node_spec.rb
112
112
 
113
113
  This will run the specs, convert them, and overwrite all spec files in the `spec` directory.
114
114
 
115
- After the conversion, run `rspec` again and check whether all pass:
115
+ After the conversion, run `rspec` again and check whether everything is green:
116
116
 
117
117
  ```bash
118
118
  $ bundle exec rspec
119
119
  ```
120
120
 
121
- If all pass, commit the changes with auto-generated message:
121
+ If it's green, commit the changes with auto-generated message:
122
122
 
123
123
  ```bash
124
- $ git add -u
125
- $ git commit -eF .git/COMMIT_EDITMSG
124
+ $ git commit -aeF .git/COMMIT_EDITMSG
126
125
  ```
127
126
 
128
127
  And you are done!
@@ -155,19 +154,19 @@ Skip dynamic analysis and convert with only static analysis. Note that specifyin
155
154
 
156
155
  ### `-c/--rspec-command`
157
156
 
158
- Specify command to run RSpec that is used for dynamic analysis.
157
+ Specify a command to run RSpec that is used for dynamic analysis.
159
158
 
160
159
  Transpec needs to run your specs in a copied project directory for dynamic analysis.
161
- If your project requires some special setup or commands to run specs, use this option.
160
+ If your project requires some special setups or commands to run specs, use this option.
162
161
  `bundle exec rspec` is used by default.
163
162
 
164
163
  ```bash
165
- $ transpec --rspec-command "./some_special_setup.sh && bundle exec rspec"
164
+ $ transpec --rspec-command "./special_setup.sh && bundle exec rspec"
166
165
  ```
167
166
 
168
167
  ### `-m/--generate-commit-message`
169
168
 
170
- Generate commit message that describes conversion summary.
169
+ Generate a commit message that describes conversion summary.
171
170
  Currently only Git is supported.
172
171
 
173
172
  When you commit, you need to run the following command to use the generated message:
@@ -218,7 +217,7 @@ See [Supported Conversions](#supported-conversions) for more details.
218
217
 
219
218
  ### `-n/--negative-form`
220
219
 
221
- Specify negative form of `to` that is used in the `expect` syntax.
220
+ Specify a negative form of `to` that is used in the `expect` syntax.
222
221
  Either `not_to` or `to_not`.
223
222
  `not_to` is used by default.
224
223
 
@@ -371,7 +370,7 @@ it { is_expected.to_not matcher } # with `--negative-form to_not`
371
370
 
372
371
  `is_expected.to` is designed for the consistency with the `expect` syntax.
373
372
  However the one-liner `should` is still _not_ deprecated in RSpec 3.0
374
- and available even if the `should` syntax is disabled in `RSpec.configure`.
373
+ and available even if the `should` syntax is disabled with `RSpec.configure`.
375
374
  So if you think `is_expected.to` is verbose,
376
375
  feel free to disable this conversion and continue using the one-liner `should`.
377
376
 
@@ -429,7 +428,7 @@ expect(obj).to be false
429
428
  * `be_truthy` and `be_falsey` matchers are renamed version of `be_true` and `be_false` and their behaviors are same.
430
429
  * `be true` and `be false` are not new things. These are combinations of `be` matcher and boolean literals. These pass if expectation subject is exactly equal to boolean value.
431
430
 
432
- So, converting `be_true`/`be_false` to `be_truthy`/`be_falsey` never breaks your specs and this is the Transpec's default. If you are willing to test boolean values strictly, you can convert them to `be true`/`be false` with `--boolean-matcher true,false` option. Note that this may break your specs if your library codes don't return exact boolean values.
431
+ So, converting `be_true`/`be_false` to `be_truthy`/`be_falsey` never breaks your specs and this is the Transpec's default. If you are willing to test boolean values strictly, you can convert them to `be true`/`be false` with `--boolean-matcher true,false` option. Note that this may break your specs if your application codes don't return exact boolean values.
433
432
 
434
433
  ---
435
434
 
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
 
3
3
  require 'transpec/ast/builder'
4
- require 'parser/current'
4
+ require 'transpec/parser'
5
5
 
6
6
  module Transpec
7
7
  class BaseRewriter
data/lib/transpec/cli.rb CHANGED
@@ -110,7 +110,7 @@ module Transpec
110
110
  Git.write_commit_message(commit_message.to_s)
111
111
 
112
112
  puts
113
- puts 'Commit message was generated to .git/COMMIT_EDITMSG.'.color(:cyan)
113
+ puts 'A commit message was generated to .git/COMMIT_EDITMSG.'.color(:cyan)
114
114
  puts 'Use the following command for the next commit:'.color(:cyan)
115
115
  puts ' git commit -eF .git/COMMIT_EDITMSG'
116
116
  end
@@ -119,7 +119,7 @@ module Transpec
119
119
  return if @report.records.empty?
120
120
 
121
121
  puts
122
- puts "Done! Now run #{'rspec'.bright} and check if all the converted specs pass."
122
+ puts "Done! Now run #{'rspec'.bright} and check if everything is green."
123
123
  end
124
124
 
125
125
  def warn_syntax_error(error)
@@ -97,11 +97,6 @@ module Transpec
97
97
 
98
98
  literal << ' }'
99
99
  end
100
-
101
- def taking_block?(node)
102
- parent_node = node.parent_node
103
- parent_node && parent_node.type == :block && parent_node.children.first.equal?(node)
104
- end
105
100
  end
106
101
  end
107
102
  end
@@ -0,0 +1,9 @@
1
+ # coding: utf-8
2
+
3
+ begin
4
+ require 'parser/current'
5
+ rescue NotImplementedError
6
+ warn 'Falling back to Ruby 2.0 parser.'
7
+ require 'parser/ruby20'
8
+ Parser::CurrentRuby = Parser::Ruby20 # rubocop:disable ConstantName
9
+ end
@@ -0,0 +1,20 @@
1
+ # coding: utf-8
2
+
3
+ module Transpec
4
+ module RSpecDSL
5
+ EXAMPLE_GROUP_METHODS = [
6
+ :describe, :context,
7
+ :shared_examples, :shared_context, :share_examples_for, :shared_examples_for
8
+ ].freeze
9
+
10
+ EXAMPLE_METHODS = [
11
+ :example, :it, :specify,
12
+ :focus, :focused, :fit,
13
+ :pending, :xexample, :xit, :xspecify
14
+ ].freeze
15
+
16
+ HOOK_METHODS = [:before, :after, :around].freeze
17
+
18
+ HELPER_METHODS = [:subject, :subject!, :let, :let!].freeze
19
+ end
20
+ end
@@ -1,10 +1,11 @@
1
1
  # coding: utf-8
2
2
 
3
+ require 'transpec/rspec_dsl'
3
4
  require 'transpec/util'
4
5
 
5
6
  module Transpec
6
7
  class StaticContextInspector
7
- include Util
8
+ include RSpecDSL, Util
8
9
 
9
10
  SCOPE_TYPES = [:module, :class, :sclass, :def, :defs, :block].freeze
10
11
 
@@ -2,12 +2,13 @@
2
2
 
3
3
  require 'transpec/syntax'
4
4
  require 'transpec/syntax/mixin/send'
5
+ require 'transpec/rspec_dsl'
5
6
  require 'transpec/util'
6
7
 
7
8
  module Transpec
8
9
  class Syntax
9
10
  class Example < Syntax
10
- include Mixin::Send, Util
11
+ include Mixin::Send, RSpecDSL, Util
11
12
 
12
13
  METHODS_YIELD_EXAMPLE = (EXAMPLE_METHODS + HOOK_METHODS + HELPER_METHODS).freeze
13
14
 
@@ -114,7 +114,7 @@ module Transpec
114
114
  if attribute_expression.brackets?
115
115
  "describe '[:key]' do subject { super()[:key] }; it { } end"
116
116
  else
117
- "describe 'attr' do subject { super().attr }; it { } end"
117
+ "describe '#attr' do subject { super().attr }; it { } end"
118
118
  end
119
119
  end
120
120
 
@@ -13,7 +13,7 @@ module Transpec
13
13
  private
14
14
 
15
15
  def wrap_subject_with_method!(method)
16
- if Util.in_parentheses?(subject_node)
16
+ if Util.in_explicit_parentheses?(subject_node)
17
17
  insert_before(subject_range, method)
18
18
  else
19
19
  insert_before(subject_range, "#{method}(")
@@ -4,13 +4,14 @@ require 'transpec/syntax'
4
4
  require 'transpec/syntax/mixin/should_base'
5
5
  require 'transpec/syntax/mixin/send'
6
6
  require 'transpec/syntax/mixin/have_matcher'
7
+ require 'transpec/rspec_dsl'
7
8
  require 'transpec/util'
8
9
  require 'active_support/inflector/methods'
9
10
 
10
11
  module Transpec
11
12
  class Syntax
12
13
  class OnelinerShould < Syntax
13
- include Mixin::ShouldBase, Mixin::Send, Mixin::HaveMatcher, Util
14
+ include Mixin::ShouldBase, Mixin::Send, Mixin::HaveMatcher, RSpecDSL, Util
14
15
 
15
16
  attr_reader :current_syntax_type
16
17
 
@@ -98,7 +98,7 @@ module Transpec
98
98
  end
99
99
 
100
100
  def parenthesize_single_line!(always)
101
- if in_parentheses?(arg_node)
101
+ if in_explicit_parentheses?(arg_node)
102
102
  remove(range_in_between_selector_and_arg)
103
103
  elsif always || arg_node.type == :hash
104
104
  replace(range_in_between_selector_and_arg, '(')
data/lib/transpec/util.rb CHANGED
@@ -2,21 +2,6 @@
2
2
 
3
3
  module Transpec
4
4
  module Util
5
- EXAMPLE_GROUP_METHODS = %w(
6
- describe context
7
- shared_examples shared_context share_examples_for shared_examples_for
8
- ).map(&:to_sym).freeze
9
-
10
- EXAMPLE_METHODS = %w(
11
- example it specify
12
- focus focused fit
13
- pending xexample xit xspecify
14
- ).map(&:to_sym).freeze
15
-
16
- HOOK_METHODS = %w(before after around).map(&:to_sym).freeze
17
-
18
- HELPER_METHODS = %w(subject subject! let let!).map(&:to_sym).freeze
19
-
20
5
  LITERAL_TYPES = %w(
21
6
  true false nil
22
7
  int float
@@ -71,12 +56,17 @@ module Transpec
71
56
  here_document?(node) || node.each_descendent_node.any? { |n| here_document?(n) }
72
57
  end
73
58
 
74
- def in_parentheses?(node)
59
+ def in_explicit_parentheses?(node)
75
60
  return false unless node.type == :begin
76
61
  source = node.loc.expression.source
77
62
  source[0] == '(' && source[-1] == ')'
78
63
  end
79
64
 
65
+ def taking_block?(node)
66
+ parent_node = node.parent_node
67
+ parent_node && parent_node.type == :block && parent_node.children.first.equal?(node)
68
+ end
69
+
80
70
  def indentation_of_line(arg)
81
71
  line = case arg
82
72
  when AST::Node then arg.loc.expression.source_line
@@ -5,7 +5,7 @@ module Transpec
5
5
  module Version
6
6
  MAJOR = 1
7
7
  MINOR = 4
8
- PATCH = 0
8
+ PATCH = 1
9
9
 
10
10
  def self.to_s
11
11
  [MAJOR, MINOR, PATCH].join('.')
data/spec/spec_helper.rb CHANGED
@@ -15,7 +15,7 @@ RSpec.configure do |config|
15
15
  config.color_enabled = true
16
16
  config.treat_symbols_as_metadata_keys_with_true_values = true
17
17
 
18
- config.before(:all) do
18
+ config.before(:suite) do
19
19
  require 'rainbow'
20
20
  Sickill::Rainbow.enabled = false
21
21
 
@@ -11,7 +11,7 @@ shared_context 'parsed objects' do
11
11
 
12
12
  let(:ast) do
13
13
  require 'transpec/ast/builder'
14
- require 'parser/current'
14
+ require 'transpec/parser'
15
15
  builder = Transpec::AST::Builder.new
16
16
  parser = Parser::CurrentRuby.new(builder)
17
17
  parser.parse(source_buffer)
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'spec_helper'
4
4
  require 'transpec/static_context_inspector'
5
+ require 'ast'
5
6
 
6
7
  module Transpec
7
8
  describe StaticContextInspector do
@@ -16,7 +16,7 @@ module Transpec
16
16
  example_object.convert! unless example.metadata[:no_auto_convert]
17
17
  end
18
18
 
19
- (Util::EXAMPLE_METHODS + Util::HOOK_METHODS).each do |method|
19
+ (RSpecDSL::EXAMPLE_METHODS + RSpecDSL::HOOK_METHODS).each do |method|
20
20
  context "when it is `#{method} do example end` form" do
21
21
  let(:source) do
22
22
  <<-END
@@ -49,7 +49,7 @@ module Transpec
49
49
  end
50
50
  end
51
51
 
52
- Util::HELPER_METHODS.each do |method|
52
+ RSpecDSL::HELPER_METHODS.each do |method|
53
53
  context "when it is `#{method}(:name) do example end` form" do
54
54
  let(:source) do
55
55
  <<-END
@@ -67,9 +67,9 @@ module Transpec
67
67
  rewritten_source.should == expected_source
68
68
  end
69
69
 
70
- it "adds record `its(:attr) { }` -> `describe 'attr' do subject { super().attr }; it { } end`" do
70
+ it "adds record `its(:attr) { }` -> `describe '#attr' do subject { super().attr }; it { } end`" do
71
71
  record.original_syntax.should == 'its(:attr) { }'
72
- record.converted_syntax.should == "describe 'attr' do subject { super().attr }; it { } end"
72
+ record.converted_syntax.should == "describe '#attr' do subject { super().attr }; it { } end"
73
73
  end
74
74
 
75
75
  context 'and there is no blank line before #its' do
@@ -164,9 +164,9 @@ module Transpec
164
164
  rewritten_source.should == expected_source
165
165
  end
166
166
 
167
- it "adds record `its(:attr) { }` -> `describe 'attr' do subject { super().attr }; it { } end`" do
167
+ it "adds record `its(:attr) { }` -> `describe '#attr' do subject { super().attr }; it { } end`" do
168
168
  record.original_syntax.should == 'its(:attr) { }'
169
- record.converted_syntax.should == "describe 'attr' do subject { super().attr }; it { } end"
169
+ record.converted_syntax.should == "describe '#attr' do subject { super().attr }; it { } end"
170
170
  end
171
171
  end
172
172
 
@@ -201,9 +201,9 @@ module Transpec
201
201
  rewritten_source.should == expected_source
202
202
  end
203
203
 
204
- it "adds record `its(:attr) { }` -> `describe 'attr' do subject { super().attr }; it { } end`" do
204
+ it "adds record `its(:attr) { }` -> `describe '#attr' do subject { super().attr }; it { } end`" do
205
205
  record.original_syntax.should == 'its(:attr) { }'
206
- record.converted_syntax.should == "describe 'attr' do subject { super().attr }; it { } end"
206
+ record.converted_syntax.should == "describe '#attr' do subject { super().attr }; it { } end"
207
207
  end
208
208
  end
209
209
 
@@ -347,9 +347,9 @@ module Transpec
347
347
  rewritten_source.should == expected_source
348
348
  end
349
349
 
350
- it "adds record `its(:attr) { }` -> `describe 'attr' do subject { super().attr }; it { } end`" do
350
+ it "adds record `its(:attr) { }` -> `describe '#attr' do subject { super().attr }; it { } end`" do
351
351
  record.original_syntax.should == 'its(:attr) { }'
352
- record.converted_syntax.should == "describe 'attr' do subject { super().attr }; it { } end"
352
+ record.converted_syntax.should == "describe '#attr' do subject { super().attr }; it { } end"
353
353
  end
354
354
  end
355
355
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'spec_helper'
4
4
  require 'transpec/util'
5
+ require 'ast'
5
6
 
6
7
  module Transpec
7
8
  describe Util do
data/tasks/demo.rake CHANGED
@@ -11,11 +11,11 @@ namespace :demo do
11
11
  ]
12
12
  # rubocop:enable LineLength
13
13
 
14
- desc 'Run demo of Transpec on all projects'
14
+ desc 'Publish conversion example on all projects'
15
15
  task all: demos.map(&:name)
16
16
 
17
17
  demos.each do |demo|
18
- desc "Run demo of Transpec on #{demo.name.capitalize} project"
18
+ desc "Publish conversion example on #{demo.name} project"
19
19
  task demo.name do
20
20
  demo.run
21
21
  end
@@ -12,7 +12,7 @@ class TranspecDemo < TranspecTest
12
12
  def run
13
13
  require 'transpec'
14
14
 
15
- puts " Running demo on #{name} Project ".center(80, '=')
15
+ puts " Running demo on #{name} project ".center(80, '=')
16
16
 
17
17
  prepare_project
18
18
  run_demo
@@ -36,7 +36,7 @@ class TranspecTest
36
36
 
37
37
  def run
38
38
  require 'transpec'
39
- puts " Testing on #{name} Project ".center(80, '=')
39
+ puts " Testing on #{name} project ".center(80, '=')
40
40
  prepare_project
41
41
  run_test(%w(--force))
42
42
  end
data/tasks/test.rake CHANGED
@@ -27,7 +27,7 @@ namespace :test do
27
27
  task all: tests.map(&:name)
28
28
 
29
29
  tests.each do |test|
30
- desc "Test Transpec on #{test.name.capitalize} project"
30
+ desc "Test Transpec on #{test.name} project"
31
31
  task test.name do
32
32
  test.run
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transpec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Nakayama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-21 00:00:00.000000000 Z
11
+ date: 2013-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -226,9 +226,11 @@ files:
226
226
  - lib/transpec/file_finder.rb
227
227
  - lib/transpec/git.rb
228
228
  - lib/transpec/option_parser.rb
229
+ - lib/transpec/parser.rb
229
230
  - lib/transpec/project.rb
230
231
  - lib/transpec/record.rb
231
232
  - lib/transpec/report.rb
233
+ - lib/transpec/rspec_dsl.rb
232
234
  - lib/transpec/rspec_version.rb
233
235
  - lib/transpec/static_context_inspector.rb
234
236
  - lib/transpec/syntax.rb
@@ -318,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
318
320
  version: '0'
319
321
  requirements: []
320
322
  rubyforge_project:
321
- rubygems_version: 2.0.3
323
+ rubygems_version: 2.0.14
322
324
  signing_key:
323
325
  specification_version: 4
324
326
  summary: An RSpec syntax converter
@@ -359,4 +361,3 @@ test_files:
359
361
  - spec/transpec/syntax/should_spec.rb
360
362
  - spec/transpec/util_spec.rb
361
363
  - spec/transpec_spec.rb
362
- has_rdoc: