anystyle-data 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d5cc33ab60606d0d9ac0566e6bf2b428b8fbd752fa100c025dd760c1aa6b9c5f
4
+ data.tar.gz: 88400511675caf8c8e5d71340affb73d6ca97add9d6cddebac2b6aa6c7f89c41
5
+ SHA512:
6
+ metadata.gz: d931a6357206b6089b822f3c9a297434db03b5d8f37be692a4bd883a2fcb120c730f1636fd082dac17e6c4a817830b28a4599d9a46ee4afeec2889df4cfb67c6
7
+ data.tar.gz: c80342b0af3c31567b9b194210b2e18ca626684ddf71d4c3a2f2f5b001ad27e42e627f880485b6824d9774ee419c605350b027411db0c5f4467b14fbccfec260
data/LICENSE ADDED
@@ -0,0 +1,25 @@
1
+ BSD 2-Clause License
2
+
3
+ Copyright (c) 2018, Sylvester Keil
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # anystyle-data
2
+ AnyStyle dictionary data
@@ -0,0 +1,4 @@
1
+ require 'anystyle/data/version'
2
+ require 'anystyle/data/setup'
3
+
4
+ AnyStyle::Data.setup
Binary file
@@ -0,0 +1,17 @@
1
+ module AnyStyle
2
+ module Data
3
+ ROOT = File.expand_path('..', __FILE__).untaint
4
+
5
+ def self.setup
6
+ Dictionary.defaults[:source] = File.join(ROOT, 'dict.txt.gz')
7
+
8
+ if defined? Dictionary::GDBM
9
+ Dictionary::GDBM.defaults[:path] = File.join(ROOT, 'dict.db')
10
+ end
11
+
12
+ if defined? Dictionary::LDBM
13
+ Dictionary::LDBM.defaults[:path] = ROOT
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,5 @@
1
+ module AnyStyle
2
+ module Data
3
+ VERSION = '1.0.0'.freeze
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: anystyle-data
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Sylvester Keil
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-01-25 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ - http://sylvester.keil.or.at
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE
21
+ - README.md
22
+ - lib/anystyle/data.rb
23
+ - lib/anystyle/data/dict.txt.gz
24
+ - lib/anystyle/data/setup.rb
25
+ - lib/anystyle/data/version.rb
26
+ homepage: http://anystyle.io
27
+ licenses:
28
+ - BSD-2-Clause
29
+ metadata: {}
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 2.7.4
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: AnyStyle parser dictionary data
50
+ test_files: []