multi_sync 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +6 -8
  3. data/Gemfile +0 -1
  4. data/README.md +79 -51
  5. data/Rakefile +0 -22
  6. data/lib/multi_sync.rb +27 -5
  7. data/lib/multi_sync/attributes/pathname.rb +1 -1
  8. data/lib/multi_sync/client.rb +124 -112
  9. data/lib/multi_sync/configuration.rb +4 -1
  10. data/lib/multi_sync/extensions/jekyll.rb +24 -0
  11. data/lib/multi_sync/extensions/middleman.rb +1 -7
  12. data/lib/multi_sync/extensions/rails.rb +0 -2
  13. data/lib/multi_sync/{mixins/pluralize_helper.rb → helpers/pluralize.rb} +2 -2
  14. data/lib/multi_sync/logging.rb +7 -0
  15. data/lib/multi_sync/resource.rb +0 -2
  16. data/lib/multi_sync/resources/local_resource.rb +0 -1
  17. data/lib/multi_sync/source.rb +0 -2
  18. data/lib/multi_sync/sources/local_source.rb +3 -1
  19. data/lib/multi_sync/sources/manifest_source.rb +14 -16
  20. data/lib/multi_sync/target.rb +3 -3
  21. data/lib/multi_sync/targets/aws_target.rb +6 -10
  22. data/lib/multi_sync/targets/local_target.rb +7 -15
  23. data/lib/multi_sync/version.rb +1 -1
  24. data/lib/tasks/multi_sync_rails.rake +4 -4
  25. data/multi_sync.gemspec +3 -2
  26. data/spec/support/fog.rb +0 -1
  27. data/spec/support/timecop.rb +7 -1
  28. data/spec/support/tmpdir.rb +18 -0
  29. data/spec/unit/multi_sync/client_spec.rb +51 -74
  30. data/spec/unit/multi_sync/configuration_spec.rb +54 -83
  31. data/spec/unit/multi_sync/resources/local_resource_spec.rb +9 -7
  32. data/spec/unit/multi_sync/sources/local_source_spec.rb +14 -14
  33. data/spec/unit/multi_sync/sources/manifest_source_spec.rb +16 -18
  34. data/spec/unit/multi_sync/targets/aws_target_spec.rb +8 -8
  35. data/spec/unit/multi_sync/targets/local_target_spec.rb +9 -9
  36. data/spec/unit/multi_sync_spec.rb +44 -31
  37. metadata +102 -91
  38. data/gemfiles/middleman-3.1.x.gemfile +0 -5
  39. data/gemfiles/rails-3.2.x.gemfile +0 -5
  40. data/gemfiles/rails-4.0.x.gemfile +0 -5
  41. data/lib/multi_sync/mixins/log_helper.rb +0 -9
  42. data/spec/support/fakefs.rb +0 -7
@@ -1,46 +1,46 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe MultiSync::LocalSource, fakefs: true do
3
+ describe MultiSync::LocalSource do
4
4
  before do
5
- FileUtils.mkdir_p('/tmp/local-source')
6
- File.open('/tmp/local-source/foo.txt', 'w') do |f| f.write('foo') end
7
- File.open('/tmp/local-source/bar.txt', 'w') do |f| f.write('bar') end
8
- FileUtils.mkdir_p('/tmp/local-source/in-a-dir')
9
- File.open('/tmp/local-source/in-a-dir/baz.html', 'w') do |f| f.write('baz') end
10
- File.open('/tmp/local-source/in-a-dir/baz.txt', 'w') do |f| f.write('baz') end
5
+ FileUtils.mkdir_p('tmp/local-source')
6
+ File.open('tmp/local-source/foo.txt', File::CREAT | File::RDWR) do |f| f.write('foo') end
7
+ File.open('tmp/local-source/bar.txt', File::CREAT | File::RDWR) do |f| f.write('bar') end
8
+ FileUtils.mkdir_p('tmp/local-source/in-a-dir')
9
+ File.open('tmp/local-source/in-a-dir/baz.html', File::CREAT | File::RDWR) do |f| f.write('baz') end
10
+ File.open('tmp/local-source/in-a-dir/baz.txt', File::CREAT | File::RDWR) do |f| f.write('baz') end
11
11
  end
