har 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -0
- data/Rakefile +3 -1
- data/har.gemspec +2 -1
- data/lib/har/archive.rb +4 -0
- data/lib/har/version.rb +1 -1
- data/spec/har/archive_spec.rb +11 -0
- metadata +72 -68
data/.travis.yml
ADDED
data/Rakefile
CHANGED
data/har.gemspec
CHANGED
@@ -16,10 +16,11 @@ Gem::Specification.new do |s|
|
|
16
16
|
|
17
17
|
s.add_dependency "json"
|
18
18
|
s.add_dependency "json-schema", "= 0.1.12"
|
19
|
-
s.add_dependency "launchy"
|
19
|
+
s.add_dependency "launchy", ">= 0.3.7"
|
20
20
|
|
21
21
|
s.add_development_dependency "rspec", "~> 2.0"
|
22
22
|
s.add_development_dependency "simplecov"
|
23
|
+
s.add_development_dependency "rake", "~> 0.9.2"
|
23
24
|
|
24
25
|
s.files = `git ls-files`.split("\n")
|
25
26
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/lib/har/archive.rb
CHANGED
data/lib/har/version.rb
CHANGED
data/spec/har/archive_spec.rb
CHANGED
@@ -141,5 +141,16 @@ module HAR
|
|
141
141
|
end
|
142
142
|
end
|
143
143
|
|
144
|
+
context "viewing" do
|
145
|
+
let(:archive) { Archive.from_file har_path("browser-blocking-time") }
|
146
|
+
let(:viewer) { mock(Viewer) }
|
147
|
+
it "launches the viewer" do
|
148
|
+
Viewer.should_receive(:new).with([archive]).and_return viewer
|
149
|
+
viewer.should_receive(:show)
|
150
|
+
|
151
|
+
archive.view
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
144
155
|
end # Archive
|
145
156
|
end # HAR
|
metadata
CHANGED
@@ -1,85 +1,93 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: har
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.7
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.6
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Jari Bakken
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-10-09 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: json
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2153828440 !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
22
|
-
- -
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
25
22
|
type: :runtime
|
26
|
-
version_requirements: *id001
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: json-schema
|
29
23
|
prerelease: false
|
30
|
-
|
24
|
+
version_requirements: *2153828440
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: json-schema
|
27
|
+
requirement: &2153825420 !ruby/object:Gem::Requirement
|
31
28
|
none: false
|
32
|
-
requirements:
|
33
|
-
- -
|
34
|
-
- !ruby/object:Gem::Version
|
29
|
+
requirements:
|
30
|
+
- - =
|
31
|
+
- !ruby/object:Gem::Version
|
35
32
|
version: 0.1.12
|
36
33
|
type: :runtime
|
37
|
-
version_requirements: *id002
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: launchy
|
40
34
|
prerelease: false
|
41
|
-
|
35
|
+
version_requirements: *2153825420
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: launchy
|
38
|
+
requirement: &2153819980 !ruby/object:Gem::Requirement
|
42
39
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version:
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.3.7
|
47
44
|
type: :runtime
|
48
|
-
version_requirements: *id003
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: rspec
|
51
45
|
prerelease: false
|
52
|
-
|
46
|
+
version_requirements: *2153819980
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec
|
49
|
+
requirement: &2153818680 !ruby/object:Gem::Requirement
|
53
50
|
none: false
|
54
|
-
requirements:
|
51
|
+
requirements:
|
55
52
|
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version:
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
58
55
|
type: :development
|
59
|
-
|
60
|
-
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2153818680
|
58
|
+
- !ruby/object:Gem::Dependency
|
61
59
|
name: simplecov
|
60
|
+
requirement: &2153817880 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
66
|
+
type: :development
|
62
67
|
prerelease: false
|
63
|
-
|
68
|
+
version_requirements: *2153817880
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: &2153816560 !ruby/object:Gem::Requirement
|
64
72
|
none: false
|
65
|
-
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version:
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.9.2
|
69
77
|
type: :development
|
70
|
-
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *2153816560
|
71
80
|
description: Ruby library to work with HTTP archives
|
72
|
-
email:
|
81
|
+
email:
|
73
82
|
- jari.bakken@gmail.com
|
74
|
-
executables:
|
83
|
+
executables:
|
75
84
|
- har
|
76
85
|
extensions: []
|
77
|
-
|
78
86
|
extra_rdoc_files: []
|
79
|
-
|
80
|
-
files:
|
87
|
+
files:
|
81
88
|
- .gitignore
|
82
89
|
- .rspec
|
90
|
+
- .travis.yml
|
83
91
|
- Gemfile
|
84
92
|
- LICENSE
|
85
93
|
- README.mdown
|
@@ -233,35 +241,31 @@ files:
|
|
233
241
|
- spec/har/page_spec.rb
|
234
242
|
- spec/har/viewer_spec.rb
|
235
243
|
- spec/spec_helper.rb
|
236
|
-
|
237
|
-
homepage: ""
|
244
|
+
homepage: ''
|
238
245
|
licenses: []
|
239
|
-
|
240
246
|
post_install_message:
|
241
247
|
rdoc_options: []
|
242
|
-
|
243
|
-
require_paths:
|
248
|
+
require_paths:
|
244
249
|
- lib
|
245
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
250
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
246
251
|
none: false
|
247
|
-
requirements:
|
248
|
-
- -
|
249
|
-
- !ruby/object:Gem::Version
|
250
|
-
version:
|
251
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
252
|
+
requirements:
|
253
|
+
- - ! '>='
|
254
|
+
- !ruby/object:Gem::Version
|
255
|
+
version: '0'
|
256
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
252
257
|
none: false
|
253
|
-
requirements:
|
254
|
-
- -
|
255
|
-
- !ruby/object:Gem::Version
|
256
|
-
version:
|
258
|
+
requirements:
|
259
|
+
- - ! '>='
|
260
|
+
- !ruby/object:Gem::Version
|
261
|
+
version: '0'
|
257
262
|
requirements: []
|
258
|
-
|
259
263
|
rubyforge_project: har
|
260
|
-
rubygems_version: 1.
|
264
|
+
rubygems_version: 1.8.10
|
261
265
|
signing_key:
|
262
266
|
specification_version: 3
|
263
267
|
summary: Ruby library to work with HTTP archives
|
264
|
-
test_files:
|
268
|
+
test_files:
|
265
269
|
- spec/fixtures/entry1.json
|
266
270
|
- spec/fixtures/hars/bad.har
|
267
271
|
- spec/fixtures/hars/browser-blocking-time.har
|