wraith 1.1.5 → 1.1.6

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: ea2a5aee7b4cbe3a600243e296db2bd328e38ce1
4
- data.tar.gz: 60b739fbc44ed47c90d4643fa90458ffaca5e646
3
+ metadata.gz: 96a69a9ea5f1151ef5586ea053b194e03e16f2e5
4
+ data.tar.gz: 33b6fc490fb6c02f5f199d9844dd65950bc39650
5
5
  SHA512:
6
- metadata.gz: fd22474244454f8d4282603b0219b89cb2efaab49f3744a4e0b10b7321a8d41439bd15aa0d5def2141b7afe03a7b8a17bbf67c1ed4c2053b8149eb88348a4fd0
7
- data.tar.gz: 5d00b6a992af94fd40fe0fead13b350b79d0f1962a7bfd9c1b35ccc62618df137545a37e0389875a1d60f33c2670b4d3f794aaa2cdef3330d2dd56845942f201
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`. If you want to use a config from outside the setup folders, you can pass a path to a config where the config name would usually be set. This will assume that the config and snap file are in the same directory.
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
@@ -1,3 +1,3 @@
1
1
  module Wraith
2
- VERSION = '1.1.5'
2
+ VERSION = '1.1.6'
3
3
  end
@@ -4,13 +4,7 @@ class Wraith::Wraith
4
4
  attr_accessor :config
5
5
 
6
6
  def initialize(config_name)
7
- if File.exists? config_name
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
- file = @config['snap_file'] ? @config['snap_file'] : 'javascript/snap.js'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wraith
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Blooman