Active 0.0.31 → 0.0.32

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/bin/Active CHANGED
File without changes
data/lib/.DS_Store ADDED
Binary file
Binary file
@@ -1,4 +1,3 @@
1
- require 'rubygems'
2
1
  require 'nokogiri'
3
2
  require 'open-uri'
4
3
 
@@ -309,6 +309,9 @@ module Active
309
309
  return categories.first
310
310
  end
311
311
 
312
+ def event_image_url
313
+
314
+ end
312
315
  # def load_master
313
316
  # # @ats = ATS.find_by_id(@gsa.asset_id)
314
317
  # # throw StandardError.new "ATS type=#{@gsa.asset_type_id} id=#{@gsa.substitutionUrl}"
@@ -1,7 +1,6 @@
1
1
  require 'net/http'
2
2
  require 'json'
3
3
  require 'cgi'
4
- require 'rubygems'
5
4
  require 'mysql'
6
5
  require 'active_record'
7
6
  require 'digest/md5'
@@ -223,6 +222,7 @@ module Active
223
222
  return urla.join("&")
224
223
  end
225
224
 
225
+ # TODO the seach method should not raise an error.
226
226
  def search
227
227
  searchurl = URI.parse(end_point)
228
228
  req = Net::HTTP::Get.new(searchurl.path)
data/spec/reg_spec.rb CHANGED
@@ -163,7 +163,10 @@ describe RegCenter do
163
163
  r.content[0][:content].should eql("<a href=http://www.eteamz.com/activeactive1/files/0913halloweenentryv5-new.pdf> Click Here to View Event Flyer</a>")
164
164
  end
165
165
 
166
-
166
+ it "should have an event_image_url" do
167
+ r = RegCenter.find_by_id("1917437")
168
+ r.event_image_url.should eql("http://www.active.com/images/upimages/2642.gif")
169
+ end
167
170
 
168
171
 
169
172
 
data/spec/search_spec.rb CHANGED
@@ -164,7 +164,7 @@ describe Search do
164
164
  uri.query.should have_param("meta:channel=Running+OR+meta:channel=Triathlon")
165
165
  uri.query.should have_param("daterange:11%2F01%2F2010..11%2F15%2F2010")
166
166
  end
167
-
167
+
168
168
  it "should pass the search radius" do
169
169
  uri = URI.parse( Search.new({:radius => '666'}).end_point )
170
170
  uri.query.should have_param("r=666")
@@ -418,7 +418,10 @@ describe Search do
418
418
  end
419
419
  end
420
420
 
421
-
421
+ # describe "Finding assets via a url only" do
422
+ # it "should find an asset by seourl" do
423
+ # end
424
+ # end
422
425
 
423
426
  end
424
427
 
data/spec/spec.opts CHANGED
File without changes
data/version.txt CHANGED
@@ -1 +1 @@
1
- 0.0.31
1
+ 0.0.32
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Active
3
3
  version: !ruby/object:Gem::Version
4
- hash: 33
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 0
9
- - 31
10
- version: 0.0.31
8
+ - 32
9
+ version: 0.0.32
11
10
  platform: ruby
12
11
  authors:
13
12
  - Jonathan Spooner, Brian Levine
@@ -15,18 +14,16 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-12-15 00:00:00 -08:00
17
+ date: 2011-01-03 00:00:00 -08:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: savon
23
22
  prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
24
  requirements:
27
25
  - - ">="
28
26
  - !ruby/object:Gem::Version
29
- hash: 17
30
27
  segments:
31
28
  - 0
32
29
  - 7
@@ -38,11 +35,9 @@ dependencies:
38
35
  name: dalli
39
36
  prerelease: false
40
37
  requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
38
  requirements:
43
39
  - - ">="
44
40
  - !ruby/object:Gem::Version
45
- hash: 43
46
41
  segments:
47
42
  - 0
48
43
  - 9
@@ -54,11 +49,9 @@ dependencies:
54
49
  name: bones
55
50
  prerelease: false
56
51
  requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
53
  - - ">="
60
54
  - !ruby/object:Gem::Version
61
- hash: 25
62
55
  segments:
63
56
  - 3
64
57
  - 4
@@ -76,16 +69,19 @@ extra_rdoc_files:
76
69
  - History.txt
77
70
  - README.txt
78
71
  - bin/Active
72
+ - lib/.DS_Store
73
+ - lib/services/.DS_Store
79
74
  - lib/services/search.txt
80
75
  - version.txt
81
76
  files:
82
- - .bnsignore
83
77
  - Active.gemspec
84
78
  - History.txt
85
79
  - README.txt
86
80
  - Rakefile
87
81
  - bin/Active
82
+ - lib/.DS_Store
88
83
  - lib/Active.rb
84
+ - lib/services/.DS_Store
89
85
  - lib/services/IActivity.rb
90
86
  - lib/services/_ats.rb
91
87
  - lib/services/active_works.rb
@@ -128,27 +124,23 @@ rdoc_options:
128
124
  require_paths:
129
125
  - lib
130
126
  required_ruby_version: !ruby/object:Gem::Requirement
131
- none: false
132
127
  requirements:
133
128
  - - ">="
134
129
  - !ruby/object:Gem::Version
135
- hash: 3
136
130
  segments:
137
131
  - 0
138
132
  version: "0"
139
133
  required_rubygems_version: !ruby/object:Gem::Requirement
140
- none: false
141
134
  requirements:
142
135
  - - ">="
143
136
  - !ruby/object:Gem::Version
144
- hash: 3
145
137
  segments:
146
138
  - 0
147
139
  version: "0"
148
140
  requirements: []
149
141
 
150
142
  rubyforge_project: Active
151
- rubygems_version: 1.3.7
143
+ rubygems_version: 1.3.6
152
144
  signing_key:
153
145
  specification_version: 3
154
146
  summary: Search api for Active Network
data/.bnsignore DELETED
@@ -1,19 +0,0 @@
1
- # The list of files that should be ignored by Mr Bones.
2
- # Lines that start with '#' are comments.
3
- #
4
- # A .gitignore file can be used instead by setting it as the ignore
5
- # file in your Rakefile:
6
- #
7
- # Bones {
8
- # ignore_file '.gitignore'
9
- # }
10
- #
11
- # For a project with a C extension, the following would be a good set of
12
- # exclude patterns (uncomment them if you want to use them):
13
- # *.[oa]
14
- # *~
15
- announcement.txt
16
- coverage
17
- doc
18
- pkg
19
- .DS_Store