moca_rlibs 0.0.7 → 0.0.8

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: f68e22b5c9f9976723664f7680efbc0e3ba931b07eb189b98bf2e5a8566f679d
4
- data.tar.gz: 2c3e28cdc689542b2ede1e7e915d6028a9c712ef99198474b07bf03ecd9095ad
3
+ metadata.gz: feea6203c6583ea008e12222e3392f0d9c2dcf1632c29c9984320464e2c26d6d
4
+ data.tar.gz: df4085914926e57d3126d00cd0b85759aebe3b6cab4794a9da973dc70f2b723d
5
5
  SHA512:
6
- metadata.gz: de31578803f7a79c04b07d119b67112b70af8fc19f8133e88cec9c1befa1a9c40884a5be65e0f05db2b0ace2eeee60fb55c0a3737691d82312269ece3a4bebd1
7
- data.tar.gz: 679b8858d64f1244d16950f9c8e18e79f00860e4d8a29a6472ff975d46c6117d2635e9510010f6f75b9138a76555764990ecab8300d753fb1c1b196647b42f07
6
+ metadata.gz: 69a25352440a1b39b5c46599fbe650eb189d590a5ed9c28a9cb7d604b0bc871400e56d39673beb08a6dd8e0fb9b848e56a63748d301b56107f2f198c099546ef
7
+ data.tar.gz: f098c4923f4723d24805a8a950f97ab82b2a4608bc239385e2e1bd0229eca11f1384c0a3d3270af1405d66f6dc5e02733ba361894c26fa58571cbbeadf7650c1
data/.idea/rlibs.iml CHANGED
@@ -17,7 +17,6 @@
17
17
  <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, rbenv: 3.0.2) [gem]" level="application" />
18
18
  <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.4, rbenv: 3.0.2) [gem]" level="application" />
19
19
  <orderEntry type="library" scope="PROVIDED" name="bundler (v2.2.22, rbenv: 3.0.2) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="codecov (v0.6.0, rbenv: 3.0.2) [gem]" level="application" />
21
20
  <orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.1.9, rbenv: 3.0.2) [gem]" level="application" />
22
21
  <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.4.4, rbenv: 3.0.2) [gem]" level="application" />
23
22
  <orderEntry type="library" scope="PROVIDED" name="docile (v1.4.0, rbenv: 3.0.2) [gem]" level="application" />
@@ -40,10 +39,8 @@
40
39
  <orderEntry type="library" scope="PROVIDED" name="rack-test (v1.1.0, rbenv: 3.0.2) [gem]" level="application" />
41
40
  <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.0.0, rbenv: 3.0.2) [gem]" level="application" />
42
41
  <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, rbenv: 3.0.2) [gem]" level="application" />
43
- <orderEntry type="library" scope="PROVIDED" name="rbs (v1.0.4, rbenv: 3.0.2) [gem]" level="application" />
44
42
  <orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.1.1, rbenv: 3.0.2) [gem]" level="application" />
45
43
  <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, rbenv: 3.0.2) [gem]" level="application" />
46
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.10.0, rbenv: 3.0.2) [gem]" level="application" />
47
44
  <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.10.1, rbenv: 3.0.2) [gem]" level="application" />
48
45
  <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.10.1, rbenv: 3.0.2) [gem]" level="application" />
49
46
  <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.10.2, rbenv: 3.0.2) [gem]" level="application" />
@@ -59,7 +56,6 @@
59
56
  <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.12.3, rbenv: 3.0.2) [gem]" level="application" />
60
57
  <orderEntry type="library" scope="PROVIDED" name="simplecov_json_formatter (v0.1.3, rbenv: 3.0.2) [gem]" level="application" />
61
58
  <orderEntry type="library" scope="PROVIDED" name="slack-notifier (v2.4.0, rbenv: 3.0.2) [gem]" level="application" />
62
- <orderEntry type="library" scope="PROVIDED" name="sqlite3 (v1.4.2, rbenv: 3.0.2) [gem]" level="application" />
63
59
  <orderEntry type="library" scope="PROVIDED" name="tzinfo (v2.0.4, rbenv: 3.0.2) [gem]" level="application" />
64
60
  <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v2.1.0, rbenv: 3.0.2) [gem]" level="application" />
