simplest-gem 0.1.0
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 +7 -0
- data/bin/put-random +27 -0
- data/lib/simplest-gem.rb +12 -0
- data/lib/simplest-gem/foo.rb +4 -0
- metadata +49 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: b776bf53e953fae3353c47607f15fa599e95d255
|
|
4
|
+
data.tar.gz: e0357097ba68f2c97275f0f1d09e30850a366879
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 31dd235ae3679514675e5849720d4113430e90342555993ef0a083f2bf14f345f9aa7cd6a4f7d02d92d237e3179e60441f598213c9cc183ced5be727b96eb2bf
|
|
7
|
+
data.tar.gz: dbafb1da4290e5991ac64246dc25eeb903bc7348013d486b3eb96e92507090b71397559e406875a9e8182a886ed2b78ab3e99b3c9c5eff93ad81627b3cc6eb76
|
data/bin/put-random
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
raise NotImplementedError.new 'example error' if ARGV[0] == 'error'
|
|
4
|
+
|
|
5
|
+
require 'simplest-gem'
|
|
6
|
+
|
|
7
|
+
a, b = ARGV[0].to_f, ARGV[1].to_f
|
|
8
|
+
ia = a.to_i
|
|
9
|
+
|
|
10
|
+
if b != 0
|
|
11
|
+
ib = b.to_i
|
|
12
|
+
if ia == a and ib == b
|
|
13
|
+
puts SimplestGem.rand ia..ib
|
|
14
|
+
else
|
|
15
|
+
puts SimplestGem.rand a..b
|
|
16
|
+
end
|
|
17
|
+
else
|
|
18
|
+
if a != 0
|
|
19
|
+
if ia == a
|
|
20
|
+
puts SimplestGem.rand ia
|
|
21
|
+
else
|
|
22
|
+
puts SimplestGem.rand a
|
|
23
|
+
end
|
|
24
|
+
else
|
|
25
|
+
puts SimplestGem.rand
|
|
26
|
+
end
|
|
27
|
+
end
|
data/lib/simplest-gem.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: simplest-gem
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Sagid M.
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2017-07-06 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: |
|
|
14
|
+
This gem was created for an example.
|
|
15
|
+
You can use command "simplest-gem" that puts random value
|
|
16
|
+
email: kofon95@mail.ru
|
|
17
|
+
executables:
|
|
18
|
+
- put-random
|
|
19
|
+
extensions: []
|
|
20
|
+
extra_rdoc_files: []
|
|
21
|
+
files:
|
|
22
|
+
- bin/put-random
|
|
23
|
+
- lib/simplest-gem.rb
|
|
24
|
+
- lib/simplest-gem/foo.rb
|
|
25
|
+
homepage: https://rubygems.org/gems/ww21
|
|
26
|
+
licenses:
|
|
27
|
+
- MIT
|
|
28
|
+
metadata: {}
|
|
29
|
+
post_install_message:
|
|
30
|
+
rdoc_options: []
|
|
31
|
+
require_paths:
|
|
32
|
+
- lib
|
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ">="
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
- - ">="
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '0'
|
|
43
|
+
requirements: []
|
|
44
|
+
rubyforge_project:
|
|
45
|
+
rubygems_version: 2.6.12
|
|
46
|
+
signing_key:
|
|
47
|
+
specification_version: 4
|
|
48
|
+
summary: some summary
|
|
49
|
+
test_files: []
|