Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge #44

Closed
wants to merge 69 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
10bf54b
Merge pull request #34 from guillep/issue15
pavel-krivanek Mar 14, 2017
429d344
EXPORT VERSION 60441
Mar 14, 2017
e3cebcd
EXPORT VERSION 60442
Mar 16, 2017
dca79dc
EXPORT VERSION 60443
Mar 16, 2017
4fcf45e
EXPORT VERSION 60444
Mar 16, 2017
a1bc5de
EXPORT VERSION 60445
Mar 16, 2017
aa135ed
EXPORT VERSION 60446
Mar 16, 2017
ce2a994
EXPORT VERSION 60447
Mar 17, 2017
bf9af75
EXPORT VERSION 60448
Mar 20, 2017
cec9b3d
EXPORT VERSION 60449
Mar 20, 2017
281ce22
EXPORT VERSION 60450
Mar 21, 2017
fb1f1dd
EXPORT VERSION 60451
Mar 24, 2017
38a3ade
EXPORT VERSION 60452
Mar 28, 2017
bd82f4f
EXPORT VERSION 60453
Mar 29, 2017
62be6ea
EXPORT VERSION 60454
Mar 29, 2017
97fc0d6
EXPORT VERSION 60455
Mar 30, 2017
43d0e88
EXPORT VERSION 60456
Mar 31, 2017
32e25b0
EXPORT VERSION 60457
Apr 3, 2017
ca9608c
EXPORT VERSION 60458
Apr 3, 2017
813f85e
EXPORT VERSION 60459
Apr 5, 2017
0259a8d
EXPORT VERSION 60460
Apr 5, 2017
820bfcf
EXPORT VERSION 60462
Apr 6, 2017
3bdab45
EXPORT VERSION 60463
Apr 7, 2017
0d747dc
EXPORT VERSION 60464
Apr 11, 2017
9b3be24
make it run on linux and mac, make it download the correct vm given t…
Apr 13, 2017
387e502
test for all platforms, bootstrap only in linux, publish only bootstrap
Apr 13, 2017
96378a5
removed extra os matrix
Apr 13, 2017
aac6b54
fixed bash if statement -> missing space
Apr 13, 2017
da1ad02
restored pharo version
Apr 13, 2017
fa0a973
put pharo version in env
Apr 13, 2017
f3642ab
EXPORT VERSION 60465
Apr 20, 2017
04dcc31
new export script
Apr 20, 2017
7482c14
deprecate old export script
Apr 20, 2017
534336f
EXPORT VERSION 60466
Apr 20, 2017
b4383f1
EXPORT VERSION 60467
Apr 20, 2017
97dbbb3
reduce git depth
Apr 20, 2017
567e381
Merge branch 'master' of https://github.com/guillep/pharo-core
Apr 20, 2017
4b90c2b
adding caching of metacello and pharo directories
Apr 20, 2017
3be1e51
fixed caching tab to space
Apr 20, 2017
dabe4e9
added test run after bootstrap
Apr 20, 2017
4a4f6b1
remove mac builds, they are sloow
Apr 21, 2017
e52cf43
removing warnings by declaring temp vars
Apr 21, 2017
87afa44
declare temp vars to remove warnings
Apr 21, 2017
018c791
sending build output to /dev/null to see if it is faster
Apr 21, 2017
437109a
testing bootstrapped image and not bootstrapping image
Apr 21, 2017
dfee5ab
allow test failures
Apr 21, 2017
2f395c2
excluding bootstrap from pull requests
Apr 21, 2017
5e6096c
removing redirection to /dev/null
Apr 21, 2017
3569173
fixing latest export
Apr 27, 2017
ebb00f9
EXPORT VERSION 60468
Apr 27, 2017
281b7ed
fix message
Apr 27, 2017
ea7416a
EXPORT VERSION 60469
Apr 27, 2017
c037987
EXPORT VERSION 60470
Apr 27, 2017
5b70502
EXPORT VERSION 60471
Apr 27, 2017
83de807
EXPORT VERSION 60472
Apr 27, 2017
29fb90b
EXPORT VERSION 60473
Apr 27, 2017
e4a19bb
EXPORT VERSION 60474
May 1, 2017
cfc1aa3
EXPORT VERSION 60475
May 2, 2017
906c3e7
EXPORT VERSION 60476
May 2, 2017
3016c3b
EXPORT VERSION 60477
May 2, 2017
900451f
EXPORT VERSION 60479
May 3, 2017
0d0976b
EXPORT VERSION 60480
May 3, 2017
b273f92
EXPORT VERSION 60481
May 4, 2017
350a3cb
EXPORT VERSION 60482
May 4, 2017
4d92279
EXPORT VERSION 60483
May 9, 2017
3d82e20
add cleanup for release at the end
pavel-krivanek May 10, 2017
7c2a845
Merge pull request #46 from guillep/issue45
guillep May 11, 2017
8053069
EXPORT VERSION 60484
May 11, 2017
e9d735b
EXPORT VERSION 60485
May 11, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
EXPORT VERSION 60476
  • Loading branch information
