ansel_iconv 1.0.2 → 1.0.3

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.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg/
data/History.txt CHANGED
@@ -1,4 +1,8 @@
1
- === 1.0.0 / 2009-03-23
1
+ == 1.0.3
2
+
3
+ * Fix ActiveSupport deprecation warning
4
+
5
+ == 1.0.0
2
6
 
3
7
  * Initial public release
4
8
 
data/README.markdown ADDED
@@ -0,0 +1,60 @@
1
+ # ANSEL::Iconv
2
+
3
+ ANSEL::Iconv is a wrapper for Iconv that adds ANSEL character set conversion to
4
+ any other encoding supported by Iconv.
5
+
6
+ Copyright (c) 2006-2009 Keith Morrison <mailto:keithm@infused.org>, <http://www.infused.org>
7
+
8
+ * Project page: <http://github.com/infused/ansel_iconv>
9
+ * Report bugs: <http://github.com/infused/ansel_iconv/issues>
10
+ * Questions? Email [keithm@infused.org](mailto:keithm@infused.org?subject=ANSEL::Iconv)
11
+ with ANSEL::Iconv in the subject line
12
+
13
+ ## Installation
14
+
15
+ gem install ansel_iconv
16
+
17
+ ## Basic Usage
18
+
19
+ Conversion from ANSEL to any other encoding is fully supported, but you cannot
20
+ currently convert to ANSEL from another encoding. Two-way encoding will be addded
21
+ in a future release.
22
+
23
+ require 'ansel_iconv'
24
+
25
+ # Convert ANSEL to UTF-8
26
+ @ansel = ANSEL::Iconv.new 'UTF-8'
27
+ @ansel.iconv("\xB9\x004.59") # => "£4.59"
28
+
29
+ ## About the ANSEL character set
30
+
31
+ ANSI/NISO Z39.47 also known as ANSEL is a character set encoding used
32
+ primarily for bibliographic and genealogical data. It is one of the official
33
+ character encoding supported by the Gedcom 5.5 standard. More information can be found at the
34
+ [Official NISO standard](http://www.niso.org/kst/reports/standards?step=2&gid%3Austring%3Aiso-8859-1=&project_key%3Austring%3Aiso-8859-1=0b5d2bd7b690b60fcc75cde9256ed9f9e526e531)
35
+ page.
36
+
37
+ ## LICENSE:
38
+
39
+ (The MIT License)
40
+
41
+ Copyright (c) 2006-2009 Keith Morrison <mailto:keithm@infused.org>, <http://www.infused.org>
42
+
43
+ Permission is hereby granted, free of charge, to any person obtaining
44
+ a copy of this software and associated documentation files (the
45
+ 'Software'), to deal in the Software without restriction, including
46
+ without limitation the rights to use, copy, modify, merge, publish,
47
+ distribute, sublicense, and/or sell copies of the Software, and to
48
+ permit persons to whom the Software is furnished to do so, subject to
49
+ the following conditions:
50
+
51
+ The above copyright notice and this permission notice shall be
52
+ included in all copies or substantial portions of the Software.
53
+
54
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
55
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
56
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
57
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
58
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
59
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
60
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,29 @@
1
+ PROJECT_ROOT = File.expand_path(File.dirname(__FILE__))
2
+ $: << File.join(PROJECT_ROOT, 'lib')
3
+
4
+ require 'rubygems'
5
+ require 'ansel_iconv'
6
+ require 'rake/testtask'
7
+ require 'jeweler'
8
+
9
+ Jeweler::Tasks.new do |p|
10
+ p.name = 'ansel_iconv'
11
+ p.description = 'Convert ANSEL encoded text to any other encoding available to Iconv'
12
+ p.summary = 'Convert ANSEL encoded text'
13
+ p.platform = Gem::Platform::RUBY
14
+ p.authors = ['Keith Morrison']
15
+ p.email = 'keithm@infused.org'
16
+ p.add_dependency(%q<activesupport>, [">= 2.1.0"])
17
+ p.homepage = 'http://github.com/infused/ansel_iconv'
18
+ end
19
+
20
+ Jeweler::GemcutterTasks.new
21
+
22
+ desc 'Default: run unit tests.'
23
+ task :default => :test
24
+
25
+ Rake::TestTask.new(:test) do |t|
26
+ t.pattern = 'test/**/*_test.rb'
27
+ t.verbose = true
28
+ t.libs << 'test'
29
+ end
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 0
4
- :patch: 2
4
+ :patch: 3
@@ -0,0 +1,51 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{ansel_iconv}
8
+ s.version = "1.0.3"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Keith Morrison"]
12
+ s.date = %q{2009-12-04}
13
+ s.description = %q{Convert ANSEL encoded text to any other encoding available to Iconv}
14
+ s.email = %q{keithm@infused.org}
15
+ s.extra_rdoc_files = [
16
+ "README.markdown"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ "History.txt",
21
+ "README.markdown",
22
+ "Rakefile",
23
+ "VERSION.yml",
24
+ "ansel_iconv.gemspec",
25
+ "lib/ansel_iconv.rb",
26
+ "test/ansel_iconv_test.rb",
27
+ "test/test_helper.rb"
28
+ ]
29
+ s.homepage = %q{http://github.com/infused/ansel_iconv}
30
+ s.rdoc_options = ["--charset=UTF-8"]
31
+ s.require_paths = ["lib"]
32
+ s.rubygems_version = %q{1.3.5}
33
+ s.summary = %q{Convert ANSEL encoded text}
34
+ s.test_files = [
35
+ "test/ansel_iconv_test.rb",
36
+ "test/test_helper.rb"
37
+ ]
38
+
39
+ if s.respond_to? :specification_version then
40
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
41
+ s.specification_version = 3
42
+
43
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
44
+ s.add_runtime_dependency(%q<activesupport>, [">= 2.1.0"])
45
+ else
46
+ s.add_dependency(%q<activesupport>, [">= 2.1.0"])
47
+ end
48
+ else
49
+ s.add_dependency(%q<activesupport>, [">= 2.1.0"])
50
+ end
51
+ end
data/lib/ansel_iconv.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'activesupport'
1
+ require 'active_support'
2
2
  require 'iconv'
3
3
 
4
4
  module ANSEL
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansel_iconv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Morrison
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-25 00:00:00 -07:00
12
+ date: 2009-12-04 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -29,21 +29,23 @@ executables: []
29
29
  extensions: []
30
30
 
31
31
  extra_rdoc_files:
32
- - README.txt
32
+ - README.markdown
33
33
  files:
34
+ - .gitignore
34
35
  - History.txt
35
- - README.txt
36
+ - README.markdown
37
+ - Rakefile
36
38
  - VERSION.yml
39
+ - ansel_iconv.gemspec
37
40
  - lib/ansel_iconv.rb
38
41
  - test/ansel_iconv_test.rb
39
42
  - test/test_helper.rb
40
43
  has_rdoc: true
41
- homepage:
44
+ homepage: http://github.com/infused/ansel_iconv
42
45
  licenses: []
43
46
 
44
47
  post_install_message:
45
48
  rdoc_options:
46
- - --inline-source
47
49
  - --charset=UTF-8
48
50
  require_paths:
49
51
  - lib
@@ -64,7 +66,8 @@ requirements: []
64
66
  rubyforge_project:
65
67
  rubygems_version: 1.3.5
66
68
  signing_key:
67
- specification_version: 2
69
+ specification_version: 3
68
70
  summary: Convert ANSEL encoded text
69
- test_files: []
70
-
71
+ test_files:
72
+ - test/ansel_iconv_test.rb
73
+ - test/test_helper.rb
data/README.txt DELETED
@@ -1,37 +0,0 @@
1
- = ANSEL::Iconv
2
-
3
- http://github.com/infused/ansel_iconv/tree/master
4
-
5
- == DESCRIPTION:
6
-
7
- Convert ANSEL encoded text to any other encoding available to Iconv
8
-
9
- == INSTALL:
10
-
11
- gem install infused-ansel_iconv --source http://gems.github.com
12
-
13
-
14
- == LICENSE:
15
-
16
- (The MIT License)
17
-
18
- Copyright (c) 2006-2009 Keith Morrison <keithm@infused.org>
19
-
20
- Permission is hereby granted, free of charge, to any person obtaining
21
- a copy of this software and associated documentation files (the
22
- 'Software'), to deal in the Software without restriction, including
23
- without limitation the rights to use, copy, modify, merge, publish,
24
- distribute, sublicense, and/or sell copies of the Software, and to
25
- permit persons to whom the Software is furnished to do so, subject to
26
- the following conditions:
27
-
28
- The above copyright notice and this permission notice shall be
29
- included in all copies or substantial portions of the Software.
30
-
31
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
32
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
33
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
34
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
35
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
36
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
37
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.