notation 0.2.1 → 0.2.2

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: '09bbac1adce0c9a99319b9acbf60c52debeba9cc14b7eb7b6bfc6a2b5eb9878b'
4
- data.tar.gz: e6495aece79cbc99129e56884a2a06eb1194d5b28ed498e7fa52441c5f291c46
3
+ metadata.gz: e23661f94f5bf2dfef11e26f2af11c958dfb06fe66d5d8dc5fa4332e71dfb80d
4
+ data.tar.gz: 8a2e6bb2508c0b577d4497df812efe9c3ee1934619eb8466db19048b2a7239a2
5
5
  SHA512:
6
- metadata.gz: 935d9d65981d2087654981d7688aaf56a7b06839bce8f0a731a8b1b5c56fe80b6ed1e176872aaf0a398d35b836bd81e02d58ec6e90d63c585abc0a49c8e265ba
7
- data.tar.gz: 4f2d8396ed4db4acdae2b39235559c50f202cb5b3adc4e325f22a618d4b87744fac9ebde228596b60fa54742bcac31a39a11305c108af951bdcc61fb39909565
6
+ metadata.gz: 2af0f7a4ea3413d9375687cd6bade35197e4db199b82168de9e5098b2542b32671a080186f88ce491158f056c9a6f9d27fa1ec60ff6b603724c0f96cb826d54c
7
+ data.tar.gz: e708df538e3b930aff5f316c70773d3d0a1ce90b39548b0f2b4a455859e116a410b419856af93eeb1522b1bb94a2c632945fb055472f1efc9db2ee6415ca26ab
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.2 - 22-Jun-2024
2
+ * Rubocop config and cleanup.
3
+ * Removed some old directives and comments.
4
+
1
5
  ## 0.2.1 - 20-Feb-2021
2
6
  * Added metadata to the gemspec.
