treebank-transform 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2c0d1fdc821f9aff905c27ffb543d58bfe82277b
4
+ data.tar.gz: 3fbea6fcf80fd280cf7bc192986c295c7532b289
5
+ SHA512:
6
+ metadata.gz: e93580c10f57dae370ba41a98b5b303cf79ceb44ce7af7b827abf74da0e6802ab47bea7588c16eb67bdf0c8aa94ff156669e440de6715ff5b8b2986e438d45e9
7
+ data.tar.gz: 944c05731f3df681c96132f4f015626fcc374dacaba8f903dc37aea0e9abc9df3c45669b0d98f09b13fdd8d975b35828808d3e5d3dc6ba04095749751ad90805
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ language: ruby
3
+ before_script:
4
+ - export JRUBY_OPTS=--2.0
5
+ rvm:
6
+ - 2.1.0
7
+ - jruby-1.7.8
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in treebank-transform.gemspec
4
+ gemspec
5
+ gem 'coveralls', require: false
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 LFDM
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # Treebank::Transform
2
+
3
+ [![Version](http://allthebadges.io/LFDM/treebank-transform/badge_fury.png)](http://allthebadges.io/LFDM/treebank-transform/badge_fury)
4
+ [![Dependencies](http://allthebadges.io/LFDM/treebank-transform/gemnasium.png)](http://allthebadges.io/LFDM/treebank-transform/gemnasium)
5
+ [![Build Status](http://allthebadges.io/LFDM/treebank-transform/travis.png)](http://allthebadges.io/LFDM/treebank-transform/travis)
6
+ [![Coverage](http://allthebadges.io/LFDM/treebank-transform/coveralls.png)](http://allthebadges.io/LFDM/treebank-transform/coveralls)
7
+ [![Code Climate](http://allthebadges.io/LFDM/treebank-transform/code_climate.png)](http://allthebadges.io/LFDM/treebank-transform/code_climate)
8
+
9
+ Transforms Perseus Treebank Files.
10
+
11
+ Right now only a transformation of 1.5 files to the interim
12
+ [Arethusa](http://github.com/latin-language-toolkit/arethusa)
13
+ schema is supported. Elliptic nodes are handled differently these days.
14
+
15
+ ## Installation
16
+
17
+ Add this line to your application's Gemfile:
18
+
19
+ ```ruby
20
+ gem 'treebank-transform'
21
+ ```
22
+
23
+ And then execute:
24
+
25
+ $ bundle
26
+
27
+ Or install it yourself as:
28
+
29
+ $ gem install treebank-transform
30
+
31
+ ## Usage
32
+
33
+ You can transform the example file from your command line to check the
34
+ output of this tool:
35
+
36
+ ```
37
+ $ treebank-transform do examples/cicero_catilina_sample.xml
38
+ ```
39
+
40
+ ## Contributing
41
+
42
+ 1. Fork it ( https://github.com/[my-github-username]/treebank-transform/fork )
43
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
44
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
45
+ 4. Push to the branch (`git push origin my-new-feature`)
46
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ lib = File.expand_path('../../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+
6
+ require 'treebank/transform/cli'
7
+ Treebank::Transform::CLI.start