orly 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Readme.md +1 -0
- data/lib/orly.rb +1 -0
- data/lib/orly/tester.rb +11 -0
- data/lib/orly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4826bad136a60166851839e6c23a3357a808bb6
|
4
|
+
data.tar.gz: b53f16b52e41358ebcb3e90f30da14331fbbfef3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42f7ed617e1f271d1ef2bbbf2e9753e139335f44d7c76b24fa37c7ed7a22a4aa50ef0db939b2a4d066e0c518f145718dd65edfdab45c9a1d25f7555fb9ec566d
|
7
|
+
data.tar.gz: affb94e898dd411459581ee593fa7165b3b08a72abd5a8b7ff65542504886933af1074e995359a0827086f9a3e18820df3c808b112371644789a7143029c2442
|
data/CHANGELOG.md
CHANGED
data/Readme.md
CHANGED
@@ -29,6 +29,7 @@ ORLY supports the following development commands and knows to alert you when you
|
|
29
29
|
|
30
30
|
#### NPM / Bower
|
31
31
|
* `npm install` - for package.json changes
|
32
|
+
* `yarn install` - for package.json and yarn.lock changes
|
32
33
|
* `bower install` - for bower.json changes
|
33
34
|
|
34
35
|
## More info
|
data/lib/orly.rb
CHANGED
@@ -16,6 +16,7 @@ module Orly
|
|
16
16
|
notify << "run 'pod install'".blue if tester.need_pod?
|
17
17
|
notify << "run 'bower install'".green if tester.need_bower?
|
18
18
|
notify << "run 'npm install'".green if tester.need_npm?
|
19
|
+
notify << "run 'yarn install'".green if tester.need_yarn?
|
19
20
|
Orly::OwlPrinter.print(notify) unless notify.empty?
|
20
21
|
rescue Orly::NoRepo
|
21
22
|
puts "O RLY: this is not a git repo".red
|
data/lib/orly/tester.rb
CHANGED
@@ -10,6 +10,7 @@ module Orly
|
|
10
10
|
@need_migrate = false
|
11
11
|
@need_bower = false
|
12
12
|
@need_npm = false
|
13
|
+
@uses_yarn = false
|
13
14
|
@need_dotenv = false
|
14
15
|
run_tests
|
15
16
|
rescue ArgumentError
|
@@ -24,6 +25,7 @@ module Orly
|
|
24
25
|
when /^Podfile/ then @need_pod = true
|
25
26
|
when /^bower\.json/ then @need_bower = true
|
26
27
|
when /package\.json/ then @need_npm = true
|
28
|
+
when /^yarn\.lock/ then @uses_yarn = true
|
27
29
|
when /^.dotenv-encrypted/ then @need_dotenv = true
|
28
30
|
end
|
29
31
|
end
|
@@ -53,6 +55,12 @@ module Orly
|
|
53
55
|
end
|
54
56
|
|
55
57
|
def need_npm?
|
58
|
+
return false if uses_yarn?
|
59
|
+
@need_npm
|
60
|
+
end
|
61
|
+
|
62
|
+
def need_yarn?
|
63
|
+
return false unless uses_yarn?
|
56
64
|
@need_npm
|
57
65
|
end
|
58
66
|
|
@@ -60,5 +68,8 @@ module Orly
|
|
60
68
|
@need_dotenv
|
61
69
|
end
|
62
70
|
|
71
|
+
private def uses_yarn?
|
72
|
+
@uses_yarn
|
73
|
+
end
|
63
74
|
end
|
64
75
|
end
|
data/lib/orly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|