65
61
  <orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.5.1, rbenv: 3.0.2) [gem]" level="application" />
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- moca_rlibs (0.0.7)
4
+ moca_rlibs (0.0.8)
5
5
  activemodel
6
6
  activerecord
7
7
  activesupport
@@ -74,7 +74,7 @@ GEM
74
74
  rack (>= 1.0, < 3)
75
75
  rainbow (3.0.0)
76
76
  rake (13.0.6)
77
- regexp_parser (2.1.1)
77
+ regexp_parser (2.2.0)
78
78
  rexml (3.2.5)
79
79
  rspec (3.10.0)
80
80
  rspec-core (~> 3.10.0)
@@ -98,7 +98,7 @@ GEM
98
98
  rubocop-ast (>= 1.12.0, < 2.0)
99
99
  ruby-progressbar (~> 1.7)
100
100
  unicode-display_width (>= 1.4.0, < 3.0)
101
- rubocop-ast (1.13.0)
101
+ rubocop-ast (1.14.0)
102
102
  parser (>= 3.0.1.1)
103
103
  rubocop-performance (1.12.0)
104
104
  rubocop (>= 1.7.0, < 2.0)
data/README.md CHANGED
@@ -223,3 +223,9 @@ MocaRlibs::SlackNotifier.send('some message')
223
223
  # @param [String] webhook Web Hook URL
224
224
  MocaRlibs::SlackNotifier.error(StandardError.new('some error occurred'))
225
225
  ```
226
+
227
+ ## ruby拡張(Kernelモジュール)
228
+ pythonのpassと同様、「何もしないこと」を明示的に示すため
229
+ ```ruby
230
+ pass
231
+ ```
@@ -22,7 +22,7 @@ module ActiveModel::Validations
22
22
  return if options[:version].include?(:v4) && ::Resolv::IPv4::Regex.match?(value)
23
23
  return if options[:version].include?(:v6) && ::Resolv::IPv6::Regex.match?(value)
24
24
 
25
- record.errors[attribute] << 'invalid ip format'
25
+ record.errors.add('invalid ip format')
26
26
  end
27
27
  end
28
28
  end
@@ -12,7 +12,7 @@ module ActiveModel::Validations
12
12
  value = value.presence.to_s
13
13
  return if value.match?(/\A[a-zA-Z]*\z/)
14
14
 
15
- record.errors[attribute] << 'contain invalid characters (only alphabets)'
15
+ record.errors.add('contain invalid characters (only alphabets)')
16
16
  end
17
17
  end
18
18
  end
@@ -12,7 +12,7 @@ module ActiveModel::Validations
12
12
  value = value.presence.to_s
13
13
  return if value.match?(/\A[a-zA-Z0-9]*\z/)
14
14
 
15
- record.errors[attribute] << 'contain invalid characters (only numbers and alphabets)'
15
+ record.errors.add('contain invalid characters (only numbers and alphabets)')
16
16
  end
17
17
  end
18
18
  end
@@ -12,7 +12,7 @@ module ActiveModel::Validations
12
12
  value = value.presence.to_s
13
13
  return if value.match?(/\A[\u0000-\u007F]*\z/)
14
14
 
15
- record.errors[attribute] << 'contain non-ascii characters'
15
+ record.errors.add('contain non-ascii characters')
16
16
  end
17
17
  end
18
18
  end
@@ -12,7 +12,7 @@ module ActiveModel::Validations
12
12
  value = value.presence.to_s
13
13
  return if value.match?(/\A[0-9]*\z/)
14
14
 
15
- record.errors[attribute] << 'contain invalid characters (only numbers)'
15
+ record.errors.add('contain invalid characters (only numbers)')
16
16
  end
17
17
  end
18
18
  end
@@ -12,7 +12,7 @@ module ActiveModel::Validations
12
12
  value = value.presence.to_s
13
13
  return if value.match?(%r{\A[a-zA-Z0-9!"#$%&'()*+,-./:;<=>?@\[\\\]^_`{|}~]*\z})
14
14
 
15
- record.errors[attribute] << 'contain invalid characters (only printable ascii characters)'
15
+ record.errors.add('contain invalid characters (only printable ascii characters)')
16
16
  end
17
17
  end
18
18
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MocaRlibs
4
- VERSION = '0.0.7'
4
+ VERSION = '0.0.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moca_rlibs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - mocaberos
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-30 00:00:00.000000000 Z
11
+ date: 2021-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel