From e2597366e9e8adf02e443fbb1069327e3e7f2076 Mon Sep 17 00:00:00 2001 From: 404 Date: Mon, 28 May 2012 21:03:47 +0800 Subject: [PATCH] added travis and gemnasium hooks --- .travis.yml | 12 ++++++++++++ Gemfile | 2 -- README.md | 2 ++ Rakefile | 19 +++++++++++++++++++ lib/qiniu/rs/version.rb | 2 +- qiniu-rs.gemspec | 1 + 6 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5d0a4d3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: ruby +rvm: + - 1.8.7 + - 1.9.2 + - 1.9.3 + - jruby-18mode + - jruby-19mode + - rbx-18mode + - rbx-19mode + - ruby-head + - jruby-head + - ree diff --git a/Gemfile b/Gemfile index ee7ed45..0c3bed0 100755 --- a/Gemfile +++ b/Gemfile @@ -2,5 +2,3 @@ source 'https://rubygems.org' # Specify your gem's dependencies in qiniu-s3.gemspec gemspec - -gem "rake", "~> 0.9" diff --git a/README.md b/README.md index 70bccc0..74ac70d 100755 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +# Qiniu Resource (Cloud) Storage SDK for Ruby - [![Build Status](https://secure.travis-ci.org/why404/qiniu-rs.png?branch=master)](http://travis-ci.org/why404/qiniu-rs) [![Dependency Status](https://gemnasium.com/why404/qiniu-rs.png)](https://gemnasium.com/why404/qiniu-rs) + # 关于 此 Ruby SDK 适用于 Ruby 1.8.x, 1.9.x 版本,基于 [七牛云存储官方API](http://docs.qiniutek.com/v1/api/) 构建。使用此 SDK 构建您的网络应用程序,能让您以非常便捷地方式将数据安全地存储到七牛云存储上。无论您的网络应用是一个网站程序,还是包括从云端(服务端程序)到终端(手持设备应用)的架构的服务或应用,通过七牛云存储及其 SDK,都能让您应用程序的终端用户高速上传和下载,同时也让您的服务端更加轻盈。 diff --git a/Rakefile b/Rakefile index f57ae68..b97eb79 100755 --- a/Rakefile +++ b/Rakefile @@ -1,2 +1,21 @@ #!/usr/bin/env rake + +require 'rubygems' +require 'bundler' require "bundler/gem_tasks" + +begin + Bundler.setup(:default, :development) +rescue Bundler::BundlerError => e + $stderr.puts e.message + $stderr.puts "Run `bundle install` to install missing gems" + exit e.status_code +end + +require 'rspec/core' +require 'rspec/core/rake_task' +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = FileList['spec/**/*_spec.rb'] +end + +task :default => :spec diff --git a/lib/qiniu/rs/version.rb b/lib/qiniu/rs/version.rb index 5e2a93a..97e8047 100755 --- a/lib/qiniu/rs/version.rb +++ b/lib/qiniu/rs/version.rb @@ -2,6 +2,6 @@ module Qiniu module RS - VERSION = "1.0.1" + VERSION = "1.0.2" end end diff --git a/qiniu-rs.gemspec b/qiniu-rs.gemspec index 05f87c1..60aa85f 100755 --- a/qiniu-rs.gemspec +++ b/qiniu-rs.gemspec @@ -17,6 +17,7 @@ Gem::Specification.new do |gem| gem.version = Qiniu::RS::VERSION # specify any dependencies here; for example: + gem.add_development_dependency "rake" gem.add_development_dependency "rspec" gem.add_development_dependency "fakeweb" gem.add_runtime_dependency "rest-client"