transpec 3.0.3 → 3.0.4

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: 202c5b3a6677c5a08f53787a4b92a1da72a16d6d
4
- data.tar.gz: 7cde03bd6520c7a25a890f436ece6644d182cfdf
3
+ metadata.gz: f5754630c15f5f19404c281a79990204109e6788
4
+ data.tar.gz: c17cfcb2f1142e0c6c0978173401d6dd444cbcef
5
5
  SHA512:
6
- metadata.gz: 21c3b3fce8aa0a69802afef630b80b074143cbb0573c035b277ac69e3be9da12f5b66ed95a8a2a7f5263ea3cc24fec1e32d4a9545cd7b38743097ae9c22a2d60
7
- data.tar.gz: fe8b7f7d45c7eb1ee68c449dca9f457fe91fa32fe0e548836c1e8d6ef9e0bff459d599055f5cff2a2c51d890dce88739972f68b5cfdde70ee45ccadc191cd57c
6
+ metadata.gz: 41864e335343d4334e52b8ca4349bdd1d5a701646eda18dd7700a99e8e298c5c0448f0c15043ba5f903c1c729c1112b181bcf11e91f34bcfd9be868ecda91871
7
+ data.tar.gz: 2b571ca015d069cd95310274544f32a84654b3b17fc3c5021f05f756bbd4ec9b5c141010bb5ae8a38958279288941f8abccbc724c152504cf1a8ab7986431388
data/.travis.yml CHANGED
@@ -5,6 +5,11 @@ rvm:
5
5
  - 2.1
6
6
  - ruby-head
7
7
  - jruby
8
+ env:
9
+ - RSPEC_VERSION=2.14
10
+ - RSPEC_VERSION=2.99
11
+ - RSPEC_VERSION=3.0
12
+ - RSPEC_VERSION=3.1
8
13
  matrix:
9
14
  allow_failures:
10
15
  - rvm: ruby-head
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Development
4
4
 
5
+ ## v3.0.4
6
+
7
+ * Fix an issue where `obj = Klass.any_instance; obj.should_receive(:message)` was not properly converted to `expect_any_instance_of(Klass).to receive(:message)` when run on RSpec 3.
8
+ * Improve the static context inspection accuracy when run on RSpec 3.
9
+ * Check target project's RSpec version via `Gemfile.lock` instead of running `rspec --version`.
10
+
5
11
  ## v3.0.3
6
12
 
