updater_gf 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04dd7ddb74f712be09341db4c98984c3e6697b4218439c72a5c1eddf417174f1
4
- data.tar.gz: 688e22dc6c52147e978db6644b921896f3eaaee72237581640ce327633449154
3
+ metadata.gz: f4b33e8d348342aaccef2c41bc4e916ee686a8f8e9138cc6c01519b9a0149f48
4
+ data.tar.gz: 73a42363f12fcac20f7e73298014d5c0eebdf2114801e457d1a61faf6edb24bf
5
5
  SHA512:
6
- metadata.gz: d727b8ac34667c36d4ce08e7ea7e49ea007c56bc6ad8efc9462a16d9198626e9255cb9e714dfcf7071b4d62d16524517bf5a9c356589e5851342f9d2e5323be4
7
- data.tar.gz: e2bc0b8a935d19e70b784e774496899548deeffc63ac0ff310536a9018f1cb52823af097384e12c4d66820662b3568e854c20bc362b64c9944af3431a7e06121
6
+ metadata.gz: c05a21f8bf024374644017403652125884dfd57513cc7fd0c757cd310b867ef547edc730ec2c05fee57f45981c61c76321c0ddcd9aedd122ca59ecd6e7442e9f
7
+ data.tar.gz: f30e2d1ab33c840ccc1b3800e339d312f649f0e147b2a0a5b42d0c4147be79984722f41d2cbaf87f4fe11fe08b01d42374ada98bc1cb30158548deb808344c47
@@ -17,9 +17,14 @@ module UpdaterGf
17
17
  end
18
18
 
19
19
  rubocop_yml_path = File.join(project_root, '.rubocop.yml')
20
- new_rubocop_yml_path = File.expand_path('../../.rubocop.yml', __FILE__)
20
+ new_rubocop_yml_path = File.expand_path('.rubocop.yml', __dir__)
21
21
 
22
- if File.exist?(rubocop_yml_path) && File.exist?(new_rubocop_yml_path)
22
+ unless File.exist?(rubocop_yml_path)
23
+ FileUtils.touch(rubocop_yml_path)
24
+ puts '.rubocop.yml not found, created a new one'
25
+ end
26
+
27
+ if File.exist?(new_rubocop_yml_path)
23
28
  FileUtils.cp(new_rubocop_yml_path, rubocop_yml_path)
24
29
  puts 'Updated .rubocop.yml'
25
30
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UpdaterGf
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: updater_gf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - devhoanglv92