torkify 0.0.2 → 0.0.3

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: d3a7e8564007cfc37702bcc37cbba490154c0fcd
4
- data.tar.gz: e757b6552cb0cdb63434839d22c3ab9395759f5e
3
+ metadata.gz: 344a8a61e68375a7358e874e40f8d1550e9f7a05
4
+ data.tar.gz: f0ef66b58f309c1081637015afae14261869d081
5
5
  SHA512:
6
- metadata.gz: 3059816687b7ae835341dd7100ed6bcba3c1f7fd4c6465f8010a3179839c7e552d1897b8bebf3eb85f3f21775d5f562d4c0eea4f72aae56cb257524eda060b46
7
- data.tar.gz: 9f13edf48f04710e380723f5b9c43ec4f596bdb2b8d730dca33163b6eae93ec09cf3d70cdb74001c078b37779802add673bc8e33d8feb76faa1e0acc2589f119
6
+ metadata.gz: 0a4bf85b8109773e523fe096bbfa93ca5471ff0e8ebfffb2a81c4a56bafa1eead1edb42a77f1ead7948d20dcb8e06b023b1a19735db3941dae21f08ae0805c36
7
+ data.tar.gz: c94f1ec1b65811b13bd131c991447976c8782f6ecb1c7ff0b80d608c06e8dc51589c1aaefe64723878bb318df6eade8ad5d877340b2b53c957c837def0cec98f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -1,6 +1,10 @@
1
1
  require "torkify/version"
2
2
  require 'log4r'
3
3
 
4
+ unless defined?(TORK_DOLLAR_ZERO)
5
+ TORK_DOLLAR_ZERO = $0
6
+ end
7
+
4
8
  # Listen to tork events and execute ruby code when they happen.
5
9
  #
6
10
  # E.g.
@@ -83,13 +83,12 @@ module Torkify
83
83
  else
84
84
  # Run tork in main process to keep stdin
85
85
  Torkify.logger.info { "Starting tork" }
86
-
87
- $0 = File.basename Dir.pwd
88
86
  Tork::CLIApp.new.loop
89
87
  end
90
88
  end
91
89
 
92
90
  def load_tork
91
+ $0 = File.basename(Dir.pwd)
93
92
  require 'tork/config'
94
93
  require 'tork/cliapp'
95
94
  rescue LoadError
@@ -1,5 +1,14 @@
1
1
  module Torkify::Log
2
- class TestError < Struct.new(:filename, :lnum, :text, :type)
2
+ class TestError
3
+ attr_accessor :filename, :lnum, :text, :type
4
+
5
+ def initialize(filename, lnum, text, type)
6
+ @filename = filename
7
+ @lnum = lnum
8
+ @text = text
9
+ @type = type
10
+ end
11
+
3
12
  def clean_text
4
13
  text.strip
5
14
  end
@@ -1,3 +1,3 @@
1
1
  module Torkify
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torkify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Cairns
@@ -14,70 +14,70 @@ dependencies:
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.7.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.7.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: log4r
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.1.10
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.1.10
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: tork
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '19.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '19.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 2.13.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 2.13.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 10.0.3
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 10.0.3
83
83
  description: Easily create callbacks for automated testing with tork
@@ -87,8 +87,8 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - .gitignore
91
- - .travis.yml
90
+ - ".gitignore"
91
+ - ".travis.yml"
92
92
  - Gemfile
93
93
  - LICENSE.txt
94
94
  - README.md
@@ -147,12 +147,12 @@ require_paths:
147
147
  - lib
148
148
  required_ruby_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  requirements:
155
- - - '>='
155
+ - - ">="
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  requirements: []