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.
@@ -4,6 +4,7 @@ module AdobeCRX
4
4
  end
5
5
  end
6
6
 
7
+ require 'adobe_crx/version'
7
8
  require 'adobe_crx/client'
8
9
  require 'adobe_crx/node'
9
10
  require 'adobe_crx/package'
@@ -3,7 +3,7 @@ require 'commander/import'
3
3
  require 'adobe_crx'
4
4
 
5
5
  program :name, 'crx'
6
- program :version, '0.0.1'
6
+ program :version, ADOBE_CRX_VERSION
7
7
  program :description, 'Command line tools for Adobe CRX.'
8
8
 
9
9
  global_option "--host HOSTNAME", String, "crx HOSTNAME"
@@ -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.open(package_file.respond_to?(:path) ? package_file.path : package_file, Zip::ZipFile::CREATE) do |zipfile|
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
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
@@ -1 +1 @@
1
- ADOBE_CRX_VERSION = "0.0.3"
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: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
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-27 00:00:00 -06:00
18
+ date: 2012-07-30 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency