microformats2 2.0.0.pre2 → 2.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
@@ -89,10 +89,10 @@ module Microformats2
89
89
 
90
90
  def define_method(mn)
91
91
  unless respond_to?(mn)
92
- self.class.class_eval { attr_accessor mn }
92
+ self.singleton_class.class_eval { attr_accessor mn }
93
93
  end
94
94
  unless respond_to?(mn.pluralize)
95
- self.class.class_eval { attr_accessor mn.pluralize }
95
+ self.singleton_class.class_eval { attr_accessor mn.pluralize }
96
96
  end
97
97
  end
98
98
 
@@ -1,3 +1,3 @@
1
1
  module Microformats2
2
- VERSION = "2.0.0.pre2"
2
+ VERSION = "2.0.0.pre3"
3
3
  end
@@ -23,7 +23,7 @@ describe Microformats2::ImpliedProperty::Photo do
23
23
  end
24
24
  collection.all.each_with_index do |format, index|
25
25
  it "implies photo to be '' in case #{index+1}" do
26
- format.photo.to_s.should == ""
26
+ expect {format.photo}.to raise_error(NoMethodError)
27
27
  end
28
28
  end
29
29
  end
@@ -23,7 +23,7 @@ describe Microformats2::ImpliedProperty::Url do
23
23
  end
24
24
  collection.all.each_with_index do |format, index|
25
25
  it "implies url to be '' in case #{index+1}" do
26
- format.url.to_s.should == ""
26
+ expect {format.url.to_s.should == ""}.to raise_error(NoMethodError)
27
27
  end
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,168 +1,178 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: microformats2
3
- version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre2
3
+ version: !ruby/object:Gem::Version
4
+ hash: 3405954395
5
5
  prerelease: 6
6
+ segments:
7
+ - 2
8
+ - 0
9
+ - 0
10
+ - pre
11
+ - 3
12
+ version: 2.0.0.pre3
6
13
  platform: ruby
7
- authors:
14
+ authors:
8
15
  - Jessica Lynn Suttles
9
16
  autorequire:
10
17
  bindir: bin
11
18
  cert_chain: []
12
- date: 2013-03-22 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
19
+
20
+ date: 2013-03-26 00:00:00 Z
21
+ dependencies:
22
+ - !ruby/object:Gem::Dependency
15
23
  name: nokogiri
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 1.5.6
22
- type: :runtime
23
24
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
+ requirement: &id001 !ruby/object:Gem::Requirement
25
26
  none: false
26
- requirements:
27
+ requirements:
27
28
  - - ~>
28
- - !ruby/object:Gem::Version
29
+ - !ruby/object:Gem::Version
30
+ hash: 15
31
+ segments:
32
+ - 1
33
+ - 5
34
+ - 6
29
35
  version: 1.5.6
30
- - !ruby/object:Gem::Dependency
31
- name: json
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ~>
36
- - !ruby/object:Gem::Version
37
- version: 1.7.6
38
36
  type: :runtime
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
39
+ name: json
39
40
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
+ requirement: &id002 !ruby/object:Gem::Requirement
41
42
  none: false
42
- requirements:
43
+ requirements:
43
44
  - - ~>
44
- - !ruby/object:Gem::Version
45
+ - !ruby/object:Gem::Version
46
+ hash: 7
47
+ segments:
48
+ - 1
49
+ - 7
50
+ - 6
45
51
  version: 1.7.6
46
- - !ruby/object:Gem::Dependency
47
- name: activesupport
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 3.2.13
54
52
  type: :runtime
53
+ version_requirements: *id002
54
+ - !ruby/object:Gem::Dependency
55
+ name: activesupport
55
56
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
+ requirement: &id003 !ruby/object:Gem::Requirement
57
58
  none: false
58
- requirements:
59
+ requirements:
59
60
  - - ~>
60
- - !ruby/object:Gem::Version
61
+ - !ruby/object:Gem::Version
62
+ hash: 21
63
+ segments:
64
+ - 3
65
+ - 2
66
+ - 13
61
67
  version: 3.2.13
62
- - !ruby/object:Gem::Dependency
68
+ type: :runtime
69
+ version_requirements: *id003
70
+ - !ruby/object:Gem::Dependency
63
71
  name: rake
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: 10.0.0
70
- type: :development
71
72
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
+ requirement: &id004 !ruby/object:Gem::Requirement
73
74
  none: false
74
- requirements:
75
+ requirements:
75
76
  - - ~>
76
- - !ruby/object:Gem::Version
77
+ - !ruby/object:Gem::Version
78
+ hash: 79
79
+ segments:
80
+ - 10
81
+ - 0
82
+ - 0
77
83
  version: 10.0.0
78
- - !ruby/object:Gem::Dependency
79
- name: rspec
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ~>
84
- - !ruby/object:Gem::Version
85
- version: 2.11.0
86
84
  type: :development
85
+ version_requirements: *id004
86
+ - !ruby/object:Gem::Dependency
87
+ name: rspec
87
88
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
+ requirement: &id005 !ruby/object:Gem::Requirement
89
90
  none: false
90
- requirements:
91
+ requirements:
91
92
  - - ~>
92
- - !ruby/object:Gem::Version
93
+ - !ruby/object:Gem::Version
94
+ hash: 35
95
+ segments:
96
+ - 2
97
+ - 11
98
+ - 0
93
99
  version: 2.11.0
