Displaying 20 results from an estimated 2000 matches similar to: "data file path in a gem"
2010 Sep 20
1
Should a Gem's dependencies be listed in the parent app's Gemfile?
I am working on a Gem that has several Gem dependencies of its own.
The Gem''s .gemspec looks good (I think) and when "bundle install" is
called from the parent app, it lists that it is indeed "Using" the
Gem''s required Gems. I''ll refrain from an Inception analogy here ;)
When I fire up the app and make a request, I get "uninitialized
constant
2010 Aug 08
0
Bad gemspec for rspec-core
I receive this message when bundling using this example project:
http://github.com/francois/rental_agency/tree/1ea252624e161ddc305a719d505a633d8d464e49
The included Gemfile references HEAD of rspec-core, and the gemspec
there has this issue:
Using rspec-core (2.0.0.beta.19) from git://github.com/rspec/rspec-core.git
(at master)
rspec-core at /Users/francois/.rvm/gems/ruby-1.9.2-rc2/bundler/gems/
2011 Jul 22
2
ActiveSupport not including i18n?
Went to use ActiveSupport in a gem today and got an error on account of not
having i18n installed. Either bundler should be installing i18n along with
activesupport or docs need to be updated.
quick repro: https://github.com/softwaregravy/repro_active_support_i18n
bundle exec irb
require ''active_support/all''
detailed steps and error:
1) add to Gemfile
require
2011 Jul 22
2
ActiveSupport not including i18n?
Went to use ActiveSupport in a gem today and got an error on account of not
having i18n installed. Either bundler should be installing i18n along with
activesupport or docs need to be updated.
quick repro: https://github.com/softwaregravy/repro_active_support_i18n
bundle exec irb
require ''active_support/all''
detailed steps and error:
1) add to Gemfile
require
2012 Jan 20
2
Build a ruby gem and conditionally specify dependencies
I am working on a gem that has needs to set dependencies conditionally
when the gem is installed. I''ve done some digging around
and it looks like i''m not alone in this need.
http://stackoverflow.com/questions/4596606/rubygems-how-do-i-add-platform-specific-dependency
# this is a long thread
http://www.ruby-forum.com/topic/957999
The only way I can see to add dependencies to
2012 Sep 04
10
Generic asset definitions and management
(The following is not a Rails-specific question, but relates to a problem
that affects Rails, so I wonder whether anyone on the team has an opinion
about it or knows whether a solution is already in development.)
While gem dependencies can be easily managed in a Gemfile by Bundler, when
it comes to other assets, you either have to manually copy javascript files
into the app/assets or vendor
2010 May 06
5
Bundler for Rails 3 Engine
Hello All,
My google-fu did not find this answer :
How do I configure a Rails-3 Engine so that the engine''s Gemfile is
integrated with the parent-Rails-app''s bundle?
Thanks
Peter Fitzgibbons
(847) 859-9550
Email: peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
IM GTalk: peter.fitzgibbons
IM AOL: peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
--
You
2011 Oct 03
4
gem update --system issue
I run the command
$gem update --system
after all time while installing gems and even
$rails -v
command also giving below error
Invalid gemspec in [/usr/local/lib/ruby/gems/1.9.1/specifications/
json-1.6.1.gemspec]: invalid date format in specification: "2011-09-18
00:00:00.000000000Z"
Invalid gemspec in [/usr/local/lib/ruby/gems/1.9.1/specifications/
json-1.6.0.gemspec]: invalid
2011 Sep 01
7
couldn't find file 'jquery' rails 3.1 stable mountable engine
When I create a new engine in Rails 3.1 stable and then access the dummy
app or the engine I get an error say that the app can''t find jquery.
I''ve created the engine using
rails plugin new coffee --mountable
I''ve also created a basic controller in the engine and the dummy app. If
I remove the javascript include tag, everything works. But with the tag
there it just
2011 Feb 12
10
GemFile error + General Help?
Hello,
I''m a complete beginner in Ruby on Rails, so excuse me if this is a
ridiculous question. Just to bare in mind, I''m using Mac OSX (Snow
Leopard), Rails 3, and sqlite3 as a database. I''ve checked, and
everything is up to date (Rails, Ruby, Gems). I am simply creating a
test application, and I understand the way to run that is by running the
''rails
2011 Feb 23
0
Problem with Mclust
Dear All,
I fear I am badly misunderstanding something fundamental about the
mclust package.
Please considered the dataset pasted at the end of the email (you can
also have a look at
http://dl.dropbox.com/u/5685598/dataedges.csv
).
Now, I would like to use the info on columns 1,2 and 4 to predict the
value in column 3.
However, when I run the script below (obg_mining_script.R), I get
2012 Nov 18
3
remarkable activerecord association RSpec
i''m using gem Remarkable activerecord for association. i''ve installed
remarkable and remarkable activerecrod both gem. i''ve added both gem in
my Gemfile. i''ve added "remarkable_activerecord" as required in
spec_helper.rb.
describe Authentication do
FactoryGirl.build(:authentication).should
belong_to(:user)
2012 Jan 15
2
ruby-debug19 error undefined symbol: ruby_current_thread
I am trying to deploy a Rails app ( Rails 3.0.9 / Ruby 1.9.2 ) in
production (Debian 6)
it''s running fine in development mode on localhost ( OSX)
I am getting this error from Passenger : undefined symbol:
ruby_current_thread
/var/www/vhosts/mydomain.com/rails/testsbga/shared/bundle/ruby/
1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined
symbol: ruby_current_thread -
2008 Jul 17
0
Re : float and double precision with C code
thank you for your quick answer,
I'm far of the digits capacity and my values are not the result of a computation. I'm developping a R package to acces a specific data source. And I need precision a few better. How can I do ?
When I try this In R console, this is correct and what I need :
> my_value <- 29.958334
> my_value == 29.958334
[1] TRUE
But I need to do the first
2011 Oct 29
0
Invalid gemspec. How to fix this?
Hi.
I have just started out using Rails and I am getting these messages
in every rails command. Any idea how to fix this?
Invalid gemspec in [/var/lib/gems/1.8/specifications/
tilt-1.3.3.gemspec]: invalid date format in specification: "2011-08-25
00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/
json-1.6.1.gemspec]: invalid date format in specification:
2008 Jul 17
0
Re : Re : float and double precision with C code
ok, sorry, my mistake was the C printf.
Thank you for your good answer
Regards
----- Message d'origine ----
De : JS Ubei <jsubei at yahoo.fr>
? : jim holtman <jholtman at gmail.com>
Cc : r-help at r-project.org
Envoy? le : Jeudi, 17 Juillet 2008, 15h25mn 07s
Objet : [R] Re : float and double precision with C code
thank you for your quick answer,
I'm far of the digits
2011 Mar 14
3
increase a value by each group?
Hi everybody.
I'm looking for the way to increase the depth value in 0.01 for each index group.
Easier to explain with this example:
>my_data=read.table("clipboard", header=TRUE)
Depth s_name index
3852 Site_1 144
3852 Site_1 144
3852 Site_1 144
3852 site_A 145
3852 site_A 145
3852 site_A 145
3852 site_A 145
3852 site_B 147
3852 site_B 147
3852 site_B 147
3852 site_B 147
54962
2011 Apr 10
2
Multinomial Logit Model with lots of Dummy Variables
Hi All,
I am attempting to build a Multinomial Logit model with dummy variables of
the following form:
Dependent Variable : 0-8 Discrete Choices
Dummy Variable 1: 965 dummy varsghpow at student.monash.edu.augh@gp1.com
Dummy Variable 2: 805 dummy vars
The data set I am using has the dummy columns pre-created, so it's a table
of 72,381 rows and 1770 columns.
The first 965 columns represent
2012 Mar 23
1
R conditional matrix operations - advanced condition
Hello List!
I stumbled across an efficiency problem - calculation that would be
probably done very fast as a matrix operation I must perform as a
for-loop.
My intention was to do a conditional operation in matrix depending on
the information in first column (summing as many data points from
vector my_data as the number specified in the first column of the
matrix) but the result is that the
2005 Oct 22
0
Getting univariate information from a multivariate data set
A quick question that I've had only partial success in answering. I
have a multivariate dataset, and would like to extract some simple
univariate information from it grouped by treatments, etc. I am
encountering two problems however
Note: I am importing my data with
my_data <- read.csv("/path/data.csv")
1) Scoping of unstack
If I attempt
sorted_data <- unstack(response,