patentscope 0.0.1
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.
- data/.gitignore +26 -0
- data/.rspec +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/License.txt +22 -0
- data/README.md +257 -0
- data/Rakefile +27 -0
- data/lib/patentscope.rb +52 -0
- data/lib/patentscope/client.rb +32 -0
- data/lib/patentscope/configuration.rb +42 -0
- data/lib/patentscope/pct_doc_number.rb +45 -0
- data/lib/patentscope/version.rb +5 -0
- data/lib/patentscope/webservice.rb +74 -0
- data/lib/patentscope/webservice_soap_builder.rb +43 -0
- data/patentscope.gemspec +27 -0
- data/spec/client_spec.rb +75 -0
- data/spec/configuration_spec.rb +138 -0
- data/spec/patentscope_spec.rb +91 -0
- data/spec/pct_app_number_spec.rb +256 -0
- data/spec/pct_pub_number_spec.rb +220 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/webservice_soap_builder_spec.rb +318 -0
- data/spec/webservice_spec.rb +97 -0
- data/spec/wipo_test_suite_doc_id_examples.yaml +298 -0
- data/spec/wipo_test_suite_ia_number_examples.yaml +40 -0
- data/spec/wipo_test_suite_spec.rb +44 -0
- metadata +185 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
passes:
|
2
|
+
-
|
3
|
+
ia_number: 'EP2007005648'
|
4
|
+
title: 'REPRODCUCING OPTICAL IMAGES ON AN IMAGE SENSOR USING A FIBRE-OPTIC PLATE OR A FIBRE WEDGE'
|
5
|
+
-
|
6
|
+
ia_number: 'US2007014350'
|
7
|
+
title: 'LCD-BASED CONFIDENTIAL VIEWING APPARATUS UTILIZING AUTO-INVERSION MASKING'
|
8
|
+
-
|
9
|
+
ia_number: 'CA2007001121'
|
10
|
+
title: 'METHOD FOR PREPARING 2-IODO TRITERPENOID COMPOUNDS'
|
11
|
+
-
|
12
|
+
ia_number: 'ES2006000375'
|
13
|
+
title: 'MACHINE FOR FORMING, FILLING AND CLOSING EXPANDED-POLYMER CONTAINERS'
|
14
|
+
-
|
15
|
+
ia_number: 'GB2006002418'
|
16
|
+
title: 'CONTROLLING POWER CONSUMPTION IN A DATA PROCESSING APPARATUS'
|
17
|
+
-
|
18
|
+
ia_number: 'FI2007050319'
|
19
|
+
title: 'FUEL SYSTEM FOR GAS DRIVEN VESSEL'
|
20
|
+
-
|
21
|
+
ia_number: 'DE2006001720'
|
22
|
+
title: 'FUEL CELL SYSTEM'
|
23
|
+
-
|
24
|
+
ia_number: 'EP2007004565'
|
25
|
+
title: 'DEVICE FOR THE STATUS ENQUIRY OF MECHANICALLY/ELECTRICALLY DETECTABLE SWITCHING STATES OR POSITIONS WITHIN THE FRAMEWORK OF INSPECTION AND INFRASTRUCTURE MONITORING'
|
26
|
+
-
|
27
|
+
ia_number: 'US2007014746'
|
28
|
+
title: 'BIO-RECYCLING OF CARBON DIOXIDE EMITTED FROM POWER PLANTS'
|
29
|
+
-
|
30
|
+
ia_number: 'US2007014580'
|
31
|
+
title: 'TRANSGENIC CROP PLANTS WITH IMPROVED STRESS TOLERANCE'
|
32
|
+
-
|
33
|
+
ia_number: 'GB2007002428'
|
34
|
+
title: 'PHARMACEUTICAL COMBINATIONS'
|
35
|
+
-
|
36
|
+
ia_number: 'GB2007002390'
|
37
|
+
title: 'FUSED THIAZOLE DERIVATIVES AS KINASE INHIBITORS'
|
38
|
+
-
|
39
|
+
ia_number: 'US2007015271'
|
40
|
+
title: 'BICYCLIC COMPOSITIONS AND METHODS FOR MODULATING A KINASE CASCADE'
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'yaml'
|
3
|
+
|
4
|
+
module Patentscope
|
5
|
+
|
6
|
+
describe 'WIPO supplied test suite', :more, :vcr do
|
7
|
+
|
8
|
+
before(:all) do
|
9
|
+
Patentscope.configure_from_env
|
10
|
+
end
|
11
|
+
|
12
|
+
let(:webservice) { Webservice.new }
|
13
|
+
|
14
|
+
after(:all) do
|
15
|
+
Patentscope.reset_configuration
|
16
|
+
end
|
17
|
+
|
18
|
+
context 'International Application numbers' do
|
19
|
+
|
20
|
+
File.open(File.join(File.dirname(__FILE__), *%w[wipo_test_suite_ia_number_examples.yaml])) do |file|
|
21
|
+
examples = YAML.load(file)
|
22
|
+
examples['passes'].each do |e|
|
23
|
+
it "get_iasr of #{e['ia_number']} includes title #{e["title"]}" do
|
24
|
+
iasr_xml = webservice.get_iasr(ia_number: e["ia_number"])
|
25
|
+
expect(iasr_xml).to include(e["title"])
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
context 'Document IDs' do
|
32
|
+
|
33
|
+
File.open(File.join(File.dirname(__FILE__), *%w[wipo_test_suite_doc_id_examples.yaml])) do |file|
|
34
|
+
examples = YAML.load(file)
|
35
|
+
examples['passes'].each do |e|
|
36
|
+
it "get_document_table_of_contents of #{e['doc_id']} includes #{e["signature"]}" do
|
37
|
+
iasr_xml = webservice.get_document_table_of_contents(doc_id: e["doc_id"])
|
38
|
+
expect(iasr_xml).to include(e["signature"])
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
metadata
ADDED
@@ -0,0 +1,185 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: patentscope
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Chong-Yee Khoo
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-01-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 3.0.0.beta1
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 3.0.0.beta1
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: vcr
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: webmock
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: nokogiri
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: unicode_titlecase
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :runtime
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
description: Ruby interface to the Patentscope Webservice provided by the World Intellectual
|
111
|
+
Property Organisation. Requires a subscription to the Patentscope Web Service
|
112
|
+
email:
|
113
|
+
- mail@cykhoo.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- .gitignore
|
119
|
+
- .rspec
|
120
|
+
- .ruby-version
|
121
|
+
- Gemfile
|
122
|
+
- License.txt
|
123
|
+
- README.md
|
124
|
+
- Rakefile
|
125
|
+
- lib/patentscope.rb
|
126
|
+
- lib/patentscope/client.rb
|
127
|
+
- lib/patentscope/configuration.rb
|
128
|
+
- lib/patentscope/pct_doc_number.rb
|
129
|
+
- lib/patentscope/version.rb
|
130
|
+
- lib/patentscope/webservice.rb
|
131
|
+
- lib/patentscope/webservice_soap_builder.rb
|
132
|
+
- patentscope.gemspec
|
133
|
+
- spec/client_spec.rb
|
134
|
+
- spec/configuration_spec.rb
|
135
|
+
- spec/patentscope_spec.rb
|
136
|
+
- spec/pct_app_number_spec.rb
|
137
|
+
- spec/pct_pub_number_spec.rb
|
138
|
+
- spec/spec_helper.rb
|
139
|
+
- spec/webservice_soap_builder_spec.rb
|
140
|
+
- spec/webservice_spec.rb
|
141
|
+
- spec/wipo_test_suite_doc_id_examples.yaml
|
142
|
+
- spec/wipo_test_suite_ia_number_examples.yaml
|
143
|
+
- spec/wipo_test_suite_spec.rb
|
144
|
+
homepage: http://www.cantab-ip.com
|
145
|
+
licenses: []
|
146
|
+
post_install_message:
|
147
|
+
rdoc_options: []
|
148
|
+
require_paths:
|
149
|
+
- lib
|
150
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
+
none: false
|
152
|
+
requirements:
|
153
|
+
- - ! '>='
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
segments:
|
157
|
+
- 0
|
158
|
+
hash: -3671612522132073202
|
159
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
|
+
none: false
|
161
|
+
requirements:
|
162
|
+
- - ! '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
segments:
|
166
|
+
- 0
|
167
|
+
hash: -3671612522132073202
|
168
|
+
requirements: []
|
169
|
+
rubyforge_project:
|
170
|
+
rubygems_version: 1.8.23
|
171
|
+
signing_key:
|
172
|
+
specification_version: 3
|
173
|
+
summary: Ruby interface with WIPO Patentscope Webservice
|
174
|
+
test_files:
|
175
|
+
- spec/client_spec.rb
|
176
|
+
- spec/configuration_spec.rb
|
177
|
+
- spec/patentscope_spec.rb
|
178
|
+
- spec/pct_app_number_spec.rb
|
179
|
+
- spec/pct_pub_number_spec.rb
|
180
|
+
- spec/spec_helper.rb
|
181
|
+
- spec/webservice_soap_builder_spec.rb
|
182
|
+
- spec/webservice_spec.rb
|
183
|
+
- spec/wipo_test_suite_doc_id_examples.yaml
|
184
|
+
- spec/wipo_test_suite_ia_number_examples.yaml
|
185
|
+
- spec/wipo_test_suite_spec.rb
|