Permalink
Browse files

Fix gemspec to include json and utf-8 handling.

This has only been tested on ruby 1.8. I'm not sure what we want to do
for the newer versions of ruby?
  • Loading branch information...
Alok Menghrajani
Alok Menghrajani committed Apr 25, 2011
1 parent 0537221 commit 1ecb0dc98427ac488ad9a851004403334dbb7fec
Showing with 7 additions and 5 deletions.
  1. +7 −5 firewatir/firewatir.gemspec
@@ -20,11 +20,11 @@ spec = Gem::Specification.new do |s|
s.version = version
s.summary = 'Automated testing tool for web applications using Firefox browser.'
s.description = <<-EOF
- FireWatir stands for "Web Application Testing in Ruby for Firefox". FireWatir (pronounced firewater) is a free,
- open-source functional testing tool for automating browser-based tests of web applications.
+ FireWatir stands for "Web Application Testing in Ruby for Firefox". FireWatir (pronounced firewater) is a free,
+ open-source functional testing tool for automating browser-based tests of web applications.
It works with applications written in any language.
- FireWatir drives the Firefox browser the same way an end user would.
- It clicks links, fills in forms, presses buttons.
+ FireWatir drives the Firefox browser the same way an end user would.
+ It clicks links, fills in forms, presses buttons.
FireWatir also checks results, such as whether expected text appears on the page, or whether a control is enabled.
FireWatir is a Ruby library that works with Firefox on Windows. It also works on Linux, Mac but without support for
JavaScript popups (currently support will be there shortly).
@@ -35,9 +35,11 @@ spec = Gem::Specification.new do |s|
s.rubyforge_project = 'Watir'
s.requirements << 'Mozilla Firefox browser 1.5 or later.'
- s.require_path = 'lib'
+ s.require_path = 'lib'
s.add_dependency 'commonwatir', '= ' + version
+ s.add_dependency 'json_pure'
+ s.add_dependency 'character-encodings'

This comment has been minimized.

Show comment Hide comment
@jarmo

jarmo Jun 4, 2011

Oh, crap, it doesn't seem to install without Devkit:
S:\watir>gem install character-encodings
Building native extensions. This could take a while...
ERROR: Error installing character-encodings:
ERROR: Failed to build gem native extension.

C:/Ruby186/bin/ruby.exe extconf.rb
checking for ΓÇÿ-std=c99ΓÇÖ option to compiler... no
checking for ΓÇÿ-finline-functionsΓÇÖ option to compiler... no
checking for ΓÇÿ-WallΓÇÖ option to compiler... no
checking for ΓÇÿ-WextraΓÇÖ option to compiler... no
checking for ΓÇÿ-Wwrite-stringsΓÇÖ option to compiler... no
checking for ΓÇÿ-Waggregate-returnΓÇÖ option to compiler... no
checking for ΓÇÿ-Wmissing-prototypesΓÇÖ option to compiler... no
checking for ΓÇÿ-Wmissing-declarationsΓÇÖ option to compiler... no
checking for ΓÇÿ-Wnested-externsΓÇÖ option to compiler... no
checking for ΓÇÿ-WundefΓÇÖ option to compiler... no
checking for ΓÇÿ-Wpointer-arithΓÇÖ option to compiler... no
checking for ΓÇÿ-Wcast-alignΓÇÖ option to compiler... no
checking for ΓÇÿ-WerrorΓÇÖ option to compiler... no
checking for ΓÇÿ-WinlineΓÇÖ option to compiler... no
checking for assert.h... no
checking for limits.h... no
checking for locale.h... no
checking for stdbool.h... no
checking for stddef.h... no
checking for stdint.h... no
checking for stdio.h... no
checking for stdlib.h... no
checking for string.h... no
checking for sys/types.h... no
checking for wchar.h... no
creating Makefile

