nokogiri_bang_finders 0.0.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: b8cca4f7d88b47d5c637b26810797fc313c0881a
4
- data.tar.gz: 29581a16a985343b7d17c7c12942337675c7c9c1
5
- !binary "U0hBNTEy":
6
- metadata.gz: 5d4941e790a4aa819e0bcdade09aeb188d29bcd3b9a17b7c90b9dad827dbe6365144c72a3761c211a306951a64b14d8fb87ed2ef19476bfbf175cccd8aad96a1
7
- data.tar.gz: 2d0785aade63dcea318ae5a9fea7b3b9fbf782b1e47713832267cd55d6845d2248bb6f9f65345e6167fe5fa38d9719ba537459beb8001bfdc98928e4f67dd9e1
2
+ SHA1:
3
+ metadata.gz: 3584b7abe3e4df0f0b85120296766ec7e1a24438
4
+ data.tar.gz: 9b0b553216740fc6f311a283afa9fbc338423eb8
5
+ SHA512:
6
+ metadata.gz: 268af5bb0f08d50f6daa4d1f78b4af6d51fabf5ea45856d28bf47d8fb36da7e2773a7b54b4cdf881e2164a9d1091b35ea56242d0ef4d45ee36e0d261bcc0706a
7
+ data.tar.gz: 41a375c7da3916b7f77a21536d8d38fce36ee54c8ff4ade166c8aea6b334b2eaa7db91686841add7e2d2875f5c1059e420e8c938cc5e51fa728731f7a9db3496
@@ -0,0 +1,31 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. Version numbers will reflect [Semantic Versioning](http://semver.org/).
4
+
5
+ ## Unreleased
6
+
7
+ Nothing
8
+
9
+ ## 1.0.0 - 2014-08-14
10
+
11
+ Seems pretty good. Bump to 1.0!
12
+
13
+ ### Added
14
+
15
+ Nothing
16
+
17
+ ### Deprecated
18
+
19
+ Nothing
20
+
21
+ ### Removed
22
+
23
+ Nothing
24
+
25
+ ### Fixed
26
+
27
+ Nothing
28
+
29
+ ## 0.0.3 - 2014-04-04
30
+
31
+ Let's call this the initial release. :)
data/README.md CHANGED
@@ -1,15 +1,26 @@
1
1
  # nokogiri_bang_finders
2
2
 
3
- This gem says "Nokogiri, if you can't find XML I want, yell about it."
3
+ This gem says "Nokogiri, if you can't find the XML I want, yell about it."
4
4
 
5
- Specifically, it adds the following methods:
5
+ For example:
6
+
7
+ ```ruby
8
+ doc = Nokogiri::XML("<root><aliens><alien><name>Alf</name></alien></aliens></root>")
9
+ doc.at('alien').content # => "Alf"
10
+
11
+ # without nokogiri_bang_finders
12
+ doc.at('robot').content # NoMethodError: undefined method `content' for nil:nilclass
13
+
14
+ # with nokogiri_bang_finders
15
+ doc.at!('robot').content # Nokogiri::XML::NotFound: '["robot"] in {snippet of the XML}'
16
+ ```
17
+
18
+ Specifically, this gem adds the following methods to to `Nokogiri::XML::Node` and `Nokogiri::XML::NodeSet`:
6
19
 
7
20
  - `at!`
8
21
  - `at_xpath!`
9
22
  - `at_css!`
10
23
 
11
- ...to `Nokogiri::XML::Node` and `Nokogiri::XML::NodeSet`.
12
-
13
24
  Each method just calls its non-bang namesake and, if the result is `nil`, raises `Nokogiri::XML::NotFound`.
14
25
 
15
26
  This gem is so tiny, you could just copy and paste its code. But if it's convenient, use it. :smile:
@@ -1,3 +1,3 @@
1
1
  module NokogiriBangFinders
2
- VERSION = "0.0.3"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri_bang_finders
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Long
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-04 00:00:00.000000000 Z
11
+ date: 2014-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
@@ -56,14 +56,14 @@ dependencies:
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Adds XML finders to Nokogiri that raise if nothing is found.
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - .gitignore
77
77
  - .rspec
78
+ - CHANGELOG.md
78
79
  - Gemfile
79
80
  - LICENSE.txt
80
81
  - README.md
@@ -94,12 +95,12 @@ require_paths:
94
95
  - lib
95
96
  required_ruby_version: !ruby/object:Gem::Requirement
96
97
  requirements:
97
- - - ! '>='
98
+ - - '>='
98
99
  - !ruby/object:Gem::Version
99
100
  version: '0'
100
101
  required_rubygems_version: !ruby/object:Gem::Requirement
101
102
  requirements:
102
- - - ! '>='
103
+ - - '>='
103
104
  - !ruby/object:Gem::Version
104
105
  version: '0'
105
106
  requirements: []