sant0sk1-dreamy 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -19,6 +19,7 @@ begin
19
19
  gemspec.homepage = "http://github.com/sant0sk1/dreamy"
20
20
  gemspec.authors = ["Jerod Santo"]
21
21
  gemspec.add_dependency('visionmedia-terminal-table', '>= 1.0.5')
22
+ gemspec.add_dependency('hpricot','>= 0.7')
22
23
  gemspec.files.exclude 'test/credentials.yml'
23
24
  end
24
25
  rescue LoadError
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 1
2
+ :patch: 2
3
3
  :major: 0
4
4
  :minor: 2
data/lib/dreamy/dns.rb CHANGED
@@ -8,8 +8,7 @@ module Dreamy
8
8
  d = new
9
9
  d.account_id = (xml).at('account_id').innerHTML
10
10
  d.comment = (xml).at('comment').innerHTML
11
- # TODO - enable this if DH guys change the API as requested
12
- # d.editable = (xml).at('editable').innerHTML
11
+ d.editable = (xml).at('editable').innerHTML
13
12
  d.record = (xml).at('record').innerHTML
14
13
  d.type = (xml).at('type').innerHTML
15
14
  d.value = (xml).at('value').innerHTML
@@ -7,7 +7,7 @@ module Dreamy
7
7
  def self.new_from_xml(xml)
8
8
  s = new
9
9
  s.email = (xml).at('email').innerHTML
10
- # s.confirmed = (xml).at('confirmed').innerHTML
10
+ s.confirmed = (xml).at('confirmed').innerHTML
11
11
  s.subscribe_date = (xml).at('subscribe_date').innerHTML
12
12
  s.name = (xml).at('name').innerHTML
13
13
  s.num_bounces = (xml).at('num_bounces').innerHTML
data/test/dns_test.rb CHANGED
@@ -8,7 +8,7 @@ class DreamyDnsTest < Test::Unit::TestCase
8
8
  <data>
9
9
  <account_id>8675309</account_id>
10
10
  <comment></comment>
11
- <editable?>0</editable?>
11
+ <editable>0</editable>
12
12
  <record>anessalee.net</record>
13
13
  <type>A</type>
14
14
  <value>202.22.191.4</value>
@@ -21,7 +21,7 @@ EOF
21
21
  d = Dreamy::Dns.new_from_xml(Hpricot.XML(@xml))
22
22
  assert_equal "8675309", d.account_id
23
23
  assert_equal "", d.comment
24
- # assert_equal "0", d.editable
24
+ assert_equal "0", d.editable
25
25
  assert_equal "anessalee.net", d.record
26
26
  assert_equal "A", d.type
27
27
  assert_equal "202.22.191.4", d.value
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sant0sk1-dreamy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerod Santo
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-19 00:00:00 -07:00
12
+ date: 2009-04-23 00:00:00 -07:00
13
13
  default_executable: dh
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,6 +22,16 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: 1.0.5
24
24
  version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: hpricot
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0.7"
34
+ version:
25
35
  description:
26
36
  email: jerod.santo@gmail.com
27
37
  executables: