fmylife 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
@@ -0,0 +1,21 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+
21
+ ## PROJECT::SPECIFIC
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.
@@ -1,6 +1,6 @@
1
1
  = FMyLife
2
2
 
3
- * http://beforefilter.blogspot.com/
3
+ * http://www.carboni.ca/
4
4
 
5
5
  == DESCRIPTION:
6
6
 
data/Rakefile CHANGED
@@ -1,12 +1,59 @@
1
- # -*- ruby -*-
2
-
3
1
  require 'rubygems'
4
- require 'hoe'
5
- require './lib/fmylife.rb'
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
- Hoe.new('fmylife', FMyLife::VERSION) do |p|
8
- p.rubyforge_name = 'fmylife' # if different than lowercase project name
9
- p.developer('Michael J. Edgar', 'edgar@triqweb.com')
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
- # vim: syntax=Ruby
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
@@ -2,7 +2,7 @@ require 'net/http'
2
2
  require 'uri'
3
3
  require 'digest'
4
4
  require 'time'
5
- require File.dirname(__FILE__)+'/xmlstruct.rb'
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
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'fmylife'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -1,8 +1,7 @@
1
- require "test/unit"
2
- require "fmylife"
1
+ require 'helper'
3
2
 
4
- class TestFMyLife < Test::Unit::TestCase
5
- def test_sanity
6
- flunk "write tests or I will kneecap you"
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.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
- - Michael J. Edgar
7
+ - Michael Edgar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-27 00:00:00 -04:00
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: hoe
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: 1.11.0
23
+ version: "0"
24
24
  version:
25
- description: This gem allows the user to access the fmylife.com API, which includes reading stories, reading comments, moderating stories that are submitted, submitting stories, submitting comments, and searching for stories. In addition, this gem lets you swap in and out which XML parser you use. Since not everyone can take advantage of compiled xml parsers, the typically built-in REXML library is available as well.
26
- email:
27
- - edgar@triqweb.com
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
- - History.txt
34
- - Manifest.txt
35
- - README.txt
49
+ - LICENSE
50
+ - README.rdoc
36
51
  files:
37
- - History.txt
38
- - Manifest.txt
39
- - README.txt
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://beforefilter.blogspot.com/
63
+ homepage: http://www.carboni.ca/projects/p/fmylife
64
+ licenses: []
65
+
46
66
  post_install_message:
47
67
  rdoc_options:
48
- - --main
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: fmylife
67
- rubygems_version: 1.3.1
85
+ rubyforge_project:
86
+ rubygems_version: 1.3.5
68
87
  signing_key:
69
- specification_version: 2
70
- summary: This gem allows the user to access the fmylife.com API, which includes reading stories, reading comments, moderating stories that are submitted, submitting stories, submitting comments, and searching for stories
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
@@ -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
@@ -1,7 +0,0 @@
1
- History.txt
2
- Manifest.txt
3
- README.txt
4
- Rakefile
5
- lib/fmylife.rb
6
- lib/xmlstruct.rb
7
- test/test_fmylife.rb