transpec 3.1.2 → 3.2.0

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: 44f63928b496b5321e12052717fbc2e36b188afc
4
- data.tar.gz: 0b973547b5d53ebdc06537549f215e1ab792f34a
3
+ metadata.gz: 24998882f9a56b533e6027ecb48dd839d12058a2
4
+ data.tar.gz: b1d95a3546c84a823b42215c04212aebdf56d1ab
5
5
  SHA512:
6
- metadata.gz: 19448fdd37e53d08a9bbcccc98e3dc286a3cb5b5efa90282caa610d52eb27a56683c198d3c7d4f43ab8ebed1bc820703f9f781f9e8787ff1550de425789db98f
7
- data.tar.gz: ad721bebc30ec06ac03de43ee75903e5d906a9c7202527b8fdf458d94a77146eb2b839ab93518f3a6b4b9eff53c940954b8d7bc3cec56a8f302311a4aed1f5a4
6
+ metadata.gz: 8ee8237a85015f4350103edea5bd432ec7be47c06cc92f620148e048ce3ad467992742c8820fa3be7634cb0100c69a2382e0dc68395e75c87248398543652e5e
7
+ data.tar.gz: 451f3ab8aaa8fb53cd716ffc0cfb5fcc49019ef4592e9a060e0c24ab54a82caa2186d77dc0b430584dbf3d90774bf54ed5451eb3a7224ef9dff17eacf9c0d989
@@ -1,3 +1,4 @@
1
+ inherit_from: .rubocop_todo.yml
1
2
 
2
3
  AllCops:
3
4
  Include:
@@ -0,0 +1,98 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2016-02-06 17:34:16 +0900 using RuboCop version 0.37.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 4
10
+ # Cop supports --auto-correct.
11
+ Lint/UnneededDisable:
12
+ Exclude:
13
+ - 'spec/transpec/dynamic_analyzer/rewriter_spec.rb'
14
+
15
+ # Offense count: 4
16
+ # Cop supports --auto-correct.
17
+ Performance/RedundantMatch:
18
+ Exclude:
19
+ - 'lib/transpec/syntax/operator.rb'
20
+ - 'lib/transpec/util.rb'
21
+ - 'spec/transpec/commit_message_spec.rb'
22
+
23
+ # Offense count: 13
24
+ # Cop supports --auto-correct.
25
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
26
+ # SupportedStyles: prefer_alias, prefer_alias_method
27
+ Style/Alias:
28
+ Exclude:
29
+ - 'lib/transpec/converter.rb'
30
+ - 'lib/transpec/dynamic_analyzer.rb'
31
+ - 'lib/transpec/record.rb'
32
+ - 'lib/transpec/static_context_inspector.rb'
33
+ - 'lib/transpec/syntax/have.rb'
34
+ - 'lib/transpec/syntax/its.rb'
35
+ - 'lib/transpec/syntax/rspec_configure.rb'
36
+ - 'lib/transpec/syntax/should_receive.rb'
37
+
38
+ # Offense count: 1
39
+ # Cop supports --auto-correct.
40
+ # Configuration parameters: SingleLineConditionsOnly.
41
+ Style/ConditionalAssignment:
42
+ Exclude:
43
+ - 'lib/transpec/syntax/method_stub.rb'
44
+
45
+ # Offense count: 2
46
+ Style/IfInsideElse:
47
+ Exclude:
48
+ - 'lib/transpec/spec_file_finder.rb'
49
+ - 'lib/transpec/syntax/method_stub.rb'
50
+
51
+ # Offense count: 2
52
+ # Cop supports --auto-correct.
53
+ # Configuration parameters: SupportedStyles, IndentationWidth.
54
+ # SupportedStyles: special_inside_parentheses, consistent, align_brackets
55
+ Style/IndentArray:
56
+ EnforcedStyle: consistent
57
+
58
+ # Offense count: 11
59
+ # Cop supports --auto-correct.
60
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
61
+ # SupportedStyles: aligned, indented
62
+ Style/MultilineMethodCallIndentation:
63
+ Enabled: false
64
+
65
+ # Offense count: 14
66
+ # Cop supports --auto-correct.
67
+ Style/MutableConstant:
68
+ Exclude:
69
+ - 'lib/transpec/cli/option_parser.rb'
70
+ - 'lib/transpec/dynamic_analyzer/constants.rb'
71
+ - 'lib/transpec/dynamic_analyzer/rewriter.rb'
72
+ - 'lib/transpec/git.rb'
73
+ - 'lib/transpec/record.rb'
74
+ - 'lib/transpec/syntax/example_group.rb'
75
+ - 'lib/transpec/syntax/hook.rb'
76
+ - 'lib/transpec/syntax/matcher_definition.rb'
77
+ - 'lib/transpec/syntax/method_stub.rb'
78
+ - 'tasks/lib/demo.rb'
79
+
80
+ # Offense count: 1
81
+ # Cop supports --auto-correct.
82
+ Style/RedundantParentheses:
83
+ Exclude:
84
+ - 'lib/transpec/static_context_inspector.rb'
85
+
86
+ # Offense count: 47
87
+ # Cop supports --auto-correct.
88
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
89
+ # SupportedStyles: only_raise, only_fail, semantic
90
+ Style/SignalException:
91
+ Enabled: false
92
+
93
+ # Offense count: 2
94
+ # Cop supports --auto-correct.
95
+ Style/UnneededInterpolation:
96
+ Exclude:
97
+ - 'lib/transpec/syntax/current_example.rb'
98
+ - 'lib/transpec/syntax/have/record_builder.rb'
@@ -4,6 +4,7 @@ rvm:
4
4
  - 2.0.0
