undll32 0.3.2 → 0.3.3

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
  SHA256:
3
- metadata.gz: aca063ca639c9017bfc8235112db4319eb8a6cc2e694cb8edde1f1c4804edde3
4
- data.tar.gz: 5bd1cf3a0dff9ebf9242c48a3efcd52c248da150c196d828476b7d149ced1aa3
3
+ metadata.gz: 720c8d6ccde6cefc4bb4580a87982404b129024025d2f2e5890f84ed07502813
4
+ data.tar.gz: 877280eb8235a5a3315690e72711035c56ac51f9dda5990cc4bc74e8e2899628
5
5
  SHA512:
6
- metadata.gz: e689b61b376d1c540e8021133d9222baba106e324b31b58814f6b3e496286c42f4d651ee810ec3332f24e406882029445399190678a65bb4cb03e0bca6cef465
7
- data.tar.gz: 036e39fcb27201c5148e2396ad6d3a8669930a66b061d7d0b83ffab845261ec8bd12b952c604ce6024cfecfb815427f758f024209bca33666a15351bc3b52209
6
+ metadata.gz: e5aa282ab7b983492990b64cc987fd6639667652a9fd972a798dedbc3c77b84980644d24071977726cda015202e065f86395e054c9353264f2956d805fc0fd41
7
+ data.tar.gz: f8910d1e76cb7277facbbdd0b66c26e2a119beee0c79f5f4a8b171f7a7b63b671002b06bac4c17c6215bd143454338a7495d0e885dfff0959640de1232a7b588
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 hyrious
3
+ Copyright (c) 2019 hyrious
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -22,9 +22,15 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- - `undll32`: `undll32 User32,MessageBox 0 hello world 0`
26
- - `ruby -r`: `ruby -rundll32 -e Undll32.exe -- User32,MessageBox 0 hello world 0`
27
- - Program: `Undll32.run('User32', 'MessageBox', 0, 'hello', 'world', 0)`
25
+ - Command line:
26
+ ```
27
+ undll32 User32,MessageBox 0 hello world 0
28
+ ruby -rundll32 -e Undll32.exe -- User32,MessageBox 0 hello world 0
29
+ ```
30
+ - Program:
31
+ ```ruby
32
+ Undll32.run('User32', 'MessageBox', 0, 'hello', 'world', 0)
33
+ ```
28
34
 
29
35
  ## Development
30
36
 
@@ -52,7 +52,6 @@ module Undll32
52
52
 
53
53
  ##
54
54
  # represents a string/struct.
55
- # a thinner version can be found at hyrious/rgstl/blob/master/scripts/api.rb
56
55
  # Buffer.new({ :x => :L, :y => 4 })
57
56
  # Buffer.new([ :L, 4 ])
58
57
  # Buffer.new(:L)
@@ -271,6 +270,9 @@ module Undll32
271
270
  return help if dllfunc.nil?
272
271
  dll, func = dllfunc.split(',')
273
272
  return help if func.nil?
273
+ dll += '.dll' unless dll.end_with? '.dll'
274
+ realpath = File.expand_path dll
275
+ dll = realpath if File.exist? realpath
274
276
  args.map! do |e|
275
277
  e = e.dup
276
278
  if e.start_with?('+')
@@ -1,3 +1,3 @@
1
1
  module Undll32
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: undll32
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - hyrious
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-27 00:00:00.000000000 Z
11
+ date: 2019-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
- rubygems_version: 3.0.1
80
+ rubygems_version: 3.0.3
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Windows rundll32 replacement.