message_judgment 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
  SHA1:
3
- metadata.gz: dac52e7219f707011187d6eb4a9c9f7cd006d2f7
4
- data.tar.gz: 75ceb22a90e5edf74a143aaeec78a3354989c9b1
3
+ metadata.gz: 50d211ef1b89824d36ed18ee29acdba2b04ec070
4
+ data.tar.gz: 58b64f6e0d35f0883a3d00bbe5a036599e70c818
5
5
  SHA512:
6
- metadata.gz: d399e4ccb5a1b4215a6497fb1e2717df63255e54fc741bbccafa26f1f0dc19bb2513352e8ac0f31778bd962577a34ea715f36ac990f5082c0be7f5cb1d81ade2
7
- data.tar.gz: dc7e31385ca4e0c108acef3ee57eb069ff9928551ad237dabd2a50b86ebe84a9d6de747515edef5f7913dfb9ee3ecb7164218dcb885322f71288b4be8fbbef23
6
+ metadata.gz: 3655a7e5c4b33dcdb8215666fb1b297b36b8b473d2a5f1c20a8fc04b4d6404d40b4f07e169705fb05ff293ce832baf5e681595b00b173fd7bc109bd2ec47b79c
7
+ data.tar.gz: 9530e3ff18a7ff47a2b7694d0d64ff5992da0dff3e8bc54e322f70d9c4509a834cb4a4df0a6385a1f7c66c092af8930cac56e8377a87246024f03412a7d9e4f3
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build message_judgment-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install message_judgment-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install message_judgment-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push message_judgment-0.1.0.gem to Rubygems" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
data/README.md CHANGED
@@ -21,8 +21,15 @@ Or install it yourself as:
21
21
  $ gem install message_judgment
22
22
 
23
23
  ## Usage
24
+ ```ruby
25
+ user_message="Hello,I want your sex!"
26
+ crazy_word=["shit","sex","fuck"]
27
+ puts message_judgment?(user_message,crazy_word)
28
+ ```
24
29
 
25
- TODO: Write usage instructions here
30
+ ```ruby
31
+ #response => Hello,I want your
32
+ ```
26
33
 
27
34
  ## Development
28
35
 
@@ -2,8 +2,9 @@ require "message_judgment/version"
2
2
 
3
3
  module MessageJudgment
4
4
  def self.message_judgment?(message,targets)
5
- targets.delete_if do|target|
6
- message.include?(target)
5
+ targets.each do|target|
6
+ message.slice!(target) if message.include?(target)
7
7
  end
8
+ return message
8
9
  end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module MessageJudgment
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
Binary file
@@ -14,7 +14,6 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://ryu-nishida.blogspot.jp/"
15
15
  spec.license = "MIT"
16
16
 
17
-
18
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
18
  f.match(%r{^(test|spec|features)/})
20
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: message_judgment
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
  - NishidaRyu416
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-24 00:00:00.000000000 Z
11
+ date: 2017-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -61,9 +61,11 @@ extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
63
  - ".gitignore"
64
+ - ".idea/.rakeTasks"
64
65
  - ".idea/message_judgment.iml"
65
66
  - ".idea/misc.xml"
66
67
  - ".idea/modules.xml"
68
+ - ".idea/vcs.xml"
67
69
  - ".idea/workspace.xml"
68
70
  - ".rspec"
69
71
  - ".travis.yml"
@@ -76,6 +78,7 @@ files:
76
78
  - bin/setup
77
79
  - lib/message_judgment.rb
78
80
  - lib/message_judgment/version.rb
81
+ - message_judgment-0.1.0.gem
79
82
  - message_judgment.gemspec
80
83
  homepage: https://ryu-nishida.blogspot.jp/
81
84
  licenses: