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

Updated to latest stable Gumbo #9

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
070d3cb
Added compiler ignore warnings inside gumbo library and optimised tag…
rwarrender Feb 15, 2016
4654dbe
Updated license file location to fix warnings
rwarrender Feb 15, 2016
8a05cb6
Changed unknown tag name back to unknown
rwarrender Feb 15, 2016
4b0d645
Added various read-only properties instead of methods and refactored …
rwarrender Mar 21, 2017
1b1c4fd
Switched OGUtility to use singleton and use a dictionary instead of a…
rwarrender Mar 24, 2017
8926c56
Refactored so all Node objects are immutable once created, added Doc …
rwarrender Mar 24, 2017
b715ac6
Removed Mode from the end of OGDocumentDocTypeQuirksMode
rwarrender Mar 24, 2017
9e4d56f
Fixed issue with white space returning debug description format
rwarrender Mar 24, 2017
ae8ae20
Major reworking of how ObjectiveGumbo generates nodes. It now uses an…
rwarrender Mar 28, 2017
9feb579
Added some documentation to OGDocument node properties and enums.
rwarrender Mar 28, 2017
627ce42
Adjusted documentation to mention that the doctype is indicating the …
rwarrender Mar 28, 2017
0c53b74
Implemented htmlWithIndentation method for OGDocument to properly re-…
rwarrender Mar 28, 2017
0d034f0
Removed code which stripped white space on OGText nodes
rwarrender Mar 28, 2017
c395f5c
Implemented elementWithID for OGElementSearch category which is more …
rwarrender Mar 28, 2017
d49f35b
Documented many classes and added a number of nullability hints
rwarrender Mar 28, 2017
185a4a9
Updated readme
rwarrender Mar 28, 2017
5e3f6d8
Implemented a number of convenience methods on OGDocument for extract…
rwarrender Mar 29, 2017
dddb941
Replaced Gumbo tag and namespace enums with ObjectiveGumbo versions d…
rwarrender Mar 30, 2017
75b3a7e
Added missing gumbo error include
rwarrender Mar 30, 2017
951d26b
Tweaked error handing and fixed a bug
rwarrender Mar 31, 2017
6f1096f
Changed GumboTag enum to OGTag enum
rwarrender Mar 31, 2017
f7422de
Tweaked the debug output slightly
rwarrender Mar 31, 2017
d83f431
Updated readme
rwarrender Mar 31, 2017
783f17b
Added missing code block end tag
rwarrender Mar 31, 2017
59fe942
Implemented initial RDFa Lite extraction of properties, additional CS…
rwarrender Apr 5, 2017
97815b1
Added support for selecting with multiple class selectors
rwarrender Apr 6, 2017
f8d5d7c
Fixed precision warnings in Gumbo library
rwarrender May 13, 2017
5267c79
Fixed some nullability issues, un-used variables and issues with arra…
rwarrender May 13, 2017
cc1b33d
Updated readme with Swift 3 examples
rwarrender May 13, 2017
8f787d8
Create LICENSE.txt
rwarrender May 13, 2017
1807d4c
Updated pod spec, created example project and started writing some te…
rwarrender May 14, 2017
3727efa
Added a number of unit tests for checking methods in OGDocument and r…
rwarrender May 14, 2017
ef3725b
Added hasClassNamed method to OGElement and implemented more tests fo…
rwarrender May 14, 2017
dff6e5b
Fixed #id.selectors to work in subscript search and added more tests …
rwarrender May 15, 2017
40fd621
Wrote more subscripting search tests
rwarrender May 16, 2017
0910097
Added new methods for working out if nodes are descended or ancestors…
rwarrender May 16, 2017
c68ca73
Removed header dependancy in public headers on gumbo.h, made Objectiv…
rwarrender May 29, 2017
26ccf64
Updated file comments header
rwarrender May 29, 2017
841e07c
Updated docs
rwarrender May 29, 2017
ad78fce
Update README.md
rwarrender May 29, 2017
2c54f00
Update README.md
rwarrender May 29, 2017
e5f6f22
Merge pull request #1 from rwarrender/modernisation
rwarrender May 29, 2017
82c44ca
Update README.md
rwarrender May 29, 2017
80134c7
Added OS X deployment target to pod spec
rwarrender May 29, 2017
4a377cc
Merge branch 'modernisation'
rwarrender May 29, 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
653 changes: 653 additions & 0 deletions Example/ObjectiveGumbo.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "ObjectiveGumbo_Example.app"
BlueprintName = "ObjectiveGumbo_Example"
ReferencedContainer = "container:ObjectiveGumbo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F5AD195388D20070C39A"
BuildableName = "ObjectiveGumbo_Tests.xctest"
BlueprintName = "ObjectiveGumbo_Tests"
ReferencedContainer = "container:ObjectiveGumbo.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "ObjectiveGumbo_Example.app"
BlueprintName = "ObjectiveGumbo_Example"
ReferencedContainer = "container:ObjectiveGumbo.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "ObjectiveGumbo_Example.app"
BlueprintName = "ObjectiveGumbo_Example"
ReferencedContainer = "container:ObjectiveGumbo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "ObjectiveGumbo_Example.app"
BlueprintName = "ObjectiveGumbo_Example"
ReferencedContainer = "container:ObjectiveGumbo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>6003F589195388D20070C39A</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>6003F5AD195388D20070C39A</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
10 changes: 10 additions & 0 deletions Example/ObjectiveGumbo.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "0"
version = "2.0">
</Bucket>
27 changes: 27 additions & 0 deletions Example/ObjectiveGumbo/Base.lproj/LaunchScreen.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="16C67" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
27 changes: 27 additions & 0 deletions Example/ObjectiveGumbo/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7706" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="whP-gf-Uak">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7703"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="wQg-tq-qST">
<objects>
<viewController id="whP-gf-Uak" customClass="OGViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="uEw-UM-LJ8"/>
<viewControllerLayoutGuide type="bottom" id="Mvr-aV-6Um"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="TpU-gO-2f1">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="tc2-Qw-aMS" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="305" y="433"/>
</scene>
</scenes>
</document>
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
15 changes: 15 additions & 0 deletions Example/ObjectiveGumbo/OGAppDelegate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// OGAppDelegate.h
// ObjectiveGumbo
//
// Created by rwarrender on 05/14/2017.
// Copyright (c) 2017 rwarrender. All rights reserved.
//

@import UIKit;

@interface OGAppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end
46 changes: 46 additions & 0 deletions Example/ObjectiveGumbo/OGAppDelegate.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
//
// OGAppDelegate.m
// ObjectiveGumbo
//
// Created by rwarrender on 05/14/2017.
// Copyright (c) 2017 rwarrender. All rights reserved.
//

#import "OGAppDelegate.h"

@implementation OGAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end
13 changes: 13 additions & 0 deletions Example/ObjectiveGumbo/OGViewController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// OGViewController.h
// ObjectiveGumbo
//
// Created by rwarrender on 05/14/2017.
// Copyright (c) 2017 rwarrender. All rights reserved.
//

@import UIKit;

@interface OGViewController : UIViewController

@end
Loading