tekkub-fugit 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/fugit.gemspec +6 -3
- data/lib/fugit/main_frame.rb +13 -1
- data/lib/fugit.rb +3 -1
- metadata +13 -4
- data/SciTE.properties +0 -4
data/VERSION.yml
CHANGED
data/fugit.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{fugit}
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.1"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
6
|
s.authors = ["Tekkub"]
|
@@ -9,21 +9,24 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.description = %q{A cross-platform replacement for git-gui based on wxruby}
|
10
10
|
s.email = %q{tekkub@gmail.com}
|
11
11
|
s.executables = ["fugit"]
|
12
|
-
s.files = ["fugit.gemspec", "SciTE.properties", "VERSION.yml", "bin/fugit", "lib/fugit", "lib/fugit/commit.rb", "lib/fugit/console.rb", "lib/fugit/diff.rb", "lib/fugit/icon_loader.rb", "lib/fugit/index_list.rb", "lib/fugit/main_frame.rb", "lib/fugit/messages.rb", "lib/fugit.rb", "lib/icons", "lib/icons/asterisk_yellow.png", "lib/icons/disk.png", "lib/icons/folder_add.png", "lib/icons/folder_delete.png", "lib/icons/page_add.png", "lib/icons/page_delete.png", "lib/icons/page_down.gif", "lib/icons/page_up.gif", "lib/icons/plus_minus.gif", "lib/icons/script.png", "lib/icons/script_add.png", "lib/icons/script_delete.png", "lib/icons/script_edit.png", "lib/icons/text_signature.png", "lib/icons/tick.png"]
|
12
|
+
s.files = ["fugit.gemspec", "SciTE.properties", "VERSION.yml", "bin/fugit", "lib/fugit", "lib/fugit/commit.rb", "lib/fugit/console.rb", "lib/fugit/diff.rb", "lib/fugit/icon_loader.rb", "lib/fugit/index_list.rb", "lib/fugit/main_frame.rb", "lib/fugit/messages.rb", "lib/fugit/SciTE.properties", "lib/fugit.rb", "lib/icons", "lib/icons/asterisk_yellow.png", "lib/icons/disk.png", "lib/icons/folder_add.png", "lib/icons/folder_delete.png", "lib/icons/page_add.png", "lib/icons/page_delete.png", "lib/icons/page_down.gif", "lib/icons/page_up.gif", "lib/icons/plus_minus.gif", "lib/icons/script.png", "lib/icons/script_add.png", "lib/icons/script_delete.png", "lib/icons/script_edit.png", "lib/icons/text_signature.png", "lib/icons/tick.png"]
|
13
13
|
s.has_rdoc = true
|
14
14
|
s.homepage = %q{http://github.com/tekkub/fugit}
|
15
15
|
s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.rubygems_version = %q{1.2.0}
|
18
|
-
s.summary = %q{
|
18
|
+
s.summary = %q{A cross-platform replacement for git-gui based on wxruby}
|
19
19
|
|
20
20
|
if s.respond_to? :specification_version then
|
21
21
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
22
22
|
s.specification_version = 2
|
23
23
|
|
24
24
|
if current_version >= 3 then
|
25
|
+
s.add_runtime_dependency(%q<wxruby>, [">= 1.9.9"])
|
25
26
|
else
|
27
|
+
s.add_dependency(%q<wxruby>, [">= 1.9.9"])
|
26
28
|
end
|
27
29
|
else
|
30
|
+
s.add_dependency(%q<wxruby>, [">= 1.9.9"])
|
28
31
|
end
|
29
32
|
end
|
data/lib/fugit/main_frame.rb
CHANGED
@@ -6,7 +6,8 @@ module Fugit
|
|
6
6
|
attr_accessor :app_verion, :index, :commit, :diff
|
7
7
|
|
8
8
|
def initialize(title, version)
|
9
|
-
|
9
|
+
pwd = setup_working_directory
|
10
|
+
super(nil, :title => "#{pwd} - #{title}", :size => [ 800, 600 ])
|
10
11
|
|
11
12
|
self.app_verion = version
|
12
13
|
|
@@ -58,6 +59,17 @@ module Fugit
|
|
58
59
|
## Setup ##
|
59
60
|
#####################
|
60
61
|
|
62
|
+
def setup_working_directory
|
63
|
+
orig = Dir.pwd
|
64
|
+
last_dir = nil
|
65
|
+
while !File.exist?(".git") && last_dir != Dir.pwd
|
66
|
+
last_dir = Dir.pwd
|
67
|
+
Dir.chdir("..")
|
68
|
+
end
|
69
|
+
Dir.chdir(orig) unless File.exist?(".git") # We got to the top level without finding a git directory
|
70
|
+
File.basename(Dir.pwd)
|
71
|
+
end
|
72
|
+
|
61
73
|
def setup_panes
|
62
74
|
pi = AuiPaneInfo.new
|
63
75
|
size = Size.new(800, 150)
|
data/lib/fugit.rb
CHANGED
@@ -12,8 +12,10 @@ require "fugit/diff"
|
|
12
12
|
require "fugit/index_list"
|
13
13
|
|
14
14
|
|
15
|
+
version = File.exist?(File.join(File.dirname(__FILE__), "..", ".git")) ? "Developer's alpha" : Gem.searcher.find("fugit").version.to_s rescue "Unknown"
|
16
|
+
|
15
17
|
Wx::App.run do
|
16
18
|
self.app_name = "Fugit"
|
17
|
-
frame = Fugit::MainFrame.new("Fugit",
|
19
|
+
frame = Fugit::MainFrame.new("Fugit", version)
|
18
20
|
frame.show
|
19
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tekkub-fugit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tekkub
|
@@ -11,8 +11,16 @@ cert_chain: []
|
|
11
11
|
|
12
12
|
date: 2009-02-10 00:00:00 -08:00
|
13
13
|
default_executable: fugit
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: wxruby
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.9.9
|
23
|
+
version:
|
16
24
|
description: A cross-platform replacement for git-gui based on wxruby
|
17
25
|
email: tekkub@gmail.com
|
18
26
|
executables:
|
@@ -34,6 +42,7 @@ files:
|
|
34
42
|
- lib/fugit/index_list.rb
|
35
43
|
- lib/fugit/main_frame.rb
|
36
44
|
- lib/fugit/messages.rb
|
45
|
+
- lib/fugit/SciTE.properties
|
37
46
|
- lib/fugit.rb
|
38
47
|
- lib/icons
|
39
48
|
- lib/icons/asterisk_yellow.png
|
@@ -77,6 +86,6 @@ rubyforge_project:
|
|
77
86
|
rubygems_version: 1.2.0
|
78
87
|
signing_key:
|
79
88
|
specification_version: 2
|
80
|
-
summary:
|
89
|
+
summary: A cross-platform replacement for git-gui based on wxruby
|
81
90
|
test_files: []
|
82
91
|
|
data/SciTE.properties
DELETED