pickaname 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5778eafb59362836dd1ec53a1cd20addeabf8837fe3f03b369260bd52a33e1a2
4
- data.tar.gz: 7ac24f73996b53023598ae55e4d66c0a0344af5cdc49ba757b004bce799a68d5
3
+ metadata.gz: ff59578b44d8bb7979329537a83a70f278971a2d002e790920753da99ae9e211
4
+ data.tar.gz: 2b283f861adbb33d9eda8f9e5a7c03a1698b8ecf6bbfafcfc33191308f5179bd
5
5
  SHA512:
6
- metadata.gz: 779b0424a75842d490c37f5ed18a3697256ccf08d35b3bf133c002de6b70014d99cb35a33e907c1852ae219a6866668bd4bf3d9a421a8f64b1908f8892ad2044
7
- data.tar.gz: 34976c0e89bb0169f523fbceca9f35c7d0358c4fa607af40184d7507731de3236c2cf296571c5e1ef532d9e5aa4d16d5299a22b92a013e2c931c19a8d4012983
6
+ metadata.gz: 69b1c0d110c7ccb6eb426f18d4ad0abda115a3ed1955e8deda8617c9506abc56e6ae7542941c4c0a832f757cc2b078e90a8adcd2ab29954f39cf93c82cdafdd9
7
+ data.tar.gz: 617ad53d15d163e2c31a2cd3d8875b9923f1fb085a0dc36dff46d3b38380c90dd579ace568feaa97e2a425760d5df817368254cb6518e8c007330cb34528a316
@@ -0,0 +1,19 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pickaname (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ rake (12.3.2)
10
+
11
+ PLATFORMS
12
+ ruby
13
+
14
+ DEPENDENCIES
15
+ pickaname!
16
+ rake (~> 12.0)
17
+
18
+ BUNDLED WITH
19
+ 2.1.4
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Pickaname
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/pickaname`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Generates random usernames.
6
4
 
7
5
  ## Installation
8
6
 
@@ -32,7 +30,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
30
 
33
31
  ## Contributing
34
32
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pickaname. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/pickaname/blob/master/CODE_OF_CONDUCT.md).
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/binarylHq/pickaname. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/binarylHq/pickaname/blob/master/CODE_OF_CONDUCT.md).
36
34
 
37
35
 
38
36
  ## License
@@ -41,4 +39,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
41
39
 
42
40
  ## Code of Conduct
43
41
 
44
- Everyone interacting in the Pickaname project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/pickaname/blob/master/CODE_OF_CONDUCT.md).
42
+ Everyone interacting in the Pickaname project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/binarylHq/pickaname/blob/master/CODE_OF_CONDUCT.md).
@@ -2,5 +2,22 @@ require "pickaname/version"
2
2
 
3
3
  module Pickaname
4
4
  class Error < StandardError; end
5
- # Your code goes here...
5
+
6
+ class Robot
7
+ PREFIX = File.foreach("lib/data/prefix.txt").map { |line| line.split(' ') }
8
+ SUFFIX = File.foreach("lib/data/suffix.txt").map { |line| line.split(' ') }
9
+ PREFIX_SIZE = 1
10
+ SUFFIX_SIZE = 1
11
+
12
+ attr_reader :name
13
+
14
+ def initialize()
15
+ @name = pseudo_name
16
+ end
17
+
18
+ def self.pseudo
19
+ @name = PREFIX.sample(PREFIX_SIZE).join << SUFFIX.sample(SUFFIX_SIZE).join
20
+ end
21
+
22
+ end
6
23
  end
@@ -1,3 +1,3 @@
1
1
  module Pickaname
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -6,9 +6,9 @@ Gem::Specification.new do |spec|
6
6
  spec.authors = ["Karan"]
7
7
  spec.email = ["kirubakarann7@gmail.com"]
8
8
 
9
- spec.summary = "Username generator"
10
- spec.description = "Username generator"
11
- spec.homepage = "https://github.com/binarylHq"
9
+ spec.summary = "Pickaname gem"
10
+ spec.description = "Randomly generates a name"
11
+ spec.homepage = "https://github.com/binarylHq/pickaname"
12
12
  spec.license = "MIT"
13
13
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
14
 
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pickaname
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-23 00:00:00.000000000 Z
11
+ date: 2020-08-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Username generator
13
+ description: Randomly generates a name
14
14
  email:
15
15
  - kirubakarann7@gmail.com
16
16
  executables: []
@@ -20,6 +20,7 @@ files:
20
20
  - ".gitignore"
21
21
  - CODE_OF_CONDUCT.md
22
22
  - Gemfile
23
+ - Gemfile.lock
23
24
  - LICENSE.txt
24
25
  - README.md
25
26
  - Rakefile
@@ -28,12 +29,12 @@ files:
28
29
  - lib/pickaname.rb
29
30
  - lib/pickaname/version.rb
30
31
  - pickaname.gemspec
31
- homepage: https://github.com/binarylHq
32
+ homepage: https://github.com/binarylHq/pickaname
32
33
  licenses:
33
34
  - MIT
34
35
  metadata:
35
36
  allowed_push_host: https://rubygems.org
36
- homepage_uri: https://github.com/binarylHq
37
+ homepage_uri: https://github.com/binarylHq/pickaname
37
38
  source_code_uri: https://github.com/binarylHq/pickaname
38
39
  changelog_uri: https://github.com/binarylHq/pickaname
39
40
  post_install_message:
@@ -54,5 +55,5 @@ requirements: []
54
55
  rubygems_version: 3.0.8
55
56
  signing_key:
56
57
  specification_version: 4
57
- summary: Username generator
58
+ summary: Pickaname gem
58
59
  test_files: []