sb-clock 0.1.1 → 0.1.2
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/Gemfile +1 -1
- data/README.md +5 -5
- data/bin/console +6 -8
- data/lib/sb/clock.rb +10 -0
- data/lib/sb/clock/version.rb +5 -0
- data/{clock.gemspec → sb-clock.gemspec} +3 -3
- metadata +5 -5
- data/lib/clock.rb +0 -12
- data/lib/clock/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a557272d52c4c4a7529fd160f76356833599b15ddaefda6769e5870e937288e
|
4
|
+
data.tar.gz: 03e858aaf2b24f27ccbc4b7c96b693694e2d50fba5eb18e8d21318cad80c7377
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1a517fb55861540c922f43a1f5874c457b9c81e65dfe0d3ae96ddebd4860a80ff7298ed013315b428ae100f1f77ed25163a2dc92835846b3933fbcd362e4361
|
7
|
+
data.tar.gz: 306a2228e4bb0fb6b6e8d53f2c6ff9cbfb7dad9edfb66072598a5ed7a3f7f1cf08d8733f447fea3f5083feb76f6c2be9d5d84f909724c9f248855c56cec18c6c
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Clock
|
1
|
+
# Sb::Clock
|
2
2
|
|
3
|
-
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 `lib/clock`. To experiment with that code, run `bin/console` for an interactive prompt.
|
3
|
+
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 `lib/sb/clock`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
4
|
|
5
5
|
TODO: Delete this and the text above, and describe your gem
|
6
6
|
|
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
|
|
9
9
|
Add this line to your application's Gemfile:
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem 'clock'
|
12
|
+
gem 'sb-clock'
|
13
13
|
```
|
14
14
|
|
15
15
|
And then execute:
|
@@ -18,7 +18,7 @@ And then execute:
|
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
|
-
$ gem install clock
|
21
|
+
$ gem install sb-clock
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
@@ -32,4 +32,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
32
|
|
33
33
|
## Contributing
|
34
34
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/clock.
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/sb-clock.
|
data/bin/console
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require "bundler/setup"
|
4
|
-
require "clock"
|
4
|
+
require "sb/clock"
|
5
5
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -10,18 +10,16 @@ require "clock"
|
|
10
10
|
# require "pry"
|
11
11
|
# Pry.start
|
12
12
|
|
13
|
-
t = Clock::Time.now
|
13
|
+
t = Sb::Clock::Time.now
|
14
14
|
sleep 3
|
15
|
-
Clock::Time.set t
|
16
|
-
tt = Clock::Time.now
|
17
|
-
Clock::Time.set Time.now
|
18
|
-
ttt = Clock::Time.now
|
15
|
+
Sb::Clock::Time.set t
|
16
|
+
tt = Sb::Clock::Time.now
|
17
|
+
Sb::Clock::Time.set Time.now
|
18
|
+
ttt = Sb::Clock::Time.now
|
19
19
|
puts t
|
20
20
|
puts tt
|
21
21
|
puts ttt
|
22
22
|
puts Time.now
|
23
23
|
|
24
|
-
#puts Clock::Time.now
|
25
|
-
|
26
24
|
require "irb"
|
27
25
|
IRB.start(__FILE__)
|
data/lib/sb/clock.rb
ADDED
@@ -1,14 +1,14 @@
|
|
1
1
|
lib = File.expand_path("lib", __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require "clock/version"
|
3
|
+
require "sb/clock/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "sb-clock"
|
7
|
-
spec.version = Clock::VERSION
|
7
|
+
spec.version = Sb::Clock::VERSION
|
8
8
|
spec.authors = ["iodevel"]
|
9
9
|
spec.email = ["cbrandt92@gmail.com"]
|
10
10
|
|
11
|
-
spec.summary ='
|
11
|
+
spec.summary = '...'
|
12
12
|
# spec.description = %q{TODO: Write a longer description or delete this line.}
|
13
13
|
# spec.homepage = "TODO: Put your gem's website or public repo URL here."
|
14
14
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sb-clock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iodevel
|
@@ -51,9 +51,9 @@ files:
|
|
51
51
|
- Rakefile
|
52
52
|
- bin/console
|
53
53
|
- bin/setup
|
54
|
-
- clock.
|
55
|
-
- lib/clock.rb
|
56
|
-
-
|
54
|
+
- lib/sb/clock.rb
|
55
|
+
- lib/sb/clock/version.rb
|
56
|
+
- sb-clock.gemspec
|
57
57
|
homepage:
|
58
58
|
licenses: []
|
59
59
|
metadata: {}
|
@@ -75,5 +75,5 @@ requirements: []
|
|
75
75
|
rubygems_version: 3.0.3
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
|
-
summary: "
|
78
|
+
summary: "..."
|
79
79
|
test_files: []
|
data/lib/clock.rb
DELETED
data/lib/clock/version.rb
DELETED