diff --git a/.travis.yml b/.travis.yml index 06fa124..12fa02e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,6 @@ rvm: before_script: - export QINIU_ACCESS_KEY=QWYn5TFQsLLU1pL5MFEmX3s5DmHdUThav9WyOWOm - export QINIU_SECRET_KEY=Bxckh6FA-Fbs9Yt3i3cbKVK22UPBmAOHJcL95pGz +gemfile: + - Gemfile + - Gemfile_for_rails3 diff --git a/Gemfile b/Gemfile index ec8c558..801040b 100755 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ source 'https://rubygems.org' -# Specify your gem's dependencies in qiniu-s3.gemspec -gemspec +# Specify your gem's dependencies in qiniu.gemspec +gemspec :name => 'qiniu' # platforms :jruby do # gem "jruby-openssl" diff --git a/Gemfile.lock b/Gemfile.lock index b40bc46..57a60bf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -3,28 +3,35 @@ PATH specs: qiniu (6.4.1) json (~> 1.7) - mime-types (~> 2.4.3) + mime-types (~> 1.19) rest-client (~> 1.6) ruby-hmac (~> 0.4) GEM remote: https://rubygems.org/ specs: - diff-lcs (1.1.3) + diff-lcs (1.2.5) fakeweb (1.3.0) - json (1.8.1) - mime-types (1.23) - rake (10.0.3) - rest-client (1.6.7) - mime-types (>= 1.16) - rspec (2.12.0) - rspec-core (~> 2.12.0) - rspec-expectations (~> 2.12.0) - rspec-mocks (~> 2.12.0) - rspec-core (2.12.2) - rspec-expectations (2.12.1) - diff-lcs (~> 1.1.3) - rspec-mocks (2.12.2) + json (1.8.2) + mime-types (1.25.1) + netrc (0.10.3) + rake (10.4.2) + rest-client (1.7.3) + mime-types (>= 1.16, < 3.0) + netrc (~> 0.7) + rspec (3.2.0) + rspec-core (~> 3.2.0) + rspec-expectations (~> 3.2.0) + rspec-mocks (~> 3.2.0) + rspec-core (3.2.2) + rspec-support (~> 3.2.0) + rspec-expectations (3.2.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.2.0) + rspec-mocks (3.2.1) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.2.0) + rspec-support (3.2.2) ruby-hmac (0.4.0) PLATFORMS diff --git a/Gemfile_for_rails3 b/Gemfile_for_rails3 new file mode 100755 index 0000000..5f3c753 --- /dev/null +++ b/Gemfile_for_rails3 @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +# Specify your gem's dependencies in qiniu_for_rails3.gemspec +gemspec :name => 'qiniu_for_rails3' diff --git a/qiniu_for_rails3.gemspec b/qiniu_for_rails3.gemspec new file mode 100755 index 0000000..2c1db4e --- /dev/null +++ b/qiniu_for_rails3.gemspec @@ -0,0 +1,29 @@ +# -*- encoding: utf-8 -*- + +require File.expand_path('../lib/qiniu/version', __FILE__) + +Gem::Specification.new do |gem| + gem.authors = ["why404","BluntBlade"] + gem.email = ["sdk@qiniu.com"] + gem.description = %q{Qiniu Resource (Cloud) Storage SDK for Ruby. See: http://developer.qiniu.com/docs/v6/sdk/ruby-sdk.html} + gem.summary = %q{Qiniu Resource (Cloud) Storage SDK for Ruby} + gem.homepage = "https://github.com/qiniu/ruby-sdk" + + gem.files = `git ls-files`.split($\) + gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } + gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) + gem.name = "qiniu" + gem.require_paths = ["lib"] + gem.version = Qiniu::Version.to_s + gem.license = "MIT" + + # specify any dependencies here; for example: + gem.add_development_dependency "rake", ">= 0.9" + gem.add_development_dependency "rspec", ">= 2.11" + gem.add_development_dependency "fakeweb", "~> 1.3" + gem.add_runtime_dependency "json", "~> 1.7" + gem.add_runtime_dependency "rest-client", "~> 1.6" + gem.add_runtime_dependency "mime-types", "~> 1.19" + gem.add_runtime_dependency "ruby-hmac", "~> 0.4" + gem.add_runtime_dependency "jruby-openssl", "~> 0.7" if RUBY_PLATFORM == "java" +end