<commit_before># Shoes-Qt

A Qt backend for [Shoes 4](http://github.com/shoes/shoes4).

## Prerequisites

Tested on 

- OS X 10.7, with rvm ruby 1.9.3-p125, and qt 4.8.1, installed via Homebrew.
- Ubuntu 11.10, with rvm ruby 1.9.3-p194, and qt 4.7.1, installed via apt-get.

These instructions assume that you have git installed, and ruby 1.9.3 installed via rvm.

### OS X


Install `qt`, clone the git repo, and install the `qtbindings` gem.

```
$ brew install qt cmake
$ git clone https://github.com/wasnotrice/shoes-qt.git
$ cd shoes-qt
$ gem install qtbindings
```

### Linux

These instructions are for Ubuntu. Modify as needed for your flavor.

Install `qt`, clone the git repo, and install the `qtbindings` gem.

```
$ sudo apt-get install libqt4-ruby libqt4-dev qt4-qmake cmake
$ git clone https://github.com/wasnotrice/shoes-qt.git
$ cd shoes-qt
$ gem install qtbindings
```

### Windows

Clone the repo, and install `qtbindings` (also installs `qt`).


```
> git clone https://github.com/wasnotrice/shoes-qt.git
> cd shoes-qt
> gem install qtbindings
```


### Using Shoes 4

Shoes 4 is not yet published as a gem. This repo contains the Shoes 4 repo as a submodule, though.
You can find it in the `shoes` directory. The rake tasks and `bin/shoes` include this directory already,
but if you need the Shoes 4 code, that's where it is.


### Verifying your setup

Try running

    $ bin/shoes samples/simple-app.rb

You should see a blank "Shoes 4" window.


## Testing

    $ rake spec:integration # Run the Shoes test suite with the Qt backend
<commit_msg>Add instructions for tagging specs<commit_after># Shoes-Qt

A Qt backend for [Shoes 4](http://github.com/shoes/shoes4).

## Prerequisites

Tested on 

- OS X 10.7, with rvm ruby 1.9.3-p125, and qt 4.8.1, installed via Homebrew.
- Ubuntu 11.10, with rvm ruby 1.9.3-p194, and qt 4.7.1, installed via apt-get.

These instructions assume that you have git installed, and ruby 1.9.3 installed via rvm.

### OS X


Install `qt`, clone the git repo, and install the `qtbindings` gem.

```
$ brew install qt cmake
$ git clone https://github.com/wasnotrice/shoes-qt.git
$ cd shoes-qt
$ gem install qtbindings
```

### Linux

These instructions are for Ubuntu. Modify as needed for your flavor.

Install `qt`, clone the git repo, and install the `qtbindings` gem.

```
$ sudo apt-get install libqt4-ruby libqt4-dev qt4-qmake cmake
$ git clone https://github.com/wasnotrice/shoes-qt.git
$ cd shoes-qt
$ gem install qtbindings
```

### Windows

Clone the repo, and install `qtbindings` (also installs `qt`).


```
> git clone https://github.com/wasnotrice/shoes-qt.git
> cd shoes-qt
> gem install qtbindings
```


### Using Shoes 4

Shoes 4 is not yet published as a gem. This repo contains the Shoes 4 repo as a submodule, though.
You can find it in the `shoes` directory. The rake tasks and `bin/shoes` include this directory already,
but if you need the Shoes 4 code, that's where it is.


### Verifying your setup

Try running

    $ bin/shoes samples/simple-app.rb

You should see a blank "Shoes 4" window.


## Testing

    $ rake spec:integration # Run the Shoes test suite with the Qt backend

To add a spec to the Qt suite, first tag it with `:qt` in the `shoes4` repo, like this:

```ruby
it "knocks socks off", :qt do
   # ...
end
```

Then, update the version in the `shoes-qt` repo:

```
$ cd shoes
$ git pull
$ cd ..
$ git commit -m "Update shoes"
```

and you're good to go.

{'fraction_non_alphanumeric': 0.1114335461404527, 'fraction_numerical': 0.022344747533372025, 'mean_word_length': 3.4592496765847347, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2524964', 'n_tokens_mistral': 1274, 'n_tokens_neox': 1169, 'n_words': 474}