emojinator 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cab14faf3ca465e2f2c9d409cea90ef4d8cf65e78b46ddd6d1d00d33c0b6e357
4
- data.tar.gz: 7c001e6786522e30943146cacbe95e6e036726cd856d056f8e32512918269b58
3
+ metadata.gz: 3f47d4d7310074718e1a1353459d111eca81f60a1ae3d54ba38aa908e0b73473
4
+ data.tar.gz: 6a3d03f74d25e10628dfe97a36b1212ffde4e1d0457392e45b6773f4efddc668
5
5
  SHA512:
6
- metadata.gz: 1f05d455c4e6caf19fe8fc4204ed00a486b138579c5a94f1aa51968273894a74207dd575f8c05f70607352b9b95b94a01737a1cf04097034b4de8a456cfbf17c
7
- data.tar.gz: 38fb83c4fa4486d3f7c130c7b5ac6777838f3eea67242a1a05db434bd674ff64c1d7257e2349cc68f3aa16c6d77a8fe6616aea5ec4997e5f2251accfd34837db
6
+ metadata.gz: 4a795249665faee59d8d2b593e7ec55946a545f77c50e192353aea05feccf36f89c28adc93e2eb12254248ed987b02be2361e402f146b287e22a6d7b8ce03cd4
7
+ data.tar.gz: e1023d7a353396962a0fc13ebc72b65a67878aac82f312717794892c7c73e47d0beb2d994b079788f2746e122440c73bccde253ca697e1a0d754fb6d544a9213
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- emojinator (0.1.0)
4
+ emojinator (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -9,6 +9,7 @@ GEM
9
9
  ast (2.4.2)
10
10
  coderay (1.1.3)
11
11
  diff-lcs (1.4.4)
12
+ ffaker (2.18.0)
12
13
  lefthook (0.7.2)
13
14
  method_source (1.0.0)
14
15
  parallel (1.20.1)
@@ -58,6 +59,7 @@ PLATFORMS
58
59
 
59
60
  DEPENDENCIES
60
61
  emojinator!
62
+ ffaker (~> 2.18.0)
61
63
  lefthook (~> 0.7.2)
62
64
  pry (~> 0.14.1)
63
65
  rspec (~> 3.10.0)
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Emojinator
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/emojinator`. 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
+ !!!Replace swear words with emojis!!!
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,17 +20,15 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
23
+ ```ruby
24
+ require 'emojinator'
30
25
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
+ Emojinator.call('text with swear words') # => text where swear words are replaces by emojis
27
+ ```
32
28
 
33
29
  ## Contributing
34
30
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/emojinator. 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]/emojinator/blob/master/CODE_OF_CONDUCT.md).
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/FluffyStitch/emojinator. 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/FluffyStitch/emojinator/blob/master/CODE_OF_CONDUCT.md).
36
32
 
37
33
 
38
34
  ## License
@@ -41,4 +37,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
41
37
 
42
38
  ## Code of Conduct
43
39
 
44
- Everyone interacting in the Emojinator project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/emojinator/blob/master/CODE_OF_CONDUCT.md).
40
+ Everyone interacting in the Emojinator project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/FluffyStitch/emojinator/blob/master/CODE_OF_CONDUCT.md).
data/emojinator.gemspec CHANGED
@@ -31,4 +31,5 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency 'rubocop', '~> 1.12.1'
32
32
  spec.add_development_dependency 'rubocop-performance', '~> 1.10.2'
33
33
  spec.add_development_dependency 'rubocop-rspec', '~> 2.2.0'
34
+ spec.add_development_dependency 'ffaker', '~> 2.18.0'
34
35
  end
data/lib/emojinator.rb CHANGED
@@ -5,6 +5,6 @@ require_relative 'emojinator/constants'
5
5
 
6
6
  module Emojinator
7
7
  def self.call(string)
8
- string.gsub(/(#{Constants::SWEAR_WORDS.join('|')})/i, Constants::EMOJI.sample)
8
+ string.gsub(/(#{Constants::SWEAR_WORDS.join('|')})/i) { |_| Constants::EMOJI.sample }
9
9
  end
10
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Emojinator
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emojinator
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
  - FluffyStitch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-16 00:00:00.000000000 Z
11
+ date: 2021-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lefthook
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: 2.2.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: ffaker
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 2.18.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 2.18.0
97
111
  description:
98
112
  email:
99
113
  - ntkoroleva1@gmail.com