Questions tagged [gemspecs]

The gemspec file defines a Gem::Specification object.

A gem consists of two things:

  1. some code
  2. a gemspec file

The gemspec file defines a Gem::Specification object. It contains the required information for a gem. Starting in RubyGems 2.0, a Specification can hold arbitrary metadata.

REQUIRED GEMSPEC ATTRIBUTES

  • author=
  • authors=
  • files
  • name
  • platform=
  • require_paths=
  • rubygems_version
  • summary
  • version

Apart from the list, there are some more attributes that can be included in the gemspec file. These attributes are optional. Some of them are license=, description etc.

117 questions
0
votes
1 answer

active_admin_editor.gemspec not vaild

fresh laptop install trying to get work project up and running foreman or rails start/server outputs this error => The gemspec at…
ChrisCPO
  • 443
  • 2
  • 15
0
votes
1 answer

Rake autoloading Gemspec

I want to know, does rake task autoload a .gemspec? I ask because I'm running a rake task to automate building my gem, part of that is loading files and it prints out messages. I should see: Loading external libraries for rake_tasks instead I…
Thermatix
  • 2,757
  • 21
  • 51
0
votes
1 answer

development_dependency with github reference

I'm building an engine that needs to work with Active Admin. The idea is engine users include their own Active Admin reference in the Gemfile. So, for development purposes, I need to include active admin as development dependency on my gem. I tried…
Leantraxxx
  • 4,506
  • 3
  • 38
  • 56
0
votes
1 answer

How to lint a gemspec file

When building new gems I like to run the command gem build app.gemspec instead of rake build because I get extra warnings, kind of lint for my gem specification. However both commands have the problem that they actually generate in gem file and…
SystematicFrank
  • 16,555
  • 7
  • 56
  • 102
0
votes
1 answer

Circular dependency on rake package task

I've created my own 'gravaty' gem (see RubyGems) with its own gravaty.gemspec file and the Rakefile with main tasks. The problem is: when I run rake package after having ran rake rdoc I see this error rake aborted! Circular dependency detected: TOP…
Marco Bresciani
  • 142
  • 1
  • 10
0
votes
2 answers

Bundle install issue - gemspecs installed read only root - and then cannot be read by bundler?

I'm trying to run "bundle install" to install required gems for my rails project. Previously this wasn't an issue - this is a new machine I'm now working on... I've just been installing ruby (1.9.3 545) rails etc. and now at the point of the bundle…
Steve Hall
  • 469
  • 1
  • 5
  • 23
0
votes
1 answer

Problems in installing thin on windows 7

I am new to ruby. I am trying to install a ruby gem thin. It shows an error in installing the gem. I googled for the error but i could not find a link that addresses my problem. The error is: C:\Users\name\Desktop>ruby -v ruby 2.0.0p247…
user2803152
  • 85
  • 1
  • 1
  • 7
0
votes
1 answer

Different gemspec code

I have a local and production rails app running. Having problems, so I did a diff and found amoung many things, but the most curious was that the gemspec was different! For the same gemspec: action-mailer-3.0.13.gemspec I have different code! My…
rtfminc
  • 6,243
  • 7
  • 36
  • 45
0
votes
2 answers

How do I view my gem's (or any other gem's) gem.description and gem.summary texts (.gemspect items) from the command line?

The .gemspec file I so carefully documented when I created my gem, how do I access its contents? Specifically I'd like to access the gem.description and gem.summary entries because I put some very useful info in there.
boulder_ruby
  • 38,457
  • 9
  • 79
  • 100
0
votes
1 answer

Gem mongo_mapper_ext (0.2.4) has an invalid gemspec

I'm trying to bundle my Rails app properly but when i add the mongo_mapper_ext gem to the Gemfile i always get an error like: Unfortunately, the gem mongo_mapper_ext (0.2.4) has an invalid gemspec. As a result, Bundler cannot install this…
Jorge Diaz
  • 2,503
  • 1
  • 14
  • 15
-1
votes
1 answer

Getting Cocoapods Session Verification Error While Updating Version of Pod

I am unable to push my pod's version. I am continuously getting an error while session verification. Please check and help with it. We are trying to update our pod's version on it. It should verify my account successfully as always.
-1
votes
1 answer

Why can't I require a gem from within the .gemspec?

I can't require third party code in my .gemspec file. I would like to require a semver library to manage my version number. Why can't I require gems inside my .gemspec? I have a workaround for my particular problem. What I am interested in the…
JohnIV
  • 179
  • 1
  • 10
1 2 3 4 5 6 7
8