sexpr 1.0.0 → 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67f9fda1b0281f22e49fc267f432c1bed5ba6f270911b0470786662533d257d0
4
- data.tar.gz: 97b7fc7fce491b594f4fb52a06daa5837407a5d5db59ab6bb6ae56e517e38492
3
+ metadata.gz: 6482ec79e777b98f9bc1cd45c82aebd3adcbfa51231eabc15c2e3255f287f7fd
4
+ data.tar.gz: 06d5115dce6527d79ad01f85ed926d2a23ddaae8886211747c35cdb57ab44058
5
5
  SHA512:
6
- metadata.gz: 808fbbb1bd28d417addfd740a85c441e022208ed87111a713bd4cd1920254b606181c3c8a2bbabd2c4fcaa707543b11d3baa1db6e661378fa7f7b350256599f7
7
- data.tar.gz: 2c3795497e39ededc4cec8897fd178a34911fa3647a40561d8218da19bc9b72671de4b6d86bbd5854beb1d9ebc2907d86536d33531fe7c8b38074338c8824263
6
+ metadata.gz: c0c54d750af7efaa8f408a317620b15d440cba219f74ecff80822e64cef559091785a69dae9064e10ed72234dc7ddaa2b793c9e1d6dcd9ba108bf179855f4ab7
7
+ data.tar.gz: 210e3ad0c4974a6d7f1399f599ac9e4d70688c2710a4dc3b1f13090d2fc67169e66cdf5dcaef74e2ac698fc12441e56699bf089c1d7f7247a1e251b808844e07
data/CHANGELOG.md CHANGED
@@ -1,10 +1,28 @@
1
- # 1.0.0 / 2021-12-11
1
+ ## 1.2.0 / 2026-09-30
2
+
3
+ * Added (tested) support for ruby 3.3, 3.4 and 4.0
4
+
5
+ * Removed (tested) support for ruby 2.7. No breaking change though,
6
+ but that version is no longer supported
7
+
8
+ * Bumped rspec development dependency to 3.13.x
9
+
10
+ ## 1.1.0 / 2023-06-09
11
+
12
+ * Removed (tested) support for ruby < 2.7. No breaking change though,
13
+ but those versions are no longer supported
14
+
15
+ * Bumped path dependency to 2.1.x
16
+
17
+ * Fix File.exists? usages not working under ruby 3.2
18
+
19
+ ## 1.0.0 / 2021-12-11
2
20
 
3
21
  * Upgrade project structure to modern Enspirit practices
4
22
 
5
23
  * Citrus dependency upgraded to 3.x and code fixed accordingly
6
24
 
7
- # 0.6.0 / 2012-09-13
25
+ ## 0.6.0 / 2012-09-13
8
26
 
9
27
  * Major enhancements (possibly breaking changes)
10
28
 
@@ -20,7 +38,7 @@
20
38
  module used to tag a given grammar rule production.
21
39
  * `Grammar#looks_a_sexpr?(arg)` became public.
22
40
 
23
- # 0.5.1 / 2012-03-13
41
+ ## 0.5.1 / 2012-03-13
24
42
 
25
43
  * Minor enhancements
26
44
 
@@ -33,7 +51,7 @@
33
51
  * Use `reference.const_get(name, *false*)` when looking for tagging modules to avoid
34
52
  finding ruby classes such as Array when tagging sexpr such as [:array, ...].
35
53
 
36
- # 0.5.0 / 2012-02-25
54
+ ## 0.5.0 / 2012-02-25
37
55
 
38
56
  * Major enhancements
39
57
 
@@ -72,7 +90,7 @@
72
90
  * The `Processor#main_processor` feature (undocumented and unused in examples) has been
73
91
  removed. Using preprocessors is much cleaner that linking processors to each other.
74
92
 
75
- # 0.4.0 / 2012-02-23
93
+ ## 0.4.0 / 2012-02-23
76
94
 
77
95
  * Major enhancements
78
96
 
@@ -101,7 +119,7 @@
101
119
  tracking markers (see enhancements). To palliate to this, default parsing options can
102
120
  now be specified through `Grammar#default_parse_options` (see enhancements).
103
121
 
104
- # 0.3.0 / 2012-02-21
122
+ ## 0.3.0 / 2012-02-21
105
123
 
106
124
  * Breaking changes
107
125
 
@@ -124,7 +142,7 @@
124
142
  to module names. That convention may however be overridden with specific grammar
125
143
  methods (see the BoolExpr example).
126
144
 
127
- # 0.2.0 / 2012-02-21
145
+ ## 0.2.0 / 2012-02-21
128
146
 
129
147
  * Enhancements
130
148
 
