skynet-core 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
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.5') do |s|
8
+ Echoe.new('skynet-core', '0.0.6') do |s|
9
9
  s.description = "Datamining Bot"
10
10
  s.url = "http://github.com/a2c/skynet-core"
11
11
  s.author = "Henry Hamon"
@@ -111,7 +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", :conditions => ["url_type in (3,4) AND state = 'passive'"], :limit => 30
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"
115
116
  named_scope :url_sources, :conditions => ["url_type not in (3,4)"]
116
117
 
117
118
 
@@ -146,7 +147,8 @@ unless Skynet.database_config.nil?
146
147
 
147
148
  named_scope :by_brand, lambda {|*args| { :conditions => ["brand_id = ?", (args[0] || nil)]}}
148
149
  named_scope :metagenerator, :conditions => ["url_type = 2"]
149
- named_scope :rss_sources, :select => "distinct url", :conditions => ["url_type in (3,4) AND state = 'passive'"], :limit => 30
150
+ named_scope :rss_sources, :select => "distinct url, language", :conditions => ["url_type in (3,4) AND state = 'passive'"],
151
+ :limit => 15, :order => "updated_at DESC"
150
152
 
151
153
 
152
154
  def processing!
data/skynet-core.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{skynet-core}
5
- s.version = "0.0.5"
5
+ s.version = "0.0.6"
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"]
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Henry Hamon