target_practice 0.0.2

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.
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source :rubygems
2
+
3
+ gemspec
4
+
5
+ gem 'rake'
6
+
7
+ gem 'minitest'
data/README.md ADDED
@@ -0,0 +1,3 @@
1
+ ## Target Practice
2
+
3
+ A Ruby library for running Target Practice (.tp) test bundles.
@@ -0,0 +1,13 @@
1
+ class TargetPracticeTestCase < MiniTest::Unit::TestCase
2
+ def setup
3
+ assert @@files, "File data was not set!"
4
+ end
5
+
6
+ def files
7
+ @@files
8
+ end
9
+
10
+ def files=(f)
11
+ @@files = f
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ class TargetPractice
2
+ VERSION = '0.0.2'
3
+ end
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+ $LOAD_PATH << '.'
3
+
4
+ require 'rubygems'
5
+
6
+ require 'json'
7
+ require 'minitest/unit'
8
+ require 'target_practice/target_practice_test_case'
9
+
10
+ TMP_FILE = "./tmp/out.png"
11
+ TP_ROOT = "./test/psd.tp/"
12
+
13
+ class TargetPractice
14
+ attr_accessor :pattern, :test_class
15
+
16
+ def initialize(sym)
17
+ @pattern = ""
18
+ @test_class = nil
19
+
20
+ yield self
21
+
22
+ run_tests
23
+ end
24
+
25
+ def run_tests
26
+ files = FileList[@pattern].to_a
27
+ test = @test_class.new(:tests_against_files)
28
+ test.files = files
29
+ MiniTest::Unit.new.run
30
+ end
31
+ end
@@ -0,0 +1,21 @@
1
+ require './lib/target_practice/version'
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{target_practice}
5
+ s.version = TargetPractice::VERSION
6
+
7
+ s.authors = ["Kelly Sutton"]
8
+ s.date = Time.now.utc.strftime("%Y-%m-%d")
9
+ s.description = %q{A Ruby library for running TargetPractice (.tp) test suites.}
10
+ s.email = %q{kelly@layervault.com}
11
+ s.files = Dir.glob("lib/**/*") + [
12
+ "README.md",
13
+ "Gemfile",
14
+ "target_practice.gemspec",
15
+ ]
16
+ s.homepage = %q{http://github.com/layervault/target_practice}
17
+ s.rdoc_options = ["--charset=UTF-8"]
18
+ s.require_paths = ["lib"]
19
+ s.summary = %q{A Ruby library for running TargetPractice (.tp) test suites.}
20
+ end
21
+
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: target_practice
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Kelly Sutton
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-06 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: A Ruby library for running TargetPractice (.tp) test suites.
15
+ email: kelly@layervault.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/target_practice/target_practice_test_case.rb
21
+ - lib/target_practice/version.rb
22
+ - lib/target_practice.rb
23
+ - README.md
24
+ - Gemfile
25
+ - target_practice.gemspec
26
+ homepage: http://github.com/layervault/target_practice
27
+ licenses: []
28
+ post_install_message:
29
+ rdoc_options:
30
+ - --charset=UTF-8
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubyforge_project:
47
+ rubygems_version: 1.8.21
48
+ signing_key:
49
+ specification_version: 3
50
+ summary: A Ruby library for running TargetPractice (.tp) test suites.
51
+ test_files: []