coactive 0.2.0 → 0.2.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: be01c5f37abbfc9ccf4a885e3eefdaf6416bdf2f04c08e29194acd4253a6a222
4
- data.tar.gz: f65e89cca406a0d1a34ee056f3bbf3e8fb2dc4e12d0710007fd31c5c8d249b03
3
+ metadata.gz: 0e5b954d90120e156df60ee60c5c271cd7e8666bc507018c6814a5594f62e21b
4
+ data.tar.gz: 1923a89bba5c5b58c8be13f052ef902e2fb8744bccc6fe513bc3f0d84d70a02c
5
5
  SHA512:
6
- metadata.gz: a1290b6da95ab7806fa2eabd3bf1bd904bfb7536a7bb7d9b8ffa7d70e66e593ad91f211cb247d37f8a291d21fe98fb890c835b6a2a4a9d09057da8b5ff59f738
7
- data.tar.gz: 6db5aad85ac64b5a398e892fdfe652448cecbf56a30f3c2352929ac7d138348d69afb109621ee7e105058c43d82649e53c32787d224eab8244bdb83e251b4381
6
+ metadata.gz: e6b0e3585803ebfe054851c4f55db0276e4544f0eeb169375d20e9901126377a804e3e56e10b836092b7fcab41b1dd025ecc5cfc0f9fac2ec7743c757bdd4efc
7
+ data.tar.gz: 4dc336fd5a76d3be0c303febe8d8a05d3b0dcfc4dc6ad2d6dbbcb977286c73e1e24a8a203212cb60fa051ceb8d1a8445ad055f83c01efbfe34407a681683bc8f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.2.1
4
+
5
+ * Truncate string for context.
6
+
3
7
  ## 0.2.0
4
8
 
5
9
  * Add context feature.
@@ -26,10 +26,9 @@ module Coactive
26
26
  end
27
27
 
28
28
  def to_s
29
- attrs = @_data.map { |k, v| "#{k}=#{v.inspect}" }.join(', ')
29
+ attrs = @_data.map { |k, v| "#{k}=#{v.to_s.truncate(300)}" }.join(', ')
30
30
  "#<#{self.class} #{attrs}>"
31
31
  end
32
- alias :inspect :to_s
33
32
 
34
33
  def define_accessors!(keys)
35
34
  Array(keys).each do |key|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coactive
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coactive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-03 00:00:00.000000000 Z
11
+ date: 2022-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.1.2
161
+ rubygems_version: 3.1.6
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Make classes coactive