observer 0.1.1 → 0.1.2

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: e5ed7cfbd45f9cdb1aa8cdb4d034f698d8c32db099779a79938f2ad6113de4c7
4
- data.tar.gz: 7e4f82ed29989ba629de36307c4d86035dd6a754354b1a28fec3e44fe0144c62
3
+ metadata.gz: c117cdd3260db5f033e7d706cf819f19dc036ce7cefb4dfdc0728ce382644716
4
+ data.tar.gz: 959948ed0029b8c62186c393bc1dbcd2d31c9b1c134287704d0c59e2a62fa9b4
5
5
  SHA512:
6
- metadata.gz: cd296486efd6f7eb515a206eadd3e5ac243625aa98ad7e189a2a7cdaaef9752656d474eca431054ba21b8973dc0ffd288a142fa531c59759c035695580fe2f00
7
- data.tar.gz: af2eca1b8d7b67d2fc7fbb69345c7450286b0fa47507a96d18109f2586897f223c52c260408bebbf90211d736e1bf6863f1c4214e6989ea040683732a8cba1eb
6
+ metadata.gz: 070c86e9a76bfc0adcdd991d36494e65cdfc16708c1dc81baf4269f02980c6103f7abe3de2903ce2923e2fdea99d964dae69f8b42e768c5398b42a86c809c67d
7
+ data.tar.gz: 35966edd21bda158a75c8f65bd16e5833190686afcabf21392b6e09e897ad03681b442c9bdd1622d19b06dd6710cf041a099fcd89c7b5933b352fbae05270818
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: 'github-actions'
4
+ directory: '/'
5
+ schedule:
6
+ interval: 'weekly'
@@ -1,24 +1,28 @@
1
- name: ubuntu
1
+ name: test
2
2
 
3
3
  on: [push, pull_request]
4
4
 
5
5
  jobs:
6
- build:
6
+ ruby-versions:
7
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@master
8
+ with:
9
+ engine: cruby
10
+ min_version: 2.4
11
+
12
+ test:
13
+ needs: ruby-versions
7
14
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
15
  strategy:
9
16
  matrix:
10
- ruby: [ 2.7, 2.6, 2.5, 2.4, head ]
17
+ ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
11
18
  os: [ ubuntu-latest, macos-latest ]
12
19
  runs-on: ${{ matrix.os }}
13
20
  steps:
14
- - uses: actions/checkout@master
21
+ - uses: actions/checkout@v4
15
22
  - name: Set up Ruby
16
23
  uses: ruby/setup-ruby@v1
17
24
  with:
18
25
  ruby-version: ${{ matrix.ruby }}
19
- - name: Install dependencies
20
- run: |
21
- gem install bundler --no-document
22
- bundle install
26
+ bundler-cache: true # Run "bundle install", and cache the result automatically.
23
27
  - name: Run test
24
- run: rake test
28
+ run: bundle exec rake test
data/lib/observer.rb CHANGED
@@ -136,7 +136,7 @@
136
136
  # ticker.add_observer(warner, :call)
137
137
  # ticker.run
138
138
  module Observable
139
- VERSION = "0.1.1"
139
+ VERSION = "0.1.2"
140
140
 
141
141
  #
142
142
  # Add +observer+ as an observer on this object. So that it will receive
data/observer.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  name = File.basename(__FILE__, ".gemspec")
4
- version = ["lib", Array.new(name.count("-")+1, "..").join("/")].find do |dir|
4
+ version = ["lib", Array.new(name.count("-")+1, ".").join("/")].find do |dir|
5
5
  break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
6
6
  /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
7
7
  end rescue nil
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  # Specify which files should be added to the gem when it is released.
25
25
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
26
26
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
27
- `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27
+ `git ls-files -z 2>#{IO::NULL}`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
28
28
  end
29
29
  spec.bindir = "exe"
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: observer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-22 00:00:00.000000000 Z
11
+ date: 2023-11-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Implementation of the Observer object-oriented design pattern.
14
14
  email:
@@ -17,6 +17,7 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".github/dependabot.yml"
20
21
  - ".github/workflows/test.yml"
21
22
  - ".gitignore"
22
23
  - Gemfile
@@ -49,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
50
  - !ruby/object:Gem::Version
50
51
  version: '0'
51
52
  requirements: []
52
- rubygems_version: 3.2.2
53
+ rubygems_version: 3.5.0.dev
53
54
  signing_key:
54
55
  specification_version: 4
55
56
  summary: Implementation of the Observer object-oriented design pattern.