skynet-core 0.0.5 → 0.0.6
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/Rakefile +1 -1
- data/lib/skynet-core/db/ibrands.rb +4 -2
- data/skynet-core.gemspec +1 -1
- metadata +3 -3
data/Rakefile
CHANGED
|
@@ -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'"],
|
|
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'"],
|
|
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
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:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.0.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Henry Hamon
|