Skip to content
Browse files

First commit

  • Loading branch information...
0 parents commit c5702e135fad6f7fcf15efbafbd5e3d4518d4d16 @odiszapc committed Nov 18, 2012
17 .gitignore
@@ -0,0 +1,17 @@
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
4 Gemfile
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in rapidshare-ext.gemspec
+gemspec
0 History.md
No changes.
22 LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2012 odiszapc
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 README
@@ -0,0 +1 @@
+This file was created by JetBrains RubyMine (Enoki) RM-122.782 for binding GitHub repository
29 README.md
@@ -0,0 +1,29 @@
+# Rapidshare::Ext
+
+TODO: Write a gem description
+
+## Installation
+
+Add this line to your application's Gemfile:
+
+ gem 'rapidshare-ext'
+
+And then execute:
+
+ $ bundle
+
+Or install it yourself as:
+
+ $ gem install rapidshare-ext
+
+## Usage
+
+TODO: Write usage instructions here
+
+## Contributing
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Added some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
2 Rakefile
@@ -0,0 +1,2 @@
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
0 lib/rapidshare-base/api.rb
No changes.
12 lib/rapidshare-base/utils.rb
@@ -0,0 +1,12 @@
+module Rapidshare
+ module Utils
+ def post(url, params)
+ params[:filecontent] = File.new(params[:filecontent])
+ ::RestClient.post(url, params)
+ end
+
+ def get(url)
+ ::RestClient.get(url)
+ end
+ end
+end
7 lib/rapidshare-ext.rb
@@ -0,0 +1,7 @@
+require "rapidshare-ext/version"
+
+module Rapidshare
+ module Ext
+ # Your code goes here...
+ end
+end
0 lib/rapidshare-ext/api.rb
No changes.
5 lib/rapidshare-ext/version.rb
@@ -0,0 +1,5 @@
+module Rapidshare
+ module Ext
+ VERSION = "0.0.1"
+ end
+end
0 lib/rapidshare/utils.rb
No changes.
17 rapidshare-ext.gemspec
@@ -0,0 +1,17 @@
+# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/rapidshare-ext/version', __FILE__)
+
+Gem::Specification.new do |gem|
+ gem.authors = ["odiszapc"]
+ gem.email = ["odiszapc@gmail.com"]
+ gem.description = %q{TODO: Write a gem description}
+ gem.summary = %q{TODO: Write a gem summary}
+ gem.homepage = ""
+
+ 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 = "rapidshare-ext"
+ gem.require_paths = ["lib"]
+ gem.version = Rapidshare::Ext::VERSION
+end
0 test/fixtures/files/upload1.txt
No changes.
16 test/fixtures/getaccountdetails_valid.txt
@@ -0,0 +1,16 @@
+accountid=12345
+servertime=1217244932
+addtime=127273393
+username=valid_account
+directstart=1
+country=CZ
+mailflags=
+language=
+jsconfig=1000
+email=valid_account@email.com
+curfiles=100
+curspace=103994340
+rapids=100
+billeduntil=1320093121
+nortuntil=1307123910
+cookie=F0EEB41B38363A41F0D125102637DB7236468731F8DB760DC57934B4714C8D13
0 test/integration/rapidshare-ext_test.rb
No changes.
0 test/test_helper.rb
No changes.
8 test/unit/rapidshare-ext_test.rb
@@ -0,0 +1,8 @@
+require 'test/unit'
+
+class RapidshareExtTest < Test::Unit::TestCase
+ def test_first
+ assert true
+ rs = Rapidshare::Api.new
+ end
+end

0 comments on commit c5702e1

Please sign in to comment.
Something went wrong with that request. Please try again.