ffi 1.1.5-java → 1.2.0-java

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.

Potentially problematic release.


This version of ffi might be problematic. Click here for more details.

@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -1,3 +1 @@
1
- == 0.3.0 / 2009-03-21
2
- Added write_pointer, read_array_of_pointer and write_array_of_pointer
3
-
1
+ == See git log
data/LICENSE CHANGED
@@ -1,26 +1,14 @@
1
- Copyright (c) 2008, 2009, JRuby Project
1
+ Copyright (c) 2008-2012 Ruby-FFI contributors
2
2
  All rights reserved.
3
3
 
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
4
+ This code is free software: you can redistribute it and/or modify it under
5
+ the terms of the GNU Lesser General Public License version 3 only, as
6
+ published by the Free Software Foundation.
6
7
 
7
- * Redistributions of source code must retain the above copyright notice, this
8
- list of conditions and the following disclaimer.
9
- * Redistributions in binary form must reproduce the above copyright notice
10
- this list of conditions and the following disclaimer in the documentation
11
- and/or other materials provided with the distribution.
12
- * Neither the name of the JRuby Project nor the names of its contributors
13
- may be used to endorse or promote products derived from this software
14
- without specific prior written permission.
15
-
16
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
20
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8
+ This code is distributed in the hope that it will be useful, but WITHOUT
9
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
11
+ version 3 for more details.
26
12
 
