rego 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +8 -8
  2. data/bin/rego +5 -7
  3. data/lib/rego.rb +2 -2
  4. data/rego.gemspec +2 -2
  5. metadata +4 -4
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzBhODQ2YjcxN2Q0OTIwYWM1Zjg5YTY1YzllOGRkOTg4ODBjMDU3Mw==
4
+ Mjk3YzJkZGZjODNkMzJiMTI0M2Q2MTZiOTNlOTYxYWEwZTQwMWM2Yg==
5
5
  data.tar.gz: !binary |-
6
- Yjk2Y2YzN2IzYWNkZTI5MGU4YjFmMDljNTJiYjgyYWFkNjRlYmE0ZQ==
6
+ ZDFlMTIzZmJiN2ZlYmVmN2E1NGY4ZGFiYmE3OTRkZDMzOWFmZDExZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YTQyN2IyODlkYTZiYzFlNGM2YWIxN2YxMDMzMjRiYzE3NWMxYjZlNThhZGYy
10
- ZGFhNGFmY2ZkMDk3OTAxYTdmNjRhMWIwMWIyOTEyYzI5NTY5OTE5YWNjNDQw
11
- N2FhMzAwN2QwNjdhMGQ5ZmJlYzhkNTljNjk2MjVmN2U0Y2U1MGU=
9
+ OTI0OWYzZjA5NjRjZjkwZGJmYzkwNzFmODNhZjA4Nzk3YjE2Mjk5OTUwYmMx
10
+ NDQ5NWM2MjNiYjVjMTM5YzRjMTY0MzZjODAzZjgwYzBmNDYzNTg0Y2U1NjVh
11
+ Mzk2NjM0MDIzYjI3ZTY0YjllOTIxYTNjNTUzMTYwODgzM2MzNDE=
12
12
  data.tar.gz: !binary |-
13
- ZjY0ZWU5YWE2YWMwZmJmNDM2OWMxM2M5YTViMjljMWUwNjAwN2UwYWQyMTdl
14
- NGYyNmQxYjQ2ZDJmN2E0YzFmZmE3ZmI3YjllYzc0Zjg4MmIyMDUzZmYwMGE0
15
- M2Y0ZGYzYjE3MGFhN2Q5NjVjMGE3ZDZmOTU1YzBkNDkyZTc3MGM=
13
+ ZTFjZGFiNzgxYzAxODAyNzlmMmM4ZTRkMjExOTkyMzc5MmE5YzRjNGNiY2My
14
+ MWQ2MGRlMWQ0YzM1OTU2NjNkYWM3ZjlmMDkxZTVlMjVkMGEwMjgwNTcwN2Nl
15
+ YmUwYmNiYTVjZThjNWE4OTI1MTI3OGYxNzgyYTYzZWViNjcwZTg=
data/bin/rego CHANGED
@@ -138,7 +138,7 @@ Main {
138
138
  #
139
139
  rego =
140
140
  proc do |*args|
141
- path = args.flatten.compact.shift
141
+ path = args.flatten.compact.shift.to_s
142
142
 
143
143
  cmd =
144
144
  if @command
@@ -163,21 +163,19 @@ Main {
163
163
 
164
164
  #
165
165
  q = Queue.new
166
- @started_at = nil
167
- @fucking_hack = 1.42
168
166
 
169
167
  Thread.new do
170
168
  loop do
171
169
  args = q.pop
172
170
 
173
- running_for = Time.now.to_f - @started_at
174
-
175
- if running_for > @fucking_hack
171
+ begin
176
172
  rego.call(*args)
173
+ rescue Object
177
174
  end
178
175
  end
179
176
  end
180
-
177
+
178
+ rego.call(:__START__)
181
179
 
182
180
  #
183
181
  fsevent = FSEvent.new
@@ -4,7 +4,7 @@ require 'yaml'
4
4
  require 'tmpdir'
5
5
 
6
6
  module Rego
7
- Version = '1.7.0' unless defined?(Version)
7
+ Version = '1.8.0' unless defined?(Version)
8
8
 
9
9
  def version
10
10
  Rego::Version
@@ -12,7 +12,7 @@ module Rego
12
12
 
13
13
  def dependencies
14
14
  {
15
- 'main' => [ 'main' , ' >= 4.8' ] ,
15
+ 'main' => [ 'main' , ' >= 6.0' ] ,
16
16
  'rb-fsevent' => [ 'rb-fsevent' , ' >= 0.9.4' ] ,
17
17
  }
18
18
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rego"
6
- spec.version = "1.7.0"
6
+ spec.version = "1.8.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rego"
9
9
  spec.description = "description: rego kicks the ass"
@@ -25,7 +25,7 @@ Gem::Specification::new do |spec|
25
25
  spec.test_files = nil
26
26
 
27
27
 
28
- spec.add_dependency(*["main", " >= 4.8"])
28
+ spec.add_dependency(*["main", " >= 6.0"])
29
29
 
30
30
  spec.add_dependency(*["rb-fsevent", " >= 0.9.4"])
31
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rego
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-01 00:00:00.000000000 Z
11
+ date: 2014-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: main
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
- version: '4.8'
19
+ version: '6.0'
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
- version: '4.8'
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rb-fsevent
29
29
  requirement: !ruby/object:Gem::Requirement