Invalid gemspec.#<YAML::Syck::DefaultKey

How can I solve the problem “invalid gemspec”?

[[email protected] rubytest]# rails test
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb664a594 3.2.0.rc1"]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/actionpack-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb668700c 3.2.0.rc1"]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/railties-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb66cc79c 3.2.0.rc1"]
create
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create config/initializers
create config/locales
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create test/fixtures
create test/functional
create test/integration
create test/performance
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create Rakefile
create README
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create config/database.yml
create config/routes.rb
create config/locales/en.yml
create db/seeds.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_rails_defaults.rb
create config/initializers/session_store.rb
create config/initializers/cookie_verification_secret.rb
create config/environment.rb
create config/boot.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/console
create script/dbconsole
create script/destroy
create script/generate
create script/runner
create script/server
create script/plugin
create script/performance/benchmarker
create script/performance/profiler
create test/test_helper.rb
create test/performance/browsing_test.rb
create public/404.html
create public/422.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log
[[email protected] rubytest]# ls
test


[[email protected] rubytest]# gem -v
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb664a594 3.2.0.rc1"]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/actionpack-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb668700c 3.2.0.rc1"]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/railties-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb66cc79c 3.2.0.rc1"]
1.4.2


[[email protected] rubytest]# ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [i386-linux]


[[email protected] rubytest]# rails -v
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb664a594 3.2.0.rc1"]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/actionpack-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb668700c 3.2.0.rc1"]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/railties-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb66cc79c 3.2.0.rc1"]
Rails 2.3.11

On Dec 25, 7:59am, Qzi er [email protected] wrote:

How can I solve the problem “invalid gemspec”?

[[email protected] rubytest]# rails test
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb664a594 3.2.0.rc1"]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/actionpack-3.2.0.rc1.gemspec]:

Update to latest RubyGems (1.8.13) and do:

gem pristine --all


Luis L.

Luis L. wrote in post #1038148:

On Dec 25, 7:59am, Qzi er [email protected] wrote:

How can I solve the problem “invalid gemspec”?

[[email protected] rubytest]# rails test
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb664a594 3.2.0.rc1"]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/actionpack-3.2.0.rc1.gemspec]:

Update to latest RubyGems (1.8.13) and do:

gem pristine --all


Luis L.

next follow your replay !

[[email protected] rubytest]# rails test5
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.rc1.
gemspec]: Illformed requirement ["#YAML::Syck::DefaultKey:0xb664a594
3.2.0.rc1
“]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/tilt-1.3.3.gemspec]: i
nvalid date format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/actionpack-3.2.0.rc1.g
emspec]: Illformed requirement [”#YAML::Syck::DefaultKey:0xb668700c
3.2.0.rc1"
]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/json-1.6.1.gemspec]: i
nvalid date format in specification: “2011-09-18 00:00:00.000000000Z”
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/dm-serializer-1.2.1.ge
mspec]: invalid date format in specification: “2011-10-24
00:00:00.000000000Z”
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/railties-3.2.0.rc1.gem
spec]: Illformed requirement ["#YAML::Syck::DefaultKey:0xb66cc79c
3.2.0.rc1"]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/json_pure-1.6.1.gemspe
c]: invalid date format in specification: “2011-09-18
00:00:00.000000000Z”
create
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create config/initializers
create config/locales
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create test/fixtures
create test/functional
create test/integration
create test/performance
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create Rakefile
create README
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create config/database.yml
create config/routes.rb
create config/locales/en.yml
create db/seeds.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_rails_defaults.rb
create config/initializers/session_store.rb
create config/initializers/cookie_verification_secret.rb
create config/environment.rb
create config/boot.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/console
create script/dbconsole
create script/destroy
create script/generate
create script/runner
create script/server
create script/plugin
create script/performance/benchmarker
create script/performance/profiler
create test/test_helper.rb
create test/performance/browsing_test.rb
create public/404.html
create public/422.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log
[[email protected] rubytest]# gem -v
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb664a594 3.2.0.rc1"]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date
format in specification: “2011-08-25 00:00:00.000000000Z”
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/actionpack-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb668700c 3.2.0.rc1"]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/json-1.6.1.gemspec]: invalid date
format in specification: “2011-09-18 00:00:00.000000000Z”
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/dm-serializer-1.2.1.gemspec]:
invalid date format in specification: “2011-10-24 00:00:00.000000000Z”
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/railties-3.2.0.rc1.gemspec]:
Illformed requirement ["#YAML::Syck::DefaultKey:0xb66cc79c 3.2.0.rc1"]
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/json_pure-1.6.1.gemspec]: invalid
date format in specification: “2011-09-18 00:00:00.000000000Z”
1.8.13

On Dec 25, 12:57pm, Qzi er [email protected] wrote:

next follow your replay !

[[email protected] rubytest]# rails test5
Invalid gemspec in
[/usr/lib/ruby/gems/1.8/specifications/activemodel-3.2.0.rc1.
gemspec]: Illformed requirement ["#YAML::Syck::DefaultKey:0xb664a594
3.2.0.rc1
"]

Seems gemspec didn’t regenerate

Please use gem install activemodel -v 3.2.0.rc1

Or do “gem pristine activemodel”

If you need more details on this, please read this.

http://blog.rubygems.org/2011/08/31/shaving-the-yaml-yak.html

Have you updated RubyGems?

gem update --system

What is the output of “gem env”?


Luis L.

After doing the pristine rebuild, I still received one persistent
gemspec error from dm-serializer. The problem was that gems couldn’t
find the gem if I tried to rebuild it.

So I did this and it fixed it the last remaining error:

sudo gem install dm-serializer

  • Bash

I had test the command follow last night !

gem install activemodel --pre

issue is still …

But I had reinstall all and work fine now !

On Mon, Dec 26, 2011 at 10:47 PM, Luis L. [email protected]
wrote:

Have you updated RubyGems?
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Your biological and technological distinctiveness will be added to our
own. Resistance is futile.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs