pitosalas-govsdk 0.0.3 → 0.0.4
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.yml +1 -1
- data/lib/govsdkgem.rb +0 -1
- data/test/test_helper.rb +0 -1
- metadata +2 -3
- data/test/opmloco_test.rb +0 -53
data/VERSION.yml
CHANGED
data/lib/govsdkgem.rb
CHANGED
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pitosalas-govsdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pito Salas
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-02-
|
12
|
+
date: 2009-02-18 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -38,7 +38,6 @@ files:
|
|
38
38
|
- test/google_api_test.rb
|
39
39
|
- test/govsdk_test.rb
|
40
40
|
- test/open_secrets_api_test.rb
|
41
|
-
- test/opmloco_test.rb
|
42
41
|
- test/sunlight_api_test.rb
|
43
42
|
- test/test_helper.rb
|
44
43
|
- test/test_template.rb
|
data/test/opmloco_test.rb
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/test_helper'
|
2
|
-
=begin
|
3
|
-
* Name: GovSDK
|
4
|
-
* Description:
|
5
|
-
* Author: Pito Salas
|
6
|
-
* Copyright: (c) R. Pito Salas and Associates, Inc.
|
7
|
-
* Date: January 2009
|
8
|
-
* License: GPL
|
9
|
-
|
10
|
-
This file is part of GovSDK.
|
11
|
-
|
12
|
-
GovSDK is free software: you can redistribute it and/or modify
|
13
|
-
it under the terms of the GNU General Public License as published by
|
14
|
-
the Free Software Foundation, either version 3 of the License, or
|
15
|
-
(at your option) any later version.
|
16
|
-
|
17
|
-
GovSDK is distributed in the hope that it will be useful,
|
18
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20
|
-
GNU General Public License for more details.
|
21
|
-
|
22
|
-
You should have received a copy of the GNU General Public License
|
23
|
-
along with GovSDK. If not, see <http://www.gnu.org/licenses/>.
|
24
|
-
|
25
|
-
require "ruby-debug"
|
26
|
-
Debugger.settings[:autolist] = 1 # list nearby lines on stop
|
27
|
-
Debugger.settings[:autoeval] = 1
|
28
|
-
Debugger.start
|
29
|
-
=end
|
30
|
-
include Opmloco
|
31
|
-
|
32
|
-
class MyTest < Test::Unit::TestCase
|
33
|
-
context "Test context" do
|
34
|
-
setup do
|
35
|
-
|
36
|
-
end
|
37
|
-
|
38
|
-
should "work with minimal opml case" do
|
39
|
-
s = String.new
|
40
|
-
Opml.new("hello", "world").xml.write(s)
|
41
|
-
assert_equal "<?xml version='1.0'?><opml><head><title>hello</title></head><body><outline text='world'/></body></opml>", s
|
42
|
-
end
|
43
|
-
|
44
|
-
should "work with something a little more complicated" do
|
45
|
-
s = String.new
|
46
|
-
opml = Opml.new("BlogBridge Feeds", "Good Stuff", {:namespace => {:namespace => "xmlns:bb", :value => "http://blogbridge.com/ns/2006/opml"}})
|
47
|
-
opml.feeds << Feed.new("Latest News from Congressman Trent Franks Arizona's 2nd District", "rss", "http://www.house.gov/apps/list/press/az02_franks/RSS.xml")
|
48
|
-
opml.feeds << Feed.new("Ellen's Illinois Tenth Congressional District Blog", "rss", "http://ellenofthetenth.blogspot.com/feeds/posts/default")
|
49
|
-
opml.xml.write(s)
|
50
|
-
assert_equal "<?xml version='1.0'?><opml xmlns:bb='http://blogbridge.com/ns/2006/opml'><head><title>BlogBridge Feeds</title></head><body><outline text='Good Stuff'><outline xmlUrl='http://www.house.gov/apps/list/press/az02_franks/RSS.xml' text='Latest News from Congressman Trent Franks Arizona's 2nd District' type='rss'/><outline xmlUrl='http://ellenofthetenth.blogspot.com/feeds/posts/default' text='Ellen's Illinois Tenth Congressional District Blog' type='rss'/></outline></body></opml>", s
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|