motion-html 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/motion-html.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a98f7457f2d6df6ef5b6552c790d5c2fb6a64d8b
|
4
|
+
data.tar.gz: 6afdc1de06f95cb62b1fa0848ba8401ac52b7ea2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a0f57cf2dd50288d8064b0983b7353f88ed273bed385635e48d28493be3da861a384930933179e611c251974a299beff4c0f2a763abed7a93824399ed0fd20c
|
7
|
+
data.tar.gz: 79488428c3a146561aa9c1fa15bc6a6951183d20a7170365ea7efaf6c330ddcac755a64403f1ac182cd046029a18f8b6d03eccd83407f423cdf728a47ba7f676
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
#
|
1
|
+
# Motion::HTML
|
2
2
|
|
3
|
-
|
3
|
+
Parse and traverse HTML in your RubyMotion app. It's like Nokogiri for RubyMotion!
|
4
4
|
|
5
5
|
Motion::HTML uses [IGHTMLQuery](https://github.com/siuying/IGHTMLQuery) under the hood.
|
6
6
|
|
7
|
-
Currently, only iOS
|
7
|
+
Currently, only iOS and OS X are supported.
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
@@ -30,7 +30,7 @@ Then query using css or xpath selectors. It returns an array of nodes:
|
|
30
30
|
nodes = doc.query('.photos li a')
|
31
31
|
```
|
32
32
|
|
33
|
-
|
33
|
+
Iterate over the results, and use the attributes or content:
|
34
34
|
```ruby
|
35
35
|
nodes.each do |node|
|
36
36
|
puts "Link text: " + node.text
|
data/lib/motion-html.rb
CHANGED
@@ -10,6 +10,6 @@ lib_dir_path = File.dirname(File.expand_path(__FILE__))
|
|
10
10
|
Motion::Project::App.setup do |app|
|
11
11
|
app.files.unshift(Dir.glob(File.join(lib_dir_path, "project/**/*.rb")))
|
12
12
|
app.pods do
|
13
|
-
pod "IGHTMLQuery", "~> 0.
|
13
|
+
pod "IGHTMLQuery", "~> 0.9.1"
|
14
14
|
end
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Havens
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: motion-cocoapods
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
71
|
rubyforge_project:
|
72
|
-
rubygems_version: 2.5.
|
72
|
+
rubygems_version: 2.5.2
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Parse and traverse HTML in your RubyMotion app. It's like Nokogiri for RubyMotion!
|