branchable_cdn_assets 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cd3996ab661a353fa2654919b90f807ae841401
4
- data.tar.gz: a98bf1c6f072c921f77be0da5fbad76a7382a379
3
+ metadata.gz: 8a008efbe63aa21e3683a783db6a53414ab8080d
4
+ data.tar.gz: 0d35d6678cb7743a9dcc2c0a7566b98d4d809130
5
5
  SHA512:
6
- metadata.gz: f92a6e8f898b91f402d6c2567718ea6dc9a0bc98fdc626e77c54a2295c802276719c2f9af9f424c8befaefd204a662e20ac0de5e7699f2bdc0b42b8aa928f734
7
- data.tar.gz: 687b5c199383b10631decce405660a7bd70404b70515d1748e9891d62a5fdea98510d0adf52b28c99f27d8425e93b1a613b6d040c1863e4666c19fa25ef91258
6
+ metadata.gz: c8b36cd34e6b06f43fd0f70ed60f71929c965a76b4798356b572fc210b4c558c559460652c9e8ce2fffe4267e6fdce521c0089a9f605638a742c93920c199293
7
+ data.tar.gz: e5f569e2665e45490a221e555dfcb454001051404278045ed25cc1a84375a261aa25b08b02f9aa594a78c7ac8206004ff48f28b564a825f251f99a0187d70641
@@ -45,7 +45,7 @@ module BranchableCDNAssets
45
45
 
46
46
  # read the manifest source_file
47
47
  def read_source_file
48
- IO.read(source_file).split("\n").to_set
48
+ IO.read(source_file).split.to_set
49
49
  end
50
50
 
51
51
  # render/serialize the manifest set
@@ -1,3 +1,3 @@
1
1
  module BranchableCDNAssets
2
- VERSION = "0.7.1" unless defined?(BranchableCDNAssets::VERSION)
2
+ VERSION = "0.7.2" unless defined?(BranchableCDNAssets::VERSION)
3
3
  end
@@ -59,6 +59,11 @@ describe BranchableCDNAssets::Manifest do
59
59
  expect( manifest.files ).to match_array manifest.file_set.to_a
60
60
  end
61
61
 
62
+ it "handles windows like file systems" do
63
+ allow( IO ).to receive(:read).with(source_file).and_return("foo\r\nbar")
64
+ expect( manifest.files ).to match_array ["foo", "bar"]
65
+ end
66
+
62
67
  end
63
68
 
64
69
  describe "#merge_files" do
data/spec/spec_helper.rb CHANGED
@@ -8,8 +8,13 @@ require 'support/hash'
8
8
 
9
9
  require 'branchable_cdn_assets'
10
10
 
11
- # silence stdout
12
- $stdout = StringIO.open('','w+')
11
+ if ENV['DEBUG'] == "true"
12
+ require "pry"
13
+ else
14
+ # silence stdout
15
+ $stdout = StringIO.open('','w+')
16
+ end
17
+
13
18
 
14
19
  RSpec.configure do |config|
15
20
  config.mock_with :rspec do |mocks|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: branchable_cdn_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Sloan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-24 00:00:00.000000000 Z
11
+ date: 2017-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.4.5.1
139
+ rubygems_version: 2.5.2
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Helpers for syncing and finding assets accross multiple remotes