dynectastic 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 0.2.3
4
+
5
+ * Fixed "undefined method `each_pair' for false:FalseClass" exception.
6
+
3
7
  == 0.2.2
4
8
 
5
9
  * Ignore Dynect errors when trying to delete a node. Most likely it's already deleted.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -1,69 +1,67 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dynectastic}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilya Sabanin"]
12
- s.date = %q{2011-01-18}
12
+ s.date = %q{2011-02-18}
13
13
  s.description = %q{More or less complete set of tools for managing your Dynect zones, records and nodes via REST API.}
14
14
  s.email = %q{ilya.sabanin@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "CHANGES.rdoc",
23
- "Gemfile",
24
- "Gemfile.lock",
25
- "LICENSE",
26
- "README.rdoc",
27
- "Rakefile",
28
- "VERSION",
29
- "dynectastic.gemspec",
30
- "lib/dynectastic.rb",
31
- "lib/dynectastic/error_translator.rb",
32
- "lib/dynectastic/errors.rb",
33
- "lib/dynectastic/factories/node_factory.rb",
34
- "lib/dynectastic/factories/record_factory.rb",
35
- "lib/dynectastic/factories/zone_factory.rb",
36
- "lib/dynectastic/job.rb",
37
- "lib/dynectastic/record.rb",
38
- "lib/dynectastic/request.rb",
39
- "lib/dynectastic/resource.rb",
40
- "lib/dynectastic/session.rb",
41
- "lib/dynectastic/zone.rb",
42
- "test/helper.rb",
43
- "test/test_node_factory.rb",
44
- "test/test_record.rb",
45
- "test/test_record_factory.rb",
46
- "test/test_request.rb",
47
- "test/test_resource.rb",
48
- "test/test_session.rb",
49
- "test/test_zone.rb",
50
- "test/test_zone_factory.rb"
21
+ "CHANGES.rdoc",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "dynectastic.gemspec",
29
+ "lib/dynectastic.rb",
30
+ "lib/dynectastic/error_translator.rb",
31
+ "lib/dynectastic/errors.rb",
32
+ "lib/dynectastic/factories/node_factory.rb",
33
+ "lib/dynectastic/factories/record_factory.rb",
34
+ "lib/dynectastic/factories/zone_factory.rb",
35
+ "lib/dynectastic/job.rb",
36
+ "lib/dynectastic/record.rb",
37
+ "lib/dynectastic/request.rb",
38
+ "lib/dynectastic/resource.rb",
39
+ "lib/dynectastic/session.rb",
40
+ "lib/dynectastic/zone.rb",
41
+ "test/helper.rb",
42
+ "test/test_node_factory.rb",
43
+ "test/test_record.rb",
44
+ "test/test_record_factory.rb",
45
+ "test/test_request.rb",
46
+ "test/test_resource.rb",
47
+ "test/test_session.rb",
48
+ "test/test_zone.rb",
49
+ "test/test_zone_factory.rb"
51
50
  ]
