skynet-core 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.mkdn CHANGED
@@ -6,7 +6,7 @@ Skynet é o robô de data mining do [I-Brands].
6
6
  * Copyright: (c) 2010 A2C nós criamos ideias
7
7
 
8
8
  ## Instalação
9
- gem install uuid simpleconsole json nokogiri mechanize htmlentities
9
+ gem install json nokogiri mechanize htmlentities
10
10
 
11
11
  "_A2C recreate the Cyberdyne technology to world domination_"
12
12
 
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake'
5
5
  #
6
6
  # task :gem do
7
7
  require 'echoe'
8
- Echoe.new('skynet-core', '0.0.6') do |s|
8
+ Echoe.new('skynet-core', '0.0.7') do |s|
9
9
  s.description = "Datamining Bot"
10
10
  s.url = "http://github.com/a2c/skynet-core"
11
11
  s.author = "Henry Hamon"
@@ -51,7 +51,7 @@ module Skynet
51
51
  :url => self.url, :source => self.source , :post => self.post.nil? ? '' : self.post,
52
52
  :author => self.author.nil? ? '' : self.author, :description => self.description.nil? ? '' : self.description,
53
53
  :brand_id => self.brand_id ,
54
- :tracked_network_id => self.tracked_network_id , :network_type => self.network_type ,
54
+ :tracked_network_id => self.tracked_network_id , :network_type => self.network_type.to_i ,
55
55
  :slot_1 => self.slot_1.nil? ? 0 : self.slot_1, :slot_2 => self.slot_2.nil? ? 0 : self.slot_2,
56
56
  :slot_3 => self.slot_3.nil? ? 0 : self.slot_3,
57
57
  :integrated => 0, :published_at => self.published_at, :created_at => DateTime.now
@@ -111,8 +111,8 @@ unless Skynet.database_config.nil?
111
111
  class FamiliarUrl < ActiveRecord::Base
112
112
  validates_presence_of :url
113
113
 
114
- named_scope :rss_sources, :select => "distinct url, language", :conditions => ["url_type in (3,4) AND state = 'passive'"],
115
- :limit => 30, :order => "updated_at DESC"
114
+ named_scope :rss_sources, :select => "distinct url, language, url_type", :conditions => ["url_type in (3,4) AND state = 'passive'"],
115
+ :limit => 40, :order => "updated_at DESC"
116
116
  named_scope :url_sources, :conditions => ["url_type not in (3,4)"]
117
117
 
118
118
 
@@ -147,7 +147,8 @@ unless Skynet.database_config.nil?
147
147
 
148
148
  named_scope :by_brand, lambda {|*args| { :conditions => ["brand_id = ?", (args[0] || nil)]}}
149
149
  named_scope :metagenerator, :conditions => ["url_type = 2"]
150
- named_scope :rss_sources, :select => "distinct url, language", :conditions => ["url_type in (3,4) AND state = 'passive'"],
150
+ named_scope :rss_sources, :select => "distinct url, language, url_type",
151
+ :conditions => ["url_type in (3,4) AND state = 'passive'"],
151
152
  :limit => 15, :order => "updated_at DESC"
152
153
 
153
154
 
data/skynet-core.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{skynet-core}
5
- s.version = "0.0.6"
5
+ s.version = "0.0.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Henry Hamon"]
9
- s.date = %q{2010-06-16}
9
+ s.date = %q{2010-06-18}
10
10
  s.description = %q{Datamining Bot}
11
11
  s.email = %q{henry.hamon@a2c.com.br}
12
12
  s.extra_rdoc_files = ["README.mkdn", "lib/skynet-core.rb", "lib/skynet-core/cyberdyne.rb", "lib/skynet-core/db/hippocampus.rb", "lib/skynet-core/db/ibrands.rb", "lib/skynet-core/db/migrate/001_create_actives_and_logs.rb", "lib/skynet-core/db/migrate/002_pimp_log.rb", "lib/skynet-core/db/migration.rb", "lib/skynet-core/extend_string.rb", "lib/skynet-core/harvest.rb"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skynet-core
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Henry Hamon
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-16 00:00:00 -03:00
18
+ date: 2010-06-18 00:00:00 -03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency