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 +4 -0
- data/Rakefile +1 -1
- data/lib/scrappy.rb +1 -1
- data/lib/scrappy/learning/optimizer.rb +3 -0
- data/lib/scrappy/server/admin.rb +2 -1
- data/scrappy.gemspec +4 -4
- metadata +4 -4
data/History.txt
CHANGED
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.
|
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
data/lib/scrappy/server/admin.rb
CHANGED
@@ -95,7 +95,8 @@ module Scrappy
|
|
95
95
|
end
|
96
96
|
|
97
97
|
app.post '/samples/:id/optimize' do |id|
|
98
|
-
Scrappy::
|
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.
|
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.
|
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.
|
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.
|
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
|
-
-
|
9
|
-
version: 0.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
|
-
-
|
101
|
-
version: 0.3.
|
100
|
+
- 7
|
101
|
+
version: 0.3.7
|
102
102
|
type: :runtime
|
103
103
|
version_requirements: *id006
|
104
104
|
- !ruby/object:Gem::Dependency
|