franc 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/lib/franc.rb +2 -2
- data/lib/franc/version.rb +1 -1
- 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: 02568133540cccdfc4b762b134dde0e1a601589a
|
4
|
+
data.tar.gz: fec1646e7538d1dea9bf45adf6c89e78437bf2de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 324d8eb80a698bd021593b850536f23bfac7b21567ab25dbae09fd7704c818b4995a4eb18bfdfa534f530a10c0466cef01f1945ba369114375d5c0ca8afff901
|
7
|
+
data.tar.gz: 0b5c5118189f876fa90137cd2b2931d1331697f6ddcd600f8eed92549a97adff047629be0f7d31d33e0bd1398d94cd12b892e6d30193061dc0ffb9778f4147df
|
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Franc
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/franc.svg)](https://badge.fury.io/rb/franc)
|
2
3
|
|
3
4
|
A simple ruby wrapper to Titus Wormer's awesome javascript language detection called [Franc](https://github.com/wooorm/franc).
|
4
5
|
|
@@ -6,12 +7,14 @@ A simple ruby wrapper to Titus Wormer's awesome javascript language detection ca
|
|
6
7
|
|
7
8
|
At this time, this gem depends on a system wide npm installation of franc and runs a bash command within ruby to invoke the franc javascript.
|
8
9
|
|
9
|
-
If you do not have franc installed, this gem will install it for you on the first run.
|
10
|
+
If you do not have franc installed, this gem will install it for you on the first run by using npm. If you don't have npm installed or are not sure what it is, check out the [docs](https://docs.npmjs.com/).
|
11
|
+
|
12
|
+
Here are [all supported languages](https://github.com/wooorm/franc/blob/master/Supported-Languages.md).
|
10
13
|
|
11
14
|
## Installation
|
12
15
|
|
13
16
|
```
|
14
|
-
gem install franc
|
17
|
+
$ gem install franc
|
15
18
|
|
16
19
|
```
|
17
20
|
|
data/lib/franc.rb
CHANGED
@@ -22,8 +22,8 @@ module Franc
|
|
22
22
|
return if ['no', 'n'].include?(str)
|
23
23
|
puts 'installing...'
|
24
24
|
`npm install -g franc`
|
25
|
-
puts "\nnpm successfully installed."
|
26
|
-
true # Just for looks, better than returning nil.
|
25
|
+
puts "\nnpm successfully installed franc."
|
26
|
+
true # Just for looks really, better than returning nil.
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
data/lib/franc/version.rb
CHANGED