12
12
 
13
13
  describe :files do
14
14
  it 'should find files' do
15
- source = MultiSync::LocalSource.new(source_dir: '/tmp/local-source')
15
+ source = MultiSync::LocalSource.new(source_dir: 'tmp/local-source')
16
16
  expect(source.files).to have(4).files
17
17
  end
18
18
 
19
19
  it 'should ignore found files' do
20
- source = MultiSync::LocalSource.new(source_dir: '/tmp/local-source', include: '**/*', exclude: '*/*.html')
20
+ source = MultiSync::LocalSource.new(source_dir: 'tmp/local-source', include: '**/*', exclude: '*/*.html')
21
21
  expect(source.files).to have(3).files
22
22
  end
23
23
 
24
24
  it 'should find files (recursively)' do
25
- source = MultiSync::LocalSource.new(source_dir: '/tmp/local-source', include: '**/*')
25
+ source = MultiSync::LocalSource.new(source_dir: 'tmp/local-source', include: '**/*')
26
26
  expect(source.files).to have(4).files
27
27
  end
28
28
 
29
29
  it 'should find files (by type)' do
30
- source = MultiSync::LocalSource.new(source_dir: '/tmp/local-source', include: '**/*.txt')
30
+ source = MultiSync::LocalSource.new(source_dir: 'tmp/local-source', include: '**/*.txt')
31
31
  expect(source.files).to have(3).files
32
32
  end
33
33
 
34
34
  context :with_root do
35
35
  it 'should return files with the root' do
36
- source = MultiSync::LocalSource.new(source_dir: '/tmp/local-source')
37
- expect(source.files[0].path_with_root.to_s).to eq '/tmp/local-source/bar.txt'
36
+ source = MultiSync::LocalSource.new(source_dir: 'tmp/local-source')
37
+ expect(source.files[0].path_with_root.to_s).to eq 'tmp/local-source/bar.txt'
38
38
  end
39
39
  end
40
40
 
41
41
  context :without_root do
42
42
  it 'should return files without the root' do
43
- source = MultiSync::LocalSource.new(source_dir: '/tmp/local-source')
43
+ source = MultiSync::LocalSource.new(source_dir: 'tmp/local-source')
44
44
  expect(source.files[0].path_without_root.to_s).to eq 'bar.txt'
45
45
  end
46
46
  end
@@ -3,54 +3,52 @@ require 'sprockets'
3
3
 
4
4
  describe MultiSync::ManifestSource do
5
5
  before do
6
- FileUtils.rm_rf('/tmp/local-manifest')
7
-
8
- FileUtils.mkdir_p('/tmp/local-manifest')
9
- File.open('/tmp/local-manifest/foo.txt', 'w') do |f| f.write('foo') end
10
- File.open('/tmp/local-manifest/bar.txt', 'w') do |f| f.write('bar') end
11
- FileUtils.mkdir_p('/tmp/local-manifest/in-a-dir')
12
- File.open('/tmp/local-manifest/in-a-dir/baz.html', 'w') do |f| f.write('baz') end
13
- File.open('/tmp/local-manifest/in-a-dir/baz.txt', 'w') do |f| f.write('baz') end
6
+ FileUtils.mkdir_p('tmp/local-manifest')
7
+ File.open('tmp/local-manifest/foo.txt', File::CREAT | File::RDWR) do |f| f.write('foo') end
8
+ File.open('tmp/local-manifest/bar.txt', File::CREAT | File::RDWR) do |f| f.write('bar') end
9
+ FileUtils.mkdir_p('tmp/local-manifest/in-a-dir')
10
+ File.open('tmp/local-manifest/in-a-dir/baz.html', File::CREAT | File::RDWR) do |f| f.write('baz') end
11
+ File.open('tmp/local-manifest/in-a-dir/baz.txt', File::CREAT | File::RDWR) do |f| f.write('baz') end
14
12
 
