world_time_api 0.1.5 → 0.1.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -8
- data/README.md +13 -5
- data/doc/WorldTimeApi/Request.html +13 -5
- data/doc/WorldTimeApi.html +67 -16
- data/doc/_index.html +4 -4
- data/doc/class_list.html +6 -3
- data/doc/css/full_list.css +3 -3
- data/doc/css/style.css +6 -0
- data/doc/file.README.html +32 -29
- data/doc/file_list.html +5 -2
- data/doc/frames.html +10 -5
- data/doc/index.html +32 -29
- data/doc/js/app.js +294 -264
- data/doc/js/full_list.js +30 -4
- data/doc/method_list.html +5 -2
- data/doc/top-level-namespace.html +3 -3
- data/lib/world_time_api/error.rb +4 -3
- data/lib/world_time_api/request.rb +16 -5
- data/lib/world_time_api/response.rb +5 -4
- data/lib/world_time_api/version.rb +2 -3
- data/lib/world_time_api.rb +12 -7
- metadata +3 -3
data/doc/index.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
File: README
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.9.
|
|
9
|
+
— Documentation by YARD 0.9.37
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
@@ -57,67 +57,70 @@
|
|
|
57
57
|
<div class="clear"></div>
|
|
58
58
|
</div>
|
|
59
59
|
|
|
60
|
-
<div id="content"><div id='filecontents'
|
|
60
|
+
<div id="content"><div id='filecontents'>
|
|
61
|
+
<h1 id="label-WorldTimeApi">WorldTimeApi</h1>
|
|
61
62
|
|
|
62
|
-
<p><a href="https://badge.fury.io/rb/world_time_api"><img src="https://badge.fury.io/rb/world_time_api.svg"
|
|
63
|
+
<p><a href="https://badge.fury.io/rb/world_time_api"><img src="https://badge.fury.io/rb/world_time_api.svg"></a></p>
|
|
63
64
|
|
|
64
|
-
<p>
|
|
65
|
+
<p>A Ruby wrapper for the World Time API.</p>
|
|
65
66
|
|
|
66
|
-
<h2 id="
|
|
67
|
+
<h2 id="label-Installation">Installation</h2>
|
|
67
68
|
|
|
68
69
|
<p>Add this line to your application’s Gemfile:</p>
|
|
69
70
|
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
</code></p>
|
|
71
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>world_time_api</span><span class='tstring_end'>'</span></span>
|
|
72
|
+
</code></pre>
|
|
73
73
|
|
|
74
74
|
<p>And then execute:</p>
|
|
75
75
|
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
</code></p>
|
|
76
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_bundle'>bundle</span> <span class='id identifier rubyid_install'>install</span>
|
|
77
|
+
</code></pre>
|
|
79
78
|
|
|
80
79
|
<p>Or install it yourself as:</p>
|
|
81
80
|
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
</code></p>
|
|
81
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='id identifier rubyid_install'>install</span> <span class='id identifier rubyid_world_time_api'>world_time_api</span>
|
|
82
|
+
</code></pre>
|
|
85
83
|
|
|
86
|
-
<h2 id="
|
|
84
|
+
<h2 id="label-Usage">Usage</h2>
|
|
87
85
|
|
|
88
|
-
<
|
|
89
|
-
WorldTimeApi::Timezones.call # list timezones</p>
|
|
86
|
+
<h3 id="label-List+timezones">List timezones</h3>
|
|
90
87
|
|
|
91
|
-
<
|
|
88
|
+
<pre class="code ruby"><code class="ruby"><span class='const'><span class='object_link'><a href="WorldTimeApi.html" title="WorldTimeApi (module)">WorldTimeApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="WorldTimeApi.html#Timezones-constant" title="WorldTimeApi::Timezones (constant)">Timezones</a></span></span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
|
|
89
|
+
</code></pre>
|
|
92
90
|
|
|
93
|
-
<
|
|
91
|
+
<h3 id="label-Get+time+by+timezone">Get time by timezone</h3>
|
|
94
92
|
|
|
95
|
-
<
|
|
96
|
-
|
|
93
|
+
<pre class="code ruby"><code class="ruby"><span class='const'><span class='object_link'><a href="WorldTimeApi.html" title="WorldTimeApi (module)">WorldTimeApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="WorldTimeApi.html#Time-constant" title="WorldTimeApi::Time (constant)">Time</a></span></span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Europe/London</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
94
|
+
</code></pre>
|
|
97
95
|
|
|
98
|
-
<
|
|
96
|
+
<h3 id="label-Get+time+by+IP+address">Get time by IP address</h3>
|
|
97
|
+
|
|
98
|
+
<pre class="code ruby"><code class="ruby"><span class='const'><span class='object_link'><a href="WorldTimeApi.html" title="WorldTimeApi (module)">WorldTimeApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="WorldTimeApi.html#ClientIp-constant" title="WorldTimeApi::ClientIp (constant)">ClientIp</a></span></span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>12.215.42.19</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
99
|
+
</code></pre>
|
|
100
|
+
|
|
101
|
+
<h2 id="label-Development">Development</h2>
|
|
99
102
|
|
|
100
103
|
<p>After checking out the repo, run <code>bin/setup</code> to install dependencies. You can also run <code>bin/console</code> for an interactive prompt that will allow you to experiment.</p>
|
|
101
104
|
|
|
102
105
|
<p>To install this gem onto your local machine, run <code>bundle exec rake install</code>. To release a new version, update the version number in <code>version.rb</code>, and then run <code>bundle exec rake release</code>, which will create a git tag for the version, push git commits and the created tag, and push the <code>.gem</code> file to <a href="https://rubygems.org">rubygems.org</a>.</p>
|
|
103
106
|
|
|
104
|
-
<h2 id="
|
|
107
|
+
<h2 id="label-Contributing">Contributing</h2>
|
|
105
108
|
|
|
106
|
-
<p>Bug reports and pull requests are welcome on GitHub at https://github.com/nemuba/world_time_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
|
|
109
|
+
<p>Bug reports and pull requests are welcome on GitHub at <a href="https://github.com/nemuba/world_time_api">github.com/nemuba/world_time_api</a>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the of conduct[https://github.com/[USERNAME]/world_time_api/blob/master/CODE_OF_CONDUCT.md].</p>
|
|
107
110
|
|
|
108
|
-
<h2 id="
|
|
111
|
+
<h2 id="label-License">License</h2>
|
|
109
112
|
|
|
110
113
|
<p>The gem is available as open source under the terms of the <a href="https://opensource.org/licenses/MIT">MIT License</a>.</p>
|
|
111
114
|
|
|
112
|
-
<h2 id="
|
|
115
|
+
<h2 id="label-Code+of+Conduct">Code of Conduct</h2>
|
|
113
116
|
|
|
114
|
-
<p>Everyone interacting in the WorldTimeApi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the
|
|
117
|
+
<p>Everyone interacting in the WorldTimeApi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the of conduct[https://github.com/[USERNAME]/world_time_api/blob/master/CODE_OF_CONDUCT.md].</p>
|
|
115
118
|
</div></div>
|
|
116
119
|
|
|
117
120
|
<div id="footer">
|
|
118
|
-
Generated on Thu
|
|
121
|
+
Generated on Thu Nov 20 18:24:43 2025 by
|
|
119
122
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
120
|
-
0.9.
|
|
123
|
+
0.9.37 (ruby-3.2.2).
|
|
121
124
|
</div>
|
|
122
125
|
|
|
123
126
|
</div>
|