enom-api 0.1.4 → 0.2.0

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.2.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{enom-api}
8
- s.version = "0.1.4"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Geoff Garside"]
12
- s.date = %q{2011-04-26}
12
+ s.date = %q{2011-05-17}
13
13
  s.description = %q{Client for communicating with the eNom API}
14
14
  s.email = %q{geoff@geoffgarside.co.uk}
15
15
  s.extra_rdoc_files = [
@@ -35,10 +35,6 @@ Gem::Specification.new do |s|
35
35
  s.require_paths = ["lib"]
36
36
  s.rubygems_version = %q{1.7.2}
37
37
  s.summary = %q{eNom API Client}
38
- s.test_files = [
39
- "test/helper.rb",
40
- "test/test_enom-api.rb"
41
- ]
42
38
 
43
39
  if s.respond_to? :specification_version then
44
40
  s.specification_version = 3
@@ -40,12 +40,13 @@ module EnomAPI
40
40
 
41
41
  # @param [String] first Registrant first name
42
42
  # @param [String] last Registrant last name
43
- # @yield block to configure the registrant, any method on Registrant may be called.
43
+ # @yield registrant
44
+ # @yieldparam [Registrant] registrant receiver to configure
44
45
  def initialize(first, last, &blk)
45
46
  raise ArgumentError, "first and last may not be nil" unless first && last
46
47
 
47
48
  @firstname, @lastname = first, last
48
- instance_eval(&blk) if blk
49
+ yield self if blk
49
50
  end
50
51
 
51
52
  # Converts the object into a form suitable for POSTing to the eNom API
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enom-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 4
10
- version: 0.1.4
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Geoff Garside
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-26 00:00:00 Z
18
+ date: 2011-05-17 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: thoughtbot-shoulda
@@ -117,6 +117,5 @@ rubygems_version: 1.7.2
117
117
  signing_key:
118
118
  specification_version: 3
119
119
  summary: eNom API Client
120
- test_files:
121
- - test/helper.rb
122
- - test/test_enom-api.rb
120
+ test_files: []
121
+