@appthreat/atom 2.1.3 → 2.1.4
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.
- package/package.json +1 -1
- package/plugins/bin/atom +1 -1
- package/plugins/bin/atom.bat +1 -1
- package/plugins/bin/ruby_ast_gen +1 -1
- package/plugins/composer/installed.php +6 -6
- package/plugins/lib/io.appthreat.atom-2.1.4-classpath.jar +0 -0
- package/plugins/lib/{io.appthreat.atom-2.1.3.jar → io.appthreat.atom-2.1.4.jar} +0 -0
- package/plugins/rubyastgen/Gemfile +1 -1
- package/plugins/rubyastgen/Gemfile.lock +4 -3
- package/plugins/rubyastgen/bundle/bundler/setup.rb +1 -1
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-df21eaeb39f9/.github/workflows/pr.yaml +21 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-df21eaeb39f9/.github/workflows/release.yml +84 -0
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/lib/ruby_ast_gen/node_handling.rb +1 -1
- package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/ruby_ast_gen.gemspec +7 -7
- package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/gem_make.out +5 -5
- package/plugins/lib/io.appthreat.atom-2.1.3-classpath.jar +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/.rspec +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/Gemfile +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/LICENSE.txt +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/README.md +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/Rakefile +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/bin/console +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/bin/setup +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/exe/ruby_ast_gen +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/lib/ruby_ast_gen/version.rb +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/lib/ruby_ast_gen.rb +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/sig/ruby_ast_gen.rbs +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/spec/ruby_ast_gen_spec.rb +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/spec/spec_helper.rb +0 -0
- /package/plugins/rubyastgen/bundle/ruby/3.4.0/bundler/gems/{ruby_ast_gen-1c6e88faec50 → ruby_ast_gen-df21eaeb39f9}/update_version.rb +0 -0
package/package.json
CHANGED
package/plugins/bin/atom
CHANGED
|
@@ -360,7 +360,7 @@ declare -r lib_dir="$(realpath "${app_home}/../lib")"
|
|
|
360
360
|
declare -a app_mainclass=('io.appthreat.atom.Atom')
|
|
361
361
|
|
|
362
362
|
declare -r script_conf_file="${app_home}/../conf/application.ini"
|
|
363
|
-
declare -r app_classpath="$lib_dir/io.appthreat.atom-2.1.
|
|
363
|
+
declare -r app_classpath="$lib_dir/io.appthreat.atom-2.1.4-classpath.jar"
|
|
364
364
|
|
|
365
365
|
# java_cmd is overrode in process_args when -java-home is used
|
|
366
366
|
declare java_cmd=$(get_java_cmd)
|
package/plugins/bin/atom.bat
CHANGED
|
@@ -40,7 +40,7 @@ rem "-J" is stripped, "-D" is left as is, and everything is appended to JAVA_OPT
|
|
|
40
40
|
set _JAVA_PARAMS=
|
|
41
41
|
set _APP_ARGS=
|
|
42
42
|
|
|
43
|
-
set "APP_CLASSPATH=%APP_LIB_DIR%\io.appthreat.atom-2.1.
|
|
43
|
+
set "APP_CLASSPATH=%APP_LIB_DIR%\io.appthreat.atom-2.1.4-classpath.jar"
|
|
44
44
|
set "APP_MAIN_CLASS=io.appthreat.atom.Atom"
|
|
45
45
|
set "SCRIPT_CONF_FILE=%APP_HOME%\conf\application.ini"
|
|
46
46
|
|
package/plugins/bin/ruby_ast_gen
CHANGED
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
$:.unshift File.expand_path "../rubyastgen/bundle", __dir__
|
|
12
12
|
|
|
13
13
|
require "bundler/setup"
|
|
14
|
-
load File.expand_path "../rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-
|
|
14
|
+
load File.expand_path "../rubyastgen/bundle/ruby/3.4.0/bundler/gems/ruby_ast_gen-df21eaeb39f9/exe/ruby_ast_gen", __dir__
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<?php return array(
|
|
2
2
|
'root' => array(
|
|
3
3
|
'name' => '__root__',
|
|
4
|
-
'pretty_version' => 'v2.1.
|
|
5
|
-
'version' => '2.1.
|
|
6
|
-
'reference' => '
|
|
4
|
+
'pretty_version' => 'v2.1.4',
|
|
5
|
+
'version' => '2.1.4.0',
|
|
6
|
+
'reference' => '72bce6caec8b1ee2049d10ffa25937b1af8f6b1e',
|
|
7
7
|
'type' => 'library',
|
|
8
8
|
'install_path' => __DIR__ . '/../../',
|
|
9
9
|
'aliases' => array(),
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
),
|
|
12
12
|
'versions' => array(
|
|
13
13
|
'__root__' => array(
|
|
14
|
-
'pretty_version' => 'v2.1.
|
|
15
|
-
'version' => '2.1.
|
|
16
|
-
'reference' => '
|
|
14
|
+
'pretty_version' => 'v2.1.4',
|
|
15
|
+
'version' => '2.1.4.0',
|
|
16
|
+
'reference' => '72bce6caec8b1ee2049d10ffa25937b1af8f6b1e',
|
|
17
17
|
'type' => 'library',
|
|
18
18
|
'install_path' => __DIR__ . '/../../',
|
|
19
19
|
'aliases' => array(),
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
GIT
|
|
2
|
-
remote: https://github.com/
|
|
3
|
-
revision:
|
|
4
|
-
ref: v0.34.
|
|
2
|
+
remote: https://github.com/appthreat/ruby_ast_gen.git
|
|
3
|
+
revision: df21eaeb39f962c41946ec4391ff20080e4d8218
|
|
4
|
+
ref: v0.34.1
|
|
5
5
|
specs:
|
|
6
6
|
ruby_ast_gen (0.34.0)
|
|
7
7
|
|
|
@@ -17,6 +17,7 @@ GEM
|
|
|
17
17
|
|
|
18
18
|
PLATFORMS
|
|
19
19
|
ruby
|
|
20
|
+
x64-mingw-ucrt
|
|
20
21
|
x86_64-darwin-23
|
|
21
22
|
|
|
22
23
|
DEPENDENCIES
|
|
@@ -39,4 +39,4 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
|
|
|
39
39
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/x86_64-linux/#{Gem.extension_api_version}/racc-1.8.1")
|
|
40
40
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/racc-1.8.1/lib")
|
|
41
41
|
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parser-3.3.6.0/lib")
|
|
42
|
-
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/bundler/gems/ruby_ast_gen-
|
|
42
|
+
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/bundler/gems/ruby_ast_gen-df21eaeb39f9/lib")
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: Pull Request Testing
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
branches:
|
|
5
|
+
- main
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- name: Checkout repository
|
|
12
|
+
uses: actions/checkout@v4
|
|
13
|
+
|
|
14
|
+
- name: Set up Ruby
|
|
15
|
+
uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
ruby-version: 3.1.4
|
|
18
|
+
bundler-cache: true
|
|
19
|
+
|
|
20
|
+
- name: Run the default task
|
|
21
|
+
run: bundle exec rake
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
name: Build and Release Vendored Gemfile
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- 'main'
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release:
|
|
10
|
+
if: github.repository_owner == 'joernio'
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout repository
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Get next release version (dry run)
|
|
19
|
+
id: taggerDryRun
|
|
20
|
+
uses: anothrNick/github-tag-action@1.61.0
|
|
21
|
+
env:
|
|
22
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
23
|
+
WITH_V: true
|
|
24
|
+
DRY_RUN: true
|
|
25
|
+
|
|
26
|
+
- name: Show next version
|
|
27
|
+
env:
|
|
28
|
+
CURR_TAG: ${{ steps.taggerDryRun.outputs.tag }}"
|
|
29
|
+
NEW_TAG: ${{ steps.taggerDryRun.outputs.new_tag }}
|
|
30
|
+
run: |
|
|
31
|
+
echo "The next tag version will be: $NEW_TAG"
|
|
32
|
+
echo "The current tag is: $CURR_TAG"
|
|
33
|
+
./update_version.rb $NEW_TAG
|
|
34
|
+
|
|
35
|
+
- name: Set up JDK
|
|
36
|
+
uses: actions/setup-java@v4
|
|
37
|
+
with:
|
|
38
|
+
distribution: 'temurin'
|
|
39
|
+
java-version: '21'
|
|
40
|
+
|
|
41
|
+
- name: Set up Ruby
|
|
42
|
+
uses: ruby/setup-ruby@v1
|
|
43
|
+
with:
|
|
44
|
+
ruby-version: 3.1.4
|
|
45
|
+
bundler-cache: false
|
|
46
|
+
|
|
47
|
+
- name: Set up JRuby
|
|
48
|
+
run: |
|
|
49
|
+
curl 'https://repo1.maven.org/maven2/org/jruby/jruby-complete/9.4.8.0/jruby-complete-9.4.8.0.jar' \
|
|
50
|
+
--output jruby.jar
|
|
51
|
+
|
|
52
|
+
- name: Install dependencies and build release
|
|
53
|
+
run: |
|
|
54
|
+
mkdir -p ${PWD}/vendor/bundle/jruby/3.1.0
|
|
55
|
+
export GEM_HOME=${PWD}/vendor/bundle/jruby/3.1.0
|
|
56
|
+
export GEM_PATH=${PWD}/vendor/bundle/jruby/3.1.0
|
|
57
|
+
export PATH=$GEM_HOME/bin:$PATH
|
|
58
|
+
|
|
59
|
+
java -jar jruby.jar -S gem install bundler -v 2.5.21 --install-dir ${GEM_HOME}
|
|
60
|
+
java -jar jruby.jar -S bundle install
|
|
61
|
+
|
|
62
|
+
find vendor/bundle/jruby/3.1.0 -mindepth 1 -maxdepth 1 -type \
|
|
63
|
+
d ! -name "gems" ! -name "bin" ! -name "specifications" \
|
|
64
|
+
-exec rm -rf {} +
|
|
65
|
+
zip -r ruby_ast_gen_${{ steps.taggerDryRun.outputs.new_tag }}.zip \
|
|
66
|
+
lib exe vendor Gemfile ruby_ast_gen.gemspec
|
|
67
|
+
|
|
68
|
+
- name: Add and commit updated files holding version information
|
|
69
|
+
uses: stefanzweifel/git-auto-commit-action@v5
|
|
70
|
+
with:
|
|
71
|
+
file_pattern: |
|
|
72
|
+
lib/ruby_ast_gen/version.rb
|
|
73
|
+
Gemfile.lock
|
|
74
|
+
commit_message: Update VERSION file
|
|
75
|
+
|
|
76
|
+
- name: Upload vendored distribution to GitHub Release
|
|
77
|
+
uses: softprops/action-gh-release@v2
|
|
78
|
+
env:
|
|
79
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
80
|
+
GITHUB_TOKEN_PERMISSIONS: "read:packages, write:packages"
|
|
81
|
+
with:
|
|
82
|
+
tag_name: ${{ steps.taggerDryRun.outputs.new_tag }}
|
|
83
|
+
files: |
|
|
84
|
+
ruby_ast_gen_*.zip
|
|
@@ -71,7 +71,7 @@ module NodeHandling
|
|
|
71
71
|
range = location.expression || location
|
|
72
72
|
return nil unless range.is_a?(Parser::Source::Range)
|
|
73
73
|
snippet = source_code[range.begin_pos...range.end_pos]
|
|
74
|
-
self.truncate_string(snippet.strip,
|
|
74
|
+
self.truncate_string(snippet.strip, 200)
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
def self.add_node_properties(node_type, base_map, file_path)
|
|
@@ -6,18 +6,18 @@ Gem::Specification.new do |s|
|
|
|
6
6
|
s.version = "0.34.0".freeze
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
9
|
-
s.metadata = { "homepage_uri" => "https://github.com/
|
|
9
|
+
s.metadata = { "homepage_uri" => "https://github.com/appthreat/ruby_ast_gen" } if s.respond_to? :metadata=
|
|
10
10
|
s.require_paths = ["lib".freeze]
|
|
11
|
-
s.authors = ["David Baker Effendi".freeze, "Andrei Dreyer".freeze]
|
|
11
|
+
s.authors = ["David Baker Effendi".freeze, "Andrei Dreyer".freeze, "Team AppThreat".freeze]
|
|
12
12
|
s.bindir = "exe".freeze
|
|
13
|
-
s.date = "2025-01-
|
|
14
|
-
s.description = "A Ruby parser than dumps the AST as JSON output for
|
|
15
|
-
s.email = ["dave@whirlylabs.com".freeze, "andrei@whirlylabs.com".freeze]
|
|
13
|
+
s.date = "2025-01-15"
|
|
14
|
+
s.description = "A Ruby parser than dumps the AST as JSON output for atom `rubysrc2cpg` frontend".freeze
|
|
15
|
+
s.email = ["dave@whirlylabs.com".freeze, "andrei@whirlylabs.com".freeze, "hello@appthreat.com".freeze]
|
|
16
16
|
s.executables = ["ruby_ast_gen".freeze]
|
|
17
17
|
s.files = ["Gemfile".freeze, "exe/ruby_ast_gen".freeze, "lib/ruby_ast_gen".freeze, "lib/ruby_ast_gen.rb".freeze, "lib/ruby_ast_gen/node_handling.rb".freeze, "lib/ruby_ast_gen/version.rb".freeze, "ruby_ast_gen.gemspec".freeze, "sig/ruby_ast_gen.rbs".freeze]
|
|
18
|
-
s.homepage = "https://github.com/
|
|
18
|
+
s.homepage = "https://github.com/appthreat/ruby_ast_gen".freeze
|
|
19
19
|
s.licenses = ["MIT".freeze]
|
|
20
|
-
s.required_ruby_version = Gem::Requirement.new(">= 3.
|
|
20
|
+
s.required_ruby_version = Gem::Requirement.new(">= 3.4.1".freeze)
|
|
21
21
|
s.rubygems_version = "3.6.2".freeze
|
|
22
22
|
s.summary = "A Ruby parser than dumps the AST as JSON output".freeze
|
|
23
23
|
|
package/plugins/rubyastgen/bundle/ruby/3.4.0/extensions/x86_64-linux/3.4.0/racc-1.8.1/gem_make.out
CHANGED
|
@@ -3,16 +3,16 @@ current directory: /home/runner/work/atom/atom/wrapper/nodejs/plugins/rubyastgen
|
|
|
3
3
|
creating Makefile
|
|
4
4
|
|
|
5
5
|
current directory: /home/runner/work/atom/atom/wrapper/nodejs/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse
|
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20250115-2721-jppxt7 sitelibdir\=./.gem.20250115-2721-jppxt7 clean
|
|
7
7
|
|
|
8
8
|
current directory: /home/runner/work/atom/atom/wrapper/nodejs/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse
|
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20250115-2721-jppxt7 sitelibdir\=./.gem.20250115-2721-jppxt7
|
|
10
10
|
compiling cparse.c
|
|
11
11
|
linking shared-object racc/cparse.so
|
|
12
12
|
|
|
13
13
|
current directory: /home/runner/work/atom/atom/wrapper/nodejs/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse
|
|
14
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
15
|
-
/usr/bin/install -c -m 0755 cparse.so ./.gem.
|
|
14
|
+
make DESTDIR\= sitearchdir\=./.gem.20250115-2721-jppxt7 sitelibdir\=./.gem.20250115-2721-jppxt7 install
|
|
15
|
+
/usr/bin/install -c -m 0755 cparse.so ./.gem.20250115-2721-jppxt7/racc
|
|
16
16
|
|
|
17
17
|
current directory: /home/runner/work/atom/atom/wrapper/nodejs/plugins/rubyastgen/bundle/ruby/3.4.0/gems/racc-1.8.1/ext/racc/cparse
|
|
18
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
|
18
|
+
make DESTDIR\= sitearchdir\=./.gem.20250115-2721-jppxt7 sitelibdir\=./.gem.20250115-2721-jppxt7 clean
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|