jenkins-pharo committed May 2, 2017
commit 906c3e740b523f4adcb832274288ec920966d182
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
formatting
bold: aString
"Return Text object with bold emphasis."
aString size = 0 ifTrue: [^self].
aString ifEmpty: [ self errorEmptyString ].
^ aString asText addAttribute: TextEmphasis bold from: 1 to: aString size.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ doItFrom: aString

color := Color fromHexString: 'aa5693'.

aString size = 0 ifTrue: [^self].
aString ifEmpty: [ self errorEmptyString ].
^ aString asText
addAttribute: (TextAction new actOnClickBlock: [
Smalltalk compiler evaluate: aString]; yourself)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ doItScriptFrom: aString

| color text clipboard run |
color := Color fromHexString: 'aa5693'.
aString size = 0 ifTrue: [ ^ self ].
aString ifEmpty: [ self errorEmptyString ].
text := aString asText
addAttribute: (TextColor new color: color);
yourself.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
errors
errorEmptyString

self error: 'Expected a non empty string'
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ heading: aString
font := (LogicalFont familyName: 'Source Sans Pro' pointSize: 20).
color := Color fromHexString: '3196D3'.

aString size = 0 ifTrue: [^self].
aString ifEmpty: [ self errorEmptyString ].
^ (aString asText, String cr, String cr)
addAttribute: (TextFontReference toFont: font) from: 1 to: aString size;
addAttribute: TextEmphasis bold from: 1 to: aString size;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
formatting
underlined: aString
"Return Text object with underlined emphasis."
aString size = 0 ifTrue: [^self].
aString ifEmpty: [ self errorEmptyString ].

^ aString asText addAttribute: TextEmphasis underlined from: 1 to: aString size.
25 changes: 16 additions & 9 deletions src/HelpSystem-Core.package/CustomHelp.class/class/url..st
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
formatting
url: aString
"Return Text object with copy aString to the clipboard after mouse click."
| color |
| color clickBlock |

aString ifEmpty: [ self errorEmptyString ].

color := Color fromHexString: '2176B3'.

clickBlock := [
self environment
at: #WebBrowser
ifPresent: [ :browserClass | browserClass openOn: aString ]
ifAbsent: [
Clipboard clipboardText: aString.
self inform: 'The URL has been pasted into your clipboard'.
]
].

aString size = 0 ifTrue: [^self].
^ aString asText
addAttribute: (TextAction new actOnClickBlock: [
Clipboard clipboardText: aString.
self inform: 'The URL has been pasted into your clipboard'])
from: 1
to: aString size;
addAttribute: (TextColor new color: color) from: 1 to: aString size;
^ aString asText
addAttribute: ( TextAction new actOnClickBlock: clickBlock);
addAttribute: (TextColor new color: color);
yourself
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pages
useExternalPackages
^ HelpTopic
title: 'Use external packages'
contents: (self heading: 'Use external packages'), 'Pharo 5.0 already comes pre-loaded with a rich set of packages that you can use to explore the system and develop your own applications. However there is also a huge library of user contributed projects that you can also load using the "Catalog Browser". To open it click on the following expression:
contents: (self heading: 'Use external packages'), 'Pharo already comes pre-loaded with a rich set of packages that you can use to explore the system and develop your own applications. However there is also a huge library of user contributed projects that you can also load using the "Catalog Browser". To open it click on the following expression:

', (self doItFrom: 'CatalogBrowser open.'), '

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
public
commentForCurrentUpdate
^ '19993 Provide comment for TAbleToRotate
https://pharo.fogbugz.com/f/cases/19993
^ '19985 SourceFileArray should be encoding independent when read preamble of methods
https://pharo.fogbugz.com/f/cases/19985

19959 base local Metaclass and ClassTrait methods tests on pragmas
https://pharo.fogbugz.com/f/cases/19959
20003 useExternalPackages mentions Pharo 5.0 although in Pharo 6.0
https://pharo.fogbugz.com/f/cases/20003

19989 testAllCallsOnASymbol can fail easily
https://pharo.fogbugz.com/f/cases/19989
20000 HelpBrowser should open real browser when "WebBrowser" is loaded
https://pharo.fogbugz.com/f/cases/20000

