1. Create a New gem
Bundle gem gemname
2. Modify the. gemspec file in gem
S. Summary = % q {todo: Write a gem summary} s. Description = % q {todo: Write a gem description}Modify the content in % q {} to a summary and description. The. gemspec file mainly displays the
The following error is always reported when you install the gem.
WARNING: RubyGems 1.2 + index not found:
RubyGems will revert to legacy indexes degrading performance.
Or the gem install is too slow or cannot be connected to timeout.
You can install gem locally.
First go to the gem official website http://rubygems.org/
Install MySQL gem for half a day before installation.
A small record:
First of all, this article is useful.Article:
Http://geryit.com/blog/2011/01/installing-mysql-with-rails-on-mac-os-x-snow-leopard/
My own environment is
Mac OS X 10.6
$ Rvm -- versionRvm 1.6.5 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
$ Mysql -- versionMySQL ver 14.14 distrib 5.1.57, for apple-darwin10.3.0 (i386) using Readl
When native gem is installed on Mac OS X, dyld_stub_binding_helper and dyldfatalerror cannot be found.
Under Mac OS X10.10, sudo gem install curses returns the following error:
Apple @ kissAir: ruby_src $ sudo gem install curses
Password:
Fetching: curses-1.0.1.gem (100%)
Building native extensions. This cocould take
Ruby
You don't need to talk about this.
RVM
It is used to help you install the Ruby environment, help you manage multiple Ruby environments, and help you manage the Ruby environment on which the Ruby application you develop uses the machine. The Ruby environment is not only Ruby itself, but also a third-party Ruby plug-in on which it depends. All are managed by RVM.
Rails
Needless to say, this is a well-known development framework. Look at http://zh.wikipedia.org/wiki/Ruby_on_Rails in detail
Rub
Soul gem (1s 128MB) soulgem"Problem description""As the soul of your body, in order to be able to better use the magic, has been given a small and safe form ..."We know that the life of a magical maiden is stored in a device called Soul Gem (Soul Gem). And sometimes, when the soul Jewel is farther away from the body, the magical girl is unable to control her body
Why is there this?Due to domestic network reasons (you know), the intermittent connection to the resource file that rubygems.org stored on Amazon S3 failed. So you will encounter gem install rack or bundle install when the time is not responding, specifically can be used gem install rails -V to view the execution process.This is a full rubygems.org image, you can use this instead of the official version, th
Guaranteed Ruby and Gem without problemsRubyinstaller-1.9.2-p180.exe two radio boxes are selected when the installation is installed with an administrator openC:\Documents and Settings\administrator>rubyRuby 1.9.2p180 (2011-02-18) [i386-mingw32]ruby-vUpdate Rubygem gem Update--systemC:\Documents and Settings\administrator>gem-v1.5.2Gem Install/list/uninstall sele
Soul gem bzoj 2663, bzoj2663
Soul gem (1 s 128 MB) soulgem
[Problem description]
"As the soul of your body, in order to better use magic, you have been given a small and safe shape ······"
We know that the life of a magic girl is stored in a device called Soul Gem. Sometimes, when the soul gem is far away from the body
May be the cause of the national firewall package, the installation of Railsinstaller after the execution always error,
Bundle InstallDL is deprecated, fiddleFetching gem metadata from https://rubygems.org/.....Resolving dependencies ...
Gem::remotefetcher::fetcherror:ssl_connect returned=1 errno=0 State=sslv3 ReadServer certificate b:certificate verify failed (https://rubygems.org/gems/rake-1
Install and use bundler in Ruby to manage multiple versions of gem and rubybundler
With rbenv to manage a multi-version ruby environment, we also need a tool that can manage multiple versions of gem (such as rails), that is, bundler. The project background is not detailed, for more information, visit http://bundler.io/on the official website.
Install
gem install
Write one of the simplest examples
1. Build the following folder
Note: The Lib directory must have a RB file that is the same as your gem name.
Copy Code code as follows:
$ CD Hola
$ tree
.
├──hola.gemspec
└──lib
└──hola.rb
2. Write Code
. Hola.rb
% Cat lib/hola.rb
class Hola
def self.hi
puts "Hello world!"
End End
. hola.gemspec
% cat Hola.gemspec
"Defend the Radish 2 jewels how to recharge"
1, the first need to recharge their own Apple account (itunes account), a minimum recharge 50RMB, supporting most of the domestic banks (net silver);
2, enter the game gem Shop, select the number of gems you need, and then pop-up a prompt box, choose "Buy" can be.
Note: When buying gems, please operate in a good network environment!
"Defend Radish 2 free gem
Ruby on rails gem install pg cannot be installed, rubyrails
gem install pg -v '0.18.2'Building native extensions. This could take a while...ERROR: Error installing pg: ERROR: Failed to build gem native extension. current directory: /Users/bevan/.rvm/gems/ruby-2.3.0/gems/pg-0.18.2/ext/Users/bevan/.rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160226-49308-
[Android Development] example 4-guess the box in which the gem is stored, android4-A mini game that implements "Guess which box the gem is placed in": There are three boxes in the main interface. clicking any box will open the box and show whether there are any gems in it, in addition, the box that has not been clicked is set to semi-transparent. The box that has been clicked is displayed normally, and the
As shown in the following figure.
1. Document creation
First, create a new file in Photoshop. I use a small size for 300x300 pixels, the default resolution (72), which may be a good idea if you want to make a larger icon after resizing.
You may want to add a nice, simple background. Now, just use the light gradient background.
2. Enable grid/Create graphics
Now, let's start the gem shape. First, you need to make the grid (
Very beautiful transparent texture gem text effect, only need to use the layer style, just set the parameter changes, can make a lot of effect.
Effect Chart:
1. Create a new document, width 600, height 340.
2. Create an adjustment layer, select the gradient, and make the following changes, and create the way your background is displayed:
3. Now use Photoshop's Text tool to create your text, white color. This is the word '
The Ruby on Rails Web site says that running gem install rails after installing Ruby is good.
But the whole process took me a couple of hours. First of all, OpenSUSE 13.1 comes with Ruby 2.0.0p-247, and I offload Ruby because I intend to use rbenv to manage Ruby:
$ sudo zypper rm Ruby
As a result, Konsole is gone, YAST is gone, and it seems that the KDE desktop has been unloaded.
Then you will have to use the system itself. But the
Give you illustrator software users to detailed analysis to share the design of the beautiful texture of the flat gem icon production tutorials.
Tutorial Sharing:
Let's take a look at the final effect chart:
Use the line tool to draw two straight lines perpendicular to each other, so that they intersect exactly at the center of the square. Then use the Split function in the path lookup panel to cut the square into f
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.