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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eedc98f718883b3244b2d0c49ce02382fa82bf12
4
- data.tar.gz: 3714a8774df4457bbd6eb901ef30ed70bc089321
3
+ metadata.gz: 6759a682a72fa3cb4a447d6cfa2538534159e0b7
4
+ data.tar.gz: a071ce02fdb73414348755e6026dbcf6fbf6b2c5
5
5
  SHA512:
6
- metadata.gz: 7a5a0f25ac13c59754f6b66bdb24f6c931515a42e7123bf8110959761599750e5125be4dc337893befc18b19a9cc62e303b602527242d817aa902c2e52201bb4
7
- data.tar.gz: e8823c20d0a109e8b305a530f0303a63fd8dc2cd79d3648d86bb25e4638657d55ffaf44aa86c59ea8ac5cdd2fdb3c31a026a69cf157355b777ef8fc5137e692d
6
+ metadata.gz: 36dec47f9bcc96f53421d11f6e47bbe5de2d232d7f7cafa68f33640f1503b07061a50416b1565ba2a02d7c0e674b5c7258e3e61b66f0d231284a8056f76cc294
7
+ data.tar.gz: 52d053f02201db70664158a60c76477155d494a2bc22579851b73eb7116f82ba5d3cc047b2d6c285b288c06927e724dbadcdc11e58a6a6b836122c71b20d0c99
data/exe/libFinder CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  require "libFinder"
4
4
 
5
- puts LibFinder.is_rails
5
+ puts LibFinder::LibWorker.is_rails
6
6
 
@@ -1,3 +1,3 @@
1
1
  module LibFinder
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/libFinder.rb CHANGED
@@ -1,24 +1,24 @@
1
1
  require "libFinder/version"
2
2
  require "httparty"
3
-
4
3
  module LibFinder
5
- include HTTParty
6
-
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
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libFinder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mody