uncharted 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/.project +18 -0
- data/.yardoc/checksums +6 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +21 -0
- data/README.md +60 -0
- data/Rakefile +12 -0
- data/doc/.yardoc/checksums +0 -0
- data/doc/.yardoc/objects/root.dat +0 -0
- data/doc/.yardoc/proxy_types +0 -0
- data/doc/Uncharted/Country/Field.html +233 -0
- data/doc/Uncharted/Country.html +888 -0
- data/doc/Uncharted/Territory/Field.html +233 -0
- data/doc/Uncharted/Territory.html +809 -0
- data/doc/Uncharted.html +108 -0
- data/doc/_index.html +158 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +53 -0
- data/doc/css/style.css +320 -0
- data/doc/doc/_index.html +84 -0
- data/doc/doc/class_list.html +47 -0
- data/doc/doc/css/common.css +1 -0
- data/doc/doc/css/full_list.css +53 -0
- data/doc/doc/css/style.css +320 -0
- data/doc/doc/file_list.html +46 -0
- data/doc/doc/frames.html +13 -0
- data/doc/doc/index.html +84 -0
- data/doc/doc/js/app.js +205 -0
- data/doc/doc/js/full_list.js +150 -0
- data/doc/doc/js/jquery.js +16 -0
- data/doc/doc/method_list.html +46 -0
- data/doc/doc/top-level-namespace.html +93 -0
- data/doc/file.README.html +122 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +122 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +150 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +262 -0
- data/doc/top-level-namespace.html +120 -0
- data/lib/uncharted/adapters/mongoid.rb +35 -0
- data/lib/uncharted/country.rb +32 -0
- data/lib/uncharted/data/br.rb +33 -0
- data/lib/uncharted/data/countries.rb +256 -0
- data/lib/uncharted/territory.rb +58 -0
- data/lib/uncharted.rb +12 -0
- data/lib/version.rb +4 -0
- data/test/country_test.rb +40 -0
- data/test/mongoid_test.rb +17 -0
- data/test/test_helper.rb +5 -0
- data/test/uncharted_test.rb +8 -0
- data/uncharted.gemspec +28 -0
- metadata +139 -0
data/.gitignore
ADDED
data/.project
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<projectDescription>
|
3
|
+
<name>uncharted</name>
|
4
|
+
<comment></comment>
|
5
|
+
<projects>
|
6
|
+
</projects>
|
7
|
+
<buildSpec>
|
8
|
+
<buildCommand>
|
9
|
+
<name>com.aptana.ide.core.unifiedBuilder</name>
|
10
|
+
<arguments>
|
11
|
+
</arguments>
|
12
|
+
</buildCommand>
|
13
|
+
</buildSpec>
|
14
|
+
<natures>
|
15
|
+
<nature>com.aptana.ruby.core.rubynature</nature>
|
16
|
+
<nature>com.aptana.projects.webnature</nature>
|
17
|
+
</natures>
|
18
|
+
</projectDescription>
|
data/.yardoc/checksums
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
lib/uncharted.rb 94fbc7e67fd5fba22494038dde7c6183cfc05f81
|
2
|
+
lib/uncharted/country.rb 7b20289ab3600fe4182ec07db6863d0d18019a2d
|
3
|
+
lib/uncharted/data/br.rb b6ebbb0e793d46076295a4924f96f3f99e329b3e
|
4
|
+
lib/uncharted/territory.rb f0632af7429b5826ef90cdac259b5f9a8a1123c6
|
5
|
+
lib/uncharted/data/countries.rb 793229a6d0c5e5bf59162a20d64a90ab0e474547
|
6
|
+
lib/uncharted/adapters/mongoid.rb 3ae56916ae66118f7b09598196bef8f3c5518de7
|
Binary file
|
data/.yardoc/proxy_types
ADDED
Binary file
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
uncharted (0.0.4.alpha6)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: http://rubygems.org/
|
8
|
+
specs:
|
9
|
+
minitest (2.5.1)
|
10
|
+
purdytest (1.0.0)
|
11
|
+
minitest (~> 2.2)
|
12
|
+
ruby-prof (0.10.8)
|
13
|
+
|
14
|
+
PLATFORMS
|
15
|
+
ruby
|
16
|
+
|
17
|
+
DEPENDENCIES
|
18
|
+
minitest
|
19
|
+
purdytest
|
20
|
+
ruby-prof
|
21
|
+
uncharted!
|
data/README.md
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
Welcome to Uncharted Territories
|
2
|
+
================================
|
3
|
+
|
4
|
+
THIS GEM IS NOT READY FOR USE YET!
|
5
|
+
Please come back in a few weeks.
|
6
|
+
|
7
|
+
Installation
|
8
|
+
------------
|
9
|
+
|
10
|
+
gem install uncharted
|
11
|
+
|
12
|
+
Or you can install via bundler, adding to the Gemfile
|
13
|
+
|
14
|
+
gem 'uncharted'
|
15
|
+
|
16
|
+
and run bundle install from your shell.
|
17
|
+
|
18
|
+
Getting Started
|
19
|
+
---------------
|
20
|
+
|
21
|
+
By default, Uncharted will define Country and Territory classes.
|
22
|
+
|
23
|
+
....
|
24
|
+
....
|
25
|
+
....
|
26
|
+
|
27
|
+
Supported Versions
|
28
|
+
------------------
|
29
|
+
|
30
|
+
* Ruby 1.9
|
31
|
+
* Rails 3
|
32
|
+
* Mongoid 2
|
33
|
+
|
34
|
+
|
35
|
+
Credits
|
36
|
+
-------
|
37
|
+
|
38
|
+
This gem was heavily inspired by hexorx/countries gem. Thanks!
|
39
|
+
Written by Gilson Ferraz
|
40
|
+
|
41
|
+
License
|
42
|
+
-------
|
43
|
+
|
44
|
+
(The MIT License)
|
45
|
+
|
46
|
+
Copyright (c) 2011 Cenize Software
|
47
|
+
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
|
49
|
+
files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy,
|
50
|
+
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
|
51
|
+
is furnished to do so, subject to the following conditions:
|
52
|
+
|
53
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
54
|
+
|
55
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
56
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
|
57
|
+
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
58
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
59
|
+
|
60
|
+
|
data/Rakefile
ADDED
File without changes
|
Binary file
|
Binary file
|
@@ -0,0 +1,233 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Uncharted::Country::Field
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.2
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '../..';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="../../_index.html">Index (F)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../../Uncharted.html" title="Uncharted (module)">Uncharted</a></span></span> » <span class='title'><span class='object_link'><a href="../Country.html" title="Uncharted::Country (class)">Country</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">Field</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Class: Uncharted::Country::Field
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
<dt class="r1">Inherits:</dt>
|
68
|
+
<dd class="r1">
|
69
|
+
<span class="inheritName">Object</span>
|
70
|
+
|
71
|
+
<ul class="fullTree">
|
72
|
+
<li>Object</li>
|
73
|
+
|
74
|
+
<li class="next">Uncharted::Country::Field</li>
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
<a href="#" class="inheritanceTree">show all</a>
|
78
|
+
|
79
|
+
</dd>
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
<dt class="r2">Includes:</dt>
|
87
|
+
<dd class="r2">Mongoid::Fields::Serializable</dd>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<dt class="r1 last">Defined in:</dt>
|
94
|
+
<dd class="r1 last">lib/uncharted/adapters/mongoid.rb</dd>
|
95
|
+
|
96
|
+
</dl>
|
97
|
+
<div class="clear"></div>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<h2>
|
108
|
+
Instance Method Summary
|
109
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
110
|
+
</h2>
|
111
|
+
|
112
|
+
<ul class="summary">
|
113
|
+
|
114
|
+
<li class="public ">
|
115
|
+
<span class="summary_signature">
|
116
|
+
|
117
|
+
<a href="#deserialize-instance_method" title="#deserialize (instance method)">- (Object) <strong>deserialize</strong>(alpha2) </a>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
</span>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
131
|
+
|
132
|
+
</li>
|
133
|
+
|
134
|
+
|
135
|
+
<li class="public ">
|
136
|
+
<span class="summary_signature">
|
137
|
+
|
138
|
+
<a href="#serialize-instance_method" title="#serialize (instance method)">- (Object) <strong>serialize</strong>(country) </a>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
</span>
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
152
|
+
|
153
|
+
</li>
|
154
|
+
|
155
|
+
|
156
|
+
</ul>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
<div id="instance_method_details" class="method_details_list">
|
163
|
+
<h2>Instance Method Details</h2>
|
164
|
+
|
165
|
+
|
166
|
+
<div class="method_details first">
|
167
|
+
<p class="signature first" id="deserialize-instance_method">
|
168
|
+
|
169
|
+
- (<tt>Object</tt>) <strong>deserialize</strong>(alpha2)
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
</p><table class="source_code">
|
174
|
+
<tr>
|
175
|
+
<td>
|
176
|
+
<pre class="lines">
|
177
|
+
|
178
|
+
|
179
|
+
10
|
180
|
+
11
|
181
|
+
12</pre>
|
182
|
+
</td>
|
183
|
+
<td>
|
184
|
+
<pre class="code"><span class="info file"># File 'lib/uncharted/adapters/mongoid.rb', line 10</span>
|
185
|
+
|
186
|
+
<span class='kw'>def</span> <span class='id deserialize'>deserialize</span><span class='lparen'>(</span><span class='id alpha2'>alpha2</span><span class='rparen'>)</span>
|
187
|
+
<span class='id alpha2'>alpha2</span> <span class='op'>&&</span> <span class='const'>Uncharted</span><span class='op'>::</span><span class='const'>Country</span><span class='period'>.</span><span class='id find'>find</span><span class='lparen'>(</span><span class='id alpha2'>alpha2</span><span class='rparen'>)</span>
|
188
|
+
<span class='kw'>end</span></pre>
|
189
|
+
</td>
|
190
|
+
</tr>
|
191
|
+
</table>
|
192
|
+
</div>
|
193
|
+
|
194
|
+
<div class="method_details ">
|
195
|
+
<p class="signature " id="serialize-instance_method">
|
196
|
+
|
197
|
+
- (<tt>Object</tt>) <strong>serialize</strong>(country)
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
</p><table class="source_code">
|
202
|
+
<tr>
|
203
|
+
<td>
|
204
|
+
<pre class="lines">
|
205
|
+
|
206
|
+
|
207
|
+
14
|
208
|
+
15
|
209
|
+
16</pre>
|
210
|
+
</td>
|
211
|
+
<td>
|
212
|
+
<pre class="code"><span class="info file"># File 'lib/uncharted/adapters/mongoid.rb', line 14</span>
|
213
|
+
|
214
|
+
<span class='kw'>def</span> <span class='id serialize'>serialize</span><span class='lparen'>(</span><span class='id country'>country</span><span class='rparen'>)</span>
|
215
|
+
<span class='id country'>country</span> <span class='op'>&&</span> <span class='id country'>country</span><span class='period'>.</span><span class='id alpha2'>alpha2</span>
|
216
|
+
<span class='kw'>end</span></pre>
|
217
|
+
</td>
|
218
|
+
</tr>
|
219
|
+
</table>
|
220
|
+
</div>
|
221
|
+
|
222
|
+
</div>
|
223
|
+
|
224
|
+
</div>
|
225
|
+
|
226
|
+
<div id="footer">
|
227
|
+
Generated on Tue Aug 30 16:02:30 2011 by
|
228
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
229
|
+
0.7.2 (ruby-1.9.2).
|
230
|
+
</div>
|
231
|
+
|
232
|
+
</body>
|
233
|
+
</html>
|