File tree Expand file tree Collapse file tree 8 files changed +21
-11
lines changed Expand file tree Collapse file tree 8 files changed +21
-11
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 1.0
4
+
5
+ I am not very proud of idea having a major release in such terrible state. This release is just freeze from 2017
6
+ compatible API and behaviour with some bugfixies. It looks like some people use the library and I want to perform some
7
+ radical refactoring. See you in ` 2.x ` .
8
+
9
+ - ** Fix** : Do not return extra ` : ` while parsing unsupported extensions if there is no namespace for child element
10
+ - ** Fix** : Fixed Copyright test
11
+
3
12
## 1.0-RC5
4
13
5
14
- ** Change:** Moved PHPUnit to development dependencies.
27
36
28
37
## 1.0-RC1
29
38
30
- Initial release
39
+ Initial release
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ Currently supported output formats:
196
196
You can easily install phpGPX library with composer. There is no stable release yet, so please use release candidates.
197
197
198
198
```
199
- composer require sibyx/phpgpx:@RC
199
+ composer require sibyx/phpgpx:@1.0
200
200
```
201
201
202
202
## Configuration
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sibyx/phpgpx" ,
3
3
"type" : " library" ,
4
- "version" : " 1.0-RC5 " ,
4
+ "version" : " 1.0" ,
5
5
"description" : " A simple PHP library for GPX import/export" ,
6
6
"minimum-stability" : " stable" ,
7
7
"license" : " MIT" ,
13
13
}
14
14
],
15
15
"require" : {
16
- "php" : " >=5.4 " ,
16
+ "php" : " >=5.5 " ,
17
17
"lib-libxml" : " *" ,
18
18
"ext-simplexml" : " *" ,
19
19
"ext-dom" : " *"
Original file line number Diff line number Diff line change 9
9
require_once '../vendor/autoload.php ' ;
10
10
11
11
$ gpx = new phpGPX ();
12
- $ file = $ gpx ->load ('Evening_Ride .gpx ' );
12
+ $ file = $ gpx ->load ('endomondo .gpx ' );
13
13
14
14
phpGPX::$ PRETTY_PRINT = true ;
15
- $ file ->save ('output_Evening_Ride.gpx ' , phpGPX::XML_FORMAT );
15
+ // $file->save('output_Evening_Ride.gpx', phpGPX::XML_FORMAT);
16
16
17
17
foreach ($ file ->tracks as $ track ) {
18
18
var_dump ($ track ->stats ->toArray ());
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ public static function parse($nodes)
41
41
break ;
42
42
default :
43
43
foreach ($ nodes ->children ($ namespace ) as $ child_key => $ value ) {
44
- $ extensions ->unsupported ["$ key: $ child_key " ] = (string ) $ value ;
44
+
45
+ $ extensions ->unsupported [$ key ? "$ key: $ child_key " : "$ child_key " ] = (string ) $ value ;
45
46
}
46
47
}
47
48
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class phpGPX
22
22
const XML_FORMAT = 'xml ' ;
23
23
24
24
const PACKAGE_NAME = 'phpGPX ' ;
25
- const VERSION = '1.0RC5 ' ;
25
+ const VERSION = '1.0 ' ;
26
26
27
27
/**
28
28
* Create Stats object for each track, segment and route
Original file line number Diff line number Diff line change 1
1
<?php
2
- declare (strict_types=1 );
3
2
4
3
use PHPUnit \Framework \TestCase ;
5
4
Original file line number Diff line number Diff line change 3
3
* @author Jakub Dubec <[email protected] >
4
4
*/
5
5
6
- namespace UnitTests \phpGPX \Parsers ;
6
+ namespace phpGPX \ Tests \ UnitTests \phpGPX \Parsers ;
7
7
8
8
use phpGPX \Models \Copyright ;
9
9
use phpGPX \Parsers \CopyrightParser ;
10
+ use UnitTests \phpGPX \Parsers \AbstractParserTest ;
10
11
11
12
class CopyrightParserTest extends AbstractParserTest
12
13
{
@@ -24,7 +25,7 @@ public static function createTestInstance()
24
25
25
26
$ copyright ->author = "Jakub Dubec " ;
26
27
$ copyright ->license = "https://github.com/Sibyx/phpGPX/blob/master/LICENSE " ;
27
- $ copyright ->year = 2017 ;
28
+ $ copyright ->year = ' 2017 ' ;
28
29
29
30
return $ copyright ;
30
31
}
You can’t perform that action at this time.
0 commit comments