delphivm 0.7.4 → 0.7.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b31549013b9505373f9aed7b53695610617c4dff
4
- data.tar.gz: 41380a2214f9e579837d4311a85c49af8dfefda5
3
+ metadata.gz: d7d2acce55cf3d45e6bd0cf88af6fd8b2812f743
4
+ data.tar.gz: 7bfdafdb4536e2a71c6f3953086cd2d741a56d59
5
5
  SHA512:
6
- metadata.gz: 876d2da58ccbc3b4c5b7fdcc3d356ece4e468cb95a6d862e1803ac0380665249ff4a571ac98b2a16a7a90ff3c23b6ad17b9b7a338d34a7e889f0dc5c9c5f99e9
7
- data.tar.gz: 0679b68789c8be610a1af11eb34786bb8a7842b7e2052137a10304ecd85156fa44d350a07a6867a89dec52d3c682a8767531bab28352c6dc7b39386292b6c2fa
6
+ metadata.gz: 021bc9cf2dc28520b3789f2b93bce4c860011dc8b12c3ada9bdc8b6afb5bd0c0aa90b77db726597f06e2dc7f2e32109eebd005decae5ed4d16b599c2de89c043
7
+ data.tar.gz: 364539e676ccdd015a8ddbd65039983dea5860c5956066f8c7be87b0e36c0f65d85905a26b19e6bc58e4e6b34c37d1a34633f13c105d75607f486581e23f02c6
data/.gitignore CHANGED
@@ -2,4 +2,8 @@
2
2
  /out
3
3
  *.zip
4
4
  /vendor/cache
5
- /vendor/imports
5
+ /vendor/imports
6
+ _site
7
+ .DS_Store
8
+ Thumbs.db
9
+ pkg
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ gem "thor"
5
5
  gem "version_info"
6
6
  gem "rubyzip", :require => "zip/zip"
7
7
  gem "ruby-progressbar"
8
- gem "nokogiri", "1.5.7.rc3"
8
+ gem "nokogiri"
9
9
 
10
10
  group :development do
11
11
  gem "ocra"
data/Gemfile.lock CHANGED
@@ -1,18 +1,35 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- nokogiri (1.5.7.rc3-x86-mingw32)
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
- ruby-progressbar (0.0.10)
7
- rubyzip (0.9.6.1)
8
- thor (0.14.6)
9
- version_info (1.7.2)
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
- nokogiri (= 1.5.7.rc3)
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.rb **\\*.thor"
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
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: UTF-8
3
+
3
4
  begin
4
5
  $LOAD_PATH.unshift File.join(File.dirname($0), '..', 'lib')
5
6
 
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
- SendMessageTimeout = Win32API.new('user32', 'SendMessageTimeout', 'LLLPLLP', 'L')
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
- @reg = Win32::Registry::HKEY_CURRENT_USER
139
- IDEInfos.each { |key, data|
140
- @reg.open(data[:regkey]) {|r| result << 'RootDir' } if idetag.nil? || idetag.to_s == key
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.call(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 'Environment', SMTO_ABORTIFHUNG, 5000, 0)
158
+ User32.SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 'Environment', SMTO_ABORTIFHUNG, 5000, 0)
150
159
  end
151
160
  end
152
161
  end
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
  class Delphivm
3
- VERSION = "0.7.4"
3
+ VERSION = "0.7.7"
4
4
  include(VersionInfo)
5
5
  self.VERSION.file_name = __FILE__
6
6
  end
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}/tasks/*.thor", "#{Delphivm::ROOT}/dvm/*.thor"]
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
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
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-18 00:00:00.000000000 Z
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.rb
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.rb
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: []