scrappy 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.3.4 2011-03-25
2
+
3
+ * Fixed gem dependency
4
+
1
5
  === 0.3.3 2011-03-25
2
6
 
3
7
  * Fix in NewUriSelector
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ Echoe.new('scrappy', Scrappy::VERSION) do |p|
10
10
  p.author = "Jose Ignacio"
11
11
  p.email = "joseignacio.fernandez@gmail.com"
12
12
  p.ignore_pattern = ["pkg/*"]
13
- p.dependencies = [['activesupport','>= 2.3.5'], ['sinatra', '>= 1.1.2'], ['thin', '>= 1.2.7'], ['nokogiri', '>= 1.4.1'], ['mechanize','>= 1.0.0'], ['lightrdf','>= 0.3.0'], ['i18n', '>= 0.4.2'], ['rest-client', '>=1.6.1'], ['haml', '>= 3.0.24'], ['rack-flash', '>= 0.1.1']]
13
+ p.dependencies = [['activesupport','>= 2.3.5'], ['sinatra', '>= 1.1.2'], ['thin', '>= 1.2.7'], ['nokogiri', '>= 1.4.1'], ['mechanize','>= 1.0.0'], ['lightrdf','>= 0.3.7'], ['i18n', '>= 0.4.2'], ['rest-client', '>=1.6.1'], ['haml', '>= 3.0.24'], ['rack-flash', '>= 0.1.1']]
14
14
  end
15
15
 
16
16
  Rake::RDocTask.new(:rdoc) do |rdoc|
data/lib/scrappy.rb CHANGED
@@ -24,5 +24,5 @@ require 'scrappy/agent/blind_agent'
24
24
  require 'scrappy/agent/agent'
25
25
 
26
26
  module Scrappy
27
- VERSION = '0.3.3'
27
+ VERSION = '0.3.4'
28
28
  end
@@ -19,6 +19,9 @@ module Scrappy
19
19
 
20
20
  graph = RDF::Graph.new
21
21
  fragments.each { |fragment| graph << fragment }
22
+
23
+ puts graph.serialize(:yarf)
24
+ exit
22
25
 
23
26
  graph
24
27
  end
@@ -95,7 +95,8 @@ module Scrappy
95
95
  end
96
96
 
97
97
  app.post '/samples/:id/optimize' do |id|
98
- Scrappy::App.save_patterns agent.optimize(Scrappy::Kb.patterns, Scrappy::App.samples[id.to_i])
98
+ Scrappy::Kb.patterns = agent.optimize(Scrappy::Kb.patterns, Scrappy::App.samples[id.to_i])
99
+ Scrappy::App.save_patterns Scrappy::Kb.patterns
99
100
  flash[:notice] = "Optimization completed"
100
101
  redirect "#{settings.base_uri}/samples"
101
102
  end
data/scrappy.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{scrappy}
5
- s.version = "0.3.3"
5
+ s.version = "0.3.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jose Ignacio"]
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.add_runtime_dependency(%q<thin>, [">= 1.2.7"])
32
32
  s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.1"])
33
33
  s.add_runtime_dependency(%q<mechanize>, [">= 1.0.0"])
34
- s.add_runtime_dependency(%q<lightrdf>, [">= 0.3.0"])
34
+ s.add_runtime_dependency(%q<lightrdf>, [">= 0.3.7"])
35
35
  s.add_runtime_dependency(%q<i18n>, [">= 0.4.2"])
36
36
  s.add_runtime_dependency(%q<rest-client>, [">= 1.6.1"])
37
37
  s.add_runtime_dependency(%q<haml>, [">= 3.0.24"])
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
42
42
  s.add_dependency(%q<thin>, [">= 1.2.7"])
43
43
  s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
44
44
  s.add_dependency(%q<mechanize>, [">= 1.0.0"])
45
- s.add_dependency(%q<lightrdf>, [">= 0.3.0"])
45
+ s.add_dependency(%q<lightrdf>, [">= 0.3.7"])
46
46
  s.add_dependency(%q<i18n>, [">= 0.4.2"])
47
47
  s.add_dependency(%q<rest-client>, [">= 1.6.1"])
48
48
  s.add_dependency(%q<haml>, [">= 3.0.24"])
@@ -54,7 +54,7 @@ Gem::Specification.new do |s|
54
54
  s.add_dependency(%q<thin>, [">= 1.2.7"])
55
55
  s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
56
56
  s.add_dependency(%q<mechanize>, [">= 1.0.0"])
57
- s.add_dependency(%q<lightrdf>, [">= 0.3.0"])
57
+ s.add_dependency(%q<lightrdf>, [">= 0.3.7"])
58
58
  s.add_dependency(%q<i18n>, [">= 0.4.2"])
59
59
  s.add_dependency(%q<rest-client>, [">= 1.6.1"])
60
60
  s.add_dependency(%q<haml>, [">= 3.0.24"])
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jose Ignacio
@@ -97,8 +97,8 @@ dependencies:
97
97
  segments:
98
98
  - 0
99
99
  - 3
100
- - 0
101
- version: 0.3.0
100
+ - 7
101
+ version: 0.3.7
102
102
  type: :runtime
103
103
  version_requirements: *id006
104
104
  - !ruby/object:Gem::Dependency