ryan 1.1.0 → 1.2.0

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: 311a79ef6392e001d28be5a320a3239400af79f6
4
- data.tar.gz: 591f03e947a54f8483f5e5e835ad40153b72049c
2
+ SHA256:
3
+ metadata.gz: b27b330b1dbb7aafbe79a37e1c8ad052862abd043cb9ce66176b0395faa21705
4
+ data.tar.gz: 1f5a038be755ed3b63cbc78e64d2ff3558ca9e3685afb8aa714a45b118634b3b
5
5
  SHA512:
6
- metadata.gz: ea141cb6dfe9455381111d6e39337b05c2512ec45fa336f59af7214276fcb8fc80fbcdff1dd2a2b338c024d117b6ffd6ce44ae1e5ad9085384bc2ac28486d7f9
7
- data.tar.gz: b47dc507eb3a0f5d16080df33873560a73ad57747894fee7fcff4ac539d38b21aac59c71e7585b24774142f19e78f7cc09de0a1e4dc5c1aaf9fa50b930dbd6c3
6
+ metadata.gz: 2d17d1ae82693a889ecc6f7df6066b1bc84ea1de150b12642777cb360883c62f9ad0558151be1482629e100f3e316914650ac117348adbd7c5277b8817b97f7b
7
+ data.tar.gz: c46e36144fba9cdec4432192c3d392d16ffcd55d28f0f2cd09d0cb8eed759aaaef6099ee92ba4aa10b3821eb5eb4b1e9bdb259c0ae09ca7b2445cdad258d8426
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.2.2
1
+ ruby-3.1.2
data/.travis.yml CHANGED
@@ -1,6 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 2.2.5
5
- - 2.4.0
6
- before_install: gem install bundler -v 1.10.4
3
+ - 2.7.8
4
+ before_install: gem install bundler
data/LICENSE.md ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Ryan Buckley.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rake/release'
1
2
  $LOAD_PATH.unshift './lib'
2
3
  require 'ryan'
3
4
  require 'rspec/core/rake_task'
@@ -59,8 +59,8 @@ class Ryan::Condition
59
59
 
60
60
  def edit_return_text(txt)
61
61
  txt = txt.to_s
62
- txt.sub! /^return\b/, 'returns'
63
- txt.sub! /^returns\s*$/, 'returns nil'
62
+ txt = txt.sub /^return\b/, 'returns'
63
+ txt = txt.sub /^returns\s*$/, 'returns nil'
64
64
  if txt.include?(' = ')
65
65
  txt = "assigns #{txt}"
66
66
  elsif !txt.empty? and txt !~ /^return/
@@ -89,7 +89,9 @@ class Ryan::Condition
89
89
  def create_nested_conditions
90
90
  nc = Set.new
91
91
  s = sexp.drop(1)
92
- s.flatten.include?(:if) && s.deep_each do |exp|
92
+ sexp = s
93
+ sexp = Sexp.new(s) unless s.respond_to?(:deep_each)
94
+ s.flatten.include?(:if) && sexp.deep_each do |exp|
93
95
  Ryan::SexpDecorator.new(exp).each_sexp_condition do |node|
94
96
  nc << self.class.new(node)
95
97
  end
data/lib/ryan/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Ryan
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.2.0'.freeze
3
3
  end
data/ryan.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Ryan Buckley"]
10
10
  spec.email = ["arebuckley@gmail.com"]
11
11
 
12
- spec.summary = %q{Ryan meet Ruby}
13
- spec.description = %q{A wrapper around the RubyParser gem}
12
+ spec.summary = %q{Ryan meets Ruby}
13
+ spec.description = %q{Ryan turns Ruby code files into objects that can describe themselves}
14
14
  spec.homepage = "https://github.com/ridiculous/ryan"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -21,10 +21,11 @@ Gem::Specification.new do |spec|
21
21
  spec.required_ruby_version = '>= 1.9.3'
22
22
 
23
23
  spec.add_dependency 'ruby_parser', '>= 3.7.0', '< 4.0.0'
24
- spec.add_dependency 'ruby2ruby', '~> 2.2'
24
+ spec.add_dependency 'ruby2ruby', '~> 2.5'
25
25
 
26
- spec.add_development_dependency "bundler", "~> 1.10"
27
- spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "bundler", "~> 2.0"
27
+ spec.add_development_dependency "rake", "~> 13.0"
28
28
  spec.add_development_dependency "rspec", ">= 3.2", "< 4"
29
- spec.add_development_dependency 'pry', '~> 0.10.4'
29
+ spec.add_development_dependency 'pry', '~> 0.14'
30
+ spec.add_development_dependency 'rake-release', '~> 1.3'
30
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ryan
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Buckley
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-20 00:00:00.000000000 Z
11
+ date: 2023-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby_parser
@@ -36,42 +36,42 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '2.2'
39
+ version: '2.5'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '2.2'
46
+ version: '2.5'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '1.10'
53
+ version: '2.0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '1.10'
60
+ version: '2.0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rake
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '10.0'
67
+ version: '13.0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '10.0'
74
+ version: '13.0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rspec
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -98,15 +98,29 @@ dependencies:
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: 0.10.4
101
+ version: '0.14'
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: 0.10.4
109
- description: A wrapper around the RubyParser gem
108
+ version: '0.14'
109
+ - !ruby/object:Gem::Dependency
110
+ name: rake-release
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '1.3'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '1.3'
123
+ description: Ryan turns Ruby code files into objects that can describe themselves
110
124
  email:
111
125
  - arebuckley@gmail.com
112
126
  executables: []
@@ -120,6 +134,7 @@ files:
120
134
  - ".travis.yml"
121
135
  - CHANGELOG.md
122
136
  - Gemfile
137
+ - LICENSE.md
123
138
  - README.md
124
139
  - Rakefile
125
140
  - bin/console
@@ -137,7 +152,7 @@ files:
137
152
  homepage: https://github.com/ridiculous/ryan
138
153
  licenses: []
139
154
  metadata: {}
140
- post_install_message:
155
+ post_install_message:
141
156
  rdoc_options: []
142
157
  require_paths:
143
158
  - lib
@@ -152,9 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
167
  - !ruby/object:Gem::Version
153
168
  version: '0'
154
169
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 2.4.8
157
- signing_key:
170
+ rubygems_version: 3.3.7
171
+ signing_key:
158
172
  specification_version: 4
159
- summary: Ryan meet Ruby
173
+ summary: Ryan meets Ruby
160
174
  test_files: []