Refining dependencies.
This commit is contained in:
parent
485572a81e
commit
fa694f99a7
@ -5,14 +5,13 @@ baseline: spec
|
|||||||
for: #common
|
for: #common
|
||||||
do: [
|
do: [
|
||||||
"Dependencies"
|
"Dependencies"
|
||||||
"self rssTools: spec." "<-- We need to fix the XMLWriter dependency."
|
|
||||||
self xmlParserHTML: spec.
|
self xmlParserHTML: spec.
|
||||||
self reStore: spec.
|
self reStore: spec.
|
||||||
"self roassal3Exporters: spec."
|
"self roassal3Exporters: spec."
|
||||||
self mustache: spec.
|
self mustache: spec.
|
||||||
"self tiddlyWikiPharo: spec."
|
self tiddlyWikiPharo: spec.
|
||||||
"Packages"
|
"Packages"
|
||||||
spec
|
spec
|
||||||
package: 'Socialmetrica'
|
package: 'Socialmetrica'
|
||||||
with: [ spec requires: #("'RSSTools'" 'XMLParserHTML' 'ReStore' "'Roassal3Exporters'" 'Mustache' "'TiddlyWikiPharo'") ]
|
with: [ spec requires: #('XMLParserHTML' 'ReStore' "'Roassal3Exporters'" 'Mustache' 'TiddlyWikiPharo') ]
|
||||||
]
|
]
|
@ -1,11 +0,0 @@
|
|||||||
baselines
|
|
||||||
rssTools: spec
|
|
||||||
Metacello new
|
|
||||||
repository: 'github://brackendev/RSSTools-Pharo/src';
|
|
||||||
baseline: 'RSSTools';
|
|
||||||
onConflict: [ :ex | ex useLoaded ];
|
|
||||||
"onUpgrade: [ :ex | ex useLoaded ];
|
|
||||||
onDowngrade: [ :ex | ex useLoaded ];"
|
|
||||||
onWarningLog;
|
|
||||||
load.
|
|
||||||
spec baseline: 'RSSTools' with: [ spec repository: 'github://brackendev/RSSTools-Pharo/src']
|
|
@ -1,7 +1,8 @@
|
|||||||
baselines
|
baselines
|
||||||
tiddlyWikiPharo: spec
|
tiddlyWikiPharo: spec
|
||||||
|
|
||||||
ExoRepo new
|
| repo |
|
||||||
repository: 'https://code.tupale.co/Offray/TiddlyWikiPharo';
|
repo := ExoRepo new
|
||||||
load.
|
repository: 'https://code.tupale.co/Offray/TiddlyWikiPharo'.
|
||||||
spec baseline: 'TiddlyWikiPharo'
|
repo load.
|
||||||
|
spec baseline: 'TiddlyWikiPharo' with: [ spec repository: 'gitlocal://', repo local fullName ]
|
@ -1,22 +0,0 @@
|
|||||||
accessing
|
|
||||||
getRemoteMessagesFromRss
|
|
||||||
|
|
||||||
| customQuery lastTweetsRaw lastTweets |
|
|
||||||
lastTweetsRaw := self rssFeed xmlDocument xpath: '//item'.
|
|
||||||
lastTweets := TweetsCollection new.
|
|
||||||
customQuery := Dictionary new
|
|
||||||
at: 'parameters' put: self userNameLink;
|
|
||||||
at: 'date' put: DateAndTime now;
|
|
||||||
yourself.
|
|
||||||
lastTweets query: customQuery.
|
|
||||||
lastTweetsRaw doWithIndex: [ :rssTweet :i |
|
|
||||||
| current previous |
|
|
||||||
current := Tweet new fromNitterRssItem: rssTweet.
|
|
||||||
i < lastTweetsRaw size ifTrue: [
|
|
||||||
previous := Tweet new fromNitterRssItem: (lastTweetsRaw at: i + 1).
|
|
||||||
current timelines
|
|
||||||
at: self userName put: previous id;
|
|
||||||
yourself ].
|
|
||||||
current queries add: customQuery.
|
|
||||||
lastTweets add: current ].
|
|
||||||
self messages: lastTweets
|
|
@ -1,3 +1,6 @@
|
|||||||
accessing
|
accessing
|
||||||
name
|
name
|
||||||
^ name ifNil: [ name := ((self rssFeed requiredItems title) splitOn: '/') first ]
|
|
||||||
|
| documentTree |
|
||||||
|
documentTree := [ self documentTree ] onErrorDo: [ ^ nil ].
|
||||||
|
^ name ifNil: [ name := (documentTree xpath: '//div[@class="profile-card-tabs-name"]//a[@class="profile-card-fullname"]') stringValue ]
|
@ -1,7 +1,6 @@
|
|||||||
accessing
|
accessing
|
||||||
profileImageUrl
|
profileImageUrl
|
||||||
| userFeed |
|
|
||||||
^ profileImageUrl ifNil: [
|
| documentTree |
|
||||||
userFeed := self rssFeed xmlDocument.
|
documentTree := [ self documentTree ] onErrorDo: [ ^ nil ].
|
||||||
(userFeed xpath: '//div[@class="error-panel"]') size = 1 ifTrue: [ ^ nil].
|
^ self class nitterProvider, (((documentTree xpath: '//div[@class="profile-card-info"]//a[@class="profile-card-avatar"]') @ 'href') stringValue copyReplaceAll: '%2F' with: '/') copyWithoutFirst
|
||||||
profileImageUrl := ((self rssFeed xmlDocument xpath: '//image/url') stringValue copyReplaceAll: '%2F' with: '/') ]
|
|
@ -1,4 +0,0 @@
|
|||||||
accessing
|
|
||||||
rssFeed
|
|
||||||
|
|
||||||
^ RSSTools createRSSFeedFor: self userNameLink , '/rss'
|
|
Loading…
Reference in New Issue
Block a user