latex-decode 0.0.12-java → 0.1.0-java

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1 +1,3 @@
1
1
  Gemfile.lock
2
+ .ruby-version
3
+ .rbx
data/.travis.yml ADDED
@@ -0,0 +1,22 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 1.9.2
5
+ - 2.0.0
6
+ - jruby-18mode
7
+ - jruby-19mode
8
+ - rbx-18mode
9
+ - rbx-19mode
10
+ - ruby-head
11
+ - jruby-head
12
+ - 1.8.7
13
+ - ree
14
+ notifications:
15
+ email:
16
+ - sk@semicolon.at
17
+ on_success: change
18
+ on_failure: always
19
+ matrix:
20
+ allow_failures:
21
+ rvm:
22
+ - rbx-18mode
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
4
  group :development do
@@ -6,5 +6,6 @@ group :development do
6
6
  gem 'ruby-debug', :platforms => [:mri_18]
7
7
  end
8
8
 
9
+ gem 'rake', :groups => [:test, :development]
9
10
 
10
11
  gem 'unicode', '~> 0.4', :platforms => [:mri, :rbx, :mswin, :mingw]
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  LaTeX::Decode
2
2
  =============
3
3
 
4
+ [![Build Status](https://travis-ci.org/inukshuk/latex-decode.png?branch=master)](https://travis-ci.org/inukshuk/latex-decode)
5
+
4
6
  LaTeX::Decode is a Ruby gem to convert LaTeX input to Unicode. Its original
5
7
  use was as an input filter for [BibTeX-Ruby](http://rubygems.org/gems/bibtex-ruby)
6
8
  but can be used independently to decode LaTeX. Many of the patterns used by
@@ -10,7 +12,7 @@ this Ruby gem are based on François Charette's equivalent Perl module
10
12
  Quickstart
11
13
  ----------
12
14
 
13
- $ [sudo] gem install bibtex-ruby
15
+ $ [sudo] gem install latex-decode
14
16
  $ irb
15
17
  >> require 'latex/decode'
16
18
  >> LaTeX.decode "dipl\\^{o}me d'\\'{e}tudes sup\\'erieures"
@@ -26,7 +28,7 @@ Issues
26
28
  ------
27
29
 
28
30
  Please use the tracker of the project's
29
- [Github repository](https://github.com/inukshuk/latex-decode) to report any
31
+ [GitHub repository](https://github.com/inukshuk/latex-decode) to report any
30
32
  issues. When describing intended behaviour, please use the extremely simple
31
33
  syntax of the Cucumber features used by LaTeX::Decode; for instance, you could
32
34
  describe the example above as:
@@ -45,7 +47,7 @@ Credits
45
47
  Kudos and thanks to all [contributors](https://github.com/inukshuk/latex-decode/contributors)
46
48
  who have made LaTeX::Decode possible!
47
49
 
48
- Copyright (C) 2011 [Sylvester Keil](sylvester.keil.or.at)
50
+ Copyright (C) 2011-2013 [Sylvester Keil](sylvester.keil.or.at)
49
51
 
50
52
  Copyright (C) 2010 François Charette
51
53
 
data/Rakefile ADDED
@@ -0,0 +1,41 @@
1
+ # encoding: utf-8
2
+
3
+ require 'bundler'
4
+ begin
5
+ Bundler.setup
6
+ rescue Bundler::BundlerError => e
7
+ $stderr.puts e.message
8
+ $stderr.puts "Run `bundle install` to install missing gems"
9
+ exit e.status_code
10
+ end
11
+
12
+ $:.unshift(File.join(File.dirname(__FILE__), './lib'))
13
+ require 'latex/decode/version'
14
+
15
+
16
+ desc 'Run an IRB session with LaTeX-Decode loaded'
17
+ task :console, [:script] do |t,args|
18
+ ARGV.clear
19
+
20
+ require 'irb'
21
+ require 'latex/decode'
22
+
23
+ IRB.conf[:SCRIPT] = args.script
24
+ IRB.start
25
+ end
26
+
27
+ require 'cucumber/rake/task'
28
+ Cucumber::Rake::Task.new(:cucumber)
29
+
30
+ task :release do |t|
31
+ system "gem build latex-decode.gemspec"
32
+ system "git tag #{LaTeX::Decode::VERSION}"
33
+ system "git push --tags"
34
+ system "gem push latex-decode-#{LaTeX::Decode::VERSION}.gem"
35
+ system "rm latex-decode-#{LaTeX::Decode::VERSION}.gem"
36
+ system "jgem build latex-decode.gemspec"
37
+ system "jgem push latex-decode-#{LaTeX::Decode::VERSION}.gem"
38
+ system "rm latex-decode-#{LaTeX::Decode::VERSION}-java.gem"
39
+ end
40
+
41
+ task :default => :cucumber
data/cucumber.yml ADDED
@@ -0,0 +1 @@
1
+ default: --format progress --require features --color
data/latex-decode.gemspec CHANGED
@@ -21,9 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.platform = 'ruby'
22
22
  end
23
23
 
24
- s.add_development_dependency('rake', '~> 0.8')
25
24
  s.add_development_dependency('bundler', '~> 1.0')
26
- s.add_development_dependency('rdoc', '~> 3.6')
27
25
  s.add_development_dependency('rspec', '~> 2.6')
28
26
  s.add_development_dependency('cucumber', "~> 1.0")
29
27
 
@@ -3,7 +3,7 @@ if RUBY_VERSION < "1.9"
3
3
  $KCODE = 'U'
4
4
 
5
5
  module LaTeX
6
- def self.to_unicode (string)
6
+ def self.to_unicode(string)
7
7
  string.gsub(/\\?u([\da-f]{4})/i) { |m| [$1.to_i(16)].pack('U') }
8
8
  end
9
9
  end
@@ -13,7 +13,9 @@ if RUBY_VERSION < "1.9"
13
13
  else
14
14
 
15
15
  module LaTeX
16
- def self.to_unicode (string); string; end
16
+ def self.to_unicode(string)
17
+ string
18
+ end
17
19
  end
18
20
 
19
21
  def ruby_18; false; end
@@ -1,5 +1,5 @@
1
1
  module LaTeX
2
2
  module Decode
3
- VERSION = '0.0.12'.freeze
3
+ VERSION = '0.1.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,143 +1,137 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: latex-decode
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.12
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
6
  platform: java
7
- authors:
8
- - Sylvester Keil
9
- autorequire:
7
+ authors:
8
+ - Sylvester Keil
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-02-08 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: rake
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ~>
22
- - !ruby/object:Gem::Version
23
- version: "0.8"
24
- type: :development
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: bundler
28
- prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ~>
33
- - !ruby/object:Gem::Version
34
- version: "1.0"
35
- type: :development
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: rdoc
39
- prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: "3.6"
46
- type: :development
47
- version_requirements: *id003
48
- - !ruby/object:Gem::Dependency
49
- name: rspec
50
- prerelease: false
51
- requirement: &id004 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
54
- - - ~>
55
- - !ruby/object:Gem::Version
56
- version: "2.6"
57
- type: :development
58
- version_requirements: *id004
59
- - !ruby/object:Gem::Dependency
60
- name: cucumber
61
- prerelease: false
62
- requirement: &id005 !ruby/object:Gem::Requirement
63
- none: false
64
- requirements:
65
- - - ~>
66
- - !ruby/object:Gem::Version
67
- version: "1.0"
68
- type: :development
69
- version_requirements: *id005
12
+ date: 2013-02-26 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ version_requirements: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.0'
21
+ none: false
22
+ requirement: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ none: false
28
+ prerelease: false
29
+ type: :development
30
+ - !ruby/object:Gem::Dependency
31
+ name: rspec
32
+ version_requirements: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - "~>"
35
+ - !ruby/object:Gem::Version
36
+ version: '2.6'
37
+ none: false
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '2.6'
43
+ none: false
44
+ prerelease: false
45
+ type: :development
46
+ - !ruby/object:Gem::Dependency
47
+ name: cucumber
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '1.0'
53
+ none: false
54
+ requirement: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - "~>"
57
+ - !ruby/object:Gem::Version
58
+ version: '1.0'
59
+ none: false
60
+ prerelease: false
61
+ type: :development
70
62
  description: Decodes strings formatted in LaTeX to equivalent Unicode strings.
71
- email:
72
- - http://sylvester.keil.or.at
63
+ email:
64
+ - http://sylvester.keil.or.at
73
65
  executables: []
74
-
75
66
  extensions: []
76
-
77
- extra_rdoc_files:
78
- - README.md
79
- - LICENSE
80
- files:
81
- - .gitignore
82
- - Gemfile
83
- - LICENSE
84
- - README.md
85
- - features/brackets.feature
86
- - features/diacritics.feature
87
- - features/non-latex.feature
88
- - features/punctuation.feature
89
- - features/special_characters.feature
90
- - features/step_definitions/latex.rb
91
- - features/support/env.rb
92
- - features/umlauts.feature
93
- - latex-decode.gemspec
94
- - lib/latex/decode.rb
95
- - lib/latex/decode/accents.rb
96
- - lib/latex/decode/base.rb
97
- - lib/latex/decode/compatibility.rb
98
- - lib/latex/decode/diacritics.rb
99
- - lib/latex/decode/punctuation.rb
100
- - lib/latex/decode/symbols.rb
101
- - lib/latex/decode/version.rb
67
+ extra_rdoc_files:
68
+ - README.md
69
+ - LICENSE
70
+ files:
71
+ - ".gitignore"
72
+ - ".travis.yml"
73
+ - Gemfile
74
+ - LICENSE
75
+ - README.md
76
+ - Rakefile
77
+ - cucumber.yml
78
+ - features/brackets.feature
79
+ - features/diacritics.feature
80
+ - features/non-latex.feature
81
+ - features/punctuation.feature
82
+ - features/special_characters.feature
83
+ - features/step_definitions/latex.rb
84
+ - features/support/env.rb
85
+ - features/umlauts.feature
86
+ - latex-decode.gemspec
87
+ - lib/latex/decode.rb
88
+ - lib/latex/decode/accents.rb
89
+ - lib/latex/decode/base.rb
90
+ - lib/latex/decode/compatibility.rb
91
+ - lib/latex/decode/diacritics.rb
92
+ - lib/latex/decode/punctuation.rb
93
+ - lib/latex/decode/symbols.rb
94
+ - lib/latex/decode/version.rb
102
95
  homepage: http://github.com/inukshuk/latex-decode
103
- licenses:
104
- - GPL-3
105
- post_install_message:
106
- rdoc_options:
107
- - --line-numbers
108
- - --inline-source
109
- - --title
110
- - "\"LaTeX-Decode Documentation\""
111
- - --main
112
- - README.md
113
- - --webcvs=http://github.com/inukshuk/latex-decode/tree/master/
114
- require_paths:
115
- - lib
116
- required_ruby_version: !ruby/object:Gem::Requirement
96
+ licenses:
97
+ - GPL-3
98
+ post_install_message:
99
+ rdoc_options:
100
+ - "--line-numbers"
101
+ - "--inline-source"
102
+ - "--title"
103
+ - "\"LaTeX-Decode Documentation\""
104
+ - "--main"
105
+ - README.md
106
+ - "--webcvs=http://github.com/inukshuk/latex-decode/tree/master/"
107
+ require_paths:
108
+ - lib
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: !binary |-
114
+ MA==
117
115
  none: false
118
- requirements:
119
- - - ">="
120
- - !ruby/object:Gem::Version
121
- version: "0"
122
- required_rubygems_version: !ruby/object:Gem::Requirement
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: !binary |-
121
+ MA==
123
122
  none: false
124
- requirements:
125
- - - ">="
126
- - !ruby/object:Gem::Version
127
- version: "0"
128
123
  requirements: []
129
-
130
- rubyforge_project:
131
- rubygems_version: 1.8.9
132
- signing_key:
124
+ rubyforge_project:
125
+ rubygems_version: 1.8.24
126
+ signing_key:
133
127
  specification_version: 3
134
128
  summary: Decodes LaTeX to Unicode.
135
- test_files:
136
- - features/brackets.feature
137
- - features/diacritics.feature
138
- - features/non-latex.feature
139
- - features/punctuation.feature
140
- - features/special_characters.feature
141
- - features/step_definitions/latex.rb
142
- - features/support/env.rb
143
- - features/umlauts.feature
129
+ test_files:
130
+ - features/brackets.feature
131
+ - features/diacritics.feature
132
+ - features/non-latex.feature
133
+ - features/punctuation.feature
134
+ - features/special_characters.feature
135
+ - features/step_definitions/latex.rb
136
+ - features/support/env.rb
137
+ - features/umlauts.feature