cassette-rack 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/cassette-rack.gemspec +5 -5
- data/lib/cassette-rack.rb +1 -0
- data/lib/cassette-rack/cli.rb +23 -0
- data/lib/cassette-rack/configure.rb +1 -0
- data/lib/cassette-rack/version.rb +1 -1
- metadata +23 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da6831f1d92a784dd9f31ba101d2ce25814c0eb8
|
4
|
+
data.tar.gz: 705a11253d8d34d765f374919530453867872255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ddc46cc6a54be3b305b937f03e787720debd2ac63f2780c822c6f71f45398caf5776ebd69f836664dd7178dd4a786fab514b04f010227f08261dbba66d837cb
|
7
|
+
data.tar.gz: 55a672ecb89ceb28b9193a0071d5876e3674fb29522606270efd7ecb20d4309db4ac8d7fcf10b4cd6eca27e2a223ea1d7902607a3863c8943f4f0692089463e1
|
data/README.md
CHANGED
data/cassette-rack.gemspec
CHANGED
@@ -18,11 +18,11 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'faraday'
|
22
|
-
spec.add_dependency 'kramdown'
|
23
|
-
spec.add_dependency 'liquid'
|
24
|
-
spec.add_dependency 'rack'
|
25
|
-
spec.add_dependency 'vcr'
|
21
|
+
spec.add_dependency 'faraday', '~> 0.9'
|
22
|
+
spec.add_dependency 'kramdown', '~> 1.5'
|
23
|
+
spec.add_dependency 'liquid', '~> 3.0'
|
24
|
+
spec.add_dependency 'rack', '~> 1.6'
|
25
|
+
spec.add_dependency 'vcr', '~> 2.9'
|
26
26
|
|
27
27
|
spec.add_development_dependency 'bundler'
|
28
28
|
spec.add_development_dependency 'rake'
|
data/lib/cassette-rack.rb
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
module CassetteRack
|
2
|
+
module Cli
|
3
|
+
class << self
|
4
|
+
def draw(dest_path)
|
5
|
+
tree = CassetteRack::Tree.create(CassetteRack::Configure.source_path)
|
6
|
+
tree.each do |entry|
|
7
|
+
if entry.leaf?
|
8
|
+
drawer = CassetteRack::Drawer.new(entry.id)
|
9
|
+
if drawer.exist?
|
10
|
+
path = File.join(dest_path, entry.id)
|
11
|
+
File.open(path + '.md', 'w') do |file|
|
12
|
+
file.puts drawer.pull
|
13
|
+
end
|
14
|
+
end
|
15
|
+
else
|
16
|
+
path = File.join(dest_path, entry.id)
|
17
|
+
FileUtils.mkdir_p(path)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,85 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassette-rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ogom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '0.9'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '0.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: kramdown
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.5'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '1.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: liquid
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '3.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rack
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.6'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.6'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: vcr
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '2.9'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '2.9'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- cassette-rack.gemspec
|
124
124
|
- config.ru
|
125
125
|
- lib/cassette-rack.rb
|
126
|
+
- lib/cassette-rack/cli.rb
|
126
127
|
- lib/cassette-rack/configure.rb
|
127
128
|
- lib/cassette-rack/decorator/request.rb
|
128
129
|
- lib/cassette-rack/decorator/response.rb
|