3
7
 
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/README.md CHANGED
@@ -1,9 +1,15 @@
1
+ [![Ruby](https://github.com/djberg96/notation/actions/workflows/ruby.yml/badge.svg)](https://github.com/djberg96/notation/actions/workflows/ruby.yml)
2
+
1
3
  ## Description
2
4
  Unicode methods for Ruby.
3
5
 
4
6
  ## Installation
5
7
  `gem install notation`
6
8
 
9
+ ## Installing the Trusted Cert
10
+
11
+ `gem cert --add <(curl -Ls https://raw.githubusercontent.com/djberg96/notation/main/certs/djberg96_pub.pem)`
12
+
7
13
  ## Synopsis
8
14
  ```ruby
9
15
  require 'notation'
@@ -24,7 +30,7 @@ The ability to add unicode methods is limited to method names that have
24
30
  no receiver. This is a limitation of the Ruby parser.
25
31
 
26
32
  ## Copyright
27
- (C) 2009-2021 Daniel J. Berger
33
+ (C) 2009-2024 Daniel J. Berger
28
34
  All Rights Reserved
29
35
 
30
36
  ## License
data/Rakefile CHANGED
@@ -2,13 +2,13 @@ require 'rake'
2
2
  require 'rake/clean'
3
3
  require 'rspec/core/rake_task'
4
4
 
5
- CLEAN.include("**/*.gem", "**/*.rbc")
5
+ CLEAN.include("**/*.gem", "**/*.rbc", "**/*.lock")
6
6
 
7
7
  namespace :gem do
8
8
  desc 'Build the notation gem'
9
9
  task :create => [:clean] do
10
10
  require 'rubygems/package'
11
- spec = eval(IO.read('notation.gemspec'))
11
+ spec = Gem::Specification.load('notation.gemspec')
12
12
  spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
13
13
  Gem::Package.build(spec)
14
14
  end
data/lib/notation.rb CHANGED
@@ -1,10 +1,9 @@
1
- # encoding: utf-8
2
-
3
- # Run with -Ku if using Ruby 1.8.
1
+ # frozen_string_literal: true
4
2
 
3
+ # Extend the core Kernel module
5
4
  module Kernel
6
5
  # Version of the notation library
7
- NOTATION_VERSION = '0.2.1'.freeze
6
+ NOTATION_VERSION = '0.2.2'
8
7
 
9
8
  # Make lambda a true lambda
10
9
  #
@@ -19,7 +18,7 @@ module Kernel
19
18
  # ∑ [1,2,3] => 6
20
19
  #
21
20
  def ∑(*args)
22
- args.inject(0){ |e,m| m += e }
21
+ args.inject(0){ |e, m| m + e }
23
22
  end
24
23
 
25
24
  # Pi product, i.e. the product of all elements.
@@ -28,7 +27,7 @@ module Kernel
28
27
  # ∏ [2,3,4] => 24
29
28
  #
30
29
  def ∏(*args)
31
- args.inject(1){ |e,m| m *= e }
30
+ args.inject(1){ |e, m| m * e }
32
31
  end
33
32
 
34
33
  # Square root
data/notation.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'notation'
5
- spec.version = '0.2.1'
5
+ spec.version = '0.2.2'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.email = 'djberg96@gmail.com'
8
8
  spec.license = 'Apache-2.0'
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.cert_chain = Dir['certs/*']
14
14
 
15
15
  spec.add_development_dependency('rake')
16
+ spec.add_development_dependency('rspec', '~> 3.9')
16
17
 
17
18
  spec.description = <<-EOF
18
19
  The notation library provides unicode symbols that you can use as
@@ -20,11 +21,13 @@ Gem::Specification.new do |spec|
20
21
  EOF
21
22
 
22
23
  spec.metadata = {
23
- 'homepage_uri' => 'https://github.com/djberg96/notation',
24
- 'bug_tracker_uri' => 'https://github.com/djberg96/notation/issues',
25
- 'changelog_uri' => 'https://github.com/djberg96/notation/blob/master/CHANGES.md',
26
- 'documentation_uri' => 'https://github.com/djberg96/notation/wiki',
27
- 'source_code_uri' => 'https://github.com/djberg96/notation',
28
- 'wiki_uri' => 'https://github.com/djberg96/notation/wiki'
24
+ 'homepage_uri' => 'https://github.com/djberg96/notation',
25
+ 'bug_tracker_uri' => 'https://github.com/djberg96/notation/issues',
26
+ 'changelog_uri' => 'https://github.com/djberg96/notation/blob/πρῶτον/CHANGES.md',
27
+ 'documentation_uri' => 'https://github.com/djberg96/notation/wiki',
28
+ 'source_code_uri' => 'https://github.com/djberg96/notation',
29
+ 'wiki_uri' => 'https://github.com/djberg96/notation/wiki',
30
+ 'rubygems_mfa_required' => 'true',
31
+ 'github_repo' => 'https://github.com/djberg96/notation'
29
32
  }
30
33
  end
@@ -1,4 +1,5 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  ################################################################
3
4
  # notation_spec.rb
4
5
  #
@@ -8,28 +9,28 @@
8
9
  require 'rspec'
9
10
  require 'notation'
10
11
 
11
- RSpec.describe "Notation" do
12
- example "version" do
13
- expect(Kernel::NOTATION_VERSION).to eq('0.2.1')
12
+ RSpec.describe 'Notation' do
13
+ example 'version' do
14
+ expect(Kernel::NOTATION_VERSION).to eq('0.2.2')
14
15
  expect(Kernel::NOTATION_VERSION).to be_frozen
15
16
  end
16
17
 
17
- example "sigma" do
18
+ example 'sigma' do
18
19
  expect(Kernel).to respond_to(:∑)
19
- expect(∑(1,2,3)).to eq(6)
20
+ expect(∑(1, 2, 3)).to eq(6)
20
21
  end
21
22
 
22
- example "pi" do
23
+ example 'pi' do
23
24
  expect(Kernel).to respond_to(:∏)
24
- expect(∏(2,3,4)).to eq(24)
25
+ expect(∏(2, 3, 4)).to eq(24)
25
26
  end
26
27
 
27
- example "square_root" do
28
+ example 'square_root' do
28
29
  expect(Kernel).to respond_to(:√)
29
30
  expect(√(49)).to eq(7.0)
30
31
  end
31
32
 
32
- example "lambda" do
33
+ example 'lambda' do
33
34
  expect(λ{ 'hello' }.call).to eq('hello')
34
35
  end
35
36
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
@@ -35,7 +35,7 @@ cert_chain:
35
35
  ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
36
36
  WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
37
37
  -----END CERTIFICATE-----
38
- date: 2021-02-20 00:00:00.000000000 Z
38
+ date: 2024-06-23 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rake
@@ -51,6 +51,20 @@ dependencies:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: rspec
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '3.9'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '3.9'
54
68
  description: |2
55
69
  The notation library provides unicode symbols that you can use as
56
70
  methods instead of using standard method names.
@@ -60,6 +74,7 @@ extensions: []
60
74
  extra_rdoc_files: []
61
75
  files:
62
76
  - CHANGES.md
77
+ - Gemfile
63
78
  - LICENSE
64
79
  - MANIFEST.md
65
80
  - README.md
@@ -74,11 +89,13 @@ licenses:
74
89
  metadata:
75
90
  homepage_uri: https://github.com/djberg96/notation
76
91
  bug_tracker_uri: https://github.com/djberg96/notation/issues
77
- changelog_uri: https://github.com/djberg96/notation/blob/master/CHANGES.md
92
+ changelog_uri: https://github.com/djberg96/notation/blob/πρῶτον/CHANGES.md
78
93
  documentation_uri: https://github.com/djberg96/notation/wiki
79
94
  source_code_uri: https://github.com/djberg96/notation
80
95
  wiki_uri: https://github.com/djberg96/notation/wiki
81
- post_install_message:
96
+ rubygems_mfa_required: 'true'
97
+ github_repo: https://github.com/djberg96/notation
98
+ post_install_message:
82
99
  rdoc_options: []
83
100
  require_paths:
84
101
  - lib
@@ -93,8 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
110
  - !ruby/object:Gem::Version
94
111
  version: '0'
95
112
  requirements: []
96
- rubygems_version: 3.0.3
97
- signing_key:
113
+ rubygems_version: 3.4.22
114
+ signing_key:
98
115
  specification_version: 4
99
116
  summary: Unicode symbols that can be used as methods.
100
117
  test_files:
metadata.gz.sig CHANGED
Binary file