assetsio 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path('../lib', __FILE__)
2
+ $:.unshift File.expand_path('../lib', __FILE__)
3
3
  require 'assetsio/version'
4
4
 
5
5
  Gem::Specification.new do |s|
@@ -12,14 +12,16 @@ Gem::Specification.new do |s|
12
12
  s.version = AssetsIO::VERSION
13
13
  s.platform = Gem::Platform::RUBY
14
14
 
15
+ s.rubygems_version = '1.3.7'
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_path = 'lib'
21
+
15
22
  s.add_dependency 'addressable'
16
23
 
17
24
  s.add_development_dependency 'rdoc', '>=2.4.2'
18
25
  s.add_development_dependency 'rspec', '>=2.0'
19
26
  s.add_development_dependency 'rake'
20
-
21
- s.files = `git ls-files`.split("\n")
22
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
23
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
24
- s.require_paths = ['lib']
25
27
  end
@@ -6,13 +6,13 @@ module AssetsIO
6
6
  class << self
7
7
  attr_accessor :account, :origin
8
8
 
9
- def asset_url(request, source, type)
10
- source_url = Addressable::URI.parse(request.url) + source
9
+ def asset_url(request, type, *sources)
10
+ request_uri = Addressable::URI.parse(request.url)
11
11
  asset_spec = {
12
12
  :a => account,
13
13
  :r => 'b6',
14
14
  :h => 'localhost', # TODO: remove once whitelisting refers to sources
15
- :s => [ source_url.to_s ],
15
+ :s => sources.map { | source| (request_uri + source).to_s },
16
16
  :v => 0,
17
17
  :w => 0
18
18
  }
@@ -1,5 +1,5 @@
1
1
  module AssetsIO
2
2
 
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
 
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: assetsio
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Martin Rehfeld
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-07 00:00:00 +02:00
13
+ date: 2011-06-13 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
91
  - - ">="
92
92
  - !ruby/object:Gem::Version
93
- hash: 2688446288608726187
93
+ hash: 958916750829875398
94
94
  segments:
95
95
  - 0
96
96
  version: "0"
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
- hash: 2688446288608726187
102
+ hash: 958916750829875398
103
103
  segments:
104
104
  - 0
105
105
  version: "0"