make
gcc -I. -I/C/Ruby186/lib/ruby/1.8/i386-mingw32 -I/C/Ruby186/lib/ruby/1.8/i386-mi
ngw32 -I. -g -O2 -DFD_SETSIZE=256 -c break.c
process_begin: CreateProcess((null), gcc -I. -I/C/Ruby186/lib/ruby/1.8/i386-ming
w32 -I/C/Ruby186/lib/ruby/1.8/i386-mingw32 -I. -g -O2 -DFD_SETSIZE=256 -c break.
c, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [break.o] Error 2

Gem files will remain installed in C:/Ruby186/lib/ruby/gems/1.8/gems/character-e
ncodings-0.4.1 for inspection.
Results logged to C:/Ruby186/lib/ruby/gems/1.8/gems/character-encodings-0.4.1/ex
t/encoding/character/utf-8/gem_make.out

It doesn't also seem to install with Devkit:
S:\watir>gem install character-encodings
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing character-encodings:
ERROR: Failed to build gem native extension.

"C:/Documents and Settings/xp/.pik/rubies/Ruby-187-p302/bin/ruby.exe" extconf.rb

checking for ΓÇÿ-std=c99ΓÇÖ option to compiler... yes
checking for ΓÇÿ-finline-functionsΓÇÖ option to compiler... yes
checking for ΓÇÿ-WallΓÇÖ option to compiler... yes
checking for ΓÇÿ-WextraΓÇÖ option to compiler... yes
checking for ΓÇÿ-Wwrite-stringsΓÇÖ option to compiler... yes
checking for ΓÇÿ-Waggregate-returnΓÇÖ option to compiler... yes
checking for ΓÇÿ-Wmissing-prototypesΓÇÖ option to compiler... yes
checking for ΓÇÿ-Wmissing-declarationsΓÇÖ option to compiler... yes
checking for ΓÇÿ-Wnested-externsΓÇÖ option to compiler... yes
checking for ΓÇÿ-WundefΓÇÖ option to compiler... yes
checking for ΓÇÿ-Wpointer-arithΓÇÖ option to compiler... yes
checking for ΓÇÿ-Wcast-alignΓÇÖ option to compiler... yes
checking for ΓÇÿ-WerrorΓÇÖ option to compiler... yes
checking for ΓÇÿ-WinlineΓÇÖ option to compiler... yes
checking for assert.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for stdbool.h... yes
checking for stddef.h... yes
checking for stdint.h... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/types.h... yes
checking for wchar.h... yes
creating Makefile

make
Makefile:132: warning: overriding commands for target C:/Documents' Makefile:124: warning: ignoring old commands for targetC:/Documents'
Makefile:132: warning: overriding commands for target and' Makefile:124: warning: ignoring old commands for targetand'
Makefile:134: warning: overriding commands for target C:/Documents' Makefile:132: warning: ignoring old commands for targetC:/Documents'
Makefile:134: warning: overriding commands for target and' Makefile:132: warning: ignoring old commands for targetand'
gcc -I. -I"/C/Documents and Settings/xp/.pik/rubies/Ruby-187-p302/lib/ruby/1.8/i
386-mingw32" -I"/C/Documents and Settings/xp/.pik/rubies/Ruby-187-p302/lib/ruby/
1.8/i386-mingw32" -I. -DHAVE_ASSERT_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_STD
BOOL_H -DHAVE_STDDEF_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STR
ING_H -DHAVE_SYS_TYPES_H -DHAVE_WCHAR_H -g -O2 -DFD_SETSIZE=256 -std=c99 -f
inline-functions -Wall -Wextra -Wwrite-strings -Waggregate-return -Wmissing-prot
otypes -Wmissing-declarations -Wnested-externs -Wundef -Wpointer-arith -Wcast-al
ign -Werror -Winline -c break.c
gcc -I. -I"/C/Documents and Settings/xp/.pik/rubies/Ruby-187-p302/lib/ruby/1.8/i
386-mingw32" -I"/C/Documents and Settings/xp/.pik/rubies/Ruby-187-p302/lib/ruby/
1.8/i386-mingw32" -I. -DHAVE_ASSERT_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_STD
BOOL_H -DHAVE_STDDEF_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STR
ING_H -DHAVE_SYS_TYPES_H -DHAVE_WCHAR_H -g -O2 -DFD_SETSIZE=256 -std=c99 -f
inline-functions -Wall -Wextra -Wwrite-strings -Waggregate-return -Wmissing-prot
otypes -Wmissing-declarations -Wnested-externs -Wundef -Wpointer-arith -Wcast-al
ign -Werror -Winline -c decompose.c
cc1.exe: warnings being treated as errors
decompose.c: In function '_utf_normalize_wc':
decompose.c:410:1: error: visibility attribute not supported in this configurati
on; ignored
make: *** [decompose.o] Error 1

Gem files will remain installed in C:/Documents and Settings/xp/.pik/rubies/Ruby
-187-p302/lib/ruby/gems/1.8/gems/character-encodings-0.4.1 for inspection.
Results logged to C:/Documents and Settings/xp/.pik/rubies/Ruby-187-p302/lib/rub
y/gems/1.8/gems/character-encodings-0.4.1/ext/encoding/character/utf-8/gem_make.
out

Not a good dependency to have, i guess.

@jarmo

jarmo Jun 4, 2011

Oh, crap, it doesn't seem to install without Devkit:
S:\watir>gem install character-encodings
Building native extensions. This could take a while...
ERROR: Error installing character-encodings:
ERROR: Failed to build gem native extension.

C:/Ruby186/bin/ruby.exe extconf.rb
checking for ΓÇÿ-std=c99ΓÇÖ option to compiler... no
checking for ΓÇÿ-finline-functionsΓÇÖ option to compiler... no
checking for ΓÇÿ-WallΓÇÖ option to compiler... no
checking for ΓÇÿ-WextraΓÇÖ option to compiler... no
checking for ΓÇÿ-Wwrite-stringsΓÇÖ option to compiler... no
checking for ΓÇÿ-Waggregate-returnΓÇÖ option to compiler... no
checking for ΓÇÿ-Wmissing-prototypesΓÇÖ option to compiler... no
checking for ΓÇÿ-Wmissing-declarationsΓÇÖ option to compiler... no
checking for ΓÇÿ-Wnested-externsΓÇÖ option to compiler... no
checking for ΓÇÿ-WundefΓÇÖ option to compiler... no
checking for ΓÇÿ-Wpointer-arithΓÇÖ option to compiler... no
checking for ΓÇÿ-Wcast-alignΓÇÖ option to compiler... no
checking for ΓÇÿ-WerrorΓÇÖ option to compiler... no
checking for ΓÇÿ-WinlineΓÇÖ option to compiler... no
checking for assert.h... no
checking for limits.h... no
checking for locale.h... no
checking for stdbool.h... no
checking for stddef.h... no
checking for stdint.h... no
checking for stdio.h... no
checking for stdlib.h... no
checking for string.h... no
checking for sys/types.h... no
checking for wchar.h... no
creating Makefile

make
gcc -I. -I/C/Ruby186/lib/ruby/1.8/i386-mingw32 -I/C/Ruby186/lib/ruby/1.8/i386-mi
ngw32 -I. -g -O2 -DFD_SETSIZE=256 -c break.c
process_begin: CreateProcess((null), gcc -I. -I/C/Ruby186/lib/ruby/1.8/i386-ming
w32 -I/C/Ruby186/lib/ruby/1.8/i386-mingw32 -I. -g -O2 -DFD_SETSIZE=256 -c break.
c, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [break.o] Error 2

Gem files will remain installed in C:/Ruby186/lib/ruby/gems/1.8/gems/character-e
ncodings-0.4.1 for inspection.
Results logged to C:/Ruby186/lib/ruby/gems/1.8/gems/character-encodings-0.4.1/ex
t/encoding/character/utf-8/gem_make.out

It doesn't also seem to install with Devkit:
S:\watir>gem install character-encodings
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing character-encodings:
ERROR: Failed to build gem native extension.

"C:/Documents and Settings/xp/.pik/rubies/Ruby-187-p302/bin/ruby.exe" extconf.rb

checking for ΓÇÿ-std=c99ΓÇÖ option to compiler... yes
checking for ΓÇÿ-finline-functionsΓÇÖ option to compiler... yes
checking for ΓÇÿ-WallΓÇÖ option to compiler... yes
checking for ΓÇÿ-WextraΓÇÖ option to compiler... yes
checking for ΓÇÿ-Wwrite-stringsΓÇÖ option to compiler... yes
checking for ΓÇÿ-Waggregate-returnΓÇÖ option to compiler... yes
checking for ΓÇÿ-Wmissing-prototypesΓÇÖ option to compiler... yes
checking for ΓÇÿ-Wmissing-declarationsΓÇÖ option to compiler... yes
checking for ΓÇÿ-Wnested-externsΓÇÖ option to compiler... yes
checking for ΓÇÿ-WundefΓÇÖ option to compiler... yes
checking for ΓÇÿ-Wpointer-arithΓÇÖ option to compiler... yes
checking for ΓÇÿ-Wcast-alignΓÇÖ option to compiler... yes
checking for ΓÇÿ-WerrorΓÇÖ option to compiler... yes
checking for ΓÇÿ-WinlineΓÇÖ option to compiler... yes
checking for assert.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for stdbool.h... yes
checking for stddef.h... yes
checking for stdint.h... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/types.h... yes
checking for wchar.h... yes
creating Makefile

make
Makefile:132: warning: overriding commands for target C:/Documents' Makefile:124: warning: ignoring old commands for targetC:/Documents'
Makefile:132: warning: overriding commands for target and' Makefile:124: warning: ignoring old commands for targetand'
Makefile:134: warning: overriding commands for target C:/Documents' Makefile:132: warning: ignoring old commands for targetC:/Documents'
Makefile:134: warning: overriding commands for target and' Makefile:132: warning: ignoring old commands for targetand'
gcc -I. -I"/C/Documents and Settings/xp/.pik/rubies/Ruby-187-p302/lib/ruby/1.8/i
386-mingw32" -I"/C/Documents and Settings/xp/.pik/rubies/Ruby-187-p302/lib/ruby/
1.8/i386-mingw32" -I. -DHAVE_ASSERT_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_STD
BOOL_H -DHAVE_STDDEF_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STR
ING_H -DHAVE_SYS_TYPES_H -DHAVE_WCHAR_H -g -O2 -DFD_SETSIZE=256 -std=c99 -f
inline-functions -Wall -Wextra -Wwrite-strings -Waggregate-return -Wmissing-prot
otypes -Wmissing-declarations -Wnested-externs -Wundef -Wpointer-arith -Wcast-al
ign -Werror -Winline -c break.c
gcc -I. -I"/C/Documents and Settings/xp/.pik/rubies/Ruby-187-p302/lib/ruby/1.8/i
386-mingw32" -I"/C/Documents and Settings/xp/.pik/rubies/Ruby-187-p302/lib/ruby/
1.8/i386-mingw32" -I. -DHAVE_ASSERT_H -DHAVE_LIMITS_H -DHAVE_LOCALE_H -DHAVE_STD
BOOL_H -DHAVE_STDDEF_H -DHAVE_STDINT_H -DHAVE_STDIO_H -DHAVE_STDLIB_H -DHAVE_STR
ING_H -DHAVE_SYS_TYPES_H -DHAVE_WCHAR_H -g -O2 -DFD_SETSIZE=256 -std=c99 -f
inline-functions -Wall -Wextra -Wwrite-strings -Waggregate-return -Wmissing-prot
otypes -Wmissing-declarations -Wnested-externs -Wundef -Wpointer-arith -Wcast-al
ign -Werror -Winline -c decompose.c
cc1.exe: warnings being treated as errors
decompose.c: In function '_utf_normalize_wc':
decompose.c:410:1: error: visibility attribute not supported in this configurati
on; ignored
make: *** [decompose.o] Error 1

Gem files will remain installed in C:/Documents and Settings/xp/.pik/rubies/Ruby
-187-p302/lib/ruby/gems/1.8/gems/character-encodings-0.4.1 for inspection.
Results logged to C:/Documents and Settings/xp/.pik/rubies/Ruby-187-p302/lib/rub
y/gems/1.8/gems/character-encodings-0.4.1/ext/encoding/character/utf-8/gem_make.
out

Not a good dependency to have, i guess.

s.has_rdoc = true
s.rdoc_options <<

0 comments on commit 1ecb0dc

Please sign in to comment.