atomutil 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/atomutil.gemspec +2 -2
- data/lib/atomutil.rb +13 -4
- metadata +16 -16
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/atomutil.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "atomutil"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["lyokato"]
|
12
|
-
s.date = "2011-09-
|
12
|
+
s.date = "2011-09-29"
|
13
13
|
s.description = "This library allows your to handle AtomPub and Atom Feed easily"
|
14
14
|
s.email = "lyo.kato@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/atomutil.rb
CHANGED
@@ -55,7 +55,7 @@ module AtomUtil
|
|
55
55
|
module VERSION#:nodoc:
|
56
56
|
MAJOR = 0
|
57
57
|
MINOR = 1
|
58
|
-
TINY =
|
58
|
+
TINY = 3
|
59
59
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
60
60
|
end
|
61
61
|
end
|
@@ -753,14 +753,23 @@ module Atom
|
|
753
753
|
end
|
754
754
|
|
755
755
|
def body=(value)
|
756
|
-
|
757
|
-
|
756
|
+
|
757
|
+
if value =~ Regexp.new("^(?:
|
758
|
+
[[:print:]]
|
758
759
|
|[\xc0-\xdf][\x80-\xbf]
|
759
760
|
|[\xe0-\xef][\x80-\xbf]{2}
|
760
761
|
|[\xf0-\xf7][\x80-\xbf]{3}
|
761
762
|
|[\xf8-\xfb][\x80-\xbf]{4}
|
762
763
|
|[\xfc-\xfd][\x80-\xbf]{5}
|
763
|
-
)
|
764
|
+
)*$", Regexp::EXTENDED, 'n')
|
765
|
+
#if value =~ /^(?:
|
766
|
+
# [[:print:]]
|
767
|
+
# |[\xc0-\xdf][\x80-\xbf]
|
768
|
+
# |[\xe0-\xef][\x80-\xbf]{2}
|
769
|
+
# |[\xf0-\xf7][\x80-\xbf]{3}
|
770
|
+
# |[\xf8-\xfb][\x80-\xbf]{4}
|
771
|
+
# |[\xfc-\xfd][\x80-\xbf]{5}
|
772
|
+
# )*$/x
|
764
773
|
copy = "<div xmlns=\"http://www.w3.org/1999/xhtml\">#{value}</div>"
|
765
774
|
is_valid = true
|
766
775
|
begin
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atomutil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- lyokato
|
@@ -15,11 +15,9 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-29 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name: rspec
|
22
|
-
prerelease: false
|
23
21
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
22
|
none: false
|
25
23
|
requirements:
|
@@ -31,11 +29,11 @@ dependencies:
|
|
31
29
|
- 4
|
32
30
|
- 0
|
33
31
|
version: 2.4.0
|
34
|
-
type: :development
|
35
32
|
version_requirements: *id001
|
36
|
-
|
37
|
-
name: bundler
|
33
|
+
name: rspec
|
38
34
|
prerelease: false
|
35
|
+
type: :development
|
36
|
+
- !ruby/object:Gem::Dependency
|
39
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
38
|
none: false
|
41
39
|
requirements:
|
@@ -47,11 +45,11 @@ dependencies:
|
|
47
45
|
- 0
|
48
46
|
- 0
|
49
47
|
version: 1.0.0
|
50
|
-
type: :development
|
51
48
|
version_requirements: *id002
|
52
|
-
|
53
|
-
name: jeweler
|
49
|
+
name: bundler
|
54
50
|
prerelease: false
|
51
|
+
type: :development
|
52
|
+
- !ruby/object:Gem::Dependency
|
55
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
56
54
|
none: false
|
57
55
|
requirements:
|
@@ -63,11 +61,11 @@ dependencies:
|
|
63
61
|
- 5
|
64
62
|
- 2
|
65
63
|
version: 1.5.2
|
66
|
-
type: :development
|
67
64
|
version_requirements: *id003
|
68
|
-
|
69
|
-
name: rcov
|
65
|
+
name: jeweler
|
70
66
|
prerelease: false
|
67
|
+
type: :development
|
68
|
+
- !ruby/object:Gem::Dependency
|
71
69
|
requirement: &id004 !ruby/object:Gem::Requirement
|
72
70
|
none: false
|
73
71
|
requirements:
|
@@ -77,8 +75,10 @@ dependencies:
|
|
77
75
|
segments:
|
78
76
|
- 0
|
79
77
|
version: "0"
|
80
|
-
type: :development
|
81
78
|
version_requirements: *id004
|
79
|
+
name: rcov
|
80
|
+
prerelease: false
|
81
|
+
type: :development
|
82
82
|
description: This library allows your to handle AtomPub and Atom Feed easily
|
83
83
|
email: lyo.kato@gmail.com
|
84
84
|
executables: []
|