19997 Cleanup the Help menu (order)
https://pharo.fogbugz.com/f/cases/19997'
19998 Settings Syntax highlighting "set to default" crashes the image
https://pharo.fogbugz.com/f/cases/19998'
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pharo - scripts
script60475
script60476

^ 'AST-Core-TheIntegrator.494.mcz
AST-Tests-Core-TheIntegrator.134.mcz
Expand Down Expand Up @@ -140,7 +140,7 @@ Graphics-Shapes-TheIntegrator.4.mcz
Graphics-Tests-TheIntegrator.85.mcz
Graphics-Transformations-TheIntegrator.17.mcz
Growl-TheIntegrator.47.mcz
HelpSystem-Core-TheIntegrator.174.mcz
HelpSystem-Core-TheIntegrator.176.mcz
HelpSystem-Tests-TheIntegrator.32.mcz
Hiedra-MartinDias.146.mcz
HiedraTests-MartinDias.2.mcz
Expand Down Expand Up @@ -251,7 +251,7 @@ OmbuTests-MartinDias.33.mcz
OpalCompiler-Core-TheIntegrator.890.mcz
OpalCompiler-Tests-TheIntegrator.380.mcz
OpalTools-TheIntegrator.24.mcz
Pharo-Help-TheIntegrator.38.mcz
Pharo-Help-TheIntegrator.40.mcz
PharoBootstrap-Initialization-TheIntegrator.4.mcz
PharoDocComment-StephaneDucasse.6.mcz
Polymorph-Widgets-TheIntegrator.1430.mcz
Expand Down Expand Up @@ -366,11 +366,11 @@ System-Platforms-TheIntegrator.85.mcz
System-Serial Port-StephaneDucasse.23.mcz
System-SessionManager-TheIntegrator.41.mcz
System-SessionManager-Tests-ChristopheDemarey.9.mcz
System-Settings-TheIntegrator.372.mcz
System-Settings-TheIntegrator.374.mcz
System-Settings-Rules-TheIntegrator.2.mcz
System-Settings-Tests-TheIntegrator.15.mcz
System-Sound-TheIntegrator.20.mcz
System-Sources-TheIntegrator.69.mcz
System-Sources-TheIntegrator.71.mcz
System-Support-TheIntegrator.1274.mcz
System-Support-Rules-TheIntegrator.2.mcz
System-SupportTests-TheIntegrator.7.mcz
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pharo - updates
update60476
"self new update60476"
self withUpdateLog: '19985 SourceFileArray should be encoding independent when read preamble of methods
https://pharo.fogbugz.com/f/cases/19985

20003 useExternalPackages mentions Pharo 5.0 although in Pharo 6.0
https://pharo.fogbugz.com/f/cases/20003

20000 HelpBrowser should open real browser when "WebBrowser" is loaded
https://pharo.fogbugz.com/f/cases/20000

19998 Settings Syntax highlighting "set to default" crashes the image
https://pharo.fogbugz.com/f/cases/19998'.
self loadTogether: self script60476 merge: false.

SettingDeclaration initialize.
self flushCaches.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
initialization
initialize

UniqueObject := Object new
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
testing
hasDefault
^ true
^ default ~~ UniqueObject
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
initialization
initialize

super initialize.

default := UniqueObject
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
user interface
setToDefault

self realValue: self defaultValue.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [
"UniqueObject",
"ValueListCache"
],
"instvars" : [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
public - string reading
getPreambleFrom: aFileStream at: position
"To read preamble of method we need read back characters until $!.
But given aFileStream can have UTF8 encoding which make it a bit tricky to scan stream in reverse order.
First we need to move back in stream using byte reading without encoding. It performed by basicNext.
Next we still could not read exact number of characters because (position-startIndex) is not characters number in case of UTF8.
So at the end we use another loop to read encoded characters step by step until stream will be at original position"
| startIndex |
startIndex := position.
[startIndex >= 0 and: [aFileStream position: startIndex.
aFileStream basicNext ~~ $!] ] whileTrue: [ startIndex := startIndex - 1 ].

| writeStream |
writeStream := String new writeStream.
position to: 0 by: -1 do: [ :index |
| aCharacter |
aFileStream position: index.
aCharacter := aFileStream basicNext.
aCharacter == $!
ifTrue: [ ^ writeStream contents reversed ]
ifFalse: [ writeStream nextPut: aCharacter ] ]
^String streamContents: [ :result |
[aFileStream position <= position] whileTrue: [result nextPut: aFileStream next]]