Skip to content

Commit 6f54631

Browse files
authored
Merge pull request #325 from cloudinary/add/autoversion-readme
Autoversion readme
2 parents 77bb6bc + c56040c commit 6f54631

File tree

4 files changed

+50
-26
lines changed

4 files changed

+50
-26
lines changed

gruntfile.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ module.exports = function ( grunt ) {
22
// Load all Grunt plugins.
33
require( 'load-grunt-tasks' )( grunt );
44

5+
const pluginVersion = grunt.file
6+
.read( 'cloudinary.php' )
7+
.match( /Version:\s*(.+)$/im )[ 1 ];
8+
59
grunt.initConfig( {
610
dist_dir: 'build',
711

@@ -25,6 +29,19 @@ module.exports = function ( grunt ) {
2529
},
2630
},
2731

32+
replace: {
33+
version: {
34+
src: '<%= dist_dir %>/readme.txt',
35+
overwrite: true,
36+
replacements: [
37+
{
38+
from: 'STABLETAG',
39+
to: pluginVersion,
40+
},
41+
],
42+
},
43+
},
44+
2845
compress: {
2946
release: {
3047
options: {
@@ -57,7 +74,7 @@ module.exports = function ( grunt ) {
5774
},
5875
} );
5976

60-
grunt.registerTask( 'package', [ 'clean', 'copy', 'compress' ] );
77+
grunt.registerTask( 'package', [ 'clean', 'copy', 'replace', 'compress' ] );
6178

6279
grunt.registerTask( 'deploy', [ 'package', 'wp_deploy' ] );
6380

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"grunt-contrib-compress": "^1.6.0",
9797
"grunt-contrib-copy": "^1.0.0",
9898
"grunt-shell": "3.0.1",
99+
"grunt-text-replace": "^0.4.0",
99100
"grunt-wp-deploy": "2.1.2",
100101
"husky": "^4.3.7",
101102
"istanbul-lib-coverage": "3.0.0",

readme.txt

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ Tags: image, video, DAM, optimization, CDN
44
Requires at least: 4.7
55
Tested up to: 5.6
66
Requires PHP: 5.6
7-
Stable tag: 2.4.1
7+
Stable tag: STABLETAG
88
License: GPLv2
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

11-
Use Cloudinary's plguin to efficiently create, manage and deliver images, videos, and other media, personalized and optimized for every device and channel.
11+
Use Cloudinary's plugin to efficiently create, manage and deliver images, videos, and other media, personalized and optimized for every device and channel.
1212

1313
== Description ==
1414
Cloudinary's [award-winning plugin](https://www.businesswire.com/news/home/20200923005566/en/Cloudinary-Wins-2020-MarTech-Breakthrough-Award-for-Best-WordPress-Plugin) makes automating your image, video, and rich media workflow easy, offering a variety of features. From media upload to image optimization, video transcoding and manipulation through delivery via global CDNs, everything is offered from within the plugin.
1515

16-
Optimize your site performance and user experience with faster page load times, advanced auto-responsive delivery, and better visual experience. Automate image quality and video encoding settings, scale and crop images using AI to focus on the most important region, apply comprehensive video and image manipulations and effects, and deliver optimized media experiences to any device in any resolution or pixel density.
16+
Optimize your site performance and user experience with faster page load times, advanced auto-responsive delivery, and better visual experience. Automate image quality and video encoding settings, scale and crop images using AI to focus on the most important region, apply comprehensive video and image manipulations and effects, and deliver optimized media experiences to any device in any resolution or pixel density.
1717

18-
And with advanced digital asset management capabilities available in the plugin, you won’t need to leave your WordPress environment. Take full advantage of advanced search, AI-based tagging, rich media editing, collections, structured metadata, and an intuitive UI as well as our Video and Image APIs for headless DAM functionality, making it much easier to manage all of your media in WordPress.
18+
And with advanced digital asset management capabilities available in the plugin, you won’t need to leave your WordPress environment. Take full advantage of advanced search, AI-based tagging, rich media editing, collections, structured metadata, and an intuitive UI as well as our Video and Image APIs for headless DAM functionality, making it much easier to manage all of your media in WordPress.
1919

2020

2121
= Requirements =
@@ -91,15 +91,15 @@ Upgrade is seamless and requires no action from your side.
9191
= Does the plugin sync all of my media to Cloudinary? =
9292

9393
The plugin will automatically sync all of your WordPress media to your Cloudinary account and start delivering assets from Cloudinary.
94-
Your assets in the WP storage will remain intact.
94+
Your assets in the WP storage will remain intact.
9595

9696
= Where can I find more info? =
9797

9898
You can read the plugin [documentation](https://cloudinary.com/documentation/wordpress_integration?utm_source=wp&utm_medium=wpmarketplace&utm_campaign=wpmarketplace)
9999

100100
= Compatibility with other Plugins/Themes =
101101

102-
The following plugins/themes/page-builders might not be fully compatible with the Cloudinary plugin and advised to be tested side-by-side before enabling in production.
102+
The following plugins/themes/page-builders might not be fully compatible with the Cloudinary plugin and advised to be tested side-by-side before enabling in production.
103103

104104
* Divi
105105
* Elementor
@@ -123,14 +123,14 @@ The following plugins/themes/page-builders might not be fully compatible with th
123123

124124
== Changelog ==
125125

126-
= 2.4.1 (07 Jan 2021) =
126+
= 2.4.1 (07 Jan 2021) =
127127

128128
Fixes and improvements:
129129

130-
* Improved server calling efficiency
130+
* Improved server calling efficiency
131131
* More fixes
132132

133-
= 2.4.0 (10 Nov 2020) =
133+
= 2.4.0 (10 Nov 2020) =
134134

135135
New Features:
136136

@@ -143,11 +143,11 @@ Fixes and improvements:
143143
* Fixed an issue with syncing a deleted asset
144144
* Improved the mechanism for removing the Cloudinary account
145145
* The warning message for exceeding the annual unit plan was revised
146-
* Improved the Alt text syncronization from Cloudinary to WordPress
146+
* Improved the Alt text synchronization from Cloudinary to WordPress
147147
* Fixed WPBakery error when inserting an image by the WordPress editor
148148
* Fixed AMP plugin conflict issue
149149

150-
= 2.3.0 (05 Oct 2020) =
150+
= 2.3.0 (05 Oct 2020) =
151151

152152
New Features:
153153

@@ -160,37 +160,37 @@ Fixes and improvements:
160160
* Fixed 'Resource not found' error when changing credentials
161161
* Fixed incompatibility with text media block
162162

163-
= 2.2.1 (30 Sep 2020) =
163+
= 2.2.1 (30 Sep 2020) =
164164

165165
Fixes and Improvements:
166166

167167
* Fixed an error when toggling 'featured image overwrite' on a custom post type
168168

169169

170-
= 2.2.0 (08 Sep 2020) =
170+
= 2.2.0 (08 Sep 2020) =
171171

172-
New Features:
172+
New Features:
173173

174174
* You can now off-load all assets from WordPress to Cloudinary!!
175175
* Automatically convert unsupported media file types (such as INDD, PSD, TIFF, etc) to WordPress supported file types
176176
* Synchronization mechanism was re-built and now exposes a more granular status updates
177177
* Lazy load polyfills for outdated browsers
178178
* Add the ability to overwrite the global transformation to a feature image
179-
* High quota usage alert is now dismissable
179+
* High quota usage alert is now dismissible
180180
* Updated Cloudinary brand
181181

182182

183183
Fixes and Improvements:
184184

185-
* Sync tab UI improvements
186-
* Various performance improvements
185+
* Sync tab UI improvements
186+
* Various performance improvements
187187
* Fixed an issues where excessive transformations being created due to breakpoints not disabling
188188
* Sync assets to allow for unique naming, to prevent overwriting existing items
189-
190189

191-
= 2.1.9 (04 Aug 2020) =
192190

193-
Fixes and Improvements:
191+
= 2.1.9 (04 Aug 2020) =
192+
193+
Fixes and Improvements:
194194

195195
* Upgraded the Cloudinary video version
196196
* Added two new synced icons: Downloading and Syncing meta data
@@ -204,15 +204,15 @@ Fixes and Improvements:
204204
- Fixed Overwrite transformations on videos
205205
- Fixed excessive backslash stripping
206206

207-
= 2.1.2 (09 Jun 2020) =
207+
= 2.1.2 (09 Jun 2020) =
208208

209-
Fixes and Improvements:
209+
Fixes and Improvements:
210210

211211
* Fixed cases where the image size were added to the URL.
212212
* Added support to dashes ('-') in the connection string.
213213
* Added an option to re-sync a single asset to Cloudinary.
214214

215-
= 2.1.1 (01 Jun 2020) =
215+
= 2.1.1 (01 Jun 2020) =
216216

217217
New features:
218218

@@ -223,7 +223,7 @@ New features:
223223
* Global Transformations are now being applied to Featured Images.
224224
* Added an `Account Status` to the dashboard tab, displaying the account usage, quota and metrics.
225225

226-
Fixes and Improvements:
226+
Fixes and Improvements:
227227

228228
* Improved the sync mechanism.
229229
* General bug fixes and performance improvements.
@@ -236,4 +236,4 @@ Fixes and Improvements:
236236
* Release of a new major version of the plugin
237237

238238
== Upgrade Notice ==
239-
Enjoy a seamless upgrade to experience the completely new look and feel of our plugin. Boasting many new features including our digital asset management platform, video player offering advanced capabilities, auto-responsive images, automatic optimizations and transformations, and much more.
239+
Enjoy a seamless upgrade to experience the completely new look and feel of our plugin. Boasting many new features including our digital asset management platform, video player offering advanced capabilities, auto-responsive images, automatic optimizations and transformations, and much more.

0 commit comments

Comments
 (0)