asset_host_client 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +2 -0
- data/CHANGELOG.md +5 -1
- data/Gemfile +7 -1
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/asset_host_client.gemspec +1 -5
- data/circle.yml +3 -0
- data/lib/asset_host/asset.rb +21 -17
- data/lib/asset_host/asset_size.rb +2 -2
- data/lib/asset_host.rb +1 -1
- data/lib/asset_host_client/version.rb +1 -1
- data/lib/asset_host_client.rb +1 -1
- data/spec/fixtures/asset_with_video.json +88 -0
- data/spec/lib/asset_host/asset_spec.rb +29 -17
- data/spec/spec_helper.rb +2 -2
- metadata +26 -92
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: db51ded2da2f1470e1306d777dbb45afd3919381
|
4
|
+
data.tar.gz: ba0093be26742b8b8f57f02f316932907dcddca9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8ce0b0caf200551108299591639cf6fd08316760ff977c171ee199f81f3fa09b6aa5929d7b89676ee488e688d58d8cb3ee47bbe20ddc8dc6a60daa049ca4feb3
|
7
|
+
data.tar.gz: b289c765af6723b6f380f7f7d00dc6733d1be026a74afc2f0e051c85514d3b2f634d0fa4fb2a99e9d10bcea26e91b4f42abde3c81cedce803989d1ee6e08a643
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
data/asset_host_client.gemspec
CHANGED
@@ -18,13 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "rails", ">= 3.0"
|
21
|
+
spec.add_dependency "rails", [">= 3.0", "< 5"]
|
22
22
|
spec.add_dependency "faraday", "~> 0.8"
|
23
23
|
spec.add_dependency "faraday_middleware", "~> 0.8"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
26
|
-
spec.add_development_dependency "rake"
|
27
|
-
spec.add_development_dependency "rspec-rails"
|
28
|
-
spec.add_development_dependency "combustion"
|
29
|
-
spec.add_development_dependency "fakeweb"
|
30
26
|
end
|
data/circle.yml
ADDED
data/lib/asset_host/asset.rb
CHANGED
@@ -12,16 +12,16 @@ module AssetHost
|
|
12
12
|
|
13
13
|
BAD_STATUS = [400, 404, 500, 502]
|
14
14
|
GOOD_STATUS = [200]
|
15
|
-
|
15
|
+
|
16
16
|
#-------------------
|
17
|
-
|
17
|
+
|
18
18
|
class << self
|
19
19
|
def config
|
20
20
|
@config ||= Rails.application.config.assethost
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
#-------------------
|
24
|
-
|
24
|
+
|
25
25
|
def outputs
|
26
26
|
@outputs ||= begin
|
27
27
|
key = "assets/outputs"
|
@@ -29,31 +29,31 @@ module AssetHost
|
|
29
29
|
if cached = Rails.cache.read(key)
|
30
30
|
return cached
|
31
31
|
end
|
32
|
-
|
32
|
+
|
33
33
|
response = connection.get "#{config.prefix}/outputs"
|
34
|
-
|
34
|
+
|
35
35
|
if !GOOD_STATUS.include? response.status
|
36
36
|
outputs = JSON.parse(File.read(File.join(AssetHost.fallback_root, "outputs.json")))
|
37
37
|
else
|
38
38
|
outputs = response.body
|
39
39
|
Rails.cache.write(key, outputs)
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
outputs
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
#-------------------
|
47
|
-
|
47
|
+
|
48
48
|
# asset = Asset.find(id)
|
49
49
|
# Given an asset ID, returns an asset object
|
50
50
|
def find(id)
|
51
51
|
key = "asset/asset-#{id}"
|
52
|
-
|
52
|
+
|
53
53
|
if cached = Rails.cache.read(key)
|
54
54
|
return new(cached)
|
55
55
|
end
|
56
|
-
|
56
|
+
|
57
57
|
response = connection.get "#{config.prefix}/assets/#{id}"
|
58
58
|
json = response.body
|
59
59
|
|
@@ -92,7 +92,7 @@ module AssetHost
|
|
92
92
|
def connection
|
93
93
|
@connection ||= begin
|
94
94
|
Faraday.new(
|
95
|
-
:url => "http://#{config.server}",
|
95
|
+
:url => "http://#{config.server}",
|
96
96
|
:params => { auth_token: config.token }
|
97
97
|
) do |conn|
|
98
98
|
conn.request :json
|
@@ -102,9 +102,9 @@ module AssetHost
|
|
102
102
|
end
|
103
103
|
end
|
104
104
|
end
|
105
|
-
|
105
|
+
|
106
106
|
#----------
|
107
|
-
|
107
|
+
|
108
108
|
ATTRIBUTES = [
|
109
109
|
:caption,
|
110
110
|
:title,
|
@@ -130,14 +130,18 @@ module AssetHost
|
|
130
130
|
end
|
131
131
|
end
|
132
132
|
|
133
|
+
def is_rich?
|
134
|
+
self.native.present?
|
135
|
+
end
|
136
|
+
|
133
137
|
#----------
|
134
|
-
|
138
|
+
|
135
139
|
def _size(output)
|
136
140
|
@_sizes[ output['code'] ] ||= AssetSize.new(self, output)
|
137
141
|
end
|
138
|
-
|
142
|
+
|
139
143
|
#----------
|
140
|
-
|
144
|
+
|
141
145
|
def as_json(options={})
|
142
146
|
@json
|
143
147
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module AssetHost
|
2
2
|
class AssetSize
|
3
3
|
attr_accessor :width, :height, :tag, :url, :asset, :output
|
4
|
-
|
4
|
+
|
5
5
|
def initialize(asset, output)
|
6
6
|
@asset = asset
|
7
7
|
@output = output
|
@@ -11,7 +11,7 @@ module AssetHost
|
|
11
11
|
self.tag = @asset.json['tags'][ output['code'] ]
|
12
12
|
self.url = @asset.json['urls'][ output['code'] ]
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
def tag
|
16
16
|
@tag.html_safe
|
17
17
|
end
|
data/lib/asset_host.rb
CHANGED
data/lib/asset_host_client.rb
CHANGED
@@ -0,0 +1,88 @@
|
|
1
|
+
{
|
2
|
+
"id": 70507,
|
3
|
+
"title": "The Running of the Bulls",
|
4
|
+
"caption": "Full Story: http://dft.ba/-BullRun\nJoin Us: http://improveverywhere.com/email-lists/\nVIDEO EVERY TUESDAY THIS FALL - SUBSCRIBE: http://bit.ly/iesub\n\nFor our latest mission, we staged an unannounced running of the bulls at the Venice Beach boardwalk with ridiculous, 7ft tall inflatable bull costumes. Runners dressed in white clothes and red bandanas appeared suddenly on the boardwalk, running for their lives from the giant bulls through crowds of unsuspecting Venice Beach locals. The runners were led by Guillermo Rodriguez from Jimmy Kimmel Live! and the soundtrack was written and performed by Reggie Watts of JASH.\n\nCreated and Directed by Charlie Todd\nhttp://improveverywhere.com/\n\nMusic by Reggie Watts\nhttp://www.youtube.com/user/ReggieWattsJash\nMaking of the song: http://www.youtube.com/watch?v=_Ags6Fmjroo\n\nRunners:\nAlex Carpenter\nhttp://www.youtube.com/user/AlexanderCarpenter\nAlex Mercado \nhttp://www.youtube.com/soaroftheconchords\nAndrew Maness\nhttp://www.youtube.com/user/cohorts2006\nAnthony Hull\nhttp://www.youtube.com/user/anthull22\nBangakang (Nick and Tyler)\nhttp://www.youtube.com/user/bangakang\nBeto Lopez\nhttp://www.youtube.com/user/Mooncricket\nBrittani Taylor\nhttp://www.youtube.com/user/BrittaniLouiseTaylor\nBrock Baker\nhttp://www.youtube.com/user/McGoiter\nCiji Thorton\nhttp://www.youtube.com/user/starslay3r\nDartanion London\nhttp://www.youtube.com/user/DartanionLondon\nEdwin Ramos\nhttp://www.youtube.com/edwinsgeneration\nHank Chen\nhttp://www.youtube.com/Hanksterchen\nThe Fu\nhttp://www.youtube.com/user/thefumusic\nJason Horton\nhttp://www.youtube.com/jasonhorton\nJay Taj\nhttp://www.youtube.com/user/iamjaytaj\nJoe Penna-Mystery Guitar Man\nhttp://www.youtube.com/mysteryguitarman\nBlack Prez (Josh Madry)\nhttp://www.youtube.com/user/BlackPrez303\nKaleb Nation\nhttp://www.youtube.com/user/kalebnation\nLisa Malambri\nhttp://www.youtube.com/user/LisaMalambri\nMark Williams\nhttp://www.youtube.com/user/MysticGotJokes\nMenace\nhttp://www.youtube.com/user/whitemenace\nShane Hartline\nhttp://www.youtube.com/user/WoodenSteel\nShira Lazar\nhttp://www.youtube.com/user/Whatstrending\nVeronica Ballestrini\nhttp://www.youtube.com/veronicaballestrini\nWhitney Lauritsen\nhttp://www.youtube.com/user/EcoVeganGal\nAll runners from the #fiestamovement\n\nSpecial Guest Star Runner: Guillermo Rodriguez from #kimmel\nhttps://twitter.com/IAMGUILLERMO\n\nProduction: Collective Digital Studios; Raul Celaya, producer\nEdited by: Deverge\n\nThis is one of over 100 different missions Improv Everywhere has executed over the past ten years in New York City. Others include Frozen Grand Central, the Food Court Musical, and the famous No Pants Subway Ride, to name a few. Visit our website to see tons of photos and video of all of our work, including behind the scenes information on how this video was made.\n\nhttp://improveverywhere.com\n\nBe the first to find out about the next video we create by subscribing to our YouTube channel: http://youtube.com/subscription_center?add_user=ImprovEverywhere\n\nJOIN OUR RANKS:\nhttp://improveverywhere.com/email-lists/\n\nYou can also like us on Facebook:\nhttp://facebook.com/improv.everywhere\n\nOr follow us on twitter:\nhttp://twitter.com/improvevery",
|
5
|
+
"owner": "Improv Everywhere (via YouTube)",
|
6
|
+
"size": "1280x720",
|
7
|
+
"tags": {
|
8
|
+
"thumb": "<img src=\"http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-thumb.jpg\" width=\"88\" height=\"88\" alt=\"The Running of the Bulls\" />",
|
9
|
+
"lsquare": "<img src=\"http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-lsquare.jpg\" width=\"188\" height=\"188\" alt=\"The Running of the Bulls\" />",
|
10
|
+
"lead": "<img src=\"http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-lead.jpg\" width=\"324\" height=\"182\" alt=\"The Running of the Bulls\" />",
|
11
|
+
"wide": "<img src=\"http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-wide.jpg\" width=\"620\" height=\"349\" alt=\"The Running of the Bulls\" data-assethost=\"YoutubeVideo\" data-ah-videoid=\"gkm-DigpYLM\"/>",
|
12
|
+
"full": "<img src=\"http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-full.jpg\" width=\"1024\" height=\"576\" alt=\"The Running of the Bulls\" data-assethost=\"YoutubeVideo\" data-ah-videoid=\"gkm-DigpYLM\"/>",
|
13
|
+
"six": "<img src=\"http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-six.jpg\" width=\"540\" height=\"304\" alt=\"The Running of the Bulls\" data-assethost=\"YoutubeVideo\" data-ah-videoid=\"gkm-DigpYLM\"/>",
|
14
|
+
"eight": "<img src=\"http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-eight.jpg\" width=\"730\" height=\"411\" alt=\"The Running of the Bulls\" data-assethost=\"YoutubeVideo\" data-ah-videoid=\"gkm-DigpYLM\"/>",
|
15
|
+
"four": "<img src=\"http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-four.jpg\" width=\"600\" height=\"338\" alt=\"The Running of the Bulls\" />",
|
16
|
+
"three": "<img src=\"http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-three.jpg\" width=\"255\" height=\"143\" alt=\"The Running of the Bulls\" />",
|
17
|
+
"five": "<img src=\"http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-five.jpg\" width=\"594\" height=\"334\" alt=\"The Running of the Bulls\" />",
|
18
|
+
"small": "<img src=\"http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-small.jpg\" width=\"450\" height=\"253\" alt=\"The Running of the Bulls\" />"
|
19
|
+
},
|
20
|
+
"notes": "Imported from YouTube: http://www.youtube.com/watch?v=gkm-DigpYLM",
|
21
|
+
"created_at": "2013-10-22T00:24:39Z",
|
22
|
+
"taken_at": "2013-10-22T00:24:39Z",
|
23
|
+
"native": {
|
24
|
+
"class": "YoutubeVideo",
|
25
|
+
"videoid": "gkm-DigpYLM"
|
26
|
+
},
|
27
|
+
"image_file_size": 506644,
|
28
|
+
"url": "http://a.scpr.org/api/assets/70507/",
|
29
|
+
"sizes": {
|
30
|
+
"thumb": {
|
31
|
+
"width": 88,
|
32
|
+
"height": 88
|
33
|
+
},
|
34
|
+
"lsquare": {
|
35
|
+
"width": 188,
|
36
|
+
"height": 188
|
37
|
+
},
|
38
|
+
"lead": {
|
39
|
+
"width": 324,
|
40
|
+
"height": 182
|
41
|
+
},
|
42
|
+
"wide": {
|
43
|
+
"width": 620,
|
44
|
+
"height": 349
|
45
|
+
},
|
46
|
+
"full": {
|
47
|
+
"width": 1024,
|
48
|
+
"height": 576
|
49
|
+
},
|
50
|
+
"six": {
|
51
|
+
"width": 540,
|
52
|
+
"height": 304
|
53
|
+
},
|
54
|
+
"eight": {
|
55
|
+
"width": 730,
|
56
|
+
"height": 411
|
57
|
+
},
|
58
|
+
"four": {
|
59
|
+
"width": 600,
|
60
|
+
"height": 338
|
61
|
+
},
|
62
|
+
"three": {
|
63
|
+
"width": 255,
|
64
|
+
"height": 143
|
65
|
+
},
|
66
|
+
"five": {
|
67
|
+
"width": 594,
|
68
|
+
"height": 334
|
69
|
+
},
|
70
|
+
"small": {
|
71
|
+
"width": 450,
|
72
|
+
"height": 253
|
73
|
+
}
|
74
|
+
},
|
75
|
+
"urls": {
|
76
|
+
"thumb": "http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-thumb.jpg",
|
77
|
+
"lsquare": "http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-lsquare.jpg",
|
78
|
+
"lead": "http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-lead.jpg",
|
79
|
+
"wide": "http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-wide.jpg",
|
80
|
+
"full": "http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-full.jpg",
|
81
|
+
"six": "http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-six.jpg",
|
82
|
+
"eight": "http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-eight.jpg",
|
83
|
+
"four": "http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-four.jpg",
|
84
|
+
"three": "http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-three.jpg",
|
85
|
+
"five": "http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-five.jpg",
|
86
|
+
"small": "http://a.scpr.org/i/7d67279b0aa19505b168530f1179979e/70507-small.jpg"
|
87
|
+
}
|
88
|
+
}
|
@@ -6,41 +6,41 @@ describe AssetHost::Asset do
|
|
6
6
|
AssetHost::Asset.instance_variable_set :@outputs, nil
|
7
7
|
Rails.cache.clear
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
after :all do
|
11
11
|
AssetHost::Asset.instance_variable_set :@outputs, nil
|
12
12
|
Rails.cache.clear
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
it "uses @outputs if it already exists" do
|
16
16
|
AssetHost::Asset.instance_variable_set :@outputs, "Outputs"
|
17
17
|
AssetHost::Asset.outputs.should eq "Outputs"
|
18
18
|
end
|
19
|
-
|
19
|
+
|
20
20
|
it "uses the cached version if it exists" do
|
21
21
|
Rails.cache.read("assets/outputs").should eq nil
|
22
22
|
Rails.cache.write("assets/outputs", "OUTPUTS!")
|
23
23
|
AssetHost::Asset.outputs.should eq "OUTPUTS!"
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
26
|
it "sends a request to the api to get outputs" do
|
27
27
|
outputs = AssetHost::Asset.outputs
|
28
28
|
FakeWeb.last_request.path.should match "/outputs"
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
it "returns fallback outputs if the API can't be reached" do
|
32
32
|
Faraday::Response.any_instance.stub(:status) { 500 }
|
33
33
|
AssetHost::Asset.outputs.should eq(load_fallback("outputs.json"))
|
34
34
|
end
|
35
|
-
|
35
|
+
|
36
36
|
it "writes to cache on successful API response" do
|
37
37
|
Rails.cache.should_receive(:write).with("assets/outputs", anything)
|
38
38
|
AssetHost::Asset.outputs
|
39
39
|
end
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
#---------------------
|
43
|
-
|
43
|
+
|
44
44
|
describe "find" do
|
45
45
|
it "returns cached asset json if it exists" do
|
46
46
|
Rails.cache.read("asset/asset-1").should eq nil
|
@@ -48,47 +48,47 @@ describe AssetHost::Asset do
|
|
48
48
|
Rails.cache.write("asset/asset-1", "AssetHost::Asset #1")
|
49
49
|
AssetHost::Asset.find(1).should eq "Okedoke"
|
50
50
|
end
|
51
|
-
|
51
|
+
|
52
52
|
it "sends a request to the API on cache miss" do
|
53
53
|
asset = AssetHost::Asset.find(1)
|
54
54
|
FakeWeb.last_request.path.should match "api/assets/1"
|
55
55
|
end
|
56
|
-
|
56
|
+
|
57
57
|
context "bad response 500" do
|
58
58
|
before :each do
|
59
59
|
Faraday::Response.any_instance.stub(:status) { 500 }
|
60
60
|
end
|
61
|
-
|
61
|
+
|
62
62
|
it "Returns a fallback asset" do
|
63
63
|
AssetHost::Asset.find(1).should be_a AssetHost::Asset::Fallback
|
64
64
|
end
|
65
65
|
end
|
66
|
-
|
66
|
+
|
67
67
|
context "bad response 502" do
|
68
68
|
before :each do
|
69
69
|
Faraday::Response.any_instance.stub(:status) { 502 }
|
70
70
|
end
|
71
|
-
|
71
|
+
|
72
72
|
it "Returns a fallback asset" do
|
73
73
|
AssetHost::Asset.find(1).should be_a AssetHost::Asset::Fallback
|
74
74
|
end
|
75
75
|
end
|
76
|
-
|
76
|
+
|
77
77
|
context "good response" do
|
78
78
|
it "writes to cache" do
|
79
79
|
Rails.cache.should_receive(:write).with("asset/asset-1", load_fixture("asset.json"))
|
80
80
|
AssetHost::Asset.find(1)
|
81
81
|
end
|
82
|
-
|
82
|
+
|
83
83
|
it "creates a new asset from the json" do
|
84
84
|
AssetHost::Asset.should_receive(:new).with(load_fixture("asset.json"))
|
85
85
|
AssetHost::Asset.find(1)
|
86
86
|
end
|
87
87
|
end
|
88
88
|
end
|
89
|
-
|
89
|
+
|
90
90
|
#-------------------
|
91
|
-
|
91
|
+
|
92
92
|
describe '::create' do
|
93
93
|
it 'sends an Asset to the API and builds and object from the response if it is success' do
|
94
94
|
asset = AssetHost::Asset.create({ title: "New Asset" })
|
@@ -109,4 +109,16 @@ describe AssetHost::Asset do
|
|
109
109
|
asset.thumb.should be_a AssetHost::AssetSize
|
110
110
|
asset.lsquare.should be_a AssetHost::AssetSize
|
111
111
|
end
|
112
|
+
|
113
|
+
describe '#is_rich?' do
|
114
|
+
it 'is true for rich assets' do
|
115
|
+
asset = AssetHost::Asset.new(load_fixture("asset_with_video.json"))
|
116
|
+
asset.is_rich?.should eq true
|
117
|
+
end
|
118
|
+
|
119
|
+
it 'is false for non-rich assets' do
|
120
|
+
asset = AssetHost::Asset.new(load_fixture("asset.json"))
|
121
|
+
asset.is_rich?.should eq false
|
122
|
+
end
|
123
|
+
end
|
112
124
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -2,7 +2,7 @@ require 'combustion'
|
|
2
2
|
|
3
3
|
unless defined?(RAKED)
|
4
4
|
Bundler.require :default, :test
|
5
|
-
Combustion.initialize!
|
5
|
+
Combustion.initialize! :action_view, :action_controller
|
6
6
|
end
|
7
7
|
|
8
8
|
if ENV['CI']
|
@@ -40,7 +40,7 @@ RSpec.configure do |config|
|
|
40
40
|
config.run_all_when_everything_filtered = true
|
41
41
|
|
42
42
|
config.include JSONLoader
|
43
|
-
|
43
|
+
|
44
44
|
config.after :each do
|
45
45
|
Rails.cache.clear
|
46
46
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asset_host_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Bryan Ricker
|
@@ -10,136 +9,70 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 2014-03-20 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rails
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - ">="
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: '3.0'
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '5'
|
23
24
|
type: :runtime
|
24
25
|
prerelease: false
|
25
26
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
27
|
requirements:
|
28
|
-
- -
|
28
|
+
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
30
|
version: '3.0'
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5'
|
31
34
|
- !ruby/object:Gem::Dependency
|
32
35
|
name: faraday
|
33
36
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
37
|
requirements:
|
36
|
-
- - ~>
|
38
|
+
- - "~>"
|
37
39
|
- !ruby/object:Gem::Version
|
38
40
|
version: '0.8'
|
39
41
|
type: :runtime
|
40
42
|
prerelease: false
|
41
43
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
44
|
requirements:
|
44
|
-
- - ~>
|
45
|
+
- - "~>"
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '0.8'
|
47
48
|
- !ruby/object:Gem::Dependency
|
48
49
|
name: faraday_middleware
|
49
50
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.8'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
57
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
58
|
requirements:
|
60
|
-
- - ~>
|
59
|
+
- - "~>"
|
61
60
|
- !ruby/object:Gem::Version
|
62
61
|
version: '0.8'
|
63
62
|
- !ruby/object:Gem::Dependency
|
64
63
|
name: bundler
|
65
64
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
65
|
requirements:
|
68
|
-
- - ~>
|
66
|
+
- - "~>"
|
69
67
|
- !ruby/object:Gem::Version
|
70
68
|
version: '1.3'
|
71
69
|
type: :development
|
72
70
|
prerelease: false
|
73
71
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
72
|
requirements:
|
76
|
-
- - ~>
|
73
|
+
- - "~>"
|
77
74
|
- !ruby/object:Gem::Version
|
78
75
|
version: '1.3'
|
79
|
-
- !ruby/object:Gem::Dependency
|
80
|
-
name: rake
|
81
|
-
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
|
-
requirements:
|
84
|
-
- - ! '>='
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: '0'
|
87
|
-
type: :development
|
88
|
-
prerelease: false
|
89
|
-
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
|
-
requirements:
|
92
|
-
- - ! '>='
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: '0'
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: rspec-rails
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
|
-
requirements:
|
100
|
-
- - ! '>='
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '0'
|
103
|
-
type: :development
|
104
|
-
prerelease: false
|
105
|
-
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
|
-
requirements:
|
108
|
-
- - ! '>='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: combustion
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
|
-
requirements:
|
116
|
-
- - ! '>='
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
version: '0'
|
119
|
-
type: :development
|
120
|
-
prerelease: false
|
121
|
-
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
none: false
|
123
|
-
requirements:
|
124
|
-
- - ! '>='
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
version: '0'
|
127
|
-
- !ruby/object:Gem::Dependency
|
128
|
-
name: fakeweb
|
129
|
-
requirement: !ruby/object:Gem::Requirement
|
130
|
-
none: false
|
131
|
-
requirements:
|
132
|
-
- - ! '>='
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version: '0'
|
135
|
-
type: :development
|
136
|
-
prerelease: false
|
137
|
-
version_requirements: !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
|
-
requirements:
|
140
|
-
- - ! '>='
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: '0'
|
143
76
|
description: Ruby client for AssetHost
|
144
77
|
email:
|
145
78
|
- bricker88@gmail.com
|
@@ -147,14 +80,15 @@ executables: []
|
|
147
80
|
extensions: []
|
148
81
|
extra_rdoc_files: []
|
149
82
|
files:
|
150
|
-
- .gitignore
|
151
|
-
- .travis.yml
|
83
|
+
- ".gitignore"
|
84
|
+
- ".travis.yml"
|
152
85
|
- CHANGELOG.md
|
153
86
|
- Gemfile
|
154
87
|
- LICENSE.txt
|
155
88
|
- README.md
|
156
89
|
- Rakefile
|
157
90
|
- asset_host_client.gemspec
|
91
|
+
- circle.yml
|
158
92
|
- config.ru
|
159
93
|
- lib/asset_host.rb
|
160
94
|
- lib/asset_host/asset.rb
|
@@ -162,6 +96,7 @@ files:
|
|
162
96
|
- lib/asset_host_client.rb
|
163
97
|
- lib/asset_host_client/version.rb
|
164
98
|
- spec/fixtures/asset.json
|
99
|
+
- spec/fixtures/asset_with_video.json
|
165
100
|
- spec/fixtures/outputs.json
|
166
101
|
- spec/internal/config/database.yml
|
167
102
|
- spec/internal/config/initializers/asset_host_config.rb
|
@@ -178,30 +113,30 @@ files:
|
|
178
113
|
homepage: https://github.com/SCPR/asset_host_client
|
179
114
|
licenses:
|
180
115
|
- MIT
|
116
|
+
metadata: {}
|
181
117
|
post_install_message:
|
182
118
|
rdoc_options: []
|
183
119
|
require_paths:
|
184
120
|
- lib
|
185
121
|
required_ruby_version: !ruby/object:Gem::Requirement
|
186
|
-
none: false
|
187
122
|
requirements:
|
188
|
-
- -
|
123
|
+
- - ">="
|
189
124
|
- !ruby/object:Gem::Version
|
190
125
|
version: '0'
|
191
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
|
-
none: false
|
193
127
|
requirements:
|
194
|
-
- -
|
128
|
+
- - ">="
|
195
129
|
- !ruby/object:Gem::Version
|
196
130
|
version: '0'
|
197
131
|
requirements: []
|
198
132
|
rubyforge_project:
|
199
|
-
rubygems_version:
|
133
|
+
rubygems_version: 2.2.2
|
200
134
|
signing_key:
|
201
|
-
specification_version:
|
135
|
+
specification_version: 4
|
202
136
|
summary: Ruby client for AssetHost API interaction.
|
203
137
|
test_files:
|
204
138
|
- spec/fixtures/asset.json
|
139
|
+
- spec/fixtures/asset_with_video.json
|
205
140
|
- spec/fixtures/outputs.json
|
206
141
|
- spec/internal/config/database.yml
|
207
142
|
- spec/internal/config/initializers/asset_host_config.rb
|
@@ -215,4 +150,3 @@ test_files:
|
|
215
150
|
- spec/lib/asset_host/asset_spec.rb
|
216
151
|
- spec/spec_helper.rb
|
217
152
|
- spec/support/json_loader.rb
|
218
|
-
has_rdoc:
|