u-observers 2.2.1 → 3.0.0
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 +4 -4
- data/.github/workflows/ci.yml +66 -0
- data/.gitignore +8 -0
- data/.tool-versions +1 -1
- data/Appraisals +92 -0
- data/CHANGELOG.md +169 -0
- data/CLAUDE.md +157 -0
- data/Gemfile +6 -32
- data/README.md +190 -40
- data/README.pt-BR.md +193 -42
- data/Rakefile +31 -1
- data/bin/matrix +16 -0
- data/bin/setup +4 -0
- data/lib/micro/observers/for/active_model.rb +118 -4
- data/lib/micro/observers/set.rb +12 -5
- data/lib/micro/observers/version.rb +1 -1
- data/u-observers.gemspec +6 -4
- metadata +28 -14
- data/.travis.sh +0 -34
- data/.travis.yml +0 -30
- data/test.sh +0 -11
metadata
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: u-observers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rodrigo Serradura
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: appraisal
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '2.5'
|
|
19
|
+
type: :development
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '2.5'
|
|
13
26
|
- !ruby/object:Gem::Dependency
|
|
14
27
|
name: bundler
|
|
15
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -45,10 +58,12 @@ executables: []
|
|
|
45
58
|
extensions: []
|
|
46
59
|
extra_rdoc_files: []
|
|
47
60
|
files:
|
|
61
|
+
- ".github/workflows/ci.yml"
|
|
48
62
|
- ".gitignore"
|
|
49
63
|
- ".tool-versions"
|
|
50
|
-
-
|
|
51
|
-
-
|
|
64
|
+
- Appraisals
|
|
65
|
+
- CHANGELOG.md
|
|
66
|
+
- CLAUDE.md
|
|
52
67
|
- CODE_OF_CONDUCT.md
|
|
53
68
|
- Gemfile
|
|
54
69
|
- LICENSE.txt
|
|
@@ -56,6 +71,7 @@ files:
|
|
|
56
71
|
- README.pt-BR.md
|
|
57
72
|
- Rakefile
|
|
58
73
|
- bin/console
|
|
74
|
+
- bin/matrix
|
|
59
75
|
- bin/setup
|
|
60
76
|
- lib/micro/observers.rb
|
|
61
77
|
- lib/micro/observers/broadcast.rb
|
|
@@ -70,16 +86,15 @@ files:
|
|
|
70
86
|
- lib/u-observers.rb
|
|
71
87
|
- lib/u-observers/for/active_model.rb
|
|
72
88
|
- lib/u-observers/for/active_record.rb
|
|
73
|
-
- test.sh
|
|
74
89
|
- u-observers.gemspec
|
|
75
|
-
homepage: https://github.com/
|
|
90
|
+
homepage: https://github.com/u-gems/u-observers
|
|
76
91
|
licenses:
|
|
77
92
|
- MIT
|
|
78
93
|
metadata:
|
|
79
|
-
homepage_uri: https://github.com/
|
|
80
|
-
source_code_uri: https://github.com/
|
|
81
|
-
changelog_uri: https://github.com/
|
|
82
|
-
|
|
94
|
+
homepage_uri: https://github.com/u-gems/u-observers
|
|
95
|
+
source_code_uri: https://github.com/u-gems/u-observers
|
|
96
|
+
changelog_uri: https://github.com/u-gems/u-observers/blob/main/CHANGELOG.md
|
|
97
|
+
bug_tracker_uri: https://github.com/u-gems/u-observers/issues
|
|
83
98
|
rdoc_options: []
|
|
84
99
|
require_paths:
|
|
85
100
|
- lib
|
|
@@ -87,15 +102,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
87
102
|
requirements:
|
|
88
103
|
- - ">="
|
|
89
104
|
- !ruby/object:Gem::Version
|
|
90
|
-
version: 2.
|
|
105
|
+
version: 2.7.0
|
|
91
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
107
|
requirements:
|
|
93
108
|
- - ">="
|
|
94
109
|
- !ruby/object:Gem::Version
|
|
95
110
|
version: '0'
|
|
96
111
|
requirements: []
|
|
97
|
-
rubygems_version:
|
|
98
|
-
signing_key:
|
|
112
|
+
rubygems_version: 4.0.12
|
|
99
113
|
specification_version: 4
|
|
100
114
|
summary: Simple and powerful implementation of the observer pattern.
|
|
101
115
|
test_files: []
|
data/.travis.sh
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
ruby_v=$(ruby -v)
|
|
4
|
-
|
|
5
|
-
bundle update
|
|
6
|
-
bundle exec rake test
|
|
7
|
-
|
|
8
|
-
ACTIVERECORD_VERSION='3.2' bundle update
|
|
9
|
-
ACTIVERECORD_VERSION='3.2' bundle exec rake test
|
|
10
|
-
|
|
11
|
-
ACTIVERECORD_VERSION='4.0' bundle update
|
|
12
|
-
ACTIVERECORD_VERSION='4.0' bundle exec rake test
|
|
13
|
-
|
|
14
|
-
ACTIVERECORD_VERSION='4.1' bundle update
|
|
15
|
-
ACTIVERECORD_VERSION='4.1' bundle exec rake test
|
|
16
|
-
|
|
17
|
-
ACTIVERECORD_VERSION='4.2' bundle update
|
|
18
|
-
ACTIVERECORD_VERSION='4.2' bundle exec rake test
|
|
19
|
-
|
|
20
|
-
ACTIVERECORD_VERSION='5.0' bundle update
|
|
21
|
-
ACTIVERECORD_VERSION='5.0' bundle exec rake test
|
|
22
|
-
|
|
23
|
-
ACTIVERECORD_VERSION='5.1' bundle update
|
|
24
|
-
ACTIVERECORD_VERSION='5.1' bundle exec rake test
|
|
25
|
-
|
|
26
|
-
if [[ ! $ruby_v =~ '2.2.0' ]]; then
|
|
27
|
-
ACTIVERECORD_VERSION='5.2' bundle update
|
|
28
|
-
ACTIVERECORD_VERSION='5.2' bundle exec rake test
|
|
29
|
-
fi
|
|
30
|
-
|
|
31
|
-
if [[ $ruby_v =~ '2.5.' ]] || [[ $ruby_v =~ '2.6.' ]] || [[ $ruby_v =~ '2.7.' ]]; then
|
|
32
|
-
ACTIVERECORD_VERSION='6.0' bundle update
|
|
33
|
-
ACTIVERECORD_VERSION='6.0' bundle exec rake test
|
|
34
|
-
fi
|
data/.travis.yml
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
language: ruby
|
|
3
|
-
|
|
4
|
-
sudo: false
|
|
5
|
-
|
|
6
|
-
rvm:
|
|
7
|
-
- 2.2.0
|
|
8
|
-
- 2.3.0
|
|
9
|
-
- 2.4.0
|
|
10
|
-
- 2.5.0
|
|
11
|
-
- 2.6.0
|
|
12
|
-
- 2.7.0
|
|
13
|
-
|
|
14
|
-
cache: bundler
|
|
15
|
-
|
|
16
|
-
before_install:
|
|
17
|
-
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
|
18
|
-
- gem install bundler -v '< 2'
|
|
19
|
-
|
|
20
|
-
install: bundle install --jobs=3 --retry=3
|
|
21
|
-
|
|
22
|
-
before_script:
|
|
23
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
24
|
-
- chmod +x ./cc-test-reporter
|
|
25
|
-
- "./cc-test-reporter before-build"
|
|
26
|
-
|
|
27
|
-
script: "./.travis.sh"
|
|
28
|
-
|
|
29
|
-
after_success:
|
|
30
|
-
- "./cc-test-reporter after-build -t simplecov"
|