adobe_crx 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.
- data/lib/adobe_crx.rb +1 -0
- data/lib/adobe_crx/cli.rb +1 -1
- data/lib/adobe_crx/client.rb +2 -0
- data/lib/adobe_crx/package_utils.rb +6 -7
- data/lib/adobe_crx/version.rb +1 -1
- metadata +4 -4
data/lib/adobe_crx.rb
CHANGED
data/lib/adobe_crx/cli.rb
CHANGED
data/lib/adobe_crx/client.rb
CHANGED
@@ -85,6 +85,7 @@ class AdobeCRX::Client
|
|
85
85
|
req.basic_auth(@username, @password)
|
86
86
|
result = Hash.new
|
87
87
|
Net::HTTP.start(@host, @port) do |http|
|
88
|
+
http.read_timeout = 500
|
88
89
|
response = http.request(req)
|
89
90
|
result.merge! JSON.parse(response.body)
|
90
91
|
end
|
@@ -125,6 +126,7 @@ class AdobeCRX::Client
|
|
125
126
|
'_charset_' => 'utf-8',
|
126
127
|
'path' => create_result['path'],
|
127
128
|
'packageName' => package.name,
|
129
|
+
'description' => '',
|
128
130
|
'groupName' => 'automated-exports',
|
129
131
|
'filter' => package.filters.to_json
|
130
132
|
)
|
@@ -3,13 +3,12 @@ require 'rexml/document'
|
|
3
3
|
|
4
4
|
class AdobeCRX::PackageUtils
|
5
5
|
def self.get_package_properties(package_file)
|
6
|
-
Zip::ZipFile.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
end
|
12
|
-
return properties
|
6
|
+
zipfile = Zip::ZipFile.new package_file.respond_to?(:path) ? package_file.path : package_file
|
7
|
+
doc = REXML::Document.new(zipfile.read("META-INF/vault/properties.xml"))
|
8
|
+
properties = Hash.new
|
9
|
+
doc.elements.each("//properties/entry") do |ele|
|
10
|
+
properties[ele.attributes['key']] = ele.text
|
13
11
|
end
|
12
|
+
return properties
|
14
13
|
end
|
15
14
|
end
|
data/lib/adobe_crx/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ADOBE_CRX_VERSION = "0.0.
|
1
|
+
ADOBE_CRX_VERSION = "0.0.4"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adobe_crx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Todd Tomkinson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-07-
|
18
|
+
date: 2012-07-30 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|