trackman 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/trackman/assets/remote_asset.rb +1 -1
- data/lib/trackman/version.rb +1 -1
- data/spec/rails32/first_push_spec.rb +18 -0
- metadata +2 -2
@@ -71,7 +71,7 @@ module Trackman
|
|
71
71
|
|
72
72
|
private
|
73
73
|
def build_params
|
74
|
-
{ :asset => { :virtual_path => virtual_path, :path => path.to_s, :file => File.open(path) } }
|
74
|
+
{ :asset => { :virtual_path => virtual_path.to_s, :path => path.to_s, :file => File.open(path) } }
|
75
75
|
end
|
76
76
|
def ensure_config
|
77
77
|
raise Errors::ConfigNotFoundError, "The config TRACKMAN_URL is missing." if @@server_url.nil?
|
data/lib/trackman/version.rb
CHANGED
@@ -25,6 +25,8 @@ describe 'first push' do
|
|
25
25
|
|
26
26
|
actual.should == expected
|
27
27
|
end
|
28
|
+
|
29
|
+
|
28
30
|
end
|
29
31
|
|
30
32
|
describe 'happy path' do
|
@@ -75,4 +77,20 @@ describe 'full path' do
|
|
75
77
|
|
76
78
|
local.each{|l| remote.should include(l) }
|
77
79
|
end
|
80
|
+
|
81
|
+
it "sends the good virtual paths to the server" do
|
82
|
+
virtual_paths = ['/assets/some-other-css.css', '/assets/application.css', '/assets/rails.png']
|
83
|
+
|
84
|
+
local = Asset.all
|
85
|
+
|
86
|
+
Asset.sync
|
87
|
+
|
88
|
+
remote = RemoteAsset.all
|
89
|
+
|
90
|
+
virtual_paths.each do |p|
|
91
|
+
|
92
|
+
local.any?{|a| a.virtual_path.to_s == p}.should be_true
|
93
|
+
remote.any?{|a| a.virtual_path.to_s == p }.should be_true
|
94
|
+
end
|
95
|
+
end
|
78
96
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trackman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-08-
|
13
|
+
date: 2012-08-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|