faketree 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d0b5370a14e14a14857691308d1118f0767b29f
4
- data.tar.gz: 904f6736c004bc6e74a979f772466fddee19c9cf
3
+ metadata.gz: ab73fc98166f868a164260f4bf2c159e4e083239
4
+ data.tar.gz: c00fc0618e90f1bab8c9460897d0cd945d4c848a
5
5
  SHA512:
6
- metadata.gz: 2f920f8acdbf1d062686b64676b2e9b1ed0d6050cfd3c8e327bfaec1dc736eccb5caa4a98da449db0ddd69456e8f696a6c7a0408ecbaf65d43af8c12e96f088a
7
- data.tar.gz: d940f6ddd1206e851d1bd357c98c3c102b19cf6fd2280cbc25be9bba7f259d9b608e77d27f84fb7e54ee6bb073c78708dde160b571215fafca553fd55cf52eae
6
+ metadata.gz: 59c460858947be1b5c54a89bdc1f60bedd27d62796b779055af562f80e3a2ad89ce294877825a9b6224a2818e3fe420bb2a06ca1bf85092a45960bf141937b50
7
+ data.tar.gz: 4a28bd5c71d8d003b97da3c691faaac97e137719e070b529e793057e600edcfdc6b76846eab6e5ccad19641be29babbdb69fcdcd81c412a4da03767a91bc2da1
@@ -5,7 +5,7 @@ require 'faketree/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'faketree'
8
- spec.version = Faketree::VERSION
8
+ spec.version = FakeTree::VERSION
9
9
  spec.authors = ['Jonathan Arnett']
10
10
  spec.email = ['jonarnett90@gmail.com']
11
11
 
@@ -1,3 +1,5 @@
1
1
  require 'faketree/version'
2
+ require 'yaml'
3
+ require 'fakefs/safe'
2
4
  require 'faketree/base'
3
5
  require 'faketree/runner'
@@ -1,11 +1,9 @@
1
- require 'fakefs/safe'
2
-
3
1
  module FakeTree
4
2
  def self.start!(path_to_yaml)
5
- FakeFS.activate!
3
+ tree_hash = YAML.load(File.read(path_to_yaml))
6
4
 
7
- tree_hash = Yaml.load(File.read(path_to_yaml))
8
- FakeTree::Runner.new.fake(tree_hash)
5
+ FakeFS.activate!
6
+ FakeTree::Runner.new.start(tree_hash)
9
7
  end
10
8
 
11
9
  def self.stop!
@@ -1,3 +1,3 @@
1
- module Faketree
2
- VERSION = '0.1.0'
1
+ module FakeTree
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faketree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Arnett