magicspec 0.0.6 → 0.0.7

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: 62765281aa56fd7b53cc356fdd44b27fefbbc85d
4
- data.tar.gz: e8b13150816cb2c815122094dcb5e43e14908e0a
3
+ metadata.gz: 75e5137fdef8e8b8e7dccb7b4168ef20ce7f7889
4
+ data.tar.gz: 7bb6ef6c0fb5606d4aa8f4e1d21db850db78f622
5
5
  SHA512:
6
- metadata.gz: d5e59c02d6a2768f4e19cd4419c1689293df3741d7e45b0ced8aeaf76c7e7c9d08ae78454c5590e52759ac2a31840bf4ec334eba6d366b8450fa25a200955875
7
- data.tar.gz: ac72930e5c3c9ce648475fdfb7b47b1ce45914301abe5f3407e7222495bfa7618303547027db20988ce4a2cd93b7e108b21097f67283b03ddb2d3acf04a8a821
6
+ metadata.gz: 7c131f73ab23d27dbbd2cd982c135052d291b13dd8807fd22ecd1d34e4f718ee2f902bed97bd645463ddd86a051d2c3d067ea1e9349680f84942b7b0ab95ba1c
7
+ data.tar.gz: c70046183b2c3da5d5fb65129cde1f23a090c348a3654db8c9d47307309f3beacfd35b5b65c6d68324da4457f9c7007e242111b1606fc405a33dfe2c496c1d34
@@ -4,7 +4,6 @@ require 'psych'
4
4
  require 'rspec-rerun'
5
5
  require 'fuubar'
6
6
  require 'magicspec'
7
- require 'active_record'
8
7
  require 'net/http'
9
8
  require 'watir-browser-factory'
10
9
 
@@ -120,13 +119,13 @@ RSpec.configure do |c|
120
119
  end
121
120
 
122
121
  # If there is a tag value and no one has passed a filter to rspec use the config
123
- if $config.tags && c.inclusion_filter.empty?
124
- unless($config.tags.empty?)
122
+ if $config["tags"] && c.inclusion_filter.empty?
123
+ unless($config["tags"].empty?)
125
124
  tags = case
126
125
  when String
127
- $config.tags.lazy_to_hash
126
+ $config["tags"].lazy_to_hash
128
127
  when Hash
129
- $config.tags
128
+ $config["tags"]
130
129
  end #case
131
130
  c.filter_run tags
132
131
  end
@@ -142,4 +141,4 @@ RSpec.configure do |c|
142
141
  end
143
142
  Psych.load ERB.new(content).result(binding)
144
143
  end
145
- end
144
+ end
@@ -8,8 +8,7 @@ module Magicspec
8
8
 
9
9
  def initialize filepath
10
10
  @f ||= filepath if valid?(filepath)
11
- File.open(@f) {|handle| @hash_content = YAML.load(handle)}
12
- @content = OpenStruct.new(@hash_content)
11
+ File.open(@f) {|handle| @content = YAML.load(handle)}
13
12
  end
14
13
 
15
14
  def valid?(filepath)
data/magicspec.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "magicspec"
8
- s.version = "0.0.6"
8
+ s.version = "0.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["dmfranko"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magicspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - dmfranko