transpec 3.2.2 → 3.3.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.
- checksums.yaml +4 -4
- data/.rubocop.yml +6 -0
- data/.travis.yml +10 -7
- data/CHANGELOG.md +4 -0
- data/Gemfile +9 -9
- data/README.md +7 -6
- data/README.md.erb +10 -7
- data/lib/transpec/dynamic_analyzer/rewriter.rb +1 -1
- data/lib/transpec/dynamic_analyzer/runtime_data.rb +1 -2
- data/lib/transpec/record.rb +1 -1
- data/lib/transpec/report.rb +1 -1
- data/lib/transpec/syntax/have.rb +1 -1
- data/lib/transpec/syntax/have/dynamic_analysis.rb +1 -1
- data/lib/transpec/version.rb +2 -2
- data/tasks/ci.rake +1 -0
- data/tasks/readme.rake +7 -0
- data/transpec.gemspec +2 -2
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 776c4008f4f9b8774ba45005e5a01ff5ea623355
|
4
|
+
data.tar.gz: 590eb411838be93f6073e91e1ac62db2a2cd5169
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba23453c7453fda5bd427dc4ba09c56a98dc9da01c08627e2f31e7b9f1b6ab1f6c659559e5ef2237dc83cca0a491e2400b7141d5ebe67c8bcad385be859a5423
|
7
|
+
data.tar.gz: 8196d68cc2beaa8a10bdf6b99dfad2d11671bb97f654474f46e9ba5672b41a4ffa90da3cc75201d084e0c0d3487f9353eed5821110687f66d17bf13961444fac
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -2,22 +2,25 @@ language: ruby
|
|
2
2
|
rvm:
|
3
3
|
- 1.9.3
|
4
4
|
- 2.0.0
|
5
|
-
- 2.1
|
6
|
-
- 2.2
|
7
|
-
- 2.3.
|
5
|
+
- 2.1.10
|
6
|
+
- 2.2.6
|
7
|
+
- 2.3.3
|
8
|
+
- 2.4.0
|
8
9
|
- ruby-head
|
9
10
|
- jruby-19mode
|
10
|
-
- jruby-9.
|
11
|
+
- jruby-9.1.7.0
|
11
12
|
env:
|
12
13
|
- RSPEC_VERSION=2.14
|
13
14
|
- RSPEC_VERSION=2.99
|
14
15
|
- RSPEC_VERSION=3.0
|
15
|
-
- RSPEC_VERSION=3.
|
16
|
-
- RSPEC_VERSION=
|
16
|
+
- RSPEC_VERSION=3.5
|
17
|
+
- RSPEC_VERSION=master
|
17
18
|
matrix:
|
18
19
|
allow_failures:
|
19
20
|
- rvm: ruby-head
|
20
|
-
before_install:
|
21
|
+
before_install:
|
22
|
+
- gem update --system # https://github.com/sickill/rainbow/issues/49
|
23
|
+
- gem update --remote bundler
|
21
24
|
script: bundle exec rake ci
|
22
25
|
sudo: false
|
23
26
|
cache: bundler
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -3,22 +3,22 @@ source 'https://rubygems.org'
|
|
3
3
|
gemspec
|
4
4
|
|
5
5
|
group :development, :test do
|
6
|
-
|
6
|
+
rspec_version = ENV['RSPEC_VERSION'] || '2.14'
|
7
7
|
|
8
|
-
case
|
9
|
-
when 'head'
|
10
|
-
%w(rspec rspec-core rspec-expectations rspec-mocks rspec-support).each do |lib|
|
11
|
-
gem lib, git: "git://github.com/rspec/#{lib}.git"
|
12
|
-
end
|
8
|
+
case rspec_version
|
13
9
|
when /^\d+\.\d+$/
|
14
|
-
gem 'rspec', "~> #{
|
10
|
+
gem 'rspec', "~> #{rspec_version}.0"
|
15
11
|
else
|
16
|
-
|
12
|
+
%w(rspec rspec-core rspec-expectations rspec-mocks rspec-support).each do |lib|
|
13
|
+
gem lib, git: "https://github.com/rspec/#{lib}.git", branch: rspec_version
|
14
|
+
end
|
17
15
|
end
|
18
16
|
|
17
|
+
# We cannot update rake to 12.x since it breaks compatibility with RSpec 2.x.
|
18
|
+
# https://github.com/rspec/rspec-core/pull/2197
|
19
19
|
gem 'rake', '~> 11.0'
|
20
20
|
gem 'simplecov', '~> 0.7'
|
21
|
-
gem 'rubocop', '~> 0.
|
21
|
+
gem 'rubocop', '~> 0.39'
|
22
22
|
end
|
23
23
|
|
24
24
|
group :development do
|
data/README.md
CHANGED
@@ -1454,15 +1454,16 @@ Transpec is tested on the following Ruby implementations:
|
|
1454
1454
|
* MRI
|
1455
1455
|
* 1.9.3
|
1456
1456
|
* 2.0.0
|
1457
|
-
* 2.1
|
1458
|
-
* 2.2
|
1459
|
-
* 2.3
|
1457
|
+
* 2.1.10
|
1458
|
+
* 2.2.6
|
1459
|
+
* 2.3.3
|
1460
|
+
* 2.4.0
|
1460
1461
|
* JRuby
|
1461
|
-
* 1.
|
1462
|
-
* 9.
|
1462
|
+
* 1.9 mode
|
1463
|
+
* 9.1.7.0
|
1463
1464
|
|
1464
1465
|
## License
|
1465
1466
|
|
1466
|
-
Copyright (c) 2013–
|
1467
|
+
Copyright (c) 2013–2017 Yuji Nakayama
|
1467
1468
|
|
1468
1469
|
See the [LICENSE.txt](LICENSE.txt) for details.
|
data/README.md.erb
CHANGED
@@ -1473,14 +1473,17 @@ Will be converted to:
|
|
1473
1473
|
Transpec is tested on the following Ruby implementations:
|
1474
1474
|
|
1475
1475
|
* MRI
|
1476
|
-
*
|
1477
|
-
* 2.0.0
|
1478
|
-
* 2.1
|
1479
|
-
* 2.2
|
1480
|
-
* 2.3
|
1476
|
+
<%= travis_config['rvm'].grep(/\A\d/).map { |version| " * #{version}" }.join("\n") %>
|
1481
1477
|
* JRuby
|
1482
|
-
|
1483
|
-
|
1478
|
+
<%=
|
1479
|
+
travis_config['rvm'].grep(/\Ajruby-/).map do |name|
|
1480
|
+
version = name.sub('jruby-', '')
|
1481
|
+
if /\A(?<major>\d)(?<minor>\d)mode\z/ =~ version
|
1482
|
+
version = "#{major}.#{minor} mode"
|
1483
|
+
end
|
1484
|
+
" * #{version}"
|
1485
|
+
end.join("\n")
|
1486
|
+
%>
|
1484
1487
|
|
1485
1488
|
## License
|
1486
1489
|
|
@@ -13,8 +13,7 @@ module Transpec
|
|
13
13
|
attr_reader :data
|
14
14
|
|
15
15
|
def self.load(string_or_io)
|
16
|
-
|
17
|
-
data = JSON.load(string_or_io, nil, options)
|
16
|
+
data = JSON.load(string_or_io, nil, object_class: CompatibleOpenStruct)
|
18
17
|
new(data)
|
19
18
|
end
|
20
19
|
|
data/lib/transpec/record.rb
CHANGED
data/lib/transpec/report.rb
CHANGED
data/lib/transpec/syntax/have.rb
CHANGED
@@ -43,7 +43,7 @@ module Transpec
|
|
43
43
|
explicit_subject? ? 'self' : 'subject'
|
44
44
|
end
|
45
45
|
|
46
|
-
def collection_accessor_inspection_code
|
46
|
+
def collection_accessor_inspection_code
|
47
47
|
# `expect(owner).to have(n).things` invokes private owner#things with Object#__send__
|
48
48
|
# if the owner does not respond to any of #size, #count and #length.
|
49
49
|
#
|
data/lib/transpec/version.rb
CHANGED
data/tasks/ci.rake
CHANGED
data/tasks/readme.rake
CHANGED
data/transpec.gemspec
CHANGED
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_runtime_dependency 'astrolabe', '~> 1.2'
|
28
28
|
spec.add_runtime_dependency 'bundler', '~> 1.3'
|
29
29
|
spec.add_runtime_dependency 'rainbow', '>= 1.99.1', '< 3.0'
|
30
|
-
spec.add_runtime_dependency 'json', '
|
31
|
-
spec.add_runtime_dependency 'activesupport', '>= 3.0', '<
|
30
|
+
spec.add_runtime_dependency 'json', '>= 1.8', '< 3.0'
|
31
|
+
spec.add_runtime_dependency 'activesupport', '>= 3.0', '< 6.0'
|
32
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.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuji Nakayama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -76,16 +76,22 @@ dependencies:
|
|
76
76
|
name: json
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '1.8'
|
82
|
+
- - "<"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '3.0'
|
82
85
|
type: :runtime
|
83
86
|
prerelease: false
|
84
87
|
version_requirements: !ruby/object:Gem::Requirement
|
85
88
|
requirements:
|
86
|
-
- - "
|
89
|
+
- - ">="
|
87
90
|
- !ruby/object:Gem::Version
|
88
91
|
version: '1.8'
|
92
|
+
- - "<"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '3.0'
|
89
95
|
- !ruby/object:Gem::Dependency
|
90
96
|
name: activesupport
|
91
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,7 +101,7 @@ dependencies:
|
|
95
101
|
version: '3.0'
|
96
102
|
- - "<"
|
97
103
|
- !ruby/object:Gem::Version
|
98
|
-
version: '
|
104
|
+
version: '6.0'
|
99
105
|
type: :runtime
|
100
106
|
prerelease: false
|
101
107
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -105,7 +111,7 @@ dependencies:
|
|
105
111
|
version: '3.0'
|
106
112
|
- - "<"
|
107
113
|
- !ruby/object:Gem::Version
|
108
|
-
version: '
|
114
|
+
version: '6.0'
|
109
115
|
description: Transpec converts your specs to the latest RSpec syntax with static and
|
110
116
|
dynamic code analysis.
|
111
117
|
email:
|
@@ -237,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
243
|
version: '0'
|
238
244
|
requirements: []
|
239
245
|
rubyforge_project:
|
240
|
-
rubygems_version: 2.
|
246
|
+
rubygems_version: 2.6.8
|
241
247
|
signing_key:
|
242
248
|
specification_version: 4
|
243
249
|
summary: The RSpec syntax converter
|