pasco 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/pasco.rb +11 -5
  3. data/pasco.gemspec +4 -4
  4. metadata +25 -9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.3
1
+ 1.2.4
data/lib/pasco.rb CHANGED
@@ -14,9 +14,13 @@ def initialize(url="",modified_time="",access_time="",file_name="",directory="",
14
14
  def self.get_history(file_name)
15
15
  if !file_name.nil? && File.extname(file_name) == ".dat"
16
16
  if RUBY_PLATFORM=~ /linux/ || RUBY_PLATFORM =~ /darwin/
17
- result =`pasco "#{file_name}"`
18
- else #FOR Windows Ihave Not tested yet
19
- result=`pasco.exe "#{file_name}"`
17
+ pasco_path = File.expand_path(File.join("pasco"))
18
+ command = "#{pasco_path} #{file_name}"
19
+ result =system(command)
20
+ else #FOR Windows Not tested yet
21
+ pasco_path = File.expand_path(File.join("pasco.exe"))
22
+ command = "#{pasco_path} #{file_name}"
23
+ result =system(command)
20
24
  end
21
25
  @ie_histories = self.process_history(result)
22
26
  else
@@ -33,13 +37,15 @@ def initialize(url="",modified_time="",access_time="",file_name="",directory="",
33
37
  results.each do |result|
34
38
  if !result.match(/^URL/).nil?
35
39
  result_of_url = result.split("\t")
36
- browsing_url = result_of_url[1].match(/((\w+):\/\/(.+))/)[0]
40
+ browsing_url = result_of_url[1].match(/((\w+):\/\/(.+))/)[0] rescue nil
37
41
  modified_time = result_of_url[2]
38
42
  acess_time = result_of_url[3]
39
43
  file_name = result_of_url[4]
40
44
  directory = result_of_url[5]
41
45
  http_header = result_of_url[6]
42
- ie_histories << Pasco.new(browsing_url,modified_time,acess_time,file_name,directory,http_header)
46
+ if !browsing_url.nil?
47
+ ie_histories << Pasco.new(browsing_url,modified_time,acess_time,file_name,directory,http_header)
48
+ end
43
49
  end
44
50
  end
45
51
  ie_histories
data/pasco.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pasco}
8
- s.version = "1.2.3"
8
+ s.version = "1.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["amardaxini"]
12
- s.date = %q{2010-06-24}
12
+ s.date = %q{2010-11-08}
13
13
  s.description = %q{pasco is a gem that reads ie histories on provideing ie history file i.e *.dat}
14
14
  s.email = %q{amardaxini@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
35
35
  s.rdoc_options = ["--charset=UTF-8"]
36
36
  s.require_paths = ["lib"]
37
37
  s.rubyforge_project = %q{pasco}
38
- s.rubygems_version = %q{1.3.5}
38
+ s.rubygems_version = %q{1.3.7}
39
39
  s.summary = %q{read ie browsing histories based on pasco open source project}
40
40
  s.test_files = [
41
41
  "test/test_pasco.rb",
@@ -46,7 +46,7 @@ Gem::Specification.new do |s|
46
46
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
47
47
  s.specification_version = 3
48
48
 
49
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
49
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
50
  s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
51
51
  else
52
52
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pasco
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ hash: 23
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 2
9
+ - 4
10
+ version: 1.2.4
5
11
  platform: ruby
6
12
  authors:
7
13
  - amardaxini
@@ -9,19 +15,23 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-06-24 00:00:00 +05:30
18
+ date: 2010-11-08 00:00:00 +05:30
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: thoughtbot-shoulda
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
23
32
  version: "0"
24
- version:
33
+ type: :development
34
+ version_requirements: *id001
25
35
  description: pasco is a gem that reads ie histories on provideing ie history file i.e *.dat
26
36
  email: amardaxini@gmail.com
27
37
  executables: []
@@ -55,21 +65,27 @@ rdoc_options:
55
65
  require_paths:
56
66
  - lib
57
67
  required_ruby_version: !ruby/object:Gem::Requirement
68
+ none: false
58
69
  requirements:
59
70
  - - ">="
60
71
  - !ruby/object:Gem::Version
72
+ hash: 3
73
+ segments:
74
+ - 0
61
75
  version: "0"
62
- version:
63
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
+ none: false
64
78
  requirements:
65
79
  - - ">="
66
80
  - !ruby/object:Gem::Version
81
+ hash: 3
82
+ segments:
83
+ - 0
67
84
  version: "0"
68
- version:
69
85
  requirements: []
70
86
 
71
87
  rubyforge_project: pasco
72
- rubygems_version: 1.3.5
88
+ rubygems_version: 1.3.7
73
89
  signing_key:
74
90
  specification_version: 3
75
91
  summary: read ie browsing histories based on pasco open source project