nutcase 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/bin/nutcase +1 -1
- data/lib/nutcase/bin.rb +11 -11
- data/lib/nutcase/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: 201ab931686eb89a35ef00de914e99838a3e8a49
|
|
4
|
+
data.tar.gz: 24562c31a91df07c6da720387144bc00b2ab359e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a643ed07cc0111348b3132fff7e4ed99335c2f6d6d834f368f90c2d9708a1d649932cc9f6bcb28e763e786d6fb69810a46aa845a5ee40a931a9096b32410423
|
|
7
|
+
data.tar.gz: 6e49d0d99a113ac1d92da6645c7fdb7f18aadaf30b4e52f5c6df63095e4d2e38a0aa0275b7e5d653e95dce378a79079aa694f12ba6f6902b5b7a0e6e68534785
|
data/bin/nutcase
CHANGED
data/lib/nutcase/bin.rb
CHANGED
|
@@ -7,18 +7,14 @@ class Nutcase
|
|
|
7
7
|
|
|
8
8
|
attr_accessor :config_file, :args
|
|
9
9
|
|
|
10
|
-
def
|
|
11
|
-
args = []
|
|
10
|
+
def run
|
|
11
|
+
self.args = []
|
|
12
|
+
self.config_file ||= './config/nutcase.rb'
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
if argv.count > 0
|
|
14
15
|
args.concat(argv)
|
|
15
|
-
|
|
16
|
-
config_file
|
|
17
|
-
|
|
18
|
-
if File.file? config_file
|
|
19
|
-
# TODO: make the config file format nicer
|
|
20
|
-
instance_eval(File.read(config_file), config_file)
|
|
21
|
-
end
|
|
16
|
+
elsif File.file? config_file
|
|
17
|
+
instance_eval(File.read(config_file), config_file)
|
|
22
18
|
end
|
|
23
19
|
|
|
24
20
|
options = {
|
|
@@ -29,12 +25,16 @@ class Nutcase
|
|
|
29
25
|
name: 'Nutcase',
|
|
30
26
|
ignore: [],
|
|
31
27
|
dir: ['.'],
|
|
32
|
-
pattern:
|
|
28
|
+
pattern: '{Gemfile,Gemfile.lock,.gems,.bundle,.env*,config.ru,Rakefile,**/*.{rb,js,coffee,css,scss,sass,styl,erb,html,haml,ru,yml,slim,md,mab,rake}}'
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
Rerun::Runner.keep_running(options[:cmd], options)
|
|
36
32
|
end
|
|
37
33
|
|
|
34
|
+
def server(opts)
|
|
35
|
+
args.concat(opts)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
38
|
def envs
|
|
39
39
|
@envs ||= {}
|
|
40
40
|
end
|
data/lib/nutcase/version.rb
CHANGED