irden 0.1.0 → 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
- SHA1:
3
- metadata.gz: 2acc0163bbe545c126f94a512154aa9b265051b7
4
- data.tar.gz: 385b25f6814941895cd5ed98dc1fd42d1afd8215
2
+ SHA256:
3
+ metadata.gz: fd484befff112cba006b520ddcfde22653245b9850d3f2539b4444704c425420
4
+ data.tar.gz: 47675928c1078f794f16ff582e4b95a0ee2a1c553d363dadcb77f6079d3c89b6
5
5
  SHA512:
6
- metadata.gz: 100c1396b540213a7fdfb109dc5649d1cc4d556958a06665f4fec34fb41cf5ddcee334d9631215cb8da1aad4e85e7cd2188ffc3a154ea3453bc8faea90bbfda8
7
- data.tar.gz: 7198baa9409c0c3f9aeab1b7afec37105ef319a2cae8e2aed5cc2158230b9535e0ff5b2333a48d834526206565bdf57c2be7da1a51db7c26f6065f0995e5177b
6
+ metadata.gz: e9ae0df81f51f83bdb8493ea1ab62fb34dfeca66fbd3a0d4438fce816b5bac39285e6c221e2b770112360da0b934d47fa4c5677173441f9a022eee3ec18b571a
7
+ data.tar.gz: 48c57100d3039d9c30359274010fa82cfd531a8c6ec53c3835614715b341c51a22855fa6adef227b8195e89915a31118a810a83914cff7fb84fb3deae43528c6
@@ -0,0 +1,30 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ pull_request:
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ name: Ruby ${{ matrix.ruby }}
14
+ strategy:
15
+ matrix:
16
+ ruby:
17
+ - '3.0'
18
+ - '3.1'
19
+ - '3.2'
20
+ - '3.3'
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - name: Set up Ruby
25
+ uses: ruby/setup-ruby@v1
26
+ with:
27
+ ruby-version: ${{ matrix.ruby }}
28
+ bundler-cache: true
29
+ - name: Run the default task
30
+ run: bundle exec rake
data/exe/irden CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "irden"
5
4
  require "irb"
5
+ require_relative "../lib/irden"
6
6
 
7
7
  IRB::WorkSpace.prepend(Irden)
8
8
 
data/irden.gemspec CHANGED
@@ -19,7 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.13"
23
- spec.add_development_dependency "rake", "~> 10.0"
24
- spec.add_development_dependency "minitest", "~> 5.0"
22
+ spec.add_runtime_dependency "irb", ">= 1.7.0"
23
+ spec.add_development_dependency "bundler"
24
+ spec.add_development_dependency "rake"
25
+ spec.add_development_dependency "minitest"
25
26
  end
data/lib/irden/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Irden
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/irden.rb CHANGED
@@ -1,14 +1,5 @@
1
- require "irden/version"
2
-
3
1
  module Irden
4
- def evaluate(context, statements, file = __FILE__, line = __LINE__)
5
- loop do
6
- if /([0-9]+),([0-9]+)/.match(statements)
7
- statements.gsub!(/([0-9]+),([0-9]+)/, "\\1\\2")
8
- else
9
- break
10
- end
11
- end
12
- super(context, statements, file, line)
2
+ def evaluate(statements, file = __FILE__, line = __LINE__)
3
+ super(statements.gsub(/(?<=\d),(?=\d)/, ""), file, line)
13
4
  end
14
5
  end
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irden
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Yaginuma
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-20 00:00:00.000000000 Z
11
+ date: 2024-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: irb
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.7.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.7.0
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - "~>"
31
+ - - ">="
18
32
  - !ruby/object:Gem::Version
19
- version: '1.13'
33
+ version: '0'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - "~>"
38
+ - - ">="
25
39
  - !ruby/object:Gem::Version
26
- version: '1.13'
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - "~>"
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
- version: '10.0'
47
+ version: '0'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - "~>"
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
- version: '10.0'
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: minitest
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - "~>"
59
+ - - ">="
46
60
  - !ruby/object:Gem::Version
47
- version: '5.0'
61
+ version: '0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - "~>"
66
+ - - ">="
53
67
  - !ruby/object:Gem::Version
54
- version: '5.0'
68
+ version: '0'
55
69
  description:
56
70
  email:
57
71
  - yuuji.yaginuma@gmail.com
@@ -60,8 +74,8 @@ executables:
60
74
  extensions: []
61
75
  extra_rdoc_files: []
62
76
  files:
77
+ - ".github/workflows/main.yml"
63
78
  - ".gitignore"
64
- - ".travis.yml"
65
79
  - CODE_OF_CONDUCT.md
66
80
  - Gemfile
67
81
  - LICENSE.txt
@@ -92,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
106
  - !ruby/object:Gem::Version
93
107
  version: '0'
94
108
  requirements: []
95
- rubyforge_project:
96
- rubygems_version: 2.5.1
109
+ rubygems_version: 3.5.9
97
110
  signing_key:
98
111
  specification_version: 4
99
112
  summary: Command prompt that can use comma-separated numbers
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.6
4
- - 2.3.3
5
- - 2.4.0-rc1
6
- before_install: gem install bundler