dynectastic 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.rdoc +4 -0
- data/VERSION +1 -1
- data/dynectastic.gemspec +47 -43
- data/lib/dynectastic.rb +1 -1
- data/lib/dynectastic/resource.rb +3 -2
- metadata +43 -12
- data/.gitignore +0 -24
data/CHANGES.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/dynectastic.gemspec
CHANGED
@@ -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
|
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.
|
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-
|
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
|
-
|
17
|
+
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
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
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
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
|
data/lib/dynectastic.rb
CHANGED
data/lib/dynectastic/resource.rb
CHANGED
@@ -26,8 +26,9 @@ module Dynectastic
|
|
26
26
|
request(:delete, *args)
|
27
27
|
end
|
28
28
|
|
29
|
-
def attributes=(
|
30
|
-
|
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.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-
|
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
|
-
|
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
|
-
|
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
|
-
|
128
|
+
rdoc_options: []
|
129
|
+
|
99
130
|
require_paths:
|
100
131
|
- lib
|
101
132
|
required_ruby_version: !ruby/object:Gem::Requirement
|
data/.gitignore
DELETED