15
13
  env = Sprockets::Environment.new('.') do |e|
16
- e.append_path('/tmp/local-manifest')
14
+ e.append_path('tmp/local-manifest')
17
15
  end
18
- manifest = Sprockets::Manifest.new(env, '/tmp/local-manifest')
16
+ manifest = Sprockets::Manifest.new(env, 'tmp/local-manifest')
19
17
  manifest.compile('foo.txt', 'bar.txt', 'in-a-dir/baz.html', 'in-a-dir/baz.txt')
20
18
  end
21
19
 
22
20
  describe :files do
23
21
  it 'should find files' do
24
- source = MultiSync::ManifestSource.new(source_dir: '/tmp/local-manifest')
22
+ source = MultiSync::ManifestSource.new(source_dir: 'tmp/local-manifest')
25
23
  expect(source.files).to have(4).files
26
24
  end
27
25
 
28
26
  it 'should ignore found files' do
29
- source = MultiSync::ManifestSource.new(source_dir: '/tmp/local-manifest', include: '**/*', exclude: '*/*.html')
27
+ source = MultiSync::ManifestSource.new(source_dir: 'tmp/local-manifest', include: '**/*', exclude: '*/*.html')
30
28
  expect(source.files).to have(3).files
31
29
  end
32
30
 
33
31
  it 'should find files (recursively)' do
34
- source = MultiSync::ManifestSource.new(source_dir: '/tmp/local-manifest', include: '**/*')
32
+ source = MultiSync::ManifestSource.new(source_dir: 'tmp/local-manifest', include: '**/*')
35
33
  expect(source.files).to have(4).files
36
34
  end
37
35
 
38
36
  it 'should find files (by type)' do
39
- source = MultiSync::ManifestSource.new(source_dir: '/tmp/local-manifest', include: '**/*.txt')
37
+ source = MultiSync::ManifestSource.new(source_dir: 'tmp/local-manifest', include: '**/*.txt')
40
38
  expect(source.files).to have(3).files
41
39
  end
42
40
 
43
41
  context :with_root do
44
42
  it 'should return files with the root' do
45
- source = MultiSync::ManifestSource.new(source_dir: '/tmp/local-manifest')
46
- expect(source.files[0].path_with_root.to_s).to include '/tmp/local-manifest'
43
+ source = MultiSync::ManifestSource.new(source_dir: 'tmp/local-manifest')
44
+ expect(source.files[0].path_with_root.to_s).to include 'tmp/local-manifest'
47
45
  end
48
46
  end
49
47
 
50
48
  context :without_root do
51
49
  it 'should return files without the root' do
52
- source = MultiSync::ManifestSource.new(source_dir: '/tmp/local-manifest')
53
- expect(source.files[0].path_without_root.to_s).to_not include '/tmp/local-manifest'
50
+ source = MultiSync::ManifestSource.new(source_dir: 'tmp/local-manifest')
51
+ expect(source.files[0].path_without_root.to_s).to_not include 'tmp/local-manifest'
54
52
  end
55
53
  end
56
54
  end
@@ -1,12 +1,12 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe MultiSync::AwsTarget, fakefs: true, fog: true do
3
+ describe MultiSync::AwsTarget, fog: true do
4
4
  before do