13
+ You should have received a copy of the GNU Lesser General Public License
14
+ version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
@@ -0,0 +1,104 @@
1
+ # ruby-ffi http://wiki.github.com/ffi/ffi
2
+
3
+ ## Description
4
+
5
+ Ruby-FFI is a ruby extension for programmatically loading dynamic
6
+ libraries, binding functions within them, and calling those functions
7
+ from Ruby code. Moreover, a Ruby-FFI extension works without changes
8
+ on Ruby and JRuby. Discover why should you write your next extension
9
+ using Ruby-FFI [here](http://wiki.github.com/ffi/ffi/why-use-ffi).
10
+
11
+ ## Features/problems
12
+
13
+ * Intuitive DSL
14
+ * Supports all C native types
15
+ * C structs (also nested), enums and global variables
16
+ * Callbacks from C to ruby
17
+ * Automatic garbage collection of native memory
18
+
19
+ ## Synopsis
20
+
21
+ ```ruby
22
+ require 'ffi'
23
+
24
+ module MyLib
25
+ extend FFI::Library
26
+ ffi_lib 'c'
27
+ attach_function :puts, [ :string ], :int
28
+ end
29
+
30
+ MyLib.puts 'Hello, World using libc!'
31
+ ```
32
+
33
+ For less minimalistic and more sane examples you may look at:
34
+
35
+ * the samples/ folder
36
+ * the examples on the [wiki](http://wiki.github.com/ffi/ffi)
37
+ * the projects using FFI listed on this page (http://wiki.github.com/ffi/ffi/projects-using-ffi)
38
+
39
+ ## Requirements
40
+
41
+ * You need a sane building environment in order to compile the extension.
42
+
43
+ ## Installation
44
+
45
+ From rubygems:
46
+
47
+ [sudo] gem install ffi
48
+
49
+ or from the git repository on github:
50
+
51
+ git clone git://github.com/ffi/ffi.git
52
+ cd ffi
53
+ rake gem:install
54
+
55
+ ## License
56
+
57
+ See LICENSE file.
58
+
59
+ ## Credits
60
+
61
+ The following people have submitted code, bug reports, or otherwide contributed to the success of this project:
62
+
63
+ * Alban Peignier <alban.peignier@free.fr>
64
+ * Aman Gupta <aman@tmm1.net>
65
+ * Andrea Fazzi <andrea.fazzi@alcacoop.it>
66
+ * Andreas Niederl <rico32@gmx.net>
67
+ * Andrew Cholakian <andrew@andrewvc.com>
68
+ * Antonio Terceiro <terceiro@softwarelivre.org>
69
+ * Brian Candler <B.Candler@pobox.com>
70
+ * Brian D. Burns <burns180@gmail.com>
71
+ * Bryan Kearney <bkearney@redhat.com>
72
+ * Charlie Savage <cfis@zerista.com>
73
+ * Chikanaga Tomoyuki <nagachika00@gmail.com>
74
+ * Hongli Lai <hongli@phusion.nl>
75
+ * Ian MacLeod <ian@nevir.net>
76
+ * Jake Douglas <jake@shiftedlabs.com>
77
+ * Jean-Dominique Morani <jdmorani@mac.com>
78
+ * Jeremy Hinegardner <jeremy@hinegardner.org>
79
+ * Jesús García Sáez <blaxter@gmail.com>
80
+ * Joe Khoobyar <joe@ankhcraft.com>
81
+ * Jurij Smakov <jurij@wooyd.org>
82
+ * KISHIMOTO, Makoto <ksmakoto@dd.iij4u.or.jp>
83
+ * Kim Burgestrand <kim@burgestrand.se>
84
+ * Lars Kanis <kanis@comcard.de>
85
+ * Luc Heinrich <luc@honk-honk.com>
86
+ * Luis Lavena <luislavena@gmail.com>
87
+ * Matijs van Zuijlen <matijs@matijs.net>
88
+ * Matthew King <automatthew@gmail.com>
89
+ * Mike Dalessio <mike.dalessio@gmail.com>
90
+ * NARUSE, Yui <naruse@airemix.jp>
91
+ * Park Heesob <phasis@gmail.com>
92
+ * Shin Yee <shinyee@speedgocomputing.com>
93
+ * Stephen Bannasch <stephen.bannasch@gmail.com>
94
+ * Suraj N. Kurapati <sunaku@gmail.com>
95
+ * Sylvain Daubert <sylvain.daubert@laposte.net>
96
+ * Victor Costan
97
+ * beoran@gmail.com
98
+ * ctide <christide@christide.com>
99
+ * emboss <Martin.Bosslet@googlemail.com>
100
+ * hobophobe <unusualtears@gmail.com>
101
+ * meh <meh@paranoici.org>
102
+ * postmodern <postmodern.mod3@gmail.com>
103
+ * wycats@gmail.com <wycats@gmail.com>
104
+ * Wayne Meissner <wmeissner@gmail.com>
data/Rakefile CHANGED
@@ -1,19 +1,215 @@
1
- load 'tasks/setup.rb'
2
-
3
- task :default => 'gem:repackage'
4
-
5
- PROJ.name = 'ffi'
6
- PROJ.authors = "JRuby Project"
7
- PROJ.email = "ruby-ffi@groups.google.com"
8
- PROJ.url = "http://wiki.github.com/ffi/ffi"
9
- PROJ.version = "1.1.5"
10
- PROJ.rubyforge.name = 'ffi'
11
- PROJ.svn.path = 'ffi'
12
- PROJ.summary = "A Ruby foreign function interface"
13
- PROJ.exclude << [ "\\.git", "^nbproject/" ]
14
- PROJ.notes.exclude = %w(^README\.txt$ History\.txt ^data/ ^nbproject/)
15
- PROJ.gem.files = %w(README.txt History.txt LICENSE Rakefile) + Dir.glob("lib/**/*") + Dir.glob("tasks/*")
16
- PROJ.gem.extras['platform'] = 'java'
17
- PROJ.gem.extras['has_rdoc']=false
18
- PROJ.gem.need_tar = false
19
- PROJ.gem.need_zip = false
1
+ require 'rubygems'
2
+ require 'rubygems/package_task'
3
+ require 'rbconfig'
4
+
5
+ USE_RAKE_COMPILER = (RUBY_PLATFORM =~ /java/) ? false : true
6
+ if USE_RAKE_COMPILER
7
+ gem 'rake-compiler', '>=0.6.0'
8
+ require 'rake/extensiontask'
9
+ end
10
+
11
+ require 'date'
12
+ require 'fileutils'
13
+ require 'rbconfig'
14
+
15
+
16
+ LIBEXT = case RbConfig::CONFIG['host_os'].downcase
17
+ when /darwin/
18
+ "dylib"
19
+ when /mswin|mingw/
20
+ "dll"
21
+ else
22
+ RbConfig::CONFIG['DLEXT']
23
+ end
24
+
25
+ CPU = case RbConfig::CONFIG['host_cpu'].downcase
26
+ when /i[3456]86/
27
+ # Darwin always reports i686, even when running in 64bit mode
28
+ if RbConfig::CONFIG['host_os'] =~ /darwin/ && 0xfee1deadbeef.is_a?(Fixnum)
29
+ "x86_64"
30
+ else
31
+ "i386"
32
+ end
33
+
34
+ when /amd64|x86_64/
35
+ "x86_64"
36
+
37
+ when /ppc64|powerpc64/
38
+ "powerpc64"
39
+
40
+ when /ppc|powerpc/
41
+ "powerpc"
42
+
43
+ when /^arm/
44
+ "arm"
45
+
46
+ else
47
+ RbConfig::CONFIG['host_cpu']
48
+ end
49
+
50
+ OS = case RbConfig::CONFIG['host_os'].downcase
51
+ when /linux/
52
+ "linux"
53
+ when /darwin/
54
+ "darwin"
55
+ when /freebsd/
56
+ "freebsd"
57
+ when /openbsd/
58
+ "openbsd"
59
+ when /sunos|solaris/
60
+ "solaris"
61
+ when /mswin|mingw/
62
+ "win32"
63
+ else
64
+ RbConfig::CONFIG['host_os'].downcase
65
+ end
66
+
67
+ CC = ENV['CC'] || RbConfig::CONFIG['CC'] || "gcc"
68
+
69
+ GMAKE = system('which gmake >/dev/null') && 'gmake' || 'make'
70
+
71
+ LIBTEST = "build/libtest.#{LIBEXT}"
72
+ BUILD_DIR = "build"
73
+ BUILD_EXT_DIR = File.join(BUILD_DIR, "#{RbConfig::CONFIG['arch']}", 'ffi_c', RUBY_VERSION)
74
+
75
+ gem_spec = Gem::Specification.load('ffi.gemspec')
76
+
77
+ Gem::PackageTask.new(gem_spec) do |pkg|
78
+ pkg.need_zip = true
79
+ pkg.need_tar = true
80
+ pkg.package_dir = 'pkg'
81
+ end
82
+
83
+ TEST_DEPS = [ LIBTEST ]
84
+ if RUBY_PLATFORM == "java"
85
+ desc "Run all specs"
86
+ task :specs => TEST_DEPS do
87
+ sh %{#{Gem.ruby} -w -S rspec #{Dir["spec/ffi/*_spec.rb"].join(" ")} -fs --color}
88
+ end
89
+ desc "Run rubinius specs"
90
+ task :rbxspecs => TEST_DEPS do
91
+ sh %{#{Gem.ruby} -w -S rspec #{Dir["spec/ffi/rbx/*_spec.rb"].join(" ")} -fs --color}
92
+ end
93
+ else
94
+ TEST_DEPS.unshift :compile
95
+ desc "Run all specs"
96
+ task :specs => TEST_DEPS do
97
+ ENV["MRI_FFI"] = "1"
98
+ sh %{#{Gem.ruby} -w -Ilib -I#{BUILD_EXT_DIR} -S rspec #{Dir["spec/ffi/*_spec.rb"].join(" ")} -fs --color}
99
+ end
100
+ desc "Run rubinius specs"
101
+ task :rbxspecs => TEST_DEPS do
102
+ ENV["MRI_FFI"] = "1"
103
+ sh %{#{Gem.ruby} -w -Ilib -I#{BUILD_EXT_DIR} -S rspec #{Dir["spec/ffi/rbx/*_spec.rb"].join(" ")} -fs --color}
104
+ end
105
+ end
106
+
107
+ desc "Build all packages"
108
+ task :package => 'gem:package'
109
+
110
+ desc "Install the gem locally"
111
+ task :install => 'gem:install'
112
+
113
+ namespace :gem do
114
+ task :install => :gem do
115
+ ruby %{ -S gem install pkg/ffi-#{gem_spec.version}.gem }
116
+ end
117
+ end
118
+
119
+ desc "Clean all built files"
120
+ task :distclean => :clobber do
121
+ FileUtils.rm_rf('build')
122
+ FileUtils.rm_rf(Dir["lib/**/ffi_c.#{RbConfig::CONFIG['DLEXT']}"])
123
+ FileUtils.rm_rf('lib/1.8')
124
+ FileUtils.rm_rf('lib/1.9')
125
+ FileUtils.rm_rf('lib/ffi/types.conf')
126
+ FileUtils.rm_rf('conftest.dSYM')
127
+ FileUtils.rm_rf('pkg')
128
+ end
129
+
130
+
131
+ desc "Build the native test lib"
132
+ file "build/libtest.#{LIBEXT}" => FileList['libtest/**/*.[ch]'] do
133
+ sh %{#{GMAKE} -f libtest/GNUmakefile CPU=#{CPU} OS=#{OS} }
134
+ end
135
+
136
+
137
+ desc "Build test helper lib"
138
+ task :libtest => "build/libtest.#{LIBEXT}"
139
+
140
+ desc "Test the extension"
141
+ task :test => [ :specs, :rbxspecs ]
142
+
143
+
144
+ namespace :bench do
145
+ ITER = ENV['ITER'] ? ENV['ITER'].to_i : 100000
146
+ bench_libs = "-Ilib -I#{BUILD_DIR}" unless RUBY_PLATFORM == "java"
147
+ bench_files = Dir["bench/bench_*.rb"].reject { |f| f == "bench_helper.rb" }
148
+ bench_files.each do |bench|
149
+ task File.basename(bench, ".rb")[6..-1] => TEST_DEPS do
150
+ sh %{#{Gem.ruby} #{bench_libs} #{bench} #{ITER}}
151
+ end
152
+ end
153
+ task :all => TEST_DEPS do
154
+ bench_files.each do |bench|
155
+ sh %{#{Gem.ruby} #{bench_libs} #{bench}}
156
+ end
157
+ end
158
+ end
159
+
160
+ task 'spec:run' => TEST_DEPS
161
+ task 'spec:specdoc' => TEST_DEPS
162
+
163
+ task :default => :specs
164
+
165
+ task 'gem:win32' do
166
+ sh("rake cross native gem RUBY_CC_VERSION='1.8.7:1.9.3'") || raise("win32 build failed!")
167
+ end
168
+
169
+
170
+ namespace 'java' do
171
+
172
+ java_gem_spec = Gem::Specification.new do |s|
173
+ s.name = gem_spec.name
174
+ s.version = gem_spec.version
175
+ s.author = gem_spec.author
176
+ s.email = gem_spec.email
177
+ s.homepage = gem_spec.homepage
178
+ s.summary = gem_spec.summary
179
+ s.description = gem_spec.description
180
+ s.files = %w(History.txt LICENSE COPYING COPYING.LESSER README.md Rakefile)
181
+ s.has_rdoc = false
182
+ s.license = gem_spec.license
183
+ s.platform = 'java'
184
+ end
185
+
186
+ Gem::PackageTask.new(java_gem_spec) do |pkg|
187
+ pkg.need_zip = true
188
+ pkg.need_tar = true
189
+ pkg.package_dir = 'pkg'
190
+ end
191
+ end
192
+
193
+ task 'gem:java' => 'java:gem'
194
+
195
+
196
+ if USE_RAKE_COMPILER
197
+ Rake::ExtensionTask.new('ffi_c', gem_spec) do |ext|
198
+ ext.name = 'ffi_c' # indicate the name of the extension.
199
+ # ext.lib_dir = BUILD_DIR # put binaries into this folder.
200
+ ext.tmp_dir = BUILD_DIR # temporary folder used during compilation.
201
+ ext.cross_compile = true # enable cross compilation (requires cross compile toolchain)
202
+ ext.cross_platform = 'i386-mingw32' # forces the Windows platform instead of the default one
203
+ end
204
+ end
205
+
206
+ begin
207
+ require 'yard'
208
+
209
+ namespace :doc do
210
+ YARD::Rake::YardocTask.new do |yard|
211
+ end
212
+ end
213
+ rescue LoadError
214
+ warn "[warn] YARD unavailable"
215
+ end