52
51
  s.homepage = %q{http://github.com/iSabanin/dynectastic}
53
- s.rdoc_options = ["--charset=UTF-8"]
54
52
  s.require_paths = ["lib"]
55
53
  s.rubygems_version = %q{1.3.7}
56
54
  s.summary = %q{Neat wrapper for Dynect REST API.}
57
55
  s.test_files = [
58
56
  "test/helper.rb",
59
- "test/test_node_factory.rb",
60
- "test/test_record.rb",
61
- "test/test_record_factory.rb",
62
- "test/test_request.rb",
63
- "test/test_resource.rb",
64
- "test/test_session.rb",
65
- "test/test_zone.rb",
66
- "test/test_zone_factory.rb"
57
+ "test/test_node_factory.rb",
58
+ "test/test_record.rb",
59
+ "test/test_record_factory.rb",
60
+ "test/test_request.rb",
61
+ "test/test_resource.rb",
62
+ "test/test_session.rb",
63
+ "test/test_zone.rb",
64
+ "test/test_zone_factory.rb"
67
65
  ]
68
66
 
69
67
  if s.respond_to? :specification_version then
@@ -71,13 +69,19 @@ Gem::Specification.new do |s|
71
69
  s.specification_version = 3
72
70
 
73
71
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
72
+ s.add_runtime_dependency(%q<httparty>, ["~> 0.6.1"])
73
+ s.add_runtime_dependency(%q<json>, ["~> 1.4.6"])
74
74
  s.add_runtime_dependency(%q<httparty>, [">= 0.6.1"])
75
75
  s.add_development_dependency(%q<shoulda>, [">= 0"])
76
76
  else
77
+ s.add_dependency(%q<httparty>, ["~> 0.6.1"])
78
+ s.add_dependency(%q<json>, ["~> 1.4.6"])
77
79
  s.add_dependency(%q<httparty>, [">= 0.6.1"])
78
80
  s.add_dependency(%q<shoulda>, [">= 0"])
79
81
  end
80
82
  else
83
+ s.add_dependency(%q<httparty>, ["~> 0.6.1"])
84
+ s.add_dependency(%q<json>, ["~> 1.4.6"])
81
85
  s.add_dependency(%q<httparty>, [">= 0.6.1"])
82
86
  s.add_dependency(%q<shoulda>, [">= 0"])
83
87
  end
@@ -3,7 +3,7 @@ require 'json'
3
3
 
4
4
  module Dynectastic
5
5
 
6
- VERSION = '0.2.2'
6
+ VERSION = '0.2.3'
7
7
  API_URL = 'https://api2.dynect.net'
8
8
  RETRIES = 5
9
9
 
@@ -26,8 +26,9 @@ module Dynectastic
26
26
  request(:delete, *args)
27
27
  end
28
28
 
29
- def attributes=(hash)
30
- hash.each_pair do |name, value|
29
+ def attributes=(smth)
30
+ return smth unless smth.kind_of?(Hash)
31
+ smth.each_pair do |name, value|
31
32
  instance_variable_set("@#{ name }", value)
32
33
  end
33
34
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynectastic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilya Sabanin
@@ -15,13 +15,44 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-18 00:00:00 +07:00
18
+ date: 2011-02-18 00:00:00 +07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
+ prerelease: false
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ hash: 5
29
+ segments:
30
+ - 0
31
+ - 6
32
+ - 1
33
+ version: 0.6.1
22
34
  name: httparty
35
+ requirement: *id001
36
+ type: :runtime
37
+ - !ruby/object:Gem::Dependency
23
38
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ hash: 11
45
+ segments:
46
+ - 1
47
+ - 4
48
+ - 6
49
+ version: 1.4.6
50
+ name: json
51
+ requirement: *id002
52
+ type: :runtime
53
+ - !ruby/object:Gem::Dependency
54
+ prerelease: false
55
+ version_requirements: &id003 !ruby/object:Gem::Requirement
25
56
  none: false
26
57
  requirements:
27
58
  - - ">="
@@ -32,12 +63,12 @@ dependencies:
32
63
  - 6
33
64
  - 1
34
65
  version: 0.6.1
66
+ name: httparty
67
+ requirement: *id003
35
68
  type: :runtime
36
- version_requirements: *id001
37
69
  - !ruby/object:Gem::Dependency
38
- name: shoulda
39
70
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
71
+ version_requirements: &id004 !ruby/object:Gem::Requirement
41
72
  none: false
42
73
  requirements:
43
74
  - - ">="
@@ -46,8 +77,9 @@ dependencies:
46
77
  segments:
47
78
  - 0
48
79
  version: "0"
80
+ name: shoulda
81
+ requirement: *id004
49
82
  type: :development
50
- version_requirements: *id002
51
83
  description: More or less complete set of tools for managing your Dynect zones, records and nodes via REST API.
52
84
  email: ilya.sabanin@gmail.com
53
85
  executables: []
@@ -59,7 +91,6 @@ extra_rdoc_files:
59
91
  - README.rdoc
60
92
  files:
61
93
  - .document
62
- - .gitignore
63
94
  - CHANGES.rdoc
64
95
  - Gemfile
65
96
  - Gemfile.lock
@@ -94,8 +125,8 @@ homepage: http://github.com/iSabanin/dynectastic
94
125
  licenses: []
95
126
 
96
127
  post_install_message:
97
- rdoc_options:
98
- - --charset=UTF-8
128
+ rdoc_options: []
129
+
99
130
  require_paths:
100
131
  - lib
101
132
  required_ruby_version: !ruby/object:Gem::Requirement
data/.gitignore DELETED
@@ -1,24 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC
22
-
23
- ## Bundler
24
- .bundle