5
- FileUtils.mkdir_p('/tmp/aws-target')
6
- File.open('/tmp/aws-target/foo.txt', 'w') do |f| f.write('foo') end
7
- File.open('/tmp/aws-target/bar.txt', 'w') do |f| f.write('bar') end
8
- FileUtils.mkdir_p('/tmp/aws-target/in-a-dir')
9
- File.open('/tmp/aws-target/in-a-dir/baz.html', 'w') do |f| f.write('baz') end
5
+ FileUtils.mkdir_p('tmp/aws-target')
6
+ File.open('tmp/aws-target/foo.txt', File::CREAT | File::RDWR) do |f| f.write('foo') end
7
+ File.open('tmp/aws-target/bar.txt', File::CREAT | File::RDWR) do |f| f.write('bar') end
8
+ FileUtils.mkdir_p('tmp/aws-target/in-a-dir')
9
+ File.open('tmp/aws-target/in-a-dir/baz.html', File::CREAT | File::RDWR) do |f| f.write('baz') end
10
10
 
11
11
  connection = Fog::Storage.new(
12
12
  provider: :aws,
@@ -17,9 +17,9 @@ describe MultiSync::AwsTarget, fakefs: true, fog: true do
17
17
 
18
18
  directory = connection.directories.create(key: 'multi_sync', public: true)
19
19
 
20
- Dir.glob('/tmp/aws-target/**/*').reject { |path| File.directory?(path) }.each do |path|
20
+ Dir.glob('tmp/aws-target/**/*').reject { |path| File.directory?(path) }.each do |path|
21
21
  directory.files.create(
22
- key: path.gsub('/tmp/', ''),
22
+ key: path.gsub('tmp/', ''),
23
23
  body: File.open(path, 'r'),
24
24
  public: true
25
25
  )
@@ -1,22 +1,22 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe MultiSync::LocalTarget, fakefs: true do
3
+ describe MultiSync::LocalTarget do
4
4
  before do
5
- FileUtils.mkdir_p('/tmp/local-target')
6
- File.open('/tmp/local-target/foo.txt', 'w') do |f| f.write('foo') end
7
- File.open('/tmp/local-target/bar.txt', 'w') do |f| f.write('bar') end
8
- FileUtils.mkdir_p('/tmp/local-target/in-a-dir')
9
- File.open('/tmp/local-target/in-a-dir/baz.html', 'w') do |f| f.write('baz') end
5
+ FileUtils.mkdir_p('tmp/local-target')
6
+ File.open('tmp/local-target/foo.txt', File::CREAT | File::RDWR) do |f| f.write('foo') end
7
+ File.open('tmp/local-target/bar.txt', File::CREAT | File::RDWR) do |f| f.write('bar') end
8
+ FileUtils.mkdir_p('tmp/local-target/in-a-dir')
9
+ File.open('tmp/local-target/in-a-dir/baz.html', File::CREAT | File::RDWR) do |f| f.write('baz') end
10
10
  end
11
11
 
12
12
  describe :files do
13
13
  context :local do
14
14
  let(:target) {
15
15
  MultiSync::LocalTarget.new(
16
- target_dir: '/tmp',
16
+ target_dir: 'tmp',
17
17
  destination_dir: 'local-target',
18
18
  credentials: {
19
- local_root: '/tmp'
19
+ local_root: 'tmp'
20
20
  }
21
21
  )
22
22
  }
@@ -27,7 +27,7 @@ describe MultiSync::LocalTarget, fakefs: true do
27
27
 
28
28
  context :with_root do
29
29
  it 'should return files with the root' do
30
- expect(target.files[0].path_with_root.to_s).to eq '/tmp/local-target/bar.txt'
30
+ expect(target.files[0].path_with_root.to_s).to eq 'tmp/local-target/bar.txt'
31
31
  end
32
32
  end
33
33
 
@@ -2,46 +2,59 @@ require 'spec_helper'
2
2
 
3
3
  describe MultiSync do
4
4
  context :methods do
5
- describe :version do
6
- subject { MultiSync::VERSION }
7
- it { should be_kind_of(String) }
5
+ [:configure, :run, :prepare, :client, :configuration, :version, :reset_client!, :reset_configuration!, :reset!].each do |method_name|
6
+ it "should respond_to #{method_name}" do
7
+ expect(MultiSync).to respond_to(method_name)
8
+ end
8
9
  end
9
-
10
- describe :logger do
11
- subject { MultiSync.respond_to?(:logger) }
12
- it { should be_true }
10
+ MultiSync::Client::SUPPORTED_SOURCE_TYPES.each do |type, clazz|
11
+ it "should respond_to #{type}_source" do
12
+ expect(MultiSync).to respond_to("#{type}_source")
13
+ end
13
14
  end
14
-
15
- describe :environment do
16
- subject { MultiSync.respond_to?(:environment) }
17
- it { should be_true }
15
+ MultiSync::Client::SUPPORTED_TARGET_TYPES.each do |type, clazz|
16
+ it "should respond_to #{type}_target" do
17
+ expect(MultiSync).to respond_to("#{type}_target")
18
+ end
18
19
  end
19
-
20
- describe :credentials do
21
- subject { MultiSync.respond_to?(:credentials) }
22
- it { should be_true }
20
+ end
21
+ context :client_delegated_methods do
22
+ [:sync].each do |method_name|
23
+ it "should respond_to #{method_name}" do
24
+ expect(MultiSync).to respond_to(method_name)
25
+ end
23
26
  end
24
-
25
- describe :run do
26
- subject { MultiSync.respond_to?(:run) }
27
- it { should be_true }
27
+ MultiSync::Client.attribute_set.map(&:name).each do |method_name|
28
+ it "should respond_to #{method_name}" do
29
+ expect(MultiSync).to respond_to(method_name)
30
+ end
28
31
  end
29
-
30
- describe :configure do
31
- subject { MultiSync.respond_to?(:configure) }
32
- it { should be_true }
32
+ end
33
+ context :configuration_delegated_methods do
34
+ MultiSync::Configuration.attribute_set.map(&:name).each do |method_name|
35
+ it "should respond_to #{method_name}" do
36
+ expect(MultiSync).to respond_to(method_name)
37
+ end
33
38
  end
34
39
  end
35
-
36
40
  context :configure do
37
- it 'should allow you to set configuration' do
38
- MultiSync.configure do |config|
39
- config.verbose = true
40
- config.target_pool_size = 2
41
+ describe :block do
42
+ it 'should allow you to set configuration' do
43
+ MultiSync.configure do |config|
44
+ config.verbose = true
45
+ config.target_pool_size = 2
46
+ end
47
+ expect(MultiSync.verbose).to be_true
48
+ expect(MultiSync.target_pool_size).to be 2
49
+ end
50
+ end
51
+ describe :methods do
52
+ it 'should allow you to set configuration' do
53
+ MultiSync.verbose = true
54
+ MultiSync.target_pool_size = 2
55
+ expect(MultiSync.verbose).to be_true
56
+ expect(MultiSync.target_pool_size).to be 2
41
57
  end
42
-
43
- expect(MultiSync.verbose).to be_true
44
- expect(MultiSync.target_pool_size).to be 2
45
58
  end
46
59
  end
47
60
  end
metadata CHANGED
@@ -1,216 +1,227 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Freeman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-05 00:00:00.000000000 Z
11
+ date: 2014-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.2'
15
20
  requirement: !ruby/object:Gem::Requirement
16
21
  requirements:
17
- - - "~>"
22
+ - - ~>
18
23
  - !ruby/object:Gem::Version
19
24
  version: '1.2'
20
- type: :runtime
21
25
  prerelease: false
26
+ type: :runtime
27
+ - !ruby/object:Gem::Dependency
28
+ name: unf
22
29
  version_requirements: !ruby/object:Gem::Requirement
23
30
  requirements:
24
- - - "~>"
31
+ - - '>='
25
32
  - !ruby/object:Gem::Version
26
- version: '1.2'
27
- - !ruby/object:Gem::Dependency
28
- name: lazily
33
+ version: '0'
29
34
  requirement: !ruby/object:Gem::Requirement
30
35
  requirements:
31
- - - "~>"
36
+ - - '>='
32
37
  - !ruby/object:Gem::Version
33
- version: '0.1'
34
- type: :runtime
38
+ version: '0'
35
39
  prerelease: false
40
+ type: :runtime
41
+ - !ruby/object:Gem::Dependency
42
+ name: lazily
36
43
  version_requirements: !ruby/object:Gem::Requirement
37
44
  requirements:
38
- - - "~>"
45
+ - - ~>
39
46
  - !ruby/object:Gem::Version
40
47
  version: '0.1'
41
- - !ruby/object:Gem::Dependency
42
- name: virtus
43
48
  requirement: !ruby/object:Gem::Requirement
44
49
  requirements:
45
- - - "~>"
50
+ - - ~>
46
51
  - !ruby/object:Gem::Version
47
- version: '1.0'
48
- type: :runtime
52
+ version: '0.1'
49
53
  prerelease: false
54
+ type: :runtime
55
+ - !ruby/object:Gem::Dependency
56
+ name: virtus
50
57
  version_requirements: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - "~>"
59
+ - - ~>
53
60
  - !ruby/object:Gem::Version
54
61
  version: '1.0'
55
- - !ruby/object:Gem::Dependency
56
- name: celluloid
57
62
  requirement: !ruby/object:Gem::Requirement
58
63
  requirements:
59
- - - "~>"
64
+ - - ~>
60
65
  - !ruby/object:Gem::Version
61
- version: '0.15'
62
- type: :runtime
66
+ version: '1.0'
63
67
  prerelease: false
68
+ type: :runtime
69
+ - !ruby/object:Gem::Dependency
70
+ name: celluloid
64
71
  version_requirements: !ruby/object:Gem::Requirement
65
72
  requirements:
66
- - - "~>"
73
+ - - ~>
67
74
  - !ruby/object:Gem::Version
68
75
  version: '0.15'
69
- - !ruby/object:Gem::Dependency
70
- name: multi_mime
71
76
  requirement: !ruby/object:Gem::Requirement
72
77
  requirements:
73
- - - "~>"
78
+ - - ~>
74
79
  - !ruby/object:Gem::Version
75
- version: '1.0'
76
- type: :runtime
80
+ version: '0.15'
77
81
  prerelease: false
82
+ type: :runtime
83
+ - !ruby/object:Gem::Dependency
84
+ name: multi_mime
78
85
  version_requirements: !ruby/object:Gem::Requirement
79
86
  requirements:
80
- - - "~>"
87
+ - - ~>
81
88
  - !ruby/object:Gem::Version
82
89
  version: '1.0'
83
- - !ruby/object:Gem::Dependency
84
- name: multi_json
85
90
  requirement: !ruby/object:Gem::Requirement
86
91
  requirements:
87
- - - "~>"
92
+ - - ~>
88
93
  - !ruby/object:Gem::Version
89
- version: '1.7'
90
- type: :runtime
94
+ version: '1.0'
91
95
  prerelease: false
96
+ type: :runtime
97
+ - !ruby/object:Gem::Dependency
98
+ name: multi_json
92
99
  version_requirements: !ruby/object:Gem::Requirement
93
100
  requirements:
94
- - - "~>"
101
+ - - ~>
95
102
  - !ruby/object:Gem::Version
96
103
  version: '1.7'
97
- - !ruby/object:Gem::Dependency
98
- name: bundler
99
104
  requirement: !ruby/object:Gem::Requirement
100
105
  requirements:
101
- - - "~>"
106
+ - - ~>
102
107
  - !ruby/object:Gem::Version
103
- version: '1.5'
104
- type: :development
108
+ version: '1.7'
105
109
  prerelease: false
110
+ type: :runtime
111
+ - !ruby/object:Gem::Dependency
112
+ name: bundler
106
113
  version_requirements: !ruby/object:Gem::Requirement
107
114
  requirements:
108
- - - "~>"
115
+ - - ~>
109
116
  - !ruby/object:Gem::Version
110
117
  version: '1.5'
111
- - !ruby/object:Gem::Dependency
112
- name: rake
113
118
  requirement: !ruby/object:Gem::Requirement
114
119
  requirements:
115
- - - "~>"
120
+ - - ~>
116
121
  - !ruby/object:Gem::Version
117
- version: '10.0'
118
- type: :development
122
+ version: '1.5'
119
123
  prerelease: false
124
+ type: :development
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake
120
127
  version_requirements: !ruby/object:Gem::Requirement
121
128
  requirements:
122
- - - "~>"
129
+ - - ~>
123
130
  - !ruby/object:Gem::Version
124
131
  version: '10.0'
125
- - !ruby/object:Gem::Dependency
126
- name: kramdown
127
132
  requirement: !ruby/object:Gem::Requirement
128
133
  requirements:
129
- - - ">="
134
+ - - ~>
130
135
  - !ruby/object:Gem::Version
131
- version: '0.14'
132
- type: :development
136
+ version: '10.0'
133
137
  prerelease: false
138
+ type: :development
139
+ - !ruby/object:Gem::Dependency
140
+ name: kramdown
134
141
  version_requirements: !ruby/object:Gem::Requirement
135
142
  requirements:
136
- - - ">="
143
+ - - '>='
137
144
  - !ruby/object:Gem::Version
138
145
  version: '0.14'
139
- - !ruby/object:Gem::Dependency
140
- name: rubocop
141
146
  requirement: !ruby/object:Gem::Requirement
142
147
  requirements:
143
- - - ">="
148
+ - - '>='
144
149
  - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
150
+ version: '0.14'
147
151
  prerelease: false
152
+ type: :development
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop
148
155
  version_requirements: !ruby/object:Gem::Requirement
149
156
  requirements:
150
- - - ">="
157
+ - - '>='
151
158
  - !ruby/object:Gem::Version
152
159
  version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: pry
155
160
  requirement: !ruby/object:Gem::Requirement
156
161
  requirements:
157
- - - ">="
162
+ - - '>='
158
163
  - !ruby/object:Gem::Version
159
164
  version: '0'
160
- type: :development
161
165
  prerelease: false
166
+ type: :development
167
+ - !ruby/object:Gem::Dependency
168
+ name: pry
162
169
  version_requirements: !ruby/object:Gem::Requirement
163
170
  requirements:
164
- - - ">="
171
+ - - '>='
165
172
  - !ruby/object:Gem::Version
166
173
  version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: yard
169
174
  requirement: !ruby/object:Gem::Requirement
170
175
  requirements:
171
- - - ">="
176
+ - - '>='
172
177
  - !ruby/object:Gem::Version
173
178
  version: '0'
174
- type: :development
175
179
  prerelease: false
180
+ type: :development
181
+ - !ruby/object:Gem::Dependency
182
+ name: yard
176
183
  version_requirements: !ruby/object:Gem::Requirement
177
184
  requirements:
178
- - - ">="
185
+ - - '>='
179
186
  - !ruby/object:Gem::Version
180
187
  version: '0'
181
- description: A flexible synchronisation library for your assets
188
+ requirement: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - '>='
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
193
+ prerelease: false
194
+ type: :development
195
+ description: Flexible synchronisation for your assets
182
196
  email:
183
197
  - karlfreeman@gmail.com
184
198
  executables: []
185
199
  extensions: []
186
200
  extra_rdoc_files: []
187
201
  files:
188
- - ".document"
189
- - ".gitignore"
190
- - ".rubocop.yml"
191
- - ".travis.yml"
192
- - ".yardopts"
202
+ - .document
203
+ - .gitignore
204
+ - .rubocop.yml
205
+ - .travis.yml
206
+ - .yardopts
193
207
  - CHANGELOG.md
194
208
  - CONTRIBUTING.md
195
209
  - Gemfile
196
210
  - LICENSE.md
197
211
  - README.md
198
212
  - Rakefile
199
- - gemfiles/middleman-3.1.x.gemfile
200
- - gemfiles/rails-3.2.x.gemfile
201
- - gemfiles/rails-4.0.x.gemfile
202
213
  - lib/multi_sync.rb
203
214
  - lib/multi_sync/attributes/pathname.rb
204
215
  - lib/multi_sync/client.rb
205
216
  - lib/multi_sync/configuration.rb
206
217
  - lib/multi_sync/environment.rb
218
+ - lib/multi_sync/extensions/jekyll.rb
207
219
  - lib/multi_sync/extensions/middleman.rb
208
220
  - lib/multi_sync/extensions/rails.rb
209
221
  - lib/multi_sync/extensions/rails/asset_sync.rb
210
222
  - lib/multi_sync/extensions/rails/railtie.rb
223
+ - lib/multi_sync/helpers/pluralize.rb
211
224
  - lib/multi_sync/logging.rb
212
- - lib/multi_sync/mixins/log_helper.rb
213
- - lib/multi_sync/mixins/pluralize_helper.rb
214
225
  - lib/multi_sync/resource.rb
215
226
  - lib/multi_sync/resources/local_resource.rb
216
227
  - lib/multi_sync/resources/remote_resource.rb
@@ -225,10 +236,10 @@ files:
225
236
  - multi_sync.gemspec
226
237
  - spec/spec_helper.rb
227
238
  - spec/support/celluloid.rb
228
- - spec/support/fakefs.rb
229
239
  - spec/support/fog.rb
230
240
  - spec/support/pry.rb
231
241
  - spec/support/timecop.rb
242
+ - spec/support/tmpdir.rb
232
243
  - spec/unit/multi_sync/client_spec.rb
233
244
  - spec/unit/multi_sync/configuration_spec.rb
234
245
  - spec/unit/multi_sync/resources/local_resource_spec.rb
@@ -241,33 +252,33 @@ homepage: https://github.com/karlfreeman/multi_sync
241
252
  licenses:
242
253
  - MIT
243
254
  metadata: {}
244
- post_install_message:
255
+ post_install_message:
245
256
  rdoc_options: []
246
257
  require_paths:
247
258
  - lib
248
259
  required_ruby_version: !ruby/object:Gem::Requirement
249
260
  requirements:
250
- - - ">="
261
+ - - '>='
251
262
  - !ruby/object:Gem::Version
252
263
  version: 1.9.3
253
264
  required_rubygems_version: !ruby/object:Gem::Requirement
254
265
  requirements:
255
- - - ">="
266
+ - - '>='
256
267
  - !ruby/object:Gem::Version
257
268
  version: '0'
258
269
  requirements: []
259
- rubyforge_project:
260
- rubygems_version: 2.2.0
261
- signing_key:
270
+ rubyforge_project:
271
+ rubygems_version: 2.1.9
272
+ signing_key:
262
273
  specification_version: 4
263
- summary: A flexible synchronisation library for your assets
274
+ summary: Flexible synchronisation for your assets
264
275
  test_files:
265
276
  - spec/spec_helper.rb
266
277
  - spec/support/celluloid.rb
267
- - spec/support/fakefs.rb
268
278
  - spec/support/fog.rb
269
279
  - spec/support/pry.rb
270
280
  - spec/support/timecop.rb
281
+ - spec/support/tmpdir.rb
271
282
  - spec/unit/multi_sync/client_spec.rb
272
283
  - spec/unit/multi_sync/configuration_spec.rb
273
284
  - spec/unit/multi_sync/resources/local_resource_spec.rb