nephophobia 0.0.7 → 0.0.8

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/.gitignore CHANGED
@@ -1,2 +1,4 @@
1
+ *.gem
1
2
  .bundle
3
+ Gemfile.lock
2
4
  pkg/*
data/README.md CHANGED
@@ -16,6 +16,10 @@ Compatibility with [VCR](https://github.com/myronmarston/vcr) largely drove this
16
16
 
17
17
  See the examples section in the [wiki](http://github.com/retr0h/nephophobia/wiki).
18
18
 
19
+ ## Compatability
20
+
21
+ ruby 1.9.2
22
+
19
23
  ## Testing
20
24
 
21
25
  Tests can run offline thanks to [VCR](https://github.com/myronmarston/vcr).
data/lib/nephophobia.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require "aws"
2
2
  require "hashify"
3
+ require "date"
3
4
  require "nephophobia/client"
4
5
  require "nephophobia/compute"
5
6
  require "nephophobia/image"
@@ -16,7 +16,7 @@ module Nephophobia
16
16
  @private_dns_name = item['privateDnsName']
17
17
  @image_id = item['imageId']
18
18
  @dns_name = item['dnsName']
19
- @launch_time = Time.new(item['launchTime']).utc
19
+ @launch_time = DateTime.parse(item['launchTime'])
20
20
  @placement = item['placement']['availabilityZone']
21
21
  @instance_type = item['instanceType']
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module Nephophobia
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/nephophobia.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_dependency "hugs", "~> 2.5.0"
22
+ s.add_dependency "hugs", "~> 2.5.2"
23
23
 
24
24
  s.add_development_dependency "fakeweb", "~> 1.3.0"
25
25
  s.add_development_dependency "minitest", "~> 2.0.2"
@@ -102,7 +102,7 @@ describe Nephophobia::Compute do
102
102
  compute.private_dns_name.must_be_nil # fix
103
103
  compute.image_id.must_equal "ami-usc3oydl"
104
104
  compute.dns_name.must_be_nil # fix
105
- compute.launch_time.must_equal Time.new("2011-02-21 17:54:35").utc
105
+ compute.launch_time.must_equal DateTime.parse("2011-03-15 07:05:27")
106
106
  compute.placement.must_equal "nova"
107
107
  compute.instance_type.must_equal "m1.small"
108
108
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: nephophobia
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.7
5
+ version: 0.0.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Dewey
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-03-15 00:00:00 -07:00
14
+ date: 2011-04-13 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -22,7 +22,7 @@ dependencies:
22
22
  requirements:
23
23
  - - ~>
24
24
  - !ruby/object:Gem::Version
25
- version: 2.5.0
25
+ version: 2.5.2
26
26
  type: :runtime
27
27
  version_requirements: *id001
28
28
  - !ruby/object:Gem::Dependency
@@ -94,7 +94,6 @@ files:
94
94
  - .gitignore
95
95
  - .rvmrc
96
96
  - Gemfile
97
- - Gemfile.lock
98
97
  - README.md
99
98
  - Rakefile
100
99
  - lib/aws.rb
data/Gemfile.lock DELETED
@@ -1,33 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- nephophobia (0.0.6)
5
- hugs (~> 2.5.0)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- fakeweb (1.3.0)
11
- hugs (2.5.0)
12
- multipart-post (~> 1.0.1)
13
- net-http-persistent (~> 1.4.1)
14
- nokogiri (~> 1.4.4)
15
- yajl-ruby (~> 0.7.9)
16
- minitest (2.0.2)
17
- multipart-post (1.0.1)
18
- net-http-persistent (1.4.1)
19
- nokogiri (1.4.4)
20
- rake (0.8.7)
21
- vcr (1.5.0)
22
- yajl-ruby (0.7.9)
23
-
24
- PLATFORMS
25
- ruby
26
-
27
- DEPENDENCIES
28
- fakeweb (~> 1.3.0)
29
- minitest (~> 2.0.2)
30
- nephophobia!
31
- nokogiri (~> 1.4.4)
32
- rake (~> 0.8.7)
33
- vcr (= 1.5.0)