Active 0.0.26 → 0.0.27

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.
@@ -438,7 +438,7 @@ module Active
438
438
  # reg-not-open – Online registration is available, but is not currently open
439
439
  # reg-closed – The registration deadline has passed
440
440
  # reg-open – Registration is currently open
441
- def regristration_available?
441
+ def regristration_status
442
442
  if @gsa.asset_type_id == "EA4E860A-9DCD-4DAA-A7CA-4A77AD194F65"
443
443
  Net::HTTP.get URI.parse("http://apij.active.com/regcenter/event/#{@gsa.substitutionUrl}/regstatus")
444
444
  elsif @gsa.asset_type_id == "DFAA997A-D591-44CA-9FB7-BF4A4C8984F1"
@@ -407,12 +407,11 @@ describe Activity do
407
407
 
408
408
  end
409
409
  describe "regristration_available?" do
410
- it "should have a valid response for regristration_available?" do
410
+ it "should have a valid response for regristration_status" do
411
411
  results = Search.search( { :num_results => 50, :keywords => ["running"] } )
412
412
  results.should have(50).results
413
- # results.results.first.regristration_available?.should match(/reg-open|reg-unavailable|reg-not-open|reg-closed/)
414
413
  results.results.each do |a|
415
- a.regristration_available?.should match(/reg-open|reg-unavailable|reg-not-open|reg-closed/)
414
+ a.regristration_status.should match(/reg-open|reg-unavailable|reg-not-open|reg-closed/)
416
415
  end
417
416
  end
418
417
  end
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.0.26
1
+ 0.0.27
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 26
9
- version: 0.0.26
8
+ - 27
9
+ version: 0.0.27
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jonathan Spooner, Brian Levine