Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/eer_markers
. To experiment with that code, run bin/console
for an interactive prompt.
TODO: Delete this and the text above, and describe your gem
Add this line to your application's Gemfile:
gem 'eer_markers'
And then execute:
$ bundle
Or install it yourself as:
$ gem install eer_markers
Copy the config/v1.yml.sample file to config/v1.yml. Then add and remove the row numbers that you want to keep in the v1 output. For instance, if you want to keep rows 1 and 2 (zero-indexed), you would have a YAML file like this:
rows:
- 1
- 2
Put your original files in the orig folder in this repository. Then run:
$ find orig -name '*.m' -exec bundle exec bin/eer_markers1 {} \;
When that completes, you'll see your v1 files in the v1 directory. You can then run:
$ find v1 -name '*.m' -exec bundle exec bin/eer_markers2 {} \;
Copy the config/dial.yml.sample file to config/dial.yml. Then add and remove the row numbers that you want to produce consolidated output for. For instance, if you want to produce output for rows 1 and 2 (zero-indexed), you would have a YAML file like this:
rows:
- 1
- 2
Put your timing and dial files in separate directories under tmp. It's expected that your timing files are valid marker (.m) files named like PEG10101.icg.m (where 101 is your participant number) and that your dial files are XLSX files with a row for each second of dial data (starting at second 1) and a single column containing dial data, one per participant, named like 101.xlsx
Then run:
$ bin/console
EerMarkers::Dial.new("tmp/timing", "tmp/dial")
You should see your consolidated dial data in the dial directory.
After checking out the repo, run bin/setup
to install dependencies. Then, run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
to create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
- Fork it ( https://github.com/[my-github-username]/eer_markers/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request