trackman 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trackman (0.3.4)
4
+ trackman (0.3.5)
5
5
  heroku (>= 2.26.2)
6
6
  json
7
7
  nokogiri
@@ -11,10 +11,10 @@ module Trackman
11
11
  Pathname.new 'public/503-error.html'
12
12
  end
13
13
  def maintenance_page
14
- Asset.create(:path => maintenance_path)
14
+ Asset.create(:path => maintenance_path, :virtual_path => maintenance_path)
15
15
  end
16
16
  def error_page
17
- Asset.create(:path => error_path)
17
+ Asset.create(:path => error_path, :virtual_path => error_path)
18
18
  end
19
19
  end
20
20
  end
@@ -3,10 +3,10 @@ module Trackman
3
3
  module Components
4
4
  module Diffable
5
5
  def diff local, remote
6
- to_create = local.select{|a| remote.all? { |s| a.path != s.path } }.map{|a| a.to_remote }.to_a
6
+ to_create = local.select{|a| remote.all? { |s| a.path != s.path } }.map{|a| a.to_remote }
7
7
  {
8
8
  :create => to_create,
9
- :update => remote.select{|a| local.any?{ |s| a.path == s.path && a.file_hash != s.file_hash }}.to_a,
9
+ :update => remote.select{|a| local.any?{ |s| a.path == s.path && a.file_hash != s.file_hash }},
10
10
  :delete => define_deleted(local, remote) do |a|
11
11
  to_create.any?{ |c| c.path.basename == a.path.basename }
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Trackman
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  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
4
+ version: 0.3.5
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-26 00:00:00.000000000 Z
13
+ date: 2012-08-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client