bitsontherun 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -3
- data/Rakefile +4 -1
- data/lib/bitsontherun.rb +5 -4
- data/lib/bitsontherun/version.rb +1 -1
- data/spec/lib/store_spec.rb +7 -1
- metadata +2 -35
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bitsontherun (0.
|
4
|
+
bitsontherun (0.1.1)
|
5
5
|
curb (>= 0.7.0)
|
6
6
|
json (>= 1.4.0)
|
7
7
|
|
@@ -26,6 +26,4 @@ PLATFORMS
|
|
26
26
|
DEPENDENCIES
|
27
27
|
bitsontherun!
|
28
28
|
bundler (>= 1.0.0)
|
29
|
-
curb (>= 0.7.0)
|
30
|
-
json (>= 1.4.0)
|
31
29
|
rspec (>= 2.1.0)
|
data/Rakefile
CHANGED
data/lib/bitsontherun.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'bitsontherun/version'
|
1
2
|
require 'curb'
|
2
3
|
require 'cgi'
|
3
4
|
require 'uri'
|
@@ -49,6 +50,10 @@ module BitsOnTheRun
|
|
49
50
|
end
|
50
51
|
end
|
51
52
|
|
53
|
+
def configure
|
54
|
+
yield self if block_given?
|
55
|
+
end
|
56
|
+
|
52
57
|
class << self
|
53
58
|
def call(method, params = {})
|
54
59
|
adapter = API.new(:call)
|
@@ -62,9 +67,5 @@ module BitsOnTheRun
|
|
62
67
|
adapter.file(filename)
|
63
68
|
adapter.execute
|
64
69
|
end
|
65
|
-
|
66
|
-
def configure
|
67
|
-
yield self if block_given?
|
68
|
-
end
|
69
70
|
end
|
70
71
|
end
|
data/lib/bitsontherun/version.rb
CHANGED
data/spec/lib/store_spec.rb
CHANGED
@@ -13,7 +13,13 @@ describe "API call to store new video file" do
|
|
13
13
|
@manual.file(@file)
|
14
14
|
@responses << @manual.execute
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
|
+
after do
|
18
|
+
@responses.each do |video|
|
19
|
+
BitsOnTheRun::call('videos/delete', :video_key => video.media.key)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
17
23
|
it "should contain information about uploaded video" do
|
18
24
|
@responses.each do |r|
|
19
25
|
r.file(:md5).size.should eql(32)
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bitsontherun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 27
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 0
|
10
|
-
version: 0.1.0
|
5
|
+
version: 0.1.1
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- "Adrian Duli\xC4\x87"
|
@@ -26,11 +21,6 @@ dependencies:
|
|
26
21
|
requirements:
|
27
22
|
- - ">="
|
28
23
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 7
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 4
|
33
|
-
- 0
|
34
24
|
version: 1.4.0
|
35
25
|
type: :runtime
|
36
26
|
version_requirements: *id001
|
@@ -42,11 +32,6 @@ dependencies:
|
|
42
32
|
requirements:
|
43
33
|
- - ">="
|
44
34
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 3
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
- 7
|
49
|
-
- 0
|
50
35
|
version: 0.7.0
|
51
36
|
type: :runtime
|
52
37
|
version_requirements: *id002
|
@@ -58,11 +43,6 @@ dependencies:
|
|
58
43
|
requirements:
|
59
44
|
- - ">="
|
60
45
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 23
|
62
|
-
segments:
|
63
|
-
- 1
|
64
|
-
- 0
|
65
|
-
- 0
|
66
46
|
version: 1.0.0
|
67
47
|
type: :development
|
68
48
|
version_requirements: *id003
|
@@ -74,11 +54,6 @@ dependencies:
|
|
74
54
|
requirements:
|
75
55
|
- - ">="
|
76
56
|
- !ruby/object:Gem::Version
|
77
|
-
hash: 11
|
78
|
-
segments:
|
79
|
-
- 2
|
80
|
-
- 1
|
81
|
-
- 0
|
82
57
|
version: 2.1.0
|
83
58
|
type: :development
|
84
59
|
version_requirements: *id004
|
@@ -132,25 +107,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
107
|
requirements:
|
133
108
|
- - ">="
|
134
109
|
- !ruby/object:Gem::Version
|
135
|
-
hash: 3
|
136
|
-
segments:
|
137
|
-
- 0
|
138
110
|
version: "0"
|
139
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
112
|
none: false
|
141
113
|
requirements:
|
142
114
|
- - ">="
|
143
115
|
- !ruby/object:Gem::Version
|
144
|
-
hash: 23
|
145
|
-
segments:
|
146
|
-
- 1
|
147
|
-
- 3
|
148
|
-
- 6
|
149
116
|
version: 1.3.6
|
150
117
|
requirements: []
|
151
118
|
|
152
119
|
rubyforge_project: bitsontherun
|
153
|
-
rubygems_version: 1.5.
|
120
|
+
rubygems_version: 1.5.2
|
154
121
|
signing_key:
|
155
122
|
specification_version: 3
|
156
123
|
summary: BitsOnTheRun.com API implementation in Ruby
|