wlapi 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
data/.yardopts ADDED
@@ -0,0 +1,6 @@
1
+ --private
2
+ --protected
3
+ --title 'WLAPI - Ruby based API for Wortschatz Leipzig web services'
4
+ -
5
+ CHANGELOG
6
+ LICENSE
data/CHANGELOG ADDED
@@ -0,0 +1,16 @@
1
+ == COMPLETED
2
+ === 0.7.4
3
+ Small fixes in the project infrastructure and test refactoring.
4
+ === 0.7.3
5
+ Fixed the bug with a wrong dependency on the latest version of savon.
6
+ Due to interface changes it depends now on +0.7.9+.
7
+ === 0.0.3
8
+ Initial release of the lib.
9
+
10
+
11
+ == PLANNED
12
+ === 0.8.0
13
+ Reimplement the lib using the latest version of savon.
14
+ === 0.9.0
15
+ === 1.0.0
16
+
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 Andrei Beliankou, University of Trier, Germany
1
+ Copyright (c) 2010, 2011 Andrei Beliankou
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
data/lib/wlapi/api.rb CHANGED
@@ -1,14 +1,17 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # 2010-, Andrei Beliankou
3
3
 
4
- #:title: Ruby based API for Wortschatz Leipzig web services
5
- #:main: README
6
-
7
-
8
- # SAVON is a SOAP client.
9
- gem('savon', '0.7.9')
10
- require 'savon'
4
+ # :title: Ruby based API for Wortschatz Leipzig web services
5
+ # :main: README
11
6
 
7
+ begin
8
+ gem('savon', '0.7.9')
9
+ require 'savon'
10
+ rescue NoMethodError, LoadError
11
+ require 'rubygems'
12
+ retry
13
+ end
14
+
12
15
  # REXML is fast enough for our task.
13
16
  require 'rexml/document'
14
17
  include REXML
@@ -16,7 +19,6 @@ include REXML
16
19
  # Top level namespace wrapper for WLAPI
17
20
  module WLAPI
18
21
 
19
- VERSION = '0.7.3'
20
22
  # This class represents an interface to the linguistic web services
21
23
  # provided by the University of Leipzig.
22
24
  #
@@ -0,0 +1,3 @@
1
+ module WLAPI
2
+ VERSION = '0.7.4'
3
+ end
data/lib/wlapi.rb CHANGED
@@ -1 +1,2 @@
1
+ require 'wlapi/version'
1
2
  require 'wlapi/api'
data/test/test_api.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'rubygems'
3
2
  require 'test/unit'
4
3
  require 'wlapi'
5
4
 
@@ -13,7 +12,12 @@ class TestApi < Test::Unit::TestCase
13
12
 
14
13
  def teardown
15
14
  end
16
-
15
+
16
+ # test constants
17
+ def test_constants
18
+ assert(WLAPI::VERSION.is_a?(String) && ! WLAPI::VERSION.empty?)
19
+ end
20
+
17
21
  # one parameter
18
22
  def test_frequencies
19
23
  assert_respond_to(@api, :frequencies)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wlapi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 3
10
- version: 0.7.3
9
+ - 4
10
+ version: 0.7.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrei Beliankou
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-08 00:00:00 Z
18
+ date: 2011-08-11 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: savon
@@ -33,6 +33,36 @@ dependencies:
33
33
  version: 0.7.9
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: rdoc
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 33
45
+ segments:
46
+ - 3
47
+ - 9
48
+ - 1
49
+ version: 3.9.1
50
+ type: :development
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: fakeweb
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
64
+ type: :development
65
+ version_requirements: *id003
36
66
  description: WLAPI is a programmatic API for web services provided by the project Wortschatz, University of Leipzig.
37
67
  email: a.belenkow@uni-trier.de
38
68
  executables: []
@@ -42,18 +72,23 @@ extensions: []
42
72
  extra_rdoc_files:
43
73
  - README
44
74
  - LICENSE
75
+ - CHANGELOG
45
76
  files:
77
+ - lib/wlapi/version.rb
46
78
  - lib/wlapi/api.rb
47
79
  - lib/wlapi.rb
48
80
  - README
49
81
  - LICENSE
82
+ - CHANGELOG
83
+ - .yardopts
50
84
  - test/test_api.rb
51
85
  homepage: http://www.uni-trier.de/index.php?id=34451
52
86
  licenses: []
53
87
 
54
88
  post_install_message:
55
- rdoc_options: []
56
-
89
+ rdoc_options:
90
+ - -m
91
+ - README
57
92
  require_paths:
58
93
  - lib
59
94
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -76,10 +111,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
111
  segments:
77
112
  - 0
78
113
  version: "0"
79
- requirements:
80
- - Using this gem requires understanding of the linguistic background behind the WL project.
114
+ requirements: []
115
+
81
116
  rubyforge_project: wlapi
82
- rubygems_version: 1.7.2
117
+ rubygems_version: 1.8.7
83
118
  signing_key:
84
119
  specification_version: 3
85
120
  summary: WLAPI is a programmatic API for web services provided by the project Wortschatz, University of Leipzig. Use different linguistic services such as synonym and collocation search.