delphivm 0.7.4 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +23 -6
- data/Rakefile +1 -0
- data/Thorfile.thor +1 -9
- data/bin/{delphivm.rb → delphivm} +1 -0
- data/delphivm.gemspec +1 -1
- data/lib/delphivm/ide_services.rb +15 -6
- data/lib/delphivm/version.rb +1 -1
- data/lib/delphivm.rb +2 -5
- data/lib/{tasks → dvm}/ide.thor +0 -0
- data/lib/{tasks → dvm}/project.thor +0 -0
- data/lib/{tasks → dvm}/vendor.thor +0 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7d2acce55cf3d45e6bd0cf88af6fd8b2812f743
|
4
|
+
data.tar.gz: 7bfdafdb4536e2a71c6f3953086cd2d741a56d59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 021bc9cf2dc28520b3789f2b93bce4c860011dc8b12c3ada9bdc8b6afb5bd0c0aa90b77db726597f06e2dc7f2e32109eebd005decae5ed4d16b599c2de89c043
|
7
|
+
data.tar.gz: 364539e676ccdd015a8ddbd65039983dea5860c5956066f8c7be87b0e36c0f65d85905a26b19e6bc58e4e6b34c37d1a34633f13c105d75607f486581e23f02c6
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,18 +1,35 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
|
4
|
+
colorize (0.5.8)
|
5
|
+
coveralls (0.6.3)
|
6
|
+
colorize
|
7
|
+
multi_json (~> 1.3)
|
8
|
+
rest-client
|
9
|
+
simplecov (>= 0.7)
|
10
|
+
thor
|
11
|
+
mime-types (1.21)
|
12
|
+
multi_json (1.7.2)
|
13
|
+
nokogiri (1.5.9)
|
14
|
+
nokogiri (1.5.9-x86-mingw32)
|
5
15
|
ocra (1.3.0)
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
16
|
+
rest-client (1.6.7)
|
17
|
+
mime-types (>= 1.16)
|
18
|
+
ruby-progressbar (1.0.2)
|
19
|
+
rubyzip (0.9.9)
|
20
|
+
simplecov (0.7.1)
|
21
|
+
multi_json (~> 1.0)
|
22
|
+
simplecov-html (~> 0.7.1)
|
23
|
+
simplecov-html (0.7.1)
|
24
|
+
thor (0.18.0)
|
25
|
+
version_info (1.7.6)
|
10
26
|
|
11
27
|
PLATFORMS
|
12
28
|
x86-mingw32
|
13
29
|
|
14
30
|
DEPENDENCIES
|
15
|
-
|
31
|
+
coveralls
|
32
|
+
nokogiri
|
16
33
|
ocra
|
17
34
|
ruby-progressbar
|
18
35
|
rubyzip
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/Thorfile.thor
CHANGED
@@ -6,19 +6,11 @@ require 'delphivm/version'
|
|
6
6
|
|
7
7
|
VersionInfo.install_tasks(:target => Delphivm)
|
8
8
|
|
9
|
-
|
10
|
-
module Thor::Util
|
11
|
-
SEARCH_ROOT = File.dirname(__FILE__)
|
12
|
-
# redefine to search tasks only for this app
|
13
|
-
def self.load_thorfile(path, content=nil, debug=false)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
9
|
class Build < Thor
|
18
10
|
desc "ocra", "compile script with ocra"
|
19
11
|
def ocra
|
20
12
|
root = Pathname.getwd
|
21
13
|
(root + 'out').mkpath
|
22
|
-
system "ocra --icon delphi_PROJECTICON.ico --output ./out/DelphiVM.exe --no-enc --gem-full --console bin\\delphivm
|
14
|
+
system "ocra --icon delphi_PROJECTICON.ico --output ./out/DelphiVM.exe --no-enc --gem-full --console bin\\delphivm **\\*.thor"
|
23
15
|
end
|
24
16
|
end
|
data/delphivm.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.rubyforge_project = "delphivm"
|
17
17
|
|
18
18
|
s.files = `git ls-files`.split("\n")
|
19
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.test_files = `git ls-files -- {test, spec, features}/*`.split("\n")
|
20
20
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
21
|
s.require_paths = ["lib"]
|
22
22
|
|
@@ -1,6 +1,14 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
|
3
|
+
require 'fiddle'
|
4
|
+
require 'fiddle/import'
|
5
|
+
|
6
|
+
module User32
|
7
|
+
extend Fiddle::Importer
|
8
|
+
dlload 'user32'
|
9
|
+
extern 'long SendMessageTimeout(long, long, long, void*, long, long, void*)'
|
10
|
+
end
|
11
|
+
|
4
12
|
HWND_BROADCAST = 0xffff
|
5
13
|
WM_SETTINGCHANGE = 0x001A
|
6
14
|
SMTO_ABORTIFHUNG = 2
|
@@ -135,10 +143,11 @@ class Delphivm
|
|
135
143
|
|
136
144
|
def self.ide_paths(idetag=nil)
|
137
145
|
result = []
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
146
|
+
IDEInfos.each { |key, info|
|
147
|
+
Win32::Registry::HKEY_CURRENT_USER.open(info[:regkey]){|r|
|
148
|
+
result << r['RootDir'] if (idetag.nil? || idetag.to_s == key)
|
149
|
+
} rescue true
|
150
|
+
}
|
142
151
|
result
|
143
152
|
end
|
144
153
|
|
@@ -146,7 +155,7 @@ class Delphivm
|
|
146
155
|
Win32::Registry::HKEY_CURRENT_USER.open('Environment', Win32::Registry::KEY_WRITE) do |r|
|
147
156
|
r['PATH'] = path
|
148
157
|
end
|
149
|
-
SendMessageTimeout
|
158
|
+
User32.SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 'Environment', SMTO_ABORTIFHUNG, 5000, 0)
|
150
159
|
end
|
151
160
|
end
|
152
161
|
end
|
data/lib/delphivm/version.rb
CHANGED
data/lib/delphivm.rb
CHANGED
@@ -5,7 +5,6 @@ require 'thor'
|
|
5
5
|
require 'pathname'
|
6
6
|
|
7
7
|
Delphivm = Thor
|
8
|
-
|
9
8
|
class Delphivm
|
10
9
|
ROOT = ::Pathname.getwd
|
11
10
|
end
|
@@ -16,12 +15,11 @@ require 'open3'
|
|
16
15
|
require 'nokogiri'
|
17
16
|
|
18
17
|
require 'win32/registry.rb'
|
19
|
-
require 'Win32API'
|
20
18
|
|
21
19
|
require 'version_info'
|
22
20
|
require 'open-uri'
|
23
21
|
require 'net/http'
|
24
|
-
require 'progressbar'
|
22
|
+
require 'ruby-progressbar'
|
25
23
|
|
26
24
|
require 'extensions'
|
27
25
|
require 'delphivm/version'
|
@@ -50,11 +48,10 @@ module Thor::Util #:nodoc:
|
|
50
48
|
SEARCH_ROOT = File.dirname(__FILE__)
|
51
49
|
# redefine to search tasks only for this app
|
52
50
|
def self.globs_for(path)
|
53
|
-
["#{SEARCH_ROOT}/
|
51
|
+
["#{SEARCH_ROOT}/dvm/*.thor", "#{Delphivm::ROOT}/dvm/*.thor"]
|
54
52
|
end
|
55
53
|
end
|
56
54
|
|
57
|
-
|
58
55
|
class BuildTarget < Thor
|
59
56
|
attr_accessor :idetag
|
60
57
|
attr_accessor :config
|
data/lib/{tasks → dvm}/ide.thor
RENAMED
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delphivm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge L. Cangas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -42,7 +42,7 @@ description: Easy way to invoke tasks for all your IDE versions from the command
|
|
42
42
|
email:
|
43
43
|
- jorge.cangas@gmail.com
|
44
44
|
executables:
|
45
|
-
- delphivm
|
45
|
+
- delphivm
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
@@ -50,8 +50,9 @@ files:
|
|
50
50
|
- Gemfile
|
51
51
|
- Gemfile.lock
|
52
52
|
- README.md
|
53
|
+
- Rakefile
|
53
54
|
- Thorfile.thor
|
54
|
-
- bin/delphivm
|
55
|
+
- bin/delphivm
|
55
56
|
- delphi_PROJECTICON.ico
|
56
57
|
- delphivm.gemspec
|
57
58
|
- dvmimports.org/.gitignore
|
@@ -96,10 +97,10 @@ files:
|
|
96
97
|
- lib/delphivm/dsl.rb
|
97
98
|
- lib/delphivm/ide_services.rb
|
98
99
|
- lib/delphivm/version.rb
|
100
|
+
- lib/dvm/ide.thor
|
101
|
+
- lib/dvm/project.thor
|
102
|
+
- lib/dvm/vendor.thor
|
99
103
|
- lib/extensions.rb
|
100
|
-
- lib/tasks/ide.thor
|
101
|
-
- lib/tasks/project.thor
|
102
|
-
- lib/tasks/vendor.thor
|
103
104
|
- vendor/imports.dvm
|
104
105
|
homepage: http://github.com/jcangas/delphivm
|
105
106
|
licenses: []
|