swissmatch 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE.txt ADDED
@@ -0,0 +1,8 @@
1
+ Copyright (c) 2012, Stefan Rusterholz <stefan.rusterholz@gmail.com>
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
+
6
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.markdown ADDED
@@ -0,0 +1,75 @@
1
+ README
2
+ ======
3
+
4
+
5
+ Summary
6
+ -------
7
+ Deal with everything related to swiss addresses. This is a meta-gem which consists of swissmatch-location, -street,
8
+ -directories and -rails.
9
+
10
+
11
+ Installation
12
+ ------------
13
+ Install the gem: `gem install swissmatch`
14
+ Depending on how you installed rubygems, you have to use `sudo`:
15
+ `sudo gem install swissmatch`
16
+ In Ruby: `require 'swissmatch'`
17
+ To automatically load the location datafiles: `require 'swissmatch/location/autoload'`
18
+
19
+
20
+ Usage
21
+ -----
22
+ Please look at the usage of the individual gems:
23
+
24
+ * swissmatch-directories
25
+ * swissmatch-location
26
+ * swissmatch-rails
27
+ * swissmatch-street
28
+
29
+
30
+ Links
31
+ -----
32
+
33
+ ### swissmatch
34
+ * [Main Project](https://github.com/apeiros/swissmatch)
35
+
36
+ ### swissmatch-directories
37
+ * [Online API Documentation](http://rdoc.info/github/apeiros/swissmatch-directories/)
38
+ * [Public Repository](https://github.com/apeiros/swissmatch-directories)
39
+ * [Bug Reporting](https://github.com/apeiros/swissmatch-directories/issues)
40
+ * [RubyGems Site](https://rubygems.org/gems/swissmatch-directories)
41
+
42
+ ### swissmatch-location
43
+ * [Online API Documentation](http://rdoc.info/github/apeiros/swissmatch-location/)
44
+ * [Public Repository](https://github.com/apeiros/swissmatch-location)
45
+ * [Bug Reporting](https://github.com/apeiros/swissmatch-location/issues)
46
+ * [RubyGems Site](https://rubygems.org/gems/swissmatch-location)
47
+
48
+ ### swissmatch-rails
49
+ * [Online API Documentation](http://rdoc.info/github/apeiros/swissmatch-rails/)
50
+ * [Public Repository](https://github.com/apeiros/swissmatch-rails)
51
+ * [Bug Reporting](https://github.com/apeiros/swissmatch-rails/issues)
52
+ * [RubyGems Site](https://rubygems.org/gems/swissmatch-rails)
53
+
54
+ ### swissmatch-street
55
+ * [Online API Documentation](http://rdoc.info/github/apeiros/swissmatch-street/)
56
+ * [Public Repository](https://github.com/apeiros/swissmatch-street)
57
+ * [Bug Reporting](https://github.com/apeiros/swissmatch-street/issues)
58
+ * [RubyGems Site](https://rubygems.org/gems/swissmatch-street)
59
+
60
+ ### 3rd party links
61
+ * [Swiss Posts MAT[CH]](http://www.post.ch/match)
62
+
63
+
64
+ License
65
+ -------
66
+
67
+ You can use this code under the {file:LICENSE.txt BSD-2-Clause License}, free of charge.
68
+ If you need a different license, please ask the author.
69
+
70
+
71
+ Credits
72
+ -------
73
+
74
+ * [Simon Hürlimann](https://github.com/huerlisi) for contributions
75
+ * [AWD Switzerland](http://www.awd.ch/) for donating time to work on this gem.
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ $LOAD_PATH.unshift(File.expand_path('../rake/lib', __FILE__))
2
+ Dir.glob(File.expand_path('../rake/tasks/**/*.{rake,task,rb}', __FILE__)) do |task_file|
3
+ begin
4
+ import task_file
5
+ rescue LoadError => e
6
+ warn "Failed to load task file #{task_file}"
7
+ warn " #{e.class} #{e.message}"
8
+ warn " #{e.backtrace.first}"
9
+ end
10
+ end
@@ -0,0 +1,13 @@
1
+ # encoding: utf-8
2
+
3
+ begin
4
+ require 'rubygems/version' # newer rubygems use this
5
+ rescue LoadError
6
+ require 'gem/version' # older rubygems use this
7
+ end
8
+
9
+ module SwissMatch
10
+
11
+ # The version of the swissmatch gem.
12
+ Version = Gem::Version.new("0.0.1")
13
+ end
data/lib/swissmatch.rb ADDED
@@ -0,0 +1,15 @@
1
+ # encoding: utf-8
2
+
3
+
4
+
5
+ require 'swissmatch/active_record' if defined? ActiveRecord
6
+ require 'swissmatch/directories'
7
+ require 'swissmatch/location'
8
+ require 'swissmatch/street'
9
+ require 'swissmatch/version'
10
+
11
+
12
+
13
+ # The namespace for all swissmatch-* gems.
14
+ module SwissMatch
15
+ end
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "swissmatch"
5
+ s.version = "0.0.1"
6
+ s.authors = "Stefan Rusterholz"
7
+ s.email = "stefan.rusterholz@gmail.com"
8
+ s.homepage = "http://github.com/apeiros/swissmatch"
9
+
10
+ s.description = <<-DESCRIPTION.gsub(/^ /, '').chomp
11
+ Deal with everything related to swiss addresses.
12
+ DESCRIPTION
13
+
14
+ s.summary = <<-SUMMARY.gsub(/^ /, '').chomp
15
+ Deal with everything related to swiss addresses.
16
+ This is a meta-gem which consists of swissmatch-location, -street,
17
+ -directories and -rails.
18
+ SUMMARY
19
+
20
+ s.files =
21
+ Dir['bin/**/*'] +
22
+ Dir['data/**/*'] +
23
+ Dir['lib/**/*'] +
24
+ Dir['rake/**/*'] +
25
+ Dir['test/**/*'] +
26
+ Dir['*.gemspec'] +
27
+ %w[
28
+ LICENSE.txt
29
+ Rakefile
30
+ README.markdown
31
+ ]
32
+
33
+ if File.directory?('bin') then
34
+ executables = Dir.chdir('bin') { Dir.glob('**/*').select { |f| File.executable?(f) } }
35
+ s.executables = executables unless executables.empty?
36
+ end
37
+
38
+ s.add_dependency "swissmatch-location"
39
+ s.add_dependency "swissmatch-street"
40
+ s.add_dependency "swissmatch-directories"
41
+ s.add_dependency "swissmatch-rails"
42
+
43
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1")
44
+ s.rubygems_version = "1.3.1"
45
+ s.specification_version = 3
46
+ end
metadata ADDED
@@ -0,0 +1,116 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: swissmatch
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Stefan Rusterholz
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-08 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: swissmatch-location
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: swissmatch-street
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: swissmatch-directories
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: swissmatch-rails
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ description: Deal with everything related to swiss addresses.
79
+ email: stefan.rusterholz@gmail.com
80
+ executables: []
81
+ extensions: []
82
+ extra_rdoc_files: []
83
+ files:
84
+ - lib/swissmatch/version.rb
85
+ - lib/swissmatch.rb
86
+ - swissmatch.gemspec
87
+ - LICENSE.txt
88
+ - Rakefile
89
+ - README.markdown
90
+ homepage: http://github.com/apeiros/swissmatch
91
+ licenses: []
92
+ post_install_message:
93
+ rdoc_options: []
94
+ require_paths:
95
+ - lib
96
+ required_ruby_version: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ required_rubygems_version: !ruby/object:Gem::Requirement
103
+ none: false
104
+ requirements:
105
+ - - ! '>'
106
+ - !ruby/object:Gem::Version
107
+ version: 1.3.1
108
+ requirements: []
109
+ rubyforge_project:
110
+ rubygems_version: 1.8.24
111
+ signing_key:
112
+ specification_version: 3
113
+ summary: Deal with everything related to swiss addresses. This is a meta-gem which
114
+ consists of swissmatch-location, -street, -directories and -rails.
115
+ test_files: []
116
+ has_rdoc: