Skip to content

Commit 4fab238

Browse files
committed
为插件建立基本框架
0 parents  commit 4fab238

9 files changed

+70
-0
lines changed

MIT-LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2010 [name of plugin creator]
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.

README

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
OauthSide
2+
=========
3+
4+
对oauth库进一步进行封装,简化rails开发中与oauth相关的功能
5+
6+
Example
7+
=======
8+
9+
$ cd rails3app
10+
$ rails plugin install [email protected]:fsword/oauth_side.git
11+
12+
Copyright (c) 2010 [name of plugin creator], released under the MIT license

Rakefile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
require 'rake'
2+
require 'rake/testtask'
3+
require 'rake/rdoctask'
4+
5+
desc 'Default: run unit tests.'
6+
task :default => :test
7+
8+
desc 'Test the oauth_side plugin.'
9+
Rake::TestTask.new(:test) do |t|
10+
t.libs << 'lib'
11+
t.libs << 'test'
12+
t.pattern = 'test/**/*_test.rb'
13+
t.verbose = true
14+
end
15+
16+
desc 'Generate documentation for the oauth_side plugin.'
17+
Rake::RDocTask.new(:rdoc) do |rdoc|
18+
rdoc.rdoc_dir = 'rdoc'
19+
rdoc.title = 'OauthSide'
20+
rdoc.options << '--line-numbers' << '--inline-source'
21+
rdoc.rdoc_files.include('README')
22+
rdoc.rdoc_files.include('lib/**/*.rb')
23+
end

init.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Include hook code here

install.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Install hook code here

lib/oauth_side.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# OauthSide

test/oauth_side_test.rb

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require 'test_helper'
2+
3+
class OauthSideTest < ActiveSupport::TestCase
4+
# Replace this with your real tests.
5+
test "the truth" do
6+
assert true
7+
end
8+
end

test/test_helper.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require 'rubygems'
2+
require 'test/unit'
3+
require 'active_support'

uninstall.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Uninstall hook code here

0 commit comments

Comments
 (0)