putio 0.0.1.pre → 0.0.1.pre2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +5 -1
- data/Readme.md +4 -0
- data/putio.gemspec +2 -5
- data/test/test_helper.rb +1 -1
- metadata +5 -51
- data/Gemfile.lock +0 -27
- data/development/ruby/1.8/cache/omg-0.0.6.gem +0 -0
- data/development/ruby/1.8/gems/omg-0.0.6/.document +0 -5
- data/development/ruby/1.8/gems/omg-0.0.6/.gitignore +0 -21
- data/development/ruby/1.8/gems/omg-0.0.6/LICENSE +0 -20
- data/development/ruby/1.8/gems/omg-0.0.6/README.rdoc +0 -35
- data/development/ruby/1.8/gems/omg-0.0.6/Rakefile +0 -52
- data/development/ruby/1.8/gems/omg-0.0.6/TODO +0 -1
- data/development/ruby/1.8/gems/omg-0.0.6/VERSION +0 -1
- data/development/ruby/1.8/gems/omg-0.0.6/lib/omg.rb +0 -43
- data/development/ruby/1.8/gems/omg-0.0.6/omg.gemspec +0 -53
- data/development/ruby/1.8/gems/omg-0.0.6/test/helper.rb +0 -10
- data/development/ruby/1.8/gems/omg-0.0.6/test/test_omg.rb +0 -7
- data/development/ruby/1.8/specifications/omg-0.0.6.gemspec +0 -30
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Readme.md
CHANGED
data/putio.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "putio"
|
5
|
-
s.version = "0.0.1.
|
5
|
+
s.version = "0.0.1.pre2"
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.authors = ["Adam Rogers"]
|
8
8
|
s.email = ["adam@rodreegez.com"]
|
9
|
-
s.homepage = "http://
|
9
|
+
s.homepage = "http://github.com/rodreegez/putio"
|
10
10
|
s.summary = %q{A ruby wrapper for the Putio API}
|
11
11
|
s.description = %q{A simple ruby interface to the api at http://api.put.io}
|
12
12
|
|
@@ -19,7 +19,4 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.add_dependency 'json', '1.4.6'
|
20
20
|
s.add_dependency 'crack', '0.1.8'
|
21
21
|
s.add_dependency 'hashie', '0.4.0'
|
22
|
-
|
23
|
-
s.add_development_dependency 'fakeweb', '1.3.0'
|
24
|
-
s.add_development_dependency 'shoulda', '2.11.3'
|
25
22
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: putio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: -1876988187
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
9
|
- 1
|
10
|
-
-
|
11
|
-
version: 0.0.1.
|
10
|
+
- pre2
|
11
|
+
version: 0.0.1.pre2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Adam Rogers
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-12-
|
19
|
+
date: 2010-12-22 00:00:00 +00:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -67,38 +67,6 @@ dependencies:
|
|
67
67
|
version: 0.4.0
|
68
68
|
type: :runtime
|
69
69
|
version_requirements: *id003
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: fakeweb
|
72
|
-
prerelease: false
|
73
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
|
-
requirements:
|
76
|
-
- - "="
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
hash: 27
|
79
|
-
segments:
|
80
|
-
- 1
|
81
|
-
- 3
|
82
|
-
- 0
|
83
|
-
version: 1.3.0
|
84
|
-
type: :development
|
85
|
-
version_requirements: *id004
|
86
|
-
- !ruby/object:Gem::Dependency
|
87
|
-
name: shoulda
|
88
|
-
prerelease: false
|
89
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
|
-
requirements:
|
92
|
-
- - "="
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
hash: 37
|
95
|
-
segments:
|
96
|
-
- 2
|
97
|
-
- 11
|
98
|
-
- 3
|
99
|
-
version: 2.11.3
|
100
|
-
type: :development
|
101
|
-
version_requirements: *id005
|
102
70
|
description: A simple ruby interface to the api at http://api.put.io
|
103
71
|
email:
|
104
72
|
- adam@rodreegez.com
|
@@ -111,7 +79,6 @@ extra_rdoc_files: []
|
|
111
79
|
files:
|
112
80
|
- .gitignore
|
113
81
|
- Gemfile
|
114
|
-
- Gemfile.lock
|
115
82
|
- Rakefile
|
116
83
|
- Readme.md
|
117
84
|
- development/ruby/1.8/bin/convert_to_should_syntax
|
@@ -121,7 +88,6 @@ files:
|
|
121
88
|
- development/ruby/1.8/cache/fakeweb-1.3.0.gem
|
122
89
|
- development/ruby/1.8/cache/hashie-0.4.0.gem
|
123
90
|
- development/ruby/1.8/cache/json-1.4.6.gem
|
124
|
-
- development/ruby/1.8/cache/omg-0.0.6.gem
|
125
91
|
- development/ruby/1.8/cache/shoulda-2.11.3.gem
|
126
92
|
- development/ruby/1.8/gems/crack-0.1.8/.gitignore
|
127
93
|
- development/ruby/1.8/gems/crack-0.1.8/History
|
@@ -348,17 +314,6 @@ files:
|
|
348
314
|
- development/ruby/1.8/gems/json-1.4.6/tests/test_json_unicode.rb
|
349
315
|
- development/ruby/1.8/gems/json-1.4.6/tools/fuzz.rb
|
350
316
|
- development/ruby/1.8/gems/json-1.4.6/tools/server.rb
|
351
|
-
- development/ruby/1.8/gems/omg-0.0.6/.document
|
352
|
-
- development/ruby/1.8/gems/omg-0.0.6/.gitignore
|
353
|
-
- development/ruby/1.8/gems/omg-0.0.6/LICENSE
|
354
|
-
- development/ruby/1.8/gems/omg-0.0.6/README.rdoc
|
355
|
-
- development/ruby/1.8/gems/omg-0.0.6/Rakefile
|
356
|
-
- development/ruby/1.8/gems/omg-0.0.6/TODO
|
357
|
-
- development/ruby/1.8/gems/omg-0.0.6/VERSION
|
358
|
-
- development/ruby/1.8/gems/omg-0.0.6/lib/omg.rb
|
359
|
-
- development/ruby/1.8/gems/omg-0.0.6/omg.gemspec
|
360
|
-
- development/ruby/1.8/gems/omg-0.0.6/test/helper.rb
|
361
|
-
- development/ruby/1.8/gems/omg-0.0.6/test/test_omg.rb
|
362
317
|
- development/ruby/1.8/gems/shoulda-2.11.3/CONTRIBUTION_GUIDELINES.rdoc
|
363
318
|
- development/ruby/1.8/gems/shoulda-2.11.3/MIT-LICENSE
|
364
319
|
- development/ruby/1.8/gems/shoulda-2.11.3/README.rdoc
|
@@ -623,7 +578,6 @@ files:
|
|
623
578
|
- development/ruby/1.8/specifications/fakeweb-1.3.0.gemspec
|
624
579
|
- development/ruby/1.8/specifications/hashie-0.4.0.gemspec
|
625
580
|
- development/ruby/1.8/specifications/json-1.4.6.gemspec
|
626
|
-
- development/ruby/1.8/specifications/omg-0.0.6.gemspec
|
627
581
|
- development/ruby/1.8/specifications/shoulda-2.11.3.gemspec
|
628
582
|
- lib/putio.rb
|
629
583
|
- lib/putio/client.rb
|
@@ -636,7 +590,7 @@ files:
|
|
636
590
|
- test/units/putio_test.rb
|
637
591
|
- test/units/user_test.rb
|
638
592
|
has_rdoc: true
|
639
|
-
homepage: http://
|
593
|
+
homepage: http://github.com/rodreegez/putio
|
640
594
|
licenses: []
|
641
595
|
|
642
596
|
post_install_message:
|
data/Gemfile.lock
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
putio (0.0.1)
|
5
|
-
crack (= 0.1.8)
|
6
|
-
hashie (= 0.4.0)
|
7
|
-
json (= 1.4.6)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: http://rubygems.org/
|
11
|
-
specs:
|
12
|
-
crack (0.1.8)
|
13
|
-
fakeweb (1.3.0)
|
14
|
-
hashie (0.4.0)
|
15
|
-
json (1.4.6)
|
16
|
-
shoulda (2.11.3)
|
17
|
-
|
18
|
-
PLATFORMS
|
19
|
-
ruby
|
20
|
-
|
21
|
-
DEPENDENCIES
|
22
|
-
crack (= 0.1.8)
|
23
|
-
fakeweb (= 1.3.0)
|
24
|
-
hashie (= 0.4.0)
|
25
|
-
json (= 1.4.6)
|
26
|
-
putio!
|
27
|
-
shoulda (= 2.11.3)
|
Binary file
|
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2010 philnash
|
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.
|
@@ -1,35 +0,0 @@
|
|
1
|
-
= omg
|
2
|
-
|
3
|
-
Quick and dirty debugging in Rails.
|
4
|
-
|
5
|
-
Sometimes you just want to see whether a method was called. Those times you don't want to write out some rubbish just to see that. Why not just write
|
6
|
-
|
7
|
-
def some_method
|
8
|
-
omg!
|
9
|
-
# do stuff
|
10
|
-
end
|
11
|
-
|
12
|
-
When the method is called, in the log you will find
|
13
|
-
|
14
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
15
|
-
OMG!
|
16
|
-
some_method called!
|
17
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
18
|
-
|
19
|
-
Or, pass an object to omg! and it will print out the result of the object's inspect method
|
20
|
-
|
21
|
-
Easy.
|
22
|
-
|
23
|
-
== Note on Patches/Pull Requests
|
24
|
-
|
25
|
-
* Fork the project.
|
26
|
-
* Make your feature addition or bug fix.
|
27
|
-
* Add tests for it. This is important so I don't break it in a
|
28
|
-
future version unintentionally.
|
29
|
-
* Commit, do not mess with rakefile, version, or history.
|
30
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
31
|
-
* Send me a pull request. Bonus points for topic branches.
|
32
|
-
|
33
|
-
== Copyright
|
34
|
-
|
35
|
-
Copyright (c) 2010 philnash. See LICENSE for details.
|
@@ -1,52 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "omg"
|
8
|
-
gem.summary = %Q{OMG debugging!}
|
9
|
-
gem.description = %Q{OMG debugging!}
|
10
|
-
gem.email = "philnash@gmail.com"
|
11
|
-
gem.homepage = "http://github.com/philnash/omg"
|
12
|
-
gem.authors = ["philnash"]
|
13
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
14
|
-
end
|
15
|
-
Jeweler::GemcutterTasks.new
|
16
|
-
rescue LoadError
|
17
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
18
|
-
end
|
19
|
-
|
20
|
-
require 'rake/testtask'
|
21
|
-
Rake::TestTask.new(:test) do |test|
|
22
|
-
test.libs << 'lib' << 'test'
|
23
|
-
test.pattern = 'test/**/test_*.rb'
|
24
|
-
test.verbose = true
|
25
|
-
end
|
26
|
-
|
27
|
-
begin
|
28
|
-
require 'rcov/rcovtask'
|
29
|
-
Rcov::RcovTask.new do |test|
|
30
|
-
test.libs << 'test'
|
31
|
-
test.pattern = 'test/**/test_*.rb'
|
32
|
-
test.verbose = true
|
33
|
-
end
|
34
|
-
rescue LoadError
|
35
|
-
task :rcov do
|
36
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
task :test => :check_dependencies
|
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 = "omg #{version}"
|
50
|
-
rdoc.rdoc_files.include('README*')
|
51
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
52
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
Allow user to supply a logger and method to log with OMG.use_logger(Rails.logger, :debug)
|
@@ -1 +0,0 @@
|
|
1
|
-
0.0.6
|
@@ -1,43 +0,0 @@
|
|
1
|
-
require 'singleton'
|
2
|
-
module Omg
|
3
|
-
def omg!(*args)
|
4
|
-
logger = OmgLogger.instance
|
5
|
-
logger.log('')
|
6
|
-
logger.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~')
|
7
|
-
logger.log "OMG!"
|
8
|
-
if args.length > 0
|
9
|
-
args.each do |arg|
|
10
|
-
logger.log arg.inspect
|
11
|
-
end
|
12
|
-
else
|
13
|
-
logger.log "#{caller[1][/`([^']*)'/, 1]} called!"
|
14
|
-
end
|
15
|
-
logger.log('~~~~~~~~~~~~~~~~~~~~~~~~~~~')
|
16
|
-
logger.log('')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
Object.send(:include, Omg)
|
21
|
-
|
22
|
-
class OmgLogger
|
23
|
-
include Singleton
|
24
|
-
|
25
|
-
def log_with(logger, method)
|
26
|
-
@logger = logger
|
27
|
-
@method = method
|
28
|
-
end
|
29
|
-
|
30
|
-
def log(str)
|
31
|
-
if @logger && @method
|
32
|
-
@logger.send(@method.to_sym, str)
|
33
|
-
elsif defined?(Rails) && Rails.logger
|
34
|
-
if @method
|
35
|
-
Rails.logger.send(@method.to_sym, str)
|
36
|
-
else
|
37
|
-
Rails.logger.debug(str)
|
38
|
-
end
|
39
|
-
else
|
40
|
-
$stdout.puts(str)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{omg}
|
8
|
-
s.version = "0.0.6"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["philnash"]
|
12
|
-
s.date = %q{2010-10-21}
|
13
|
-
s.description = %q{OMG debugging!}
|
14
|
-
s.email = %q{philnash@gmail.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE",
|
17
|
-
"README.rdoc",
|
18
|
-
"TODO"
|
19
|
-
]
|
20
|
-
s.files = [
|
21
|
-
".document",
|
22
|
-
".gitignore",
|
23
|
-
"LICENSE",
|
24
|
-
"README.rdoc",
|
25
|
-
"Rakefile",
|
26
|
-
"TODO",
|
27
|
-
"VERSION",
|
28
|
-
"lib/omg.rb",
|
29
|
-
"omg.gemspec",
|
30
|
-
"test/helper.rb",
|
31
|
-
"test/test_omg.rb"
|
32
|
-
]
|
33
|
-
s.homepage = %q{http://github.com/philnash/omg}
|
34
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
35
|
-
s.require_paths = ["lib"]
|
36
|
-
s.rubygems_version = %q{1.3.7}
|
37
|
-
s.summary = %q{OMG debugging!}
|
38
|
-
s.test_files = [
|
39
|
-
"test/helper.rb",
|
40
|
-
"test/test_omg.rb"
|
41
|
-
]
|
42
|
-
|
43
|
-
if s.respond_to? :specification_version then
|
44
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
45
|
-
s.specification_version = 3
|
46
|
-
|
47
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
48
|
-
else
|
49
|
-
end
|
50
|
-
else
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{omg}
|
5
|
-
s.version = "0.0.6"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["philnash"]
|
9
|
-
s.date = %q{2010-10-21}
|
10
|
-
s.description = %q{OMG debugging!}
|
11
|
-
s.email = %q{philnash@gmail.com}
|
12
|
-
s.extra_rdoc_files = ["LICENSE", "README.rdoc", "TODO"]
|
13
|
-
s.files = [".document", ".gitignore", "LICENSE", "README.rdoc", "Rakefile", "TODO", "VERSION", "lib/omg.rb", "omg.gemspec", "test/helper.rb", "test/test_omg.rb"]
|
14
|
-
s.homepage = %q{http://github.com/philnash/omg}
|
15
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
16
|
-
s.require_paths = ["lib"]
|
17
|
-
s.rubygems_version = %q{1.3.7}
|
18
|
-
s.summary = %q{OMG debugging!}
|
19
|
-
s.test_files = ["test/helper.rb", "test/test_omg.rb"]
|
20
|
-
|
21
|
-
if s.respond_to? :specification_version then
|
22
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
23
|
-
s.specification_version = 3
|
24
|
-
|
25
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
-
else
|
27
|
-
end
|
28
|
-
else
|
29
|
-
end
|
30
|
-
end
|