diff --git a/3410.zip b/3410.zip new file mode 100644 index 0000000..bee3dd1 Binary files /dev/null and b/3410.zip differ diff --git a/3411.pdf b/3411.pdf new file mode 100644 index 0000000..51665ce Binary files /dev/null and b/3411.pdf differ diff --git a/3412.pdf b/3412.pdf new file mode 100644 index 0000000..b845ae8 Binary files /dev/null and b/3412.pdf differ diff --git a/3443.pdf b/3443.pdf new file mode 100644 index 0000000..dacf9a8 Binary files /dev/null and b/3443.pdf differ diff --git a/3457.pdf b/3457.pdf new file mode 100644 index 0000000..36d79e8 Binary files /dev/null and b/3457.pdf differ diff --git a/3922.htm b/3922.htm new file mode 100644 index 0000000..948013e --- /dev/null +++ b/3922.htm @@ -0,0 +1 @@ + Errata for 766-4 Cooper (corrected in the 2nd & 3rd printings)

Errata for 766-4  Cooper (corrected in the 2nd & 3rd printings)

Page

Original Text

Corrected Text

7

OS X Tiger (10.4.x) comes with Ruby 1.8.4.

 

OS X Tiger (10.4.x) comes with Ruby 1.8.4, and OS X
Leopard (10.5.x) comes with Ruby 1.8.6.

7

Note: It's likely that OS X LeopardÉ

<None, note should be ommited>

7

If you're using OS X Tiger (10.4.x), use Apple's
Software UpdateÉ

If you're using OS X Tiger (10.4.x)
or Leopard (10.5.x), use Apple's Software UpdateÉ

54

Anything that \D doesn't match (non-digits)

Anything that \d doesn't match (non-digits)

 

 

 

59

first in, first out

last in, 
first out

154

Next, a = Drawing::Circle.new gets a new instance of
Drawing::Circle directly, whereas it doesn't succeed because Circle
doesn't exist.

 

Next, a = Drawing::Circle.new gets a new instance of
Drawing::Circle directly, which also works. The third attempt, a =
Circle.new, does not work, however, because Circle doesn't exist.

170

attr_accessible >> (located on bottom line, in code

attr_accessor

175

@player. location = location

@player.location = location

239

It's worth noticing that putc and write overwrite
existing content in the file rather than inserting it, as puts does.

t's worth noticing that putc and write overwrite
existing content in the file rather than insert it.

608

http://sitekreator.com/satishtalim/index.html

http://rubylearning.com/

 

\ No newline at end of file diff --git a/9781590597668.jpg b/9781590597668.jpg new file mode 100644 index 0000000..fcb4886 Binary files /dev/null and b/9781590597668.jpg differ diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..eb6479d --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,27 @@ +Freeware License, some rights reserved + +Copyright (c) 2007 Kenneth Cooper + +Permission is hereby granted, free of charge, to anyone obtaining a copy +of this software and associated documentation files (the "Software"), +to work with the Software within the limits of freeware distribution and fair use. +This includes the rights to use, copy, and modify the Software for personal use. +Users are also allowed and encouraged to submit corrections and modifications +to the Software for the benefit of other users. + +It is not allowed to reuse, modify, or redistribute the Software for +commercial use in any way, or for a user’s educational materials such as books +or blog articles without prior permission from the copyright holder. + +The above copyright notice and this permission notice need to be included +in all copies or substantial portions of the software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..3fa0002 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +#Apress Source Code + +This repository accompanies [*Beginning Ruby*](http://www.apress.com/9781590597668) by Kenneth Cooper (Apress, 2007). + +[comment]: #cover +![Cover image](9781590597668.jpg) + +Download the files as a zip using the green button, or clone the repository to your machine using Git. + +##Releases + +Release v1.0 corresponds to the code in the published book, without corrections or updates. + +##Contributions + +See the file Contributing.md for more information on how you can contribute to this repository. diff --git a/contributing.md b/contributing.md new file mode 100644 index 0000000..f6005ad --- /dev/null +++ b/contributing.md @@ -0,0 +1,14 @@ +# Contributing to Apress Source Code + +Copyright for Apress source code belongs to the author(s). However, under fair use you are encouraged to fork and contribute minor corrections and updates for the benefit of the author(s) and other readers. + +## How to Contribute + +1. Make sure you have a GitHub account. +2. Fork the repository for the relevant book. +3. Create a new branch on which to make your change, e.g. +`git checkout -b my_code_contribution` +4. Commit your change. Include a commit message describing the correction. Please note that if your commit message is not clear, the correction will not be accepted. +5. Submit a pull request. + +Thank you for your contribution! \ No newline at end of file