5
5
  - 2.1
6
6
  - 2.2
7
+ - 2.3.0
7
8
  - ruby-head
8
9
  - jruby-19mode
9
10
  - jruby-9.0.0.0
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Development
4
4
 
5
+ ## v3.2.0
6
+
7
+ * Support Ruby 2.3 syntax.
8
+
5
9
  ## v3.1.2
6
10
 
7
11
  * Avoid converting invalid `have` matcher without `items` part. ([#108](https://github.com/yujinakayama/transpec/issues/108))
data/README.md CHANGED
@@ -1456,12 +1456,13 @@ Transpec is tested on the following Ruby implementations:
1456
1456
  * 2.0.0
1457
1457
  * 2.1
1458
1458
  * 2.2
1459
+ * 2.3
1459
1460
  * JRuby
1460
1461
  * 1.7 in 1.9 mode
1461
1462
  * 9.0.0.0
1462
1463
 
1463
1464
  ## License
1464
1465
 
1465
- Copyright (c) 2013–2015 Yuji Nakayama
1466
+ Copyright (c) 2013–2016 Yuji Nakayama
1466
1467
 
1467
1468
  See the [LICENSE.txt](LICENSE.txt) for details.
@@ -1477,6 +1477,7 @@ Transpec is tested on the following Ruby implementations:
1477
1477
  * 2.0.0
1478
1478
  * 2.1
1479
1479
  * 2.2
1480
+ * 2.3
1480
1481
  * JRuby
1481
1482
  * 1.7 in 1.9 mode
1482
1483
  * 9.0.0.0
@@ -33,6 +33,7 @@ module Transpec
33
33
 
34
34
  builder = AST::Builder.new
35
35
  parser = Parser::CurrentRuby.new(builder)
36
+ parser.diagnostics.all_errors_are_fatal = true
36
37
 
37
38
  @ast = parser.parse(@buffer)
38
39
  rescue Parser::SyntaxError, EncodingError => error
@@ -4,8 +4,8 @@ module Transpec
4
4
  # http://semver.org/
5
5
  module Version
6
6
  MAJOR = 3
7
- MINOR = 1
8
- PATCH = 2
7
+ MINOR = 2
8
+ PATCH = 0
9
9
 
10
10
  def self.to_s
11
11
  [MAJOR, MINOR, PATCH].join('.')
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.required_ruby_version = '>= 1.9.3'
25
25
 
26
- spec.add_runtime_dependency 'parser', '~> 2.2'
26
+ spec.add_runtime_dependency 'parser', '~> 2.3'
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'
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.1.2
4
+ version: 3.2.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: 2015-12-29 00:00:00.000000000 Z
11
+ date: 2016-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.2'
19
+ version: '2.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.2'
26
+ version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: astrolabe
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -117,6 +117,7 @@ extra_rdoc_files: []
117
117
  files:
118
118
  - ".gitignore"
119
119
  - ".rubocop.yml"
120
+ - ".rubocop_todo.yml"
120
121
  - ".travis.yml"
121
122
  - CHANGELOG.md
122
123
  - CONTRIBUTING.md