magnum-pi 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTcyYzRjY2U4YTVlZGFkM2UwOTQ3N2MyZGRjN2JkMTZlNmY2NDAzZQ==
4
+ NmQ0YjgwZDQxYjViY2E1MjAxNTFmMjI0ZDRlNzZhZDBjNWQzOTc1ZQ==
5
5
  data.tar.gz: !binary |-
6
- YmYwYTY5ZjM4YTQxZGM4NGUyYjNmNmNhMmNhMWIxMTZkOGRmZjk3YQ==
6
+ Mzg3ZDczMzQ5NDI4NGQwMmQzMDk5YzNhY2NhNjIzYjE3MzJlOTRjNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjkwZmY5YTg3MTA1MTRlOWQ2M2QxNTE1ZTM1OTUzZjNiY2VjODAzY2E4Yjdm
10
- ZDYyZmEyZTU0NDgzMjY3OTFkZWM4ZTc0ODMyNWYxNDY3NjQ0MWMyYjIzMWIw
11
- MWVlZjM4MDM5Y2FlMTFiOWYxZDA0NzBlZGZmOTQyZjRiYjhjZTU=
9
+ NGJhMWExODYxM2E5ZjAyYjZiODg0OTIwODZlYmQxMGY5MWUwMTE3YTkyYjhj
10
+ Y2ZjZmRkMmE4OTgyYmNkZGM3NzhjNDdmNGY2NmY2YWE1ZjRmZDU2ZTI1OTVh
11
+ ZmUzN2U1ZWUzMzQ1MjFhM2I5MGM2ZDQxMTM0MGVkYmY2ZTIxOTQ=
12
12
  data.tar.gz: !binary |-
13
- NGQ0OWU0YWJkNDg1MDFiMDU3MjI4NTNhMWQ5ZDM5MWIyMzY0MmIyMjRlYzFj
14
- ZGEyNTRmNGIzMDM3ZGNkMzIwM2M2ZTdjNGFhM2NmOWM1OThiNjI5YzY2Y2Fj
15
- N2Y2ZTEwYTVlM2I2OTE4MDk2Njg3NjMwYmU3ZmM0YzkwZGJlNWM=
13
+ NzA4YTU0ODE0ZjFiZjEwMTIxMDk2MTlkNjFlYmZjODQ5Yzc1NzFiOTZiNTg2
14
+ MGVlY2MxZDYwYmQwNzE3YjBhNjNkZDNhYjFhMjFlOGE5MDdiOWNkZTc1ZmIx
15
+ NWVkYmNjYTlmZWY5NWRmMDQ0ZTk1MjRiYzk4M2VkNTE2MTVkOTc=
@@ -1,5 +1,9 @@
1
1
  = MagnumPI CHANGELOG
2
2
 
3
+ == Version 0.2.3 (June 24, 2014)
4
+
5
+ * Interpreting CDATA as text when parsing XML documents with Ax
6
+
3
7
  == Version 0.2.2 (June 23, 2014)
4
8
 
5
9
  * Setting user_agent_alias of Mechanize instances (default: “Windows Chrome“, overwrite with USER_AGENT_ALIAS)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -42,6 +42,12 @@ class Ax < Ox::Sax
42
42
  end
43
43
  end
44
44
 
45
+ def cdata(str)
46
+ if element = current_element
47
+ element[:text] = str
48
+ end
49
+ end
50
+
45
51
  def end_element(name)
46
52
  element = finalize_element
47
53
  if entry?
@@ -1,7 +1,7 @@
1
1
  module MagnumPI
2
2
  MAJOR = 0
3
3
  MINOR = 2
4
- TINY = 2
4
+ TINY = 3
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
@@ -11,7 +11,7 @@ module Unit
11
11
  <data>
12
12
  <article>
13
13
  <title>MagnumPI is awesome!!!</title>
14
- <category>ruby</category>
14
+ <category><![CDATA[ruby]]></category>
15
15
  </article>
16
16
  <article>
17
17
  <title>Netherlands beats Spain with 1-5 :)</title>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magnum-pi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Engel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2014-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize