localhots.xyz fb2 / 28b6001
Initial commit to fb2. magnolia-fan 10 years ago
9 changed file(s) with 183 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 lib/**/*.rb
1 bin/*
2 -
3 features/**/*.feature
4 LICENSE.txt
0 # rcov generated
1 coverage
2
3 # rdoc generated
4 rdoc
5
6 # yard generated
7 doc
8 .yardoc
9
10 # bundler
11 .bundle
12
13 # jeweler generated
14 pkg
15
16 # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
17 #
18 # * Create a file at ~/.gitignore
19 # * Include files you want ignored
20 # * Run: git config --global core.excludesfile ~/.gitignore
21 #
22 # After doing this, these files will be ignored in all your git projects,
23 # saving you from having to 'pollute' every project you touch with them
24 #
25 # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
26 #
27 # For MacOS:
28 #
29 #.DS_Store
30
31 # For TextMate
32 #*.tmproj
33 #tmtags
34
35 # For emacs:
36 #*~
37 #\#*
38 #.\#*
39
40 # For vim:
41 #*.swp
42
43 # For redcar:
44 #.redcar
45
46 # For rubinius:
47 #*.rbc
0 source "http://rubygems.org"
1 # Add dependencies required to use your gem here.
2 # Example:
3 # gem "activesupport", ">= 2.3.5"
4
5 # Add dependencies to develop your gem here.
6 # Include everything needed to run rake, tests, features, etc.
7 group :development do
8 gem "shoulda", ">= 0"
9 gem "bundler", "~> 1.0.0"
10 gem "jeweler", "~> 1.6.4"
11 gem "rcov", ">= 0"
12 end
0 Copyright (c) 2011 magnolia-fan
1
2 Permission is hereby granted, free of charge, to any person obtaining
3 a copy of this software and associated documentation files (the
4 "Software"), to deal in the Software without restriction, including
5 without limitation the rights to use, copy, modify, merge, publish,
6 distribute, sublicense, and/or sell copies of the Software, and to
7 permit persons to whom the Software is furnished to do so, subject to
8 the following conditions:
9
10 The above copyright notice and this permission notice shall be
11 included in all copies or substantial portions of the Software.
12
13 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
17 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
19 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0 = fb2
1
2 Description goes here.
3
4 == Contributing to fb2
5
6 * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
7 * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
8 * Fork the project
9 * Start a feature/bugfix branch
10 * Commit and push until you are happy with your contribution
11 * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
12 * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
13
14 == Copyright
15
16 Copyright (c) 2011 magnolia-fan. See LICENSE.txt for
17 further details.
18
0 # encoding: utf-8
1
2 require 'rubygems'
3 require 'bundler'
4 begin
5 Bundler.setup(:default, :development)
6 rescue Bundler::BundlerError => e
7 $stderr.puts e.message
8 $stderr.puts "Run `bundle install` to install missing gems"
9 exit e.status_code
10 end
11 require 'rake'
12
13 require 'jeweler'
14 Jeweler::Tasks.new do |gem|
15 # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
16 gem.name = "fb2"
17 gem.homepage = "http://github.com/magnolia-fan/fb2"
18 gem.license = "MIT"
19 gem.summary = %Q{TODO: one-line summary of your gem}
20 gem.description = %Q{TODO: longer description of your gem}
21 gem.email = "magnolia_fan@me.com"
22 gem.authors = ["magnolia-fan"]
23 # dependencies defined in Gemfile
24 end
25 Jeweler::RubygemsDotOrgTasks.new
26
27 require 'rake/testtask'
28 Rake::TestTask.new(:test) do |test|
29 test.libs << 'lib' << 'test'
30 test.pattern = 'test/**/test_*.rb'
31 test.verbose = true
32 end
33
34 require 'rcov/rcovtask'
35 Rcov::RcovTask.new do |test|
36 test.libs << 'test'
37 test.pattern = 'test/**/test_*.rb'
38 test.verbose = true
39 test.rcov_opts << '--exclude "gems/*"'
40 end
41
42 task :default => :test
43
44 require 'rake/rdoctask'
45 Rake::RDocTask.new do |rdoc|
46 version = File.exist?('VERSION') ? File.read('VERSION') : ""
47
48 rdoc.rdoc_dir = 'rdoc'
49 rdoc.title = "fb2 #{version}"
50 rdoc.rdoc_files.include('README*')
51 rdoc.rdoc_files.include('lib/**/*.rb')
52 end
(New empty file)
0 require 'rubygems'
1 require 'bundler'
2 begin
3 Bundler.setup(:default, :development)
4 rescue Bundler::BundlerError => e
5 $stderr.puts e.message
6 $stderr.puts "Run `bundle install` to install missing gems"
7 exit e.status_code
8 end
9 require 'test/unit'
10 require 'shoulda'
11
12 $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
13 $LOAD_PATH.unshift(File.dirname(__FILE__))
14 require 'fb2'
15
16 class Test::Unit::TestCase
17 end
0 require 'helper'
1
2 class TestFb2 < Test::Unit::TestCase
3 should "probably rename this file and start testing for real" do
4 flunk "hey buddy, you should probably rename this file and start testing for real"
5 end
6 end