7
13
  * Fix a bug where `obj.should =~ an_activerecord_relation` was converted to `expect(obj).to match(an_activerecord_relation)` rather than `match_array`. ([#92](https://github.com/yujinakayama/transpec/issues/92))
data/Gemfile CHANGED
@@ -2,6 +2,21 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
+ group :development, :test do
6
+ gem 'rake', '~> 10.1'
7
+ gem 'rspec', "~> #{ENV['RSPEC_VERSION'] || '2.14'}.0"
8
+ gem 'simplecov', '~> 0.7'
9
+ gem 'rubocop', '~> 0.24'
10
+ end
11
+
12
+ group :development do
13
+ gem 'fuubar', '>= 1.3', '< 3.0'
14
+ gem 'guard-rspec', '>= 4.2.3', '< 5.0'
15
+ gem 'guard-rubocop', '~> 1.0'
16
+ gem 'guard-shell', '~> 0.5'
17
+ gem 'ruby_gntp', '~> 0.3'
18
+ end
19
+
5
20
  group :test do
6
21
  gem 'coveralls', '~> 0.6'
7
22
  end
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- [![Gem Version](http://img.shields.io/gem/v/transpec.svg)](http://badge.fury.io/rb/transpec)
2
- [![Dependency Status](http://img.shields.io/gemnasium/yujinakayama/transpec.svg)](https://gemnasium.com/yujinakayama/transpec)
3
- [![Build Status](https://travis-ci.org/yujinakayama/transpec.svg?branch=master)](https://travis-ci.org/yujinakayama/transpec)
4
- [![Coverage Status](http://img.shields.io/coveralls/yujinakayama/transpec/master.svg)](https://coveralls.io/r/yujinakayama/transpec)
5
- [![Code Climate](https://codeclimate.com/github/yujinakayama/transpec/badges/gpa.svg)](https://codeclimate.com/github/yujinakayama/transpec)
1
+ [![Gem Version](http://img.shields.io/gem/v/transpec.svg?style=flat)](http://badge.fury.io/rb/transpec)
2
+ [![Dependency Status](http://img.shields.io/gemnasium/yujinakayama/transpec.svg?style=flat)](https://gemnasium.com/yujinakayama/transpec)
3
+ [![Build Status](https://travis-ci.org/yujinakayama/transpec.svg?branch=master&style=flat)](https://travis-ci.org/yujinakayama/transpec)
4
+ [![Coverage Status](http://img.shields.io/coveralls/yujinakayama/transpec/master.svg?style=flat)](https://coveralls.io/r/yujinakayama/transpec)
5
+ [![Code Climate](https://img.shields.io/codeclimate/github/yujinakayama/transpec.svg?style=flat)](https://codeclimate.com/github/yujinakayama/transpec)
6
6
 
7
7
  # Transpec
8
8
 
data/README.md.erb CHANGED
@@ -1,8 +1,8 @@
1
- [![Gem Version](http://img.shields.io/gem/v/transpec.svg)](http://badge.fury.io/rb/transpec)
2
- [![Dependency Status](http://img.shields.io/gemnasium/yujinakayama/transpec.svg)](https://gemnasium.com/yujinakayama/transpec)
3
- [![Build Status](https://travis-ci.org/yujinakayama/transpec.svg?branch=master)](https://travis-ci.org/yujinakayama/transpec)
4
- [![Coverage Status](http://img.shields.io/coveralls/yujinakayama/transpec/master.svg)](https://coveralls.io/r/yujinakayama/transpec)
5
- [![Code Climate](https://codeclimate.com/github/yujinakayama/transpec/badges/gpa.svg)](https://codeclimate.com/github/yujinakayama/transpec)
1
+ [![Gem Version](http://img.shields.io/gem/v/transpec.svg?style=flat)](http://badge.fury.io/rb/transpec)
2
+ [![Dependency Status](http://img.shields.io/gemnasium/yujinakayama/transpec.svg?style=flat)](https://gemnasium.com/yujinakayama/transpec)
3
+ [![Build Status](https://travis-ci.org/yujinakayama/transpec.svg?branch=master&style=flat)](https://travis-ci.org/yujinakayama/transpec)
4
+ [![Coverage Status](http://img.shields.io/coveralls/yujinakayama/transpec/master.svg?style=flat)](https://coveralls.io/r/yujinakayama/transpec)
5
+ [![Code Climate](https://img.shields.io/codeclimate/github/yujinakayama/transpec.svg?style=flat)](https://codeclimate.com/github/yujinakayama/transpec)
6
6
 
7
7
  # Transpec
8
8
 
data/Rakefile CHANGED
@@ -1,8 +1,7 @@
1
1
  require 'bundler/gem_tasks'
2
- require 'rspec/core/rake_task'
3
2
  require 'rubocop/rake_task'
3
+ require 'rspec/core/version'
4
4
 
5
- RSpec::Core::RakeTask.new(:spec)
6
5
  RuboCop::RakeTask.new(:style)
7
6
 
8
7
  Dir['tasks/**/*.rake'].each do |path|
@@ -12,5 +11,9 @@ end
12
11
  task default: %w(spec style readme)
13
12
 
14
13
  ci_tasks = %w(spec)
15
- ci_tasks.concat(%w(style readme:check test:all)) unless RUBY_ENGINE == 'jruby'
14
+
15
+ if RUBY_ENGINE != 'jruby' && RSpec::Core::Version::STRING.start_with?('2.14')
16
+ ci_tasks.concat(%w(style readme:check test:all))
17
+ end
18
+
16
19
  task ci: ci_tasks
@@ -3,14 +3,14 @@ module <%= ANALYSIS_MODULE %>
3
3
 
4
4
  module_function
5
5
 
6
- def temporary_data
7
- @temporary_data ||= {}
8
- end
9
-
10
6
  def data
11
7
  @data ||= {}
12
8
  end
13
9
 
10
+ def ephemeral_data
11
+ @ephemeral_data ||= {}
12
+ end
13
+
14
14
  def <%= ANALYSIS_METHOD %>(object, context, node_id, analysis_codes)
15
15
  node_data = {}
16
16
 
@@ -31,22 +31,23 @@ module <%= ANALYSIS_MODULE %>
31
31
  object
32
32
  end
33
33
 
34
- def error_message=(message)
35
- data[<%= RUNTIME_DATA_ERROR_MESSAGE_KEY.inspect %>] = message
36
- end
37
-
38
34
  def validate_rspec_configuration!(config)
39
35
  deprecation_stream_name = config.deprecation_stream.class.name
40
36
 
41
37
  if deprecation_stream_name.start_with?('RSpec::Core::Formatters::DeprecationFormatter')
42
- self.error_message = 'Aborted dynamic analysis. ' \
43
- 'Disable `RSpec.configure { |c| c.raise_errors_for_deprecations! }` ' \
44
- "in your spec because it interferes with Transpec's dynamic analysis."
45
- save_result
46
- exit(1)
38
+ message = 'Aborted dynamic analysis. ' \
39
+ 'Disable `RSpec.configure { |c| c.raise_errors_for_deprecations! }` ' \
40
+ "in your spec because it interferes with Transpec's dynamic analysis."
41
+ fail_with_message!(message)
47
42
  end
48
43
  end
49
44
 
45
+ def fail_with_message!(message)
46
+ data[<%= RUNTIME_DATA_ERROR_MESSAGE_KEY.inspect %>] = message
47
+ save_result
48
+ exit!(1)
49
+ end
50
+
50
51
  def save_result
51
52
  # Use JSON rather than Marshal so that:
52
53
  # * Unknown third-party class information won't be serialized.
@@ -1,6 +1,7 @@
1
1
  # coding: utf-8
2
2
 
3
3
  require 'transpec/rspec_version'
4
+ require 'bundler'
4
5
  require 'English'
5
6
 
6
7
  module Transpec
@@ -22,11 +23,7 @@ module Transpec
22
23
  def depend_on_rspec_rails?
23
24
  return @depend_on_rspec_rails if instance_variable_defined?(:@depend_on_rspec_rails)
24
25
  return @depend_on_rspec_rails = false unless using_bundler?
25
-
26
- require 'bundler'
27
- gemfile_lock_content = File.read(gemfile_lock_path)
28
- lockfile = Bundler::LockfileParser.new(gemfile_lock_content)
29
- @depend_on_rspec_rails = lockfile.specs.any? { |gem| gem.name == 'rspec-rails' }
26
+ @depend_on_rspec_rails = dependency_gems.any? { |gem| gem.name == 'rspec-rails' }
30
27
  end
31
28
 
32
29
  def rspec_version
@@ -47,27 +44,26 @@ module Transpec
47
44
 
48
45
  private
49
46
 
47
+ def dependency_gems
48
+ @dependency_gems ||= begin
49
+ gemfile_lock_content = File.read(gemfile_lock_path)
50
+ lockfile = Bundler::LockfileParser.new(gemfile_lock_content)
51
+ lockfile.specs
52
+ end
53
+ end
54
+
50
55
  def gemfile_lock_path
51
56
  @gemfile_lock_path ||= File.join(path, 'Gemfile.lock')
52
57
  end
53
58
 
54
59
  def fetch_rspec_version
55
- command = 'rspec --version'
56
- command = 'bundle exec ' + command if using_bundler?
57
-
58
- output = nil
59
-
60
- Dir.chdir(path) do
61
- with_bundler_clean_env do
62
- IO.popen(command) do |io|
63
- output = io.read
64
- end
65
- end
60
+ if using_bundler?
61
+ rspec_core_gem = dependency_gems.find { |gem| gem.name == 'rspec-core' }
62
+ rspec_core_gem.version
63
+ else
64
+ require 'rspec/core/version'
65
+ RSpec::Core::Version::STRING
66
66
  end
67
-
68
- fail 'Failed checking RSpec version.' if output.nil? || $CHILD_STATUS.exitstatus != 0
69
-
70
- output.chomp
71
67
  end
72
68
  end
73
69
  end
@@ -73,5 +73,9 @@ module Transpec
73
73
  def rspec_2_99?
74
74
  RSPEC_2_99 <= self && self < RSPEC_3_0
75
75
  end
76
+
77
+ def rspec_3?
78
+ self >= RSPEC_3_0
79
+ end
76
80
  end
77
81
  end
@@ -10,34 +10,28 @@ module Transpec
10
10
  SCOPE_TYPES = [:module, :class, :sclass, :def, :defs, :block].freeze
11
11
  TWISTED_SCOPE_TYPES = (SCOPE_TYPES - [:def, :defs]).freeze
12
12
 
13
- NON_MONKEY_PATCH_EXPECTATION_AVAILABLE_CONTEXT = [
13
+ EXAMPLE_CONTEXTS = [
14
14
  [:example_group, :example],
15
15
  [:example_group, :each_before_after],
16
- [:example_group, :all_before_after],
17
- [:example_group, :around],
18
16
  [:example_group, :helper],
19
17
  [:example_group, :def],
20
18
  [:rspec_configure, :each_before_after],
21
- [:rspec_configure, :all_before_after],
22
- [:rspec_configure, :around],
23
19
  [:rspec_configure, :def],
24
20
  [:module, :def]
25
21
  ].freeze
26
22
 
27
- NON_MONKEY_PATCH_MOCK_AVAILABLE_CONTEXT = [
28
- [:example_group, :example],
29
- [:example_group, :each_before_after],
30
- [:example_group, :helper],
31
- [:example_group, :def],
32
- [:rspec_configure, :each_before_after],
33
- [:rspec_configure, :def],
34
- [:module, :def]
23
+ EXAMPLE_GROUP_CONTEXTS = [
24
+ [:example_group, :all_before_after],
25
+ [:example_group, :around],
26
+ [:rspec_configure, :all_before_after],
27
+ [:rspec_configure, :around]
35
28
  ].freeze
36
29
 
37
- attr_reader :node
30
+ attr_reader :node, :rspec_version
38
31
 
39
- def initialize(node)
32
+ def initialize(node, rspec_version)
40
33
  @node = node
34
+ @rspec_version = rspec_version
41
35
  end
42
36
 
43
37
  def scopes
@@ -50,14 +44,17 @@ module Transpec
50
44
 
51
45
  def non_monkey_patch_expectation_available?
52
46
  return @expectation_available if instance_variable_defined?(:@expectation_available)
53
- @expectation_available = match_scopes(NON_MONKEY_PATCH_EXPECTATION_AVAILABLE_CONTEXT)
47
+ contexts = EXAMPLE_CONTEXTS + EXAMPLE_GROUP_CONTEXTS
48
+ @expectation_available = match_context?(contexts)
54
49
  end
55
50
 
56
51
  alias_method :expect_available?, :non_monkey_patch_expectation_available?
57
52
 
58
53
  def non_monkey_patch_mock_available?
59
54
  return @mock_available if instance_variable_defined?(:@mock_available)
60
- @mock_available = match_scopes(NON_MONKEY_PATCH_MOCK_AVAILABLE_CONTEXT)
55
+ contexts = EXAMPLE_CONTEXTS
56
+ contexts += EXAMPLE_GROUP_CONTEXTS if rspec_version.rspec_3?
57
+ @mock_available = match_context?(contexts)
61
58
  end
62
59
 
63
60
  alias_method :expect_to_receive_available?, :non_monkey_patch_mock_available?
@@ -142,11 +139,11 @@ module Transpec
142
139
  :each_before_after
143
140
  end
144
141
 
145
- def match_scopes(scope_suffixes)
142
+ def match_context?(scope_trailing_patterns)
146
143
  return true if scopes == [:def]
147
144
 
148
- scope_suffixes.any? do |suffix|
149
- scopes.end_with?(suffix)
145
+ scope_trailing_patterns.any? do |pattern|
146
+ scopes.end_with?(pattern)
150
147
  end
151
148
  end
152
149
 
@@ -179,7 +179,7 @@ module Transpec
179
179
  end
180
180
 
181
181
  def static_context_inspector
182
- @static_context_inspector ||= StaticContextInspector.new(node)
182
+ @static_context_inspector ||= StaticContextInspector.new(node, rspec_version)
183
183
  end
184
184
 
185
185
  def parent_node
@@ -14,7 +14,12 @@ module Transpec
14
14
  included do
15
15
  define_dynamic_analysis do |rewriter|
16
16
  code = <<-END.gsub(/^\s+\|/, '').chomp
17
- |if self.class.name == 'RSpec::Mocks::AnyInstance::Recorder'
17
+ |any_instance_classes = [
18
+ | 'RSpec::Mocks::AnyInstance::Recorder',
19
+ | 'RSpec::Mocks::AnyInstance::Proxy'
20
+ |]
21
+ |
22
+ |if any_instance_classes.include?(self.class.name)
18
23
  | if respond_to?(:klass)
19
24
  | klass.name
20
25
  | elsif instance_variable_defined?(:@klass)
@@ -16,7 +16,7 @@ module Transpec
16
16
  include Mixin::Send, Mixin::RSpecRails, ConfigModification
17
17
 
18
18
  define_dynamic_analysis do |rewriter|
19
- run_order = "#{DynamicAnalyzer::ANALYSIS_MODULE}.temporary_data[:rspec_configure_run_order]"
19
+ run_order = "#{DynamicAnalyzer::ANALYSIS_MODULE}.ephemeral_data[:rspec_configure_run_order]"
20
20
  code = "#{run_order} ||= 0\n" \
21
21
  "#{run_order} += 1"
22
22
  rewriter.register_request(node, :run_order, code)
@@ -5,7 +5,7 @@ module Transpec
5
5
  module Version
6
6
  MAJOR = 3
7
7
  MINOR = 0
8
- PATCH = 3
8
+ PATCH = 4
9
9
 
10
10
  def self.to_s
11
11
  [MAJOR, MINOR, PATCH].join('.')
data/tasks/lib/project.rb CHANGED
@@ -53,28 +53,6 @@ class Project
53
53
  private
54
54
 
55
55
  def setup
56
- if url.start_with?('/')
57
- setup_from_local
58
- else
59
- setup_from_remote
60
- end
61
- end
62
-
63
- def setup_from_local
64
- FileUtils.rm_rf(project_dir) if Dir.exist?(project_dir)
65
- Dir.mkdir(project_dir)
66
-
67
- Dir.chdir(url) do
68
- Dir.new('.').each do |entry|
69
- next if ['.', '..', 'tmp'].include?(entry)
70
- FileUtils.cp_r(entry, project_dir)
71
- end
72
- end
73
-
74
- bundle_install
75
- end
76
-
77
- def setup_from_remote
78
56
  if Dir.exist?(project_dir)
79
57
  git 'checkout', '.'
80
58
  git 'checkout', ref
@@ -123,7 +101,5 @@ class Project
123
101
  def prepare_env
124
102
  # Disable Coveralls.
125
103
  ENV['CI'] = ENV['JENKINS_URL'] = ENV['COVERALLS_RUN_LOCALLY'] = nil
126
-
127
- ENV['TRANSPEC_TEST'] = 'true'
128
104
  end
129
105
  end
data/tasks/lib/test.rb CHANGED
@@ -6,14 +6,6 @@ require_relative 'project'
6
6
  class Test < Project
7
7
  include RSpec::Matchers
8
8
 
9
- attr_reader :simple
10
- alias_method :simple?, :simple
11
-
12
- def initialize(url, ref = nil, bundler_args = [], simple = false)
13
- super(url, ref, bundler_args)
14
- @simple = simple
15
- end
16
-
17
9
  def run
18
10
  puts " Testing transpec on #{name} project ".center(80, '=')
19
11
 
@@ -22,7 +14,6 @@ class Test < Project
22
14
  in_project_dir do
23
15
  transpec '--force'
24
16
  sh 'bundle exec rspec'
25
- return if simple?
26
17
  compare_summary!('2.99.0')
27
18
 
28
19
  puts 'Rewriting `rspec` version in Gemfile as 3.0.0'
data/tasks/spec.rake ADDED
@@ -0,0 +1,41 @@
1
+ # coding: utf-8
2
+
3
+ require 'rspec/core/rake_task'
4
+ require 'rspec/core/version'
5
+
6
+ RSpec::Core::RakeTask.new(:spec) do |task|
7
+ task.verbose = false
8
+ end
9
+
10
+ Rake::Task[:spec].enhance(['spec:convert', 'spec:setup'])
11
+
12
+ namespace :spec do
13
+ task :convert do
14
+ next if RSpec::Core::Version::STRING.start_with?('2.')
15
+
16
+ puts "Converting specs before running them on RSpec #{RSpec::Core::Version::STRING}..."
17
+
18
+ require 'fileutils'
19
+ Dir.mkdir('tmp') unless Dir.exist?('tmp')
20
+ FileUtils.mv('Gemfile.lock', 'tmp')
21
+
22
+ begin
23
+ Bundler.with_clean_env do
24
+ ENV['RSPEC_VERSION'] = '2.99'
25
+ sh 'bundle', 'install', '--retry', '3'
26
+
27
+ ENV['TRANSPEC_TEST'] = 'true'
28
+ ENV['CI'] = ENV['JENKINS_URL'] = ENV['COVERALLS_RUN_LOCALLY'] = nil # Disable Coveralls.
29
+ sh 'bundle', 'exec', 'transpec'
30
+ end
31
+ ensure
32
+ puts 'Reverting to the original Gemfile.lock...'
33
+ FileUtils.mv('tmp/Gemfile.lock', '.')
34
+ end
35
+ end
36
+
37
+ task :setup do
38
+ ENV['TRANSPEC_TEST'] = 'true'
39
+ puts "Running specs on RSpec #{RSpec::Core::Version::STRING}..."
40
+ end
41
+ end
data/tasks/test.rake CHANGED
@@ -12,7 +12,6 @@ namespace :test do
12
12
 
13
13
  # rubocop:disable LineLength
14
14
  tests = [
15
- Test.new(Transpec.root, nil, ['--quiet'], true),
16
15
  Test.new('https://github.com/yujinakayama/twitter.git', 'transpec-test-rspec-2-99', bundler_args),
17
16
  Test.new('https://github.com/yujinakayama/mail.git', 'transpec-test-rspec-2-99', bundler_args),
18
17
  # Test.new('https://github.com/yujinakayama/guard.git', 'transpec-test-rspec-2-99', bundler_args + %w(--without development))
data/transpec.gemspec CHANGED
@@ -29,14 +29,4 @@ Gem::Specification.new do |spec|
29
29
  spec.add_runtime_dependency 'rainbow', '>= 1.99.1', '< 3.0'
30
30
  spec.add_runtime_dependency 'json', '~> 1.8'
31
31
  spec.add_runtime_dependency 'activesupport', '>= 3.0', '< 5.0'
32
-
33
- spec.add_development_dependency 'rake', '~> 10.1'
34
- spec.add_development_dependency 'rspec', '~> 2.14.0'
35
- spec.add_development_dependency 'fuubar', '~> 1.3'
36
- spec.add_development_dependency 'simplecov', '~> 0.7'
37
- spec.add_development_dependency 'rubocop', '~> 0.24'
38
- spec.add_development_dependency 'guard-rspec', '>= 4.2.3', '< 5.0'
39
- spec.add_development_dependency 'guard-rubocop', '~> 1.0'
40
- spec.add_development_dependency 'guard-shell', '~> 0.5'
41
- spec.add_development_dependency 'ruby_gntp', '~> 0.3'
42
32
  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: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Nakayama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-18 00:00:00.000000000 Z
11
+ date: 2014-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -112,138 +112,6 @@ dependencies:
112
112
  - - "<"
113
113
  - !ruby/object:Gem::Version
114
114
  version: '5.0'
115
- - !ruby/object:Gem::Dependency
116
- name: rake
117
- requirement: !ruby/object:Gem::Requirement
118
- requirements:
119
- - - "~>"
120
- - !ruby/object:Gem::Version
121
- version: '10.1'
122
- type: :development
123
- prerelease: false
124
- version_requirements: !ruby/object:Gem::Requirement
125
- requirements:
126
- - - "~>"
127
- - !ruby/object:Gem::Version
128
- version: '10.1'
129
- - !ruby/object:Gem::Dependency
130
- name: rspec
131
- requirement: !ruby/object:Gem::Requirement
132
- requirements:
133
- - - "~>"
134
- - !ruby/object:Gem::Version
135
- version: 2.14.0
136
- type: :development
137
- prerelease: false
138
- version_requirements: !ruby/object:Gem::Requirement
139
- requirements:
140
- - - "~>"
141
- - !ruby/object:Gem::Version
142
- version: 2.14.0
143
- - !ruby/object:Gem::Dependency
144
- name: fuubar
145
- requirement: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - "~>"
148
- - !ruby/object:Gem::Version
149
- version: '1.3'
150
- type: :development
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- requirements:
154
- - - "~>"
155
- - !ruby/object:Gem::Version
156
- version: '1.3'
157
- - !ruby/object:Gem::Dependency
158
- name: simplecov
159
- requirement: !ruby/object:Gem::Requirement
160
- requirements:
161
- - - "~>"
162
- - !ruby/object:Gem::Version
163
- version: '0.7'
164
- type: :development
165
- prerelease: false
166
- version_requirements: !ruby/object:Gem::Requirement
167
- requirements:
168
- - - "~>"
169
- - !ruby/object:Gem::Version
170
- version: '0.7'
171
- - !ruby/object:Gem::Dependency
172
- name: rubocop
173
- requirement: !ruby/object:Gem::Requirement
174
- requirements:
175
- - - "~>"
176
- - !ruby/object:Gem::Version
177
- version: '0.24'
178
- type: :development
179
- prerelease: false
180
- version_requirements: !ruby/object:Gem::Requirement
181
- requirements:
182
- - - "~>"
183
- - !ruby/object:Gem::Version
184
- version: '0.24'
185
- - !ruby/object:Gem::Dependency
186
- name: guard-rspec
187
- requirement: !ruby/object:Gem::Requirement
188
- requirements:
189
- - - ">="
190
- - !ruby/object:Gem::Version
191
- version: 4.2.3
192
- - - "<"
193
- - !ruby/object:Gem::Version
194
- version: '5.0'
195
- type: :development
196
- prerelease: false
197
- version_requirements: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- version: 4.2.3
202
- - - "<"
203
- - !ruby/object:Gem::Version
204
- version: '5.0'
205
- - !ruby/object:Gem::Dependency
206
- name: guard-rubocop
207
- requirement: !ruby/object:Gem::Requirement
208
- requirements:
209
- - - "~>"
210
- - !ruby/object:Gem::Version
211
- version: '1.0'
212
- type: :development
213
- prerelease: false
214
- version_requirements: !ruby/object:Gem::Requirement
215
- requirements:
216
- - - "~>"
217
- - !ruby/object:Gem::Version
218
- version: '1.0'
219
- - !ruby/object:Gem::Dependency
220
- name: guard-shell
221
- requirement: !ruby/object:Gem::Requirement
222
- requirements:
223
- - - "~>"
224
- - !ruby/object:Gem::Version
225
- version: '0.5'
226
- type: :development
227
- prerelease: false
228
- version_requirements: !ruby/object:Gem::Requirement
229
- requirements:
230
- - - "~>"
231
- - !ruby/object:Gem::Version
232
- version: '0.5'
233
- - !ruby/object:Gem::Dependency
234
- name: ruby_gntp
235
- requirement: !ruby/object:Gem::Requirement
236
- requirements:
237
- - - "~>"
238
- - !ruby/object:Gem::Version
239
- version: '0.3'
240
- type: :development
241
- prerelease: false
242
- version_requirements: !ruby/object:Gem::Requirement
243
- requirements:
244
- - - "~>"
245
- - !ruby/object:Gem::Version
246
- version: '0.3'
247
115
  description: Transpec converts your specs to the latest RSpec syntax with static and
248
116
  dynamic code analysis.
249
117
  email:
@@ -351,6 +219,7 @@ files:
351
219
  - tasks/lib/project.rb
352
220
  - tasks/lib/test.rb
353
221
  - tasks/readme.rake
222
+ - tasks/spec.rake
354
223
  - tasks/test.rake
355
224
  - transpec.gemspec
356
225
  homepage: http://yujinakayama.me/transpec/