transpec 3.0.1 → 3.0.2

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: 196cada3fc6e32784d3e5392042482f6fd229a3d
4
- data.tar.gz: 5c20aff88c81968bf371fa3aeac09e75b5b29a04
3
+ metadata.gz: 130f69705bf8dfb8dff588176c1b0a9233499ba9
4
+ data.tar.gz: 3824c963a6ae862b7672b0e1285800b2da5c350d
5
5
  SHA512:
6
- metadata.gz: 1e0632950453067d50237c5a5ce8fc1223271ac7009c53915c4d3bbc04cb32aea820d2f03e44e995e692ddec57804b2dd49e2d31f981fbe6f1eea1ab24d4118e
7
- data.tar.gz: dcf97938424d1788764298694806e59e174abc29b5d5643c359d310a67dda70e5d039f2f2a63adf4389811765b742e3fb3ba73e1512f7b8fa199ea98ffdec58c
6
+ metadata.gz: 7d405ecd3074077e69c480f5802a62bf416710d75bdd523c3bb1b5fe5f745baf4a6efb9b6efb57cba767852e5bd5b5973fa162111ca6ac618e5468fee2442330
7
+ data.tar.gz: 90249324f5804315dd1cc99322b365001054346184c2a722414965bb5290f91d92ea1c8879741313a2d4aba948f3af279ddfe8aa0fdde37ecd199f06eb3a8113
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ test/version_tmp
17
17
  tmp
18
18
  /vendor
19
19
  .cache
20
+ /build
data/.travis.yml CHANGED
@@ -10,3 +10,5 @@ matrix:
10
10
  - rvm: ruby-head
11
11
  before_install: gem update --remote bundler
12
12
  script: bundle exec rake ci
13
+ sudo: false
14
+ cache: bundler
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Development
4
4
 
5
+ ## v3.0.2
6
+
7
+ * Fix a bug where `have(n).errors_on(:attr)` was unintentionally converted when combined with one-liner `should`. ([#95](https://github.com/yujinakayama/transpec/issues/95))
8
+
5
9
  ## v3.0.1
6
10
 
7
11
  * Exclude spec files from the gem package to lighten the package size.
@@ -30,7 +30,7 @@ module Transpec
30
30
  rewriter.register_request(target_node, key, code, target_type)
31
31
 
32
32
  key = :subject_includes_active_model_validations?
33
- code = 'is_a?(ActiveModel::Validations)'
33
+ code = "#{subject_code}.is_a?(ActiveModel::Validations)"
34
34
  rewriter.register_request(target_node, key, code, target_type)
35
35
 
36
36
  key = :project_requires_collection_matcher?
@@ -5,7 +5,7 @@ module Transpec
5
5
  module Version
6
6
  MAJOR = 3
7
7
  MINOR = 0
8
- PATCH = 1
8
+ PATCH = 2
9
9
 
10
10
  def self.to_s
11
11
  [MAJOR, MINOR, PATCH].join('.')
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.1
4
+ version: 3.0.2
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-13 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser