chusaku 0.3.1 → 0.3.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
  SHA256:
3
- metadata.gz: 88faa9125ecbb5875cc388b83c814cea0894450765bb0f4167bd0ae0f0992b99
4
- data.tar.gz: 1088a35aa6485279ac86964013c3435dcbc62741ed94cf9482802959ceea7955
3
+ metadata.gz: f2976318f89e26e31f77c54e1cc338812ac6a107ec033d53c077fd4eb1759be6
4
+ data.tar.gz: 8413d9353d6115929985f3d6275396abeb25d7b9df834ccd0d4e19fd834ef574
5
5
  SHA512:
6
- metadata.gz: d723c66b5c1d2ed5ab25531aa10502c820295f2203755159b6ca7591a9f6f7f9d40e34ce62888cc1c68ef73903a7ebd8d11fe9f0a028c2d26a48de8348f0a6a7
7
- data.tar.gz: c80b6e22679e966f994d5be4be3c47bd32190141071d9c6dea2ce7ae6c714cd9fdb9ddcb3c30a85516f3ec9c16c666dfd4694b39be398cb4b1d184fab541cd45
6
+ metadata.gz: 44c12d0f6c0f970cd3a0e5c76cd14b18d8bfbf16f7d39e8789e4c09c87a8273a8b3e288de865533c7a39b81fe1dd51088a1ddc7c33edb0325e12a676153d5563
7
+ data.tar.gz: 5e01aeaa4eea9099c47445c88db326ff4ceb5d028088bbd6c2a328f21673c17d80c93bc8fda0c4135e76956f1439a26df758985a23bfe895d5f3f2ff14eb3982
@@ -43,7 +43,7 @@ Gem::Specification.new do |spec|
43
43
 
44
44
  spec.add_development_dependency 'bundler', '~> 2.0'
45
45
  spec.add_development_dependency 'minitest', '~> 5.0'
46
- spec.add_development_dependency 'rake', '~> 10.0'
46
+ spec.add_development_dependency 'rake', '~> 12.3'
47
47
  spec.add_development_dependency 'rubocop', '~> 0.77'
48
48
  spec.add_development_dependency 'rubocop-performance', '~> 1.5'
49
49
 
@@ -98,7 +98,11 @@ module Chusaku
98
98
  return unless parsed_file[:content] != content
99
99
 
100
100
  unless @flags.include?(:dry)
101
- File.open(path, 'r+') do |file|
101
+ # When running the test suite, we want to make sure we're not
102
+ # overwriting any files. `r` mode ensures that.
103
+ mode = File.instance_methods.include?(:test_write) ? 'r' : 'w'
104
+
105
+ File.open(path, mode) do |file|
102
106
  if file.respond_to?(:test_write)
103
107
  file.test_write(content, path)
104
108
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Chusaku
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chusaku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nishiki Liu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-25 00:00:00.000000000 Z
11
+ date: 2020-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '12.3'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '12.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubygems_version: 3.0.3
145
+ rubygems_version: 3.1.2
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Annotate your Rails controllers with route info.