rubocop-katalyst 1.1.2 → 1.1.3

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: a7d49191205cbfbb749c21872e5e118d81feb3faf140634f0c8454e6eeb6aecf
4
- data.tar.gz: 8fb4d9bb18f67f623fd484f720340328fbe4afac9487c3bc967398aedb24c04c
3
+ metadata.gz: ddc6b3c8cce60c0fcdaf1e82f6e870136495a8a4be758e1f00d2e74c4041b6f0
4
+ data.tar.gz: af751b20b7a7a23a11f2127af97c2b6a2cb92b7ad52aa991f7ffa1d81de9755b
5
5
  SHA512:
6
- metadata.gz: 473c9d481f7d766140fe6934d1be449866de32d7a619c32424fccfebc7e324f18957f94c27a453e848341d4e128c070118d3f6874a703449197f48a779010aca
7
- data.tar.gz: 51adfe84c63cb21066ed28739d33bf0159344cd34a52d3be6e13b3a4360668e7fbd5f68f11b21f958b8440e82a49c0342b1447d6e5d59786eede338026ff9c5d
6
+ metadata.gz: 70bf3a16f5ba638f9e7ec0e66f428f9e4383046bd1816fbdf6cfff2ff8d2fed11636203c31a0027775341d29f168cc1f5c21e0467be717db7af85f8728fd4794
7
+ data.tar.gz: 8e37ed6686f578b0b4e2605082dc07638aadfdce2a7c9d7079f60092c64717e2469aab9c49e3cc2f532bc1dee0518bea1bd69e59cbc7aa2d8cfcd928997cf945
@@ -33,11 +33,11 @@ module RuboCop
33
33
  end
34
34
 
35
35
  def installed?
36
- config.exist?
36
+ File.exist?(config)
37
37
  end
38
38
 
39
39
  def config
40
- ::Rails.application.root.join(".prettierrc.json")
40
+ File.join(root, ".prettierrc.json")
41
41
  end
42
42
 
43
43
  def install_prettier
@@ -76,7 +76,12 @@ module RuboCop
76
76
  app/assets/stylesheets
77
77
  app/javascript
78
78
  app/packs
79
- ].select { |path| ::Rails.application.root.join(path).exist? }
79
+ ].map { |path| File.join(root, path) }
80
+ .select { |path| File.exist?(path) }
81
+ end
82
+
83
+ def root
84
+ @root ||= Dir.pwd
80
85
  end
81
86
  end
82
87
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Katalyst
5
- VERSION = "1.1.2"
5
+ VERSION = "1.1.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-katalyst
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive