From 01c5bcf2be6f2c3ecf1663135f6477782d959fc7 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Sat, 9 Mar 2019 16:19:25 +0000 Subject: [PATCH] Adds DFs --- spec/fixtures/db/dynamic_finders.yml | 71 +++++++++++++++- spec/fixtures/dynamic_finders/expected.yml | 81 ++++++++++++++++++- .../composer_file/package.json | 13 +++ .../composer_file/package.json | 14 ++++ .../query_parameter_passive_all.html | 27 +++++++ .../composer_file/package.json | 22 +++++ .../composer_file/composer.json | 17 ++++ .../languages/wp-rest-yoast-meta.pot | 35 ++++++++ 8 files changed, 275 insertions(+), 5 deletions(-) create mode 100644 spec/fixtures/dynamic_finders/plugin_version/gosign-promo-box-block/composer_file/package.json create mode 100644 spec/fixtures/dynamic_finders/plugin_version/klarity-message-action-block/composer_file/package.json create mode 100644 spec/fixtures/dynamic_finders/plugin_version/smashing-blocks/composer_file/package.json create mode 100644 spec/fixtures/dynamic_finders/plugin_version/voice-dialog-navigation/composer_file/composer.json create mode 100644 spec/fixtures/dynamic_finders/plugin_version/wp-rest-yoast-meta/translation_file/languages/wp-rest-yoast-meta.pot diff --git a/spec/fixtures/db/dynamic_finders.yml b/spec/fixtures/db/dynamic_finders.yml index 4df29e45..706c9205 100644 --- a/spec/fixtures/db/dynamic_finders.yml +++ b/spec/fixtures/db/dynamic_finders.yml @@ -148,6 +148,11 @@ plugins: files: - includes/js/callus.js version: true + 3cx-live-chat-talk: + QueryParameter: + files: + - includes/js/callus.js + version: true 3cx-webinars: QueryParameter: files: @@ -9073,6 +9078,12 @@ plugins: path: package.json key: version version: true + gosign-promo-box-block: + ComposerFile: + class: ConfigParser + path: package.json + key: version + version: true gosign-simple-teaser-block: ComposerFile: class: ConfigParser @@ -11346,6 +11357,12 @@ plugins: files: - index.js version: true + klarity-message-action-block: + ComposerFile: + class: ConfigParser + path: package.json + key: version + version: true klaro-consent-manager: QueryParameter: files: @@ -14251,6 +14268,12 @@ plugins: - css/notification-box.css - js/notification-box.js version: true + notification-system: + QueryParameter: + files: + - css/style.css + - dist/js/notificationsRESTAPI/app.js + version: true notify-connect-par-jm-crea: MetaTag: class: Xpath @@ -14377,6 +14400,11 @@ plugins: path: languages/nwa.pot pattern: !ruby/regexp /"Project\-Id\-Version:\ Navionics\-WebAPI (?\d+\.[\.\d]+)/i version: true + nx-ads: + QueryParameter: + files: + - public/css/nx-ads-public.css + version: true nxtbridge-ledger: QueryParameter: files: @@ -15448,6 +15476,7 @@ plugins: files: - public/css/podcast-player-public.css - public/js/podcast-player-public.js + - public/js/simplebar.min.js version: true TranslationFile: class: BodyPattern @@ -19488,6 +19517,12 @@ plugins: xpath: //comment()[contains(., 'name="sti"')] pattern: !ruby/regexp //i version: true + smashing-blocks: + ComposerFile: + class: ConfigParser + path: package.json + key: version + version: true smilebox-widget: QueryParameter: files: @@ -20391,6 +20426,11 @@ plugins: - public/css/super-web-share-public.css - public/js/super-web-share-public.js version: true + superb-tables: + QueryParameter: + files: + - css/data-table.css + version: true superior-faq: QueryParameter: files: @@ -22490,6 +22530,12 @@ plugins: files: - js/script.js version: true + voice-dialog-navigation: + ComposerFile: + class: ConfigParser + path: composer.json + key: version + version: true voice-search: QueryParameter: files: @@ -23726,6 +23772,11 @@ plugins: - public/css/fa/css/font-awesome.min.css - public/js/wc_ss_btns-public.js version: true + woo-products-by-category: + QueryParameter: + files: + - public/css/wcpbc-styles.css + version: true woo-products-coming-soon: QueryParameter: files: @@ -24379,15 +24430,15 @@ plugins: version: true wordpress-seo: Comment: - xpath: //comment()[contains(., 'Yoast')] + xpath: "//comment()[contains(., 'Yoast')]" pattern: !ruby/regexp '/optimized with the Yoast(?: WordPress)? SEO plugin v(?[^\s]+) \-|\/ Yoast WordPress SEO plugin\./i' version: true wordpress-seo-premium: Comment: - xpath: //comment()[contains(., 'Yoast')] - pattern: !ruby/regexp '/optimized with the Yoast SEO Premium plugin v(?[^\s]+) - \-|\/ Yoast SEO Premium plugin\./i' + xpath: "//comment()[contains(., 'Yoast')]" + pattern: !ruby/regexp /optimized with the Yoast SEO Premium plugin v(?[^\s]+) + \-|\/ Yoast SEO Premium plugin\./i version: true wordpress-simple-paypal-shopping-cart: Comment: @@ -26505,6 +26556,12 @@ plugins: - public/css/customizer-end-point-public.css - public/js/customizer-end-point-public.js version: true + wp-rest-yoast-meta: + TranslationFile: + class: BodyPattern + path: languages/wp-rest-yoast-meta.pot + pattern: !ruby/regexp '/"Project\-Id\-Version: WP REST Yoast Meta (?\d+\.[\.\d]+)/i' + version: true wp-restaurant-listings: QueryParameter: files: @@ -26913,6 +26970,12 @@ plugins: xpath: //comment()[contains(., "WP-SWFObject")] pattern: !ruby/regexp /WP\-SWFObject (?\d+\.[\.\d]+)/i version: true + wp-switch-user: + QueryParameter: + files: + - public/css/ace_switch_user-public.css + - public/js/ace_switch_user-public.js + version: true wp-syntax: QueryParameter: files: diff --git a/spec/fixtures/dynamic_finders/expected.yml b/spec/fixtures/dynamic_finders/expected.yml index 934cb72a..c84f3dd1 100644 --- a/spec/fixtures/dynamic_finders/expected.yml +++ b/spec/fixtures/dynamic_finders/expected.yml @@ -159,6 +159,13 @@ plugins: interesting_entries: - http://wp.lab/wp-content/plugins/3cx-clicktotalk/includes/js/callus.js?ver=16.0.0 confidence: 10 + 3cx-live-chat-talk: + QueryParameter: + number: 1.0.1 + found_by: Query Parameter (Passive Detection) + interesting_entries: + - http://wp.lab/wp-content/plugins/3cx-live-chat-talk/includes/js/callus.js?ver=1.0.1 + confidence: 10 3cx-webinars: QueryParameter: number: 10.4.2 @@ -11296,6 +11303,13 @@ plugins: interesting_entries: - 'http://wp.lab/wp-content/plugins/gosign-masonry-post-block/package.json, Match: ''1.0.0''' + gosign-promo-box-block: + ComposerFile: + number: 1.0.0 + found_by: Composer File (Aggressive Detection) + interesting_entries: + - 'http://wp.lab/wp-content/plugins/gosign-promo-box-block/package.json, Match: + ''1.0.0''' gosign-simple-teaser-block: ComposerFile: number: 1.0.0 @@ -14117,6 +14131,13 @@ plugins: interesting_entries: - http://wp.lab/wp-content/plugins/kk-blog-card/index.js?ver=1.2 confidence: 10 + klarity-message-action-block: + ComposerFile: + number: 1.0.2 + found_by: Composer File (Aggressive Detection) + interesting_entries: + - 'http://wp.lab/wp-content/plugins/klarity-message-action-block/package.json, + Match: ''1.0.2''' klaro-consent-manager: QueryParameter: number: '1.0' @@ -17810,6 +17831,14 @@ plugins: - http://wp.lab/wp-content/plugins/notification-box-lite/css/notification-box.css?ver=1.0 - http://wp.lab/wp-content/plugins/notification-box-lite/js/notification-box.js?ver=1.0 confidence: 20 + notification-system: + QueryParameter: + number: 1.0.1 + found_by: Query Parameter (Passive Detection) + interesting_entries: + - http://wp.lab/wp-content/plugins/notification-system/css/style.css?ver=1.0.1 + - http://wp.lab/wp-content/plugins/notification-system/dist/js/notificationsRESTAPI/app.js?ver=1.0.1 + confidence: 20 notify-connect-par-jm-crea: MetaTag: number: '2.5' @@ -17974,6 +18003,13 @@ plugins: interesting_entries: - 'http://wp.lab/wp-content/plugins/nwa/languages/nwa.pot, Match: ''"Project-Id-Version: Navionics-WebAPI 0.1.0''' + nx-ads: + QueryParameter: + number: 1.0.0 + found_by: Query Parameter (Passive Detection) + interesting_entries: + - http://wp.lab/wp-content/plugins/nx-ads/public/css/nx-ads-public.css?ver=1.0.0 + confidence: 10 nxtbridge-ledger: QueryParameter: number: 1.3.0 @@ -19325,7 +19361,8 @@ plugins: interesting_entries: - http://wp.lab/wp-content/plugins/podcast-player/public/css/podcast-player-public.css?ver=1.0.0 - http://wp.lab/wp-content/plugins/podcast-player/public/js/podcast-player-public.js?ver=1.0.0 - confidence: 20 + - http://wp.lab/wp-content/plugins/podcast-player/public/js/simplebar.min.js?ver=1.0.0 + confidence: 30 TranslationFile: number: 1.0.0 found_by: Translation File (Aggressive Detection) @@ -24457,6 +24494,12 @@ plugins: found_by: Comment (Passive Detection) interesting_entries: - 'http://wp.lab/, Match: ''''' + smashing-blocks: + ComposerFile: + number: 1.0.0 + found_by: Composer File (Aggressive Detection) + interesting_entries: + - 'http://wp.lab/wp-content/plugins/smashing-blocks/package.json, Match: ''1.0.0''' smilebox-widget: QueryParameter: number: '1.0' @@ -25616,6 +25659,13 @@ plugins: - http://wp.lab/wp-content/plugins/super-web-share/public/css/super-web-share-public.css?ver=1.0.0 - http://wp.lab/wp-content/plugins/super-web-share/public/js/super-web-share-public.js?ver=1.0.0 confidence: 20 + superb-tables: + QueryParameter: + number: 1.0.0 + found_by: Query Parameter (Passive Detection) + interesting_entries: + - http://wp.lab/wp-content/plugins/superb-tables/css/data-table.css?ver=1.0.0 + confidence: 10 superior-faq: QueryParameter: number: 1.0.2 @@ -28250,6 +28300,13 @@ plugins: interesting_entries: - http://wp.lab/wp-content/plugins/vk-link-target-controller/js/script.js?ver=1.3.0 confidence: 10 + voice-dialog-navigation: + ComposerFile: + number: 1.2.2 + found_by: Composer File (Aggressive Detection) + interesting_entries: + - 'http://wp.lab/wp-content/plugins/voice-dialog-navigation/composer.json, Match: + ''1.2.2''' voice-search: QueryParameter: number: 1.2.1 @@ -29819,6 +29876,13 @@ plugins: - http://wp.lab/wp-content/plugins/woo-product-social-sharing/public/css/fa/css/font-awesome.min.css?ver=1.7 - http://wp.lab/wp-content/plugins/woo-product-social-sharing/public/js/wc_ss_btns-public.js?ver=1.7 confidence: 40 + woo-products-by-category: + QueryParameter: + number: '1.1' + found_by: Query Parameter (Passive Detection) + interesting_entries: + - http://wp.lab/wp-content/plugins/woo-products-by-category/public/css/wcpbc-styles.css?ver=1.1 + confidence: 10 woo-products-coming-soon: QueryParameter: number: '1.0' @@ -33305,6 +33369,13 @@ plugins: - http://wp.lab/wp-content/plugins/wp-rest-theme-mod-endpoint/public/css/customizer-end-point-public.css?ver=1.0.0 - http://wp.lab/wp-content/plugins/wp-rest-theme-mod-endpoint/public/js/customizer-end-point-public.js?ver=1.0.0 confidence: 20 + wp-rest-yoast-meta: + TranslationFile: + number: 2019.1.0 + found_by: Translation File (Aggressive Detection) + interesting_entries: + - 'http://wp.lab/wp-content/plugins/wp-rest-yoast-meta/languages/wp-rest-yoast-meta.pot, + Match: ''"Project-Id-Version: WP REST Yoast Meta 2019.1.0''' wp-restaurant-listings: QueryParameter: number: 1.0.0 @@ -33822,6 +33893,14 @@ plugins: found_by: Comment (Passive Detection) interesting_entries: - 'http://wp.lab/, Match: ''WP-SWFObject 2.4''' + wp-switch-user: + QueryParameter: + number: 1.0.0 + found_by: Query Parameter (Passive Detection) + interesting_entries: + - http://wp.lab/wp-content/plugins/wp-switch-user/public/css/ace_switch_user-public.css?ver=1.0.0 + - http://wp.lab/wp-content/plugins/wp-switch-user/public/js/ace_switch_user-public.js?ver=1.0.0 + confidence: 20 wp-syntax: QueryParameter: number: '1.1' diff --git a/spec/fixtures/dynamic_finders/plugin_version/gosign-promo-box-block/composer_file/package.json b/spec/fixtures/dynamic_finders/plugin_version/gosign-promo-box-block/composer_file/package.json new file mode 100644 index 00000000..ffff37dd --- /dev/null +++ b/spec/fixtures/dynamic_finders/plugin_version/gosign-promo-box-block/composer_file/package.json @@ -0,0 +1,13 @@ +{ + "name": "gosign-promo-box", + "version": "1.0.0", + "private": true, + "scripts": { + "start": "cgb-scripts start", + "build": "cgb-scripts build", + "eject": "cgb-scripts eject" + }, + "dependencies": { + "cgb-scripts": "1.15.0" + } +} diff --git a/spec/fixtures/dynamic_finders/plugin_version/klarity-message-action-block/composer_file/package.json b/spec/fixtures/dynamic_finders/plugin_version/klarity-message-action-block/composer_file/package.json new file mode 100644 index 00000000..6a008469 --- /dev/null +++ b/spec/fixtures/dynamic_finders/plugin_version/klarity-message-action-block/composer_file/package.json @@ -0,0 +1,14 @@ +{ + "name": "message-action-block", + "version": "1.0.2", + "private": true, + "scripts": { + "start": "cgb-scripts start", + "build": "cgb-scripts build", + "eject": "cgb-scripts eject" + }, + "dependencies": { + "@wordpress/rich-text": "^3.0.7", + "cgb-scripts": "1.14.0" + } +} diff --git a/spec/fixtures/dynamic_finders/plugin_version/query_parameter_passive_all.html b/spec/fixtures/dynamic_finders/plugin_version/query_parameter_passive_all.html index 9e124828..bbc6699d 100644 --- a/spec/fixtures/dynamic_finders/plugin_version/query_parameter_passive_all.html +++ b/spec/fixtures/dynamic_finders/plugin_version/query_parameter_passive_all.html @@ -24,6 +24,10 @@ + + + + @@ -7246,6 +7250,11 @@ + + + + + @@ -7324,6 +7333,10 @@ + + + + @@ -7895,6 +7908,7 @@ + @@ -10471,6 +10485,10 @@ + + + + @@ -12182,6 +12200,10 @@ + + + + @@ -13834,6 +13856,11 @@ + + + + + diff --git a/spec/fixtures/dynamic_finders/plugin_version/smashing-blocks/composer_file/package.json b/spec/fixtures/dynamic_finders/plugin_version/smashing-blocks/composer_file/package.json new file mode 100644 index 00000000..658e1dc6 --- /dev/null +++ b/spec/fixtures/dynamic_finders/plugin_version/smashing-blocks/composer_file/package.json @@ -0,0 +1,22 @@ +{ + "name": "my-block-cgb-guten-block", + "version": "1.0.0", + "private": true, + "scripts": { + "start": "cgb-scripts start", + "build": "cgb-scripts build", + "eject": "cgb-scripts eject" + }, + "dependencies": { + "@wordpress/blocks": "^6.0.7", + "cgb-scripts": "1.13.0", + "classnames": "^2.2.6", + "md5": "^2.2.1", + "moment": "^2.23.0", + "prop-types": "^15.7.2", + "query-string": "^6.2.0", + "querystringify": "^2.1.0", + "react-datetime": "^2.16.3", + "yearn": "^2.3.1" + } +} diff --git a/spec/fixtures/dynamic_finders/plugin_version/voice-dialog-navigation/composer_file/composer.json b/spec/fixtures/dynamic_finders/plugin_version/voice-dialog-navigation/composer_file/composer.json new file mode 100644 index 00000000..6b2d0098 --- /dev/null +++ b/spec/fixtures/dynamic_finders/plugin_version/voice-dialog-navigation/composer_file/composer.json @@ -0,0 +1,17 @@ +{ + "name": "speak2web/voice-dialog-navigation", + "description": "Allows visitors to navigate the web page using their voice and ask questions.", + "version": "1.2.2", + "type": "wordpress-plugin", + "license": "GPL-2.0+", + "authors": [ + { + "name": "mspanwa2", + "email": "support@speak2web.atlassian.net ", + "homepage": "https://speak2web.com", + "role": "Developer" + } + ], + "require": { + } +} diff --git a/spec/fixtures/dynamic_finders/plugin_version/wp-rest-yoast-meta/translation_file/languages/wp-rest-yoast-meta.pot b/spec/fixtures/dynamic_finders/plugin_version/wp-rest-yoast-meta/translation_file/languages/wp-rest-yoast-meta.pot new file mode 100644 index 00000000..523de808 --- /dev/null +++ b/spec/fixtures/dynamic_finders/plugin_version/wp-rest-yoast-meta/translation_file/languages/wp-rest-yoast-meta.pot @@ -0,0 +1,35 @@ +# Copyright (C) 2019 Acato +# This file is distributed under the same license as the WP REST Yoast Meta plugin. +msgid "" +msgstr "" +"Project-Id-Version: WP REST Yoast Meta 2019.1.0\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-rest-yoast-meta\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"POT-Creation-Date: 2019-01-31T15:39:11+01:00\n" +"PO-Revision-Date: 2019-01-31T15:39:11+01:00\n" +"X-Generator: WP-CLI 2.0.1\n" +"X-Domain: wp-rest-yoast-meta\n" + +#. Plugin Name of the plugin +msgid "WP REST Yoast Meta" +msgstr "" + +#. Description of the plugin +msgid "Add yoast meta information to the WP REST API" +msgstr "" + +#. Author of the plugin +msgid "Acato" +msgstr "" + +#. Author URI of the plugin +msgid "https://www.acato.nl" +msgstr "" + +#: admin/class-admin.php:69 +msgid "WP REST Yoast Meta requires Yoast SEO or Yoast SEO Premium to be installed and activated" +msgstr ""