94
- - !ruby/object:Gem::Dependency
95
- name: guard-rspec
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ~>
100
- - !ruby/object:Gem::Version
101
- version: 2.1.0
102
100
  type: :development
101
+ version_requirements: *id005
102
+ - !ruby/object:Gem::Dependency
103
+ name: guard-rspec
103
104
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
+ requirement: &id006 !ruby/object:Gem::Requirement
105
106
  none: false
106
- requirements:
107
+ requirements:
107
108
  - - ~>
108
- - !ruby/object:Gem::Version
109
+ - !ruby/object:Gem::Version
110
+ hash: 11
111
+ segments:
112
+ - 2
113
+ - 1
114
+ - 0
109
115
  version: 2.1.0
110
- - !ruby/object:Gem::Dependency
111
- name: rb-fsevent
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ~>
116
- - !ruby/object:Gem::Version
117
- version: 0.9.1
118
116
  type: :development
117
+ version_requirements: *id006
118
+ - !ruby/object:Gem::Dependency
119
+ name: rb-fsevent
119
120
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
+ requirement: &id007 !ruby/object:Gem::Requirement
121
122
  none: false
122
- requirements:
123
+ requirements:
123
124
  - - ~>
124
- - !ruby/object:Gem::Version
125
+ - !ruby/object:Gem::Version
126
+ hash: 57
127
+ segments:
128
+ - 0
129
+ - 9
130
+ - 1
125
131
  version: 0.9.1
126
- - !ruby/object:Gem::Dependency
127
- name: simplecov
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ~>
132
- - !ruby/object:Gem::Version
133
- version: 0.7.1
134
132
  type: :development
133
+ version_requirements: *id007
134
+ - !ruby/object:Gem::Dependency
135
+ name: simplecov
135
136
  prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
+ requirement: &id008 !ruby/object:Gem::Requirement
137
138
  none: false
138
- requirements:
139
+ requirements:
139
140
  - - ~>
140
- - !ruby/object:Gem::Version
141
+ - !ruby/object:Gem::Version
142
+ hash: 1
143
+ segments:
144
+ - 0
145
+ - 7
146
+ - 1
141
147
  version: 0.7.1
142
- - !ruby/object:Gem::Dependency
143
- name: debugger
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ~>
148
- - !ruby/object:Gem::Version
149
- version: 1.2.1
150
148
  type: :development
149
+ version_requirements: *id008
150
+ - !ruby/object:Gem::Dependency
151
+ name: debugger
151
152
  prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
+ requirement: &id009 !ruby/object:Gem::Requirement
153
154
  none: false
154
- requirements:
155
+ requirements:
155
156
  - - ~>
156
- - !ruby/object:Gem::Version
157
+ - !ruby/object:Gem::Version
158
+ hash: 29
159
+ segments:
160
+ - 1
161
+ - 2
162
+ - 1
157
163
  version: 1.2.1
158
- description: parses HTML for microformats and return a collection of dynamically defined
159
- Ruby objects
160
- email:
164
+ type: :development
165
+ version_requirements: *id009
166
+ description: parses HTML for microformats and return a collection of dynamically defined Ruby objects
167
+ email:
161
168
  - jlsuttles@gmail.com
162
169
  executables: []
170
+
163
171
  extensions: []
172
+
164
173
  extra_rdoc_files: []
165
- files:
174
+
175
+ files:
166
176
  - .gitignore
167
177
  - .rspec
168
178
  - .travis.yml
@@ -361,32 +371,40 @@ files:
361
371
  - spec/support/lib/microformats2/simple.js
362
372
  homepage: https://github.com/G5/microformats2
363
373
  licenses: []
374
+
364
375
  post_install_message:
365
376
  rdoc_options: []
366
- require_paths:
377
+
378
+ require_paths:
367
379
  - lib
368
- required_ruby_version: !ruby/object:Gem::Requirement
380
+ required_ruby_version: !ruby/object:Gem::Requirement
369
381
  none: false
370
- requirements:
371
- - - ! '>='
372
- - !ruby/object:Gem::Version
373
- version: '0'
374
- segments:
382
+ requirements:
383
+ - - ">="
384
+ - !ruby/object:Gem::Version
385
+ hash: 3
386
+ segments:
375
387
  - 0
376
- hash: -4181229606465240081
377
- required_rubygems_version: !ruby/object:Gem::Requirement
388
+ version: "0"
389
+ required_rubygems_version: !ruby/object:Gem::Requirement
378
390
  none: false
379
- requirements:
380
- - - ! '>'
381
- - !ruby/object:Gem::Version
391
+ requirements:
392
+ - - ">"
393
+ - !ruby/object:Gem::Version
394
+ hash: 25
395
+ segments:
396
+ - 1
397
+ - 3
398
+ - 1
382
399
  version: 1.3.1
383
400
  requirements: []
401
+
384
402
  rubyforge_project:
385
- rubygems_version: 1.8.24
403
+ rubygems_version: 1.8.25
386
404
  signing_key:
387
405
  specification_version: 3
388
406
  summary: microformats2 parser
389
- test_files:
407
+ test_files:
390
408
  - spec/lib/microformats2/collection_spec.rb
391
409
  - spec/lib/microformats2/implied_property/name_spec.rb
392
410
  - spec/lib/microformats2/implied_property/photo_spec.rb