fmylife 0.5.1 → 0.6.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/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/{README.txt → README.rdoc} +1 -1
- data/Rakefile +55 -8
- data/VERSION +1 -0
- data/lib/fmylife.rb +1 -1
- data/lib/{xmlstruct.rb → fmylife/xmlstruct.rb} +0 -0
- data/test/helper.rb +10 -0
- data/test/test_fmylife.rb +4 -5
- metadata +42 -22
- data/History.txt +0 -15
- data/Manifest.txt +0 -7
data/.document
ADDED
data/.gitignore
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Michael Edgar
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/{README.txt → README.rdoc}
RENAMED
data/Rakefile
CHANGED
@@ -1,12 +1,59 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
1
|
require 'rubygems'
|
4
|
-
require '
|
5
|
-
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "fmylife"
|
8
|
+
gem.summary = %q{This gem allows the user to access the fmylife.com API, which includes reading and commenting on stories.}
|
9
|
+
gem.description = %q{This gem allows the user to access the fmylife.com API, which includes
|
10
|
+
reading stories, reading comments, moderating stories that are submitted,
|
11
|
+
submitting stories, submitting comments, and searching for stories.
|
6
12
|
|
7
|
-
|
8
|
-
|
9
|
-
|
13
|
+
In addition, this gem lets you swap in and out which XML parser you use.
|
14
|
+
Since not everyone can take advantage of compiled xml parsers,
|
15
|
+
the typically built-in REXML library is available as well.}
|
16
|
+
gem.email = "michael.j.edgar@dartmouth.edu"
|
17
|
+
gem.homepage = "http://www.carboni.ca/projects/p/fmylife"
|
18
|
+
gem.authors = ["Michael Edgar"]
|
19
|
+
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
20
|
+
gem.add_development_dependency "yard", ">= 0"
|
21
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
22
|
+
end
|
23
|
+
Jeweler::GemcutterTasks.new
|
24
|
+
rescue LoadError
|
25
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
10
26
|
end
|
11
27
|
|
12
|
-
|
28
|
+
require 'rake/testtask'
|
29
|
+
Rake::TestTask.new(:test) do |test|
|
30
|
+
test.libs << 'lib' << 'test'
|
31
|
+
test.pattern = 'test/**/test_*.rb'
|
32
|
+
test.verbose = true
|
33
|
+
end
|
34
|
+
|
35
|
+
begin
|
36
|
+
require 'rcov/rcovtask'
|
37
|
+
Rcov::RcovTask.new do |test|
|
38
|
+
test.libs << 'test'
|
39
|
+
test.pattern = 'test/**/test_*.rb'
|
40
|
+
test.verbose = true
|
41
|
+
end
|
42
|
+
rescue LoadError
|
43
|
+
task :rcov do
|
44
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
task :test => :check_dependencies
|
49
|
+
|
50
|
+
task :default => :test
|
51
|
+
|
52
|
+
begin
|
53
|
+
require 'yard'
|
54
|
+
YARD::Rake::YardocTask.new
|
55
|
+
rescue LoadError
|
56
|
+
task :yardoc do
|
57
|
+
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
|
58
|
+
end
|
59
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.6.0
|
data/lib/fmylife.rb
CHANGED
@@ -2,7 +2,7 @@ require 'net/http'
|
|
2
2
|
require 'uri'
|
3
3
|
require 'digest'
|
4
4
|
require 'time'
|
5
|
-
require File.dirname(__FILE__)
|
5
|
+
require File.join File.dirname(__FILE__), 'fmylife', 'xmlstruct.rb'
|
6
6
|
# = FMyLife
|
7
7
|
#
|
8
8
|
# This gem allows the user to access the fmylife.com API, which includes
|
File without changes
|
data/test/helper.rb
ADDED
data/test/test_fmylife.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
require
|
2
|
-
require "fmylife"
|
1
|
+
require 'helper'
|
3
2
|
|
4
|
-
class
|
5
|
-
|
6
|
-
flunk "
|
3
|
+
class TestFmylife < Test::Unit::TestCase
|
4
|
+
should "probably rename this file and start testing for real" do
|
5
|
+
flunk "hey buddy, you should probably rename this file and start testing for real"
|
7
6
|
end
|
8
7
|
end
|
metadata
CHANGED
@@ -1,52 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fmylife
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Michael
|
7
|
+
- Michael Edgar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-10 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: thoughtbot-shoulda
|
17
17
|
type: :development
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: "0"
|
24
24
|
version:
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: yard
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0"
|
34
|
+
version:
|
35
|
+
description: |-
|
36
|
+
This gem allows the user to access the fmylife.com API, which includes
|
37
|
+
reading stories, reading comments, moderating stories that are submitted,
|
38
|
+
submitting stories, submitting comments, and searching for stories.
|
39
|
+
|
40
|
+
In addition, this gem lets you swap in and out which XML parser you use.
|
41
|
+
Since not everyone can take advantage of compiled xml parsers,
|
42
|
+
the typically built-in REXML library is available as well.
|
43
|
+
email: michael.j.edgar@dartmouth.edu
|
28
44
|
executables: []
|
29
45
|
|
30
46
|
extensions: []
|
31
47
|
|
32
48
|
extra_rdoc_files:
|
33
|
-
-
|
34
|
-
-
|
35
|
-
- README.txt
|
49
|
+
- LICENSE
|
50
|
+
- README.rdoc
|
36
51
|
files:
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
52
|
+
- .document
|
53
|
+
- .gitignore
|
54
|
+
- LICENSE
|
55
|
+
- README.rdoc
|
40
56
|
- Rakefile
|
57
|
+
- VERSION
|
41
58
|
- lib/fmylife.rb
|
42
|
-
- lib/xmlstruct.rb
|
59
|
+
- lib/fmylife/xmlstruct.rb
|
60
|
+
- test/helper.rb
|
43
61
|
- test/test_fmylife.rb
|
44
62
|
has_rdoc: true
|
45
|
-
homepage: http://
|
63
|
+
homepage: http://www.carboni.ca/projects/p/fmylife
|
64
|
+
licenses: []
|
65
|
+
|
46
66
|
post_install_message:
|
47
67
|
rdoc_options:
|
48
|
-
- --
|
49
|
-
- README.txt
|
68
|
+
- --charset=UTF-8
|
50
69
|
require_paths:
|
51
70
|
- lib
|
52
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -63,10 +82,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
82
|
version:
|
64
83
|
requirements: []
|
65
84
|
|
66
|
-
rubyforge_project:
|
67
|
-
rubygems_version: 1.3.
|
85
|
+
rubyforge_project:
|
86
|
+
rubygems_version: 1.3.5
|
68
87
|
signing_key:
|
69
|
-
specification_version:
|
70
|
-
summary: This gem allows the user to access the fmylife.com API, which includes reading
|
88
|
+
specification_version: 3
|
89
|
+
summary: This gem allows the user to access the fmylife.com API, which includes reading and commenting on stories.
|
71
90
|
test_files:
|
91
|
+
- test/helper.rb
|
72
92
|
- test/test_fmylife.rb
|
data/History.txt
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
=== 0.5.1 / 2009-03-27
|
2
|
-
|
3
|
-
* Fixed comment submission and story submission (after FML fixed their API :P)
|
4
|
-
* Parser now defaults to REXML.
|
5
|
-
* Removed debug output (don't tell anyone)
|
6
|
-
|
7
|
-
=== 0.5.0 / 2009-03-25
|
8
|
-
|
9
|
-
* Initial release
|
10
|
-
|
11
|
-
* Full access to the API
|
12
|
-
* Read all categories, "top" FMLs, "flop" FMLs, paginated results
|
13
|
-
* Vote on FMLs, moderate pending FMLs
|
14
|
-
* Comment submission and FML submissions aren't working, but this is a result of the API itself being busted
|
15
|
-
* Swap out XML parsers. Choose from REXML, Hpricot, Nokogiri, or libxml-ruby
|