Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions .slather.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ci_service: travis_ci
coverage_service: coveralls
xcodeproj: IGHTMLQuery.xcodeproj
source_directory: ./IGHTMLQuery/*
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ before_install:
- export LANG=en_US.UTF-8
- bundle install
- pod install
script: xcodebuild -workspace IGHTMLQuery.xcworkspace -scheme IGHTMLQuery -sdk iphonesimulator test | xcpretty -c; exit ${PIPESTATUS[0]}
script: rake test
after_success: slather
6 changes: 6 additions & 0 deletions .xctool-args
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
"-workspace", "IGHTMLQuery.xcworkspace",
"-scheme", "IGHTMLQuery",
"-configuration", "Debug",
"-sdk", "iphonesimulator",
]
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ gem "rake"
gem "opal"
gem "opal-sprockets"
gem "cocoapods"
gem "xcpretty"
gem "xcpretty"
gem 'minitest'
gem 'slather'
gem 'coveralls'
gem 'activesupport'
40 changes: 40 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ GEM
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
claide (0.8.1)
clamp (0.6.4)
cocoapods (0.36.1)
activesupport (>= 3.2.15)
claide (~> 0.8.1)
Expand All @@ -34,16 +35,31 @@ GEM
netrc (= 0.7.8)
cocoapods-try (0.4.3)
colored (1.2)
coveralls (0.8.1)
json (~> 1.8)
rest-client (>= 1.6.8, < 2)
simplecov (~> 0.10.0)
term-ansicolor (~> 1.3)
thor (~> 0.19.1)
docile (1.1.5)
domain_name (0.5.24)
unf (>= 0.0.5, < 1.0.0)
escape (0.0.4)
fuzzy_match (2.0.4)
hike (1.2.3)
http-cookie (1.0.2)
domain_name (~> 0.5)
i18n (0.7.0)
json (1.8.2)
mime-types (2.5)
mini_portile (0.6.2)
minitest (5.5.1)
molinillo (0.2.2)
multi_json (1.11.0)
nap (0.8.0)
netrc (0.7.8)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
opal (0.5.5)
source_map
opal-sprockets (0.3.0)
Expand All @@ -52,17 +68,37 @@ GEM
open4 (1.3.4)
rack (1.6.0)
rake (10.4.2)
rest-client (1.8.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
simplecov (0.10.0)
docile (~> 1.1.0)
json (~> 1.8)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
slather (1.7.0)
clamp (~> 0.6)
nokogiri (~> 1.6.3)
xcodeproj (~> 0.23.0)
source_map (3.0.1)
json
sprockets (2.12.3)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
term-ansicolor (1.3.0)
tins (~> 1.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
tins (1.5.1)
tzinfo (1.2.2)
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.1)
xcodeproj (0.23.1)
activesupport (>= 3)
colored (~> 1.2)
Expand All @@ -72,8 +108,12 @@ PLATFORMS
ruby

DEPENDENCIES
activesupport
cocoapods
coveralls
minitest
opal
opal-sprockets
rake
slather
xcpretty
4 changes: 4 additions & 0 deletions IGHTMLQuery.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_GENERATE_TEST_COVERAGE_FILES = YES;
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
Expand Down Expand Up @@ -615,6 +617,8 @@
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_GENERATE_TEST_COVERAGE_FILES = YES;
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "543763A117C36EFD004CE333"
Expand All @@ -76,7 +77,8 @@
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "543763A117C36EFD004CE333"
Expand Down
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ SPEC CHECKSUMS:
NUIParse: 9b6d5a6b782dc654ac6c846d623885080306f07f
ObjectiveSugar: a6a25f23d657c19df0a0b972466d5b5ca9f5295c

COCOAPODS: 0.36.1
COCOAPODS: 0.36.4
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@

# IGHTMLQuery


[![CI Status](http://img.shields.io/travis/serluca/IGHTMLQuery.svg?style=flat)](https://travis-ci.org/serluca/IGHTMLQuery)
[![Coverage Status](https://coveralls.io/repos/serluca/IGHTMLQuery/badge.svg?branch=master)](https://coveralls.io/r/serluca/IGHTMLQuery?branch=master)




# What is it?

IGHTMLQuery is a lightweight XML/HTML parser for iOS, built on top of libxml. It is inspired by jQuery and nokogiri. Consider following snippets:
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ end

desc "Run tests"
task :test do
system("xcodebuild -workspace IGHTMLQuery.xcworkspace -scheme IGHTMLQuery -sdk iphonesimulator test")
exec('xctool GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES clean test')
end

task :default => :build