genki-trident 0.0.3 → 0.0.4

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.
Files changed (5) hide show
  1. data/ChangeLog +4 -0
  2. data/Rakefile +2 -1
  3. data/bin/trident +6 -2
  4. data/lib/trident.rb +4 -1
  5. metadata +12 -4
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.4 / 2008-09-13
2
+
3
+ * Corresponded to Mac environment.
4
+
1
5
  == 0.0.3 / 2008-07-17
2
6
 
3
7
  * Run irb if the current dir is not of Rails app.
data/Rakefile CHANGED
@@ -8,6 +8,7 @@ require 'rake/rdoctask'
8
8
  require 'rake/contrib/rubyforgepublisher'
9
9
  require 'rake/contrib/sshpublisher'
10
10
  require 'fileutils'
11
+ require 'lib/trident'
11
12
  include FileUtils
12
13
 
13
14
  NAME = "trident"
@@ -17,7 +18,7 @@ DESCRIPTION = ""
17
18
  RUBYFORGE_PROJECT = "trident"
18
19
  HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
19
20
  BIN_FILES = %w(trident)
20
- VERS = "0.0.3"
21
+ VERS = Trident::VERSION
21
22
 
22
23
  REV = File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
23
24
  CLEAN.include ['**/.*.sw?', '*.gem', '.config']
data/bin/trident CHANGED
@@ -1,12 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ TRIDENT_PATH = File.join(File.dirname(__FILE__), %w(.. lib trident))
4
+
3
5
  if File.exist?('config/environment.rb')
4
6
  tail = Process.fork{exec 'tail -f log/development.log'}
5
7
  autotest = Process.fork{exec 'autotest -f'}
6
- system './script/console --irb="irb -rtrident"'
8
+ ENV['TRIDENT_PID'] = autotest.to_s
9
+ system %{./script/console --irb="irb -r#{TRIDENT_PATH}"}
7
10
  Process.kill(:HUP, tail, autotest)
8
11
  else
9
12
  autotest = Process.fork{exec 'autotest -f'}
10
- system 'irb -rtrident'
13
+ ENV['TRIDENT_PID'] = autotest.to_s
14
+ system %{irb -r#{TRIDENT_PATH}}
11
15
  Process.kill(:HUP, autotest)
12
16
  end
data/lib/trident.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  module Trident
2
+ VERSION = '0.0.4'
3
+
2
4
  def self.reload
3
- system 'killall -INT autotest'
5
+ pid = ENV['TRIDENT_PID']
6
+ system "kill -INT #{pid}"
4
7
  end
5
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genki-trident
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Takiuchi
@@ -9,10 +9,18 @@ autorequire: ""
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-17 00:00:00 -07:00
12
+ date: 2008-09-13 00:00:00 -07:00
13
13
  default_executable: trident
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: redgreen
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.2.2
23
+ version:
16
24
  description: ""
17
25
  email: genki@s21g.com
18
26
  executables: