Hi,
nowadays, we share gems between our application. Is possible to share rails
plugins? I know at least about one ( maybe two if we use smartly rest-auth)
which is packed in vendor/plugins/ of two projects. Is there any way how we
could package plugin and use it from all project (so we could fix problem in
one place?)
thanks
Josef
--
Josef Reidinger
YaST team
maintainer of perl-Bootloader, YaST2-Repair, webyast
(language,time,basesystem,ntp)
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-ruby+help(a)opensuse.org
http://yugui.jp/articles/846
--
openSUSE - SUSE Linux is my linux
openSUSE is good for you
www.opensuse.org
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-ruby+help(a)opensuse.org
hi,
i just committed a small fix to gem2rpm in d:l:r:extensions.
in the past our templated also added development dependencies to the
(Build)Requires list of the spec. those are usually not needed at
runtime. when you update a package next time run gem2rpm-opensuse on the
new gem file again and diff the output with the existing spec file.
just updated nokogiri that way.
darix
--
openSUSE - SUSE Linux is my linux
openSUSE is good for you
www.opensuse.org
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-ruby+help(a)opensuse.org
http://www.infoq.com/news/2009/11/caliper
"Caliper calculates various metrics – for example code duplication and
complexity – for your Ruby code; all you need is a public Git
repository."
Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-ruby+help(a)opensuse.org
Hi all,
I'd like to discuss the problem reported in bug #550934
('It takes minutes to refresh "system is up to date" and "system is healthy"')
It takes very long time to load the initial patches and system status information
which is displayed on the first page (the WebYaST control center) using AJAX requests.
I already have implemented caching in the patches module so the available patches are
not evaluated in every control center reload. But the first call still takes much time...
The problem is that the first patch status request triggers repository metadata
download and cache rebuild which in case of slow/bad/overloaded network connection
can take several minutes (as reported in the bug).
A similar problem is in the status module, but not that serious - the status is read
from the local machine so network is not involved in this case. And even on a slow
machine it won't block for more than several seconds.
I have these possible solutions for reading the patch status:
* don't display the status messages at all (IMO bad solution, I find the overview
messages quite useful...)
* make displaying of the status messages configurable (so users can hide and disable
status loading if it's too slow)
* use a background job for reading patches (display a generic message like
"Reading patches" when the request takes too long and refresh the status after
some time again to get the real status.)
AFAIK an AJAX request cannot be stopped (at least the [Stop] button in FF is disabled
when the page is loaded but an AJAX request is in progress).
I'd prefer the last solution.
Any other suggestion/solution?
Thank you in advance!
Ladislav
--
Best Regards
Ladislav Slezák
Yast Developer
------------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: lslezak(a)suse.cz
Lihovarská 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-ruby+help(a)opensuse.org
Hi,
I want use in webyast aggregation of css in template (see stylesheet_link_tag
option :cache). But I found problem that rails create new aggregated template
in stylesheets directory and this directory doesn't have permissions for yast
as webyast cannot modify itself sources, css or javascript due to security
reason.
Do you have similar problem and how you solve it? If I try to solve it by
symlink, but to writable directory by webyast, but it uses touched file.
Is correct solution if we generate cache css during building via cat?
thanks,
Josef
--
Josef Reidinger
YaST team
maintainer of perl-Bootloader, YaST2-Repair, webyast
(language,time,basesystem,ntp)
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-ruby+help(a)opensuse.org
Hi,
in short:
I update wiki page with two new videos -
http://en.opensuse.org/YaST/Web/Development/TrainingKit/Learning_Ruby_and_R…
longer description:
First what I see is instruction video from railscast about new things in
rails 2.3 (so little older). It introduce three features. Scope and batches is
useful for ActiveRecord (database). Third one is method try on Object. I think
it is really useful method which we should start using to simplify our code
(but do not overuse). especially if code contains
if o && o.map && o.map[:test]
you can simple type
if o.try(:map).try(:"[]",:test)
If you don't know this feature I suggest look at that short video, because
your quality of your code is limited by your knowledge of used api.
Second one is from Gotham conference SOLID object design. I really recommend
this video, because if you are not design guru which knows the latest news you
give a lot of new ideas how to improve your code quality (so everyone in
webyast team should look at it, especially if he want change something in
framework). The presentation shows in example what is advantage of dynamic
languages and why rails has so popular api. It shows how you can write code
which need not to modify much and which is easily extendable. Also shows what
to do if your class depends on class (libraries, modules, config files) which
is changed more often then your class. It takes 47 minutes, but it is full of
information ( I don't fall asleep which detect really good presentation and
speaker :)
--
Josef Reidinger
YaST team
maintainer of perl-Bootloader, YaST2-Repair, webyast modules language and time
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-ruby+help(a)opensuse.org