@@ -132,8 +150,8 @@
132
150
  * The root rule to use can now be specified in the options hash taken as second argument
133
151
  of `SexpGrammar.grammar(..., :root => :some_rule_name)`
134
152
 
135
- # 0.1.0 / 2012-02-20
153
+ ## 0.1.0 / 2012-02-20
136
154
 
137
155
  * Enhancements
138
156
 
139
- * Birthday!
157
+ * Birthday!
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
  gemspec
@@ -38,7 +38,7 @@ module Sexpr
38
38
 
39
39
  def install_parser
40
40
  @parser = option(:parser)
41
- if @parser.is_a?(String) && !File.exists?(@parser)
41
+ if @parser.is_a?(String) && !File.exist?(@parser)
42
42
  unless path
43
43
  raise Errno::ENOENT, "#{@parser} (no main path)"
44
44
  end
@@ -53,4 +53,4 @@ module Sexpr
53
53
 
54
54
  end # module Options
55
55
  end # module Grammar
56
- end # module Sexpr
56
+ end # module Sexpr
@@ -12,7 +12,7 @@ module Sexpr
12
12
 
13
13
  def looks_a_citrus_file?(arg)
14
14
  arg = arg.to_path if arg.respond_to?(:to_path)
15
- arg.is_a?(String) && File.exists?(arg) && (File.extname(arg) == ".citrus")
15
+ arg.is_a?(String) && File.exist?(arg) && (File.extname(arg) == ".citrus")
16
16
  end
17
17
 
18
18
  def looks_a_citrus_grammar?(arg)
@@ -53,4 +53,4 @@ module Sexpr
53
53
  Sexpr::Parser.register self
54
54
  end # class Citrus
55
55
  end # module Parser
56
- end # module Sexpr
56
+ end # module Sexpr
data/lib/sexpr/version.rb CHANGED
@@ -2,7 +2,7 @@ module Sexpr
2
2
  module Version
3
3
 
4
4
  MAJOR = 1
5
- MINOR = 0
5
+ MINOR = 2
6
6
  TINY = 0
7
7
 
8
8
  def self.to_s
data/lib/sexpr.rb CHANGED
@@ -16,7 +16,7 @@ module Sexpr
16
16
  YAML_OPTIONS = { :permitted_classes => %w[Regexp], :aliases => true }
17
17
 
18
18
  PathLike = lambda{|x|
19
- x.respond_to?(:to_path) or (x.is_a?(String) and File.exists?(x))
19
+ x.respond_to?(:to_path) or (x.is_a?(String) and File.exist?(x))
20
20
  }
21
21
 
22
22
  def self.load(input, options = {})
@@ -50,4 +50,4 @@ module Sexpr
50
50
  YAML.load(source)
51
51
  end
52
52
  end
53
- end # module Sexpr
53
+ end # module Sexpr
@@ -8,7 +8,7 @@ module Sexpr
8
8
  end
9
9
 
10
10
  it 'accepts a path' do
11
- input_text(Path.here).should eq(File.read(__FILE__))
11
+ input_text(Path.file).should eq(File.read(__FILE__))
12
12
  end
13
13
 
14
14
  it 'accepts an IO' do
@@ -24,4 +24,4 @@ module Sexpr
24
24
  end
25
25
 
26
26
  end
27
- end
27
+ end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sexpr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernard Lambeau
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-12-11 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: path
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '1.3'
18
+ version: '2.1'
20
19
  type: :development
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '1.3'
25
+ version: '2.1'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: citrus
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +57,14 @@ dependencies:
58
57
  requirements:
59
58
  - - "~>"
60
59
  - !ruby/object:Gem::Version
61
- version: '3.10'
60
+ version: '3.13'
62
61
  type: :development
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
65
64
  requirements:
66
65
  - - "~>"
67
66
  - !ruby/object:Gem::Version
68
- version: '3.10'
67
+ version: '3.13'
69
68
  description: Sexpr helps manipulating s-expressions in ruby.
70
69
  email:
71
70
  - blambeau@gmail.com
@@ -170,7 +169,6 @@ files:
170
169
  homepage: https://github.com/blambeau/sexp
171
170
  licenses: []
172
171
  metadata: {}
173
- post_install_message:
174
172
  rdoc_options: []
175
173
  require_paths:
176
174
  - lib
@@ -185,8 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
183
  - !ruby/object:Gem::Version
186
184
  version: '0'
187
185
  requirements: []
188
- rubygems_version: 3.1.4
189
- signing_key:
186
+ rubygems_version: 3.6.9
190
187
  specification_version: 4
191
188
  summary: A compilation framework around s-expressions
192
189
  test_files: []