wraith 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/wraith/version.rb +1 -1
- data/lib/wraith/wraith.rb +2 -9
- 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: 96a69a9ea5f1151ef5586ea053b194e03e16f2e5
|
4
|
+
data.tar.gz: 33b6fc490fb6c02f5f199d9844dd65950bc39650
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed5ef37f8fc1c062f0b17d9bddadb36481ffa0aa1827919879d7d606049b8f79035b21284dbd6da26ad879e5ba46a52ac1893b6a48eeb3212a81d1195039cba9
|
7
|
+
data.tar.gz: daa50056dcbefbecf8b19308978fa3af87bd6984edb74e09c8b97dfe56a2204bd2b5f15f07ead48c941f250b1d8625fad075c7f23f8a8f886d56687891ff9805
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ You can type `wraith` into terminal to bring up the list of commands, but the on
|
|
47
47
|
wraith capture config_name
|
48
48
|
```
|
49
49
|
|
50
|
-
This assumes that your snap.js and config.yaml are in the folders that were created on setup. There are other commands also available, these all expect a config_name to be passed as an option. Wraith will look for the config file at `configs/[config_name].yaml`.
|
50
|
+
This assumes that your snap.js and config.yaml are in the folders that were created on setup. There are other commands also available, these all expect a config_name to be passed as an option. Wraith will look for the config file at `configs/[config_name].yaml`.
|
51
51
|
|
52
52
|
```sh
|
53
53
|
wraith capture config_name # A full Wraith job
|
data/lib/wraith/version.rb
CHANGED
data/lib/wraith/wraith.rb
CHANGED
@@ -4,13 +4,7 @@ class Wraith::Wraith
|
|
4
4
|
attr_accessor :config
|
5
5
|
|
6
6
|
def initialize(config_name)
|
7
|
-
|
8
|
-
@config = YAML::load(File.open(config_name))
|
9
|
-
@snap_path = File.expand_path(File.dirname("#{config_name}"))
|
10
|
-
else
|
11
|
-
@config = YAML::load(File.open("configs/#{config_name}.yaml"))
|
12
|
-
@snap_path = File.dirname(__FILE__)
|
13
|
-
end
|
7
|
+
@config = YAML::load(File.open("configs/#{config_name}.yaml"))
|
14
8
|
end
|
15
9
|
|
16
10
|
def directory
|
@@ -18,8 +12,7 @@ class Wraith::Wraith
|
|
18
12
|
end
|
19
13
|
|
20
14
|
def snap_file
|
21
|
-
|
22
|
-
File.expand_path(file, @snap_path)
|
15
|
+
@config['snap_file'] ? @config['snap_file'] : File.expand_path('lib/wraith/javascript/snap.js')
|
23
16
|
end
|
24
17
|
|
25
18
|
def widths
|