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.
data/doc/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.9.28
9
+ &mdash; 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'><h1 id="worldtimeapi">WorldTimeApi</h1>
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" alt="Gem Version" /></a></p>
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>Welcome to your new gem! In this directory, you’ll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file <code>lib/world_time_api</code>. To experiment with that code, run <code>bin/console</code> for an interactive prompt.</p>
65
+ <p>A Ruby wrapper for the World Time API.</p>
65
66
 
66
- <h2 id="installation">Installation</h2>
67
+ <h2 id="label-Installation">Installation</h2>
67
68
 
68
69
  <p>Add this line to your application’s Gemfile:</p>
69
70
 
70
- <p><code>ruby
71
- gem 'world_time_api'
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'>&#39;</span><span class='tstring_content'>world_time_api</span><span class='tstring_end'>&#39;</span></span>
72
+ </code></pre>
73
73
 
74
74
  <p>And then execute:</p>
75
75
 
76
- <p><code>bash
77
- bundle install
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
- <p><code>bash
83
- gem install world_time_api
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="usage">Usage</h2>
84
+ <h2 id="label-Usage">Usage</h2>
87
85
 
88
- <p>```ruby
89
- WorldTimeApi::Timezones.call # list timezones</p>
86
+ <h3 id="label-List+timezones">List timezones</h3>
90
87
 
91
- <p>WorldTimeApi::Time.call(time_zone) # get datetime of the timezone</p>
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
- <p>WorldTimeApi::ClientIp.call # get datetime by your client ip</p>
91
+ <h3 id="label-Get+time+by+timezone">Get time by timezone</h3>
94
92
 
95
- <p>WorldTimeApi::ClientIp.call(ip_address) # get datatime by ip address
96
- ```</p>
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'>&#39;</span><span class='tstring_content'>Europe/London</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
94
+ </code></pre>
97
95
 
98
- <h2 id="development">Development</h2>
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'>&#39;</span><span class='tstring_content'>12.215.42.19</span><span class='tstring_end'>&#39;</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="contributing">Contributing</h2>
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 <a href="https://github.com/[USERNAME]/world_time_api/blob/master/CODE_OF_CONDUCT.md">code of conduct</a>.</p>
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="license">License</h2>
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="code-of-conduct">Code of Conduct</h2>
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 <a href="https://github.com/[USERNAME]/world_time_api/blob/master/CODE_OF_CONDUCT.md">code of conduct</a>.</p>
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 Feb 23 15:07:22 2023 by
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.28 (ruby-3.2.0).
123
+ 0.9.37 (ruby-3.2.2).
121
124
  </div>
122
125
 
123
126
  </div>