juju 0.0.6 → 0.0.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGY4MDc2NGRiODRlZTM5NDI2NzQ3NDUxZjNkN2Y2ZjM0Mzk1ZWQ2MQ==
4
+ YzM5NjExZTdkNGI4ZWQwZTljMjQwZTliNDkxYmFmMmVhOTQyYTE5ZQ==
5
5
  data.tar.gz: !binary |-
6
- MzU5NWNkMmUwMGY4OTdhNWRhNjE1NTZmZjY3MWRiNWQwZGFkNTRhYw==
6
+ NDEzZDllNDZiNzBhNzRlNzc1MGJjNjJjZmJjMjcwYTBiOGMzNTU1OQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjlkMTE1NTE2NTQwYzA3NjU5NDYzMDI0YWNkNDZmZDE0Y2M3NWYxNzMzYzA3
10
- ODhkM2NjN2YxYzA3Y2YwY2JjYWFjNGI5MTRjNzU3NGZhODE3NmYyNTYyZjc5
11
- MjU4MjY4MWQ5ZTgxZGNkNzVkYjQ3MjAyZGU3Y2Y3OWU2NjEwNTM=
9
+ ZDBiYTdjYzc2NTY2OWI0Y2Q5ODQ1YWY5MTg1YzAxYTA3MTJkM2RhOTJlMTUy
10
+ OWQzOGNmMjMxZGQ0ZjZiNjYyMzk5MDNmZDliMzYwZWYwNWQ5MjNmMWFhMDhm
11
+ NDQ2MDY3ZDcxYTY2NDJiZjkyYjdlYmQyODY5MDhiZGJlMDJiNTM=
12
12
  data.tar.gz: !binary |-
13
- YWMyYTRkMjAwZDFhZjlmZjE5Nzk2YzFiMjNlNzQxNTA2ZjczYzU3NjAwZDU3
14
- YjdlMWM0ZjhhNmY5OTZlOWZiYWY1M2Q5YmQ2OTg2MDJlY2JlNjJhNmY5M2Fi
15
- MDI4ODJjNWNjZThmOWM1YWMxNzhiMjg0NWU0NTQ1MzQ2MDllMDY=
13
+ MGU4MzE0M2I5NTMzOGVhMGE3MDY3NDg0YTZjZjdkNmMwOTEyNWNmNjIwMzEx
14
+ ODRhMzdiYjA2MmE3MWY1MDQ3YmM0NTMyNmUyZDc5MDhmYWE2MjE3YjQxYzE5
15
+ MGE5Y2I4ZWVhZTMxZGU5ZjI5ZjEwODg3OGY5YzdmZGQ3M2E0Yjg=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- juju (0.0.5)
4
+ juju (0.0.7)
5
5
  htmlentities
6
6
  rest-client
7
7
 
@@ -9,7 +9,7 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  htmlentities (4.3.1)
12
- mime-types (1.23)
12
+ mime-types (1.25)
13
13
  rake (10.1.0)
14
14
  rest-client (1.6.7)
15
15
  mime-types (>= 1.16)
data/lib/juju/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Juju
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
4
4
 
data/lib/juju.rb CHANGED
@@ -35,6 +35,7 @@ protected
35
35
  rescue => ex
36
36
  logger = Logger.new("log/juju.log")
37
37
  logger.info ("#{Time.now.strftime("%m/%d/%Y at %I:%M%p")} #{ex.message} \nParsed data from Juju: \n#{from_xml.inspect}")
38
+ JujuResult.new([])
38
39
  end
39
40
 
40
41
  def remove_spaces_and_tags(jobs)
@@ -59,7 +60,7 @@ class JujuError < StandardError; end
59
60
  class JujuResult < Array
60
61
  attr_accessor :total, :start_index, :per_page
61
62
 
62
- def initialize(jobs_array, total, start_index, per_page)
63
+ def initialize(jobs_array, total = nil, start_index = nil, per_page = nil)
63
64
  super(jobs_array)
64
65
  self.total = total.to_i
65
66
  self.start_index = start_index.to_i
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: juju
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elena Burachevskaya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-29 00:00:00.000000000 Z
11
+ date: 2013-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler