libFinder 0.1.0 → 0.1.1
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 +4 -4
- data/exe/libFinder +1 -1
- data/lib/libFinder/version.rb +1 -1
- data/lib/libFinder.rb +17 -17
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6759a682a72fa3cb4a447d6cfa2538534159e0b7
|
4
|
+
data.tar.gz: a071ce02fdb73414348755e6026dbcf6fbf6b2c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36dec47f9bcc96f53421d11f6e47bbe5de2d232d7f7cafa68f33640f1503b07061a50416b1565ba2a02d7c0e674b5c7258e3e61b66f0d231284a8056f76cc294
|
7
|
+
data.tar.gz: 52d053f02201db70664158a60c76477155d494a2bc22579851b73eb7116f82ba5d3cc047b2d6c285b288c06927e724dbadcdc11e58a6a6b836122c71b20d0c99
|
data/exe/libFinder
CHANGED
data/lib/libFinder/version.rb
CHANGED
data/lib/libFinder.rb
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
require "libFinder/version"
|
2
2
|
require "httparty"
|
3
|
-
|
4
3
|
module LibFinder
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
4
|
+
|
5
|
+
class LibWorker
|
6
|
+
include HTTParty
|
7
|
+
def self.is_rails
|
8
|
+
base_path = Dir.pwd
|
9
|
+
controllers = File.exist?(base_path+"/controllers")
|
10
|
+
#check if the file has a controllers folder or not
|
11
|
+
models = File.exist?(base_path+"/models")
|
12
|
+
#check if the file has a models folder or not
|
14
13
|
|
15
|
-
if controllers && models
|
16
|
-
#if both are true then it is a rails app
|
17
|
-
return true
|
18
|
-
else
|
19
|
-
return false
|
20
|
-
end
|
21
|
-
end
|
22
14
|
|
15
|
+
if controllers && models
|
16
|
+
#if both are true then it is a rails app
|
17
|
+
return true
|
18
|
+
else
|
19
|
+
return false
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
23
|
|
24
24
|
end
|