Skip to content

Commit a32280d

Browse files
committed
Revert accidental changed deprecation text messages
1 parent 7e13011 commit a32280d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

base-plugin/src/main/groovy/com/github/jrubygradle/JRubyExec.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ class JRubyExec extends JavaExec implements JRubyAwareTask, JRubyExecSpec {
184184
/** If it is required that a JRubyExec task needs to be executed with a different version of JRuby that the
185185
* globally configured one, it can be done by setting it here.
186186
*
187-
* @deprecated Use{@code jruby.getProposedJRubyVersion( )} instead.
187+
* @deprecated Use {@code jruby.getJrubyVersion( )} instead.
188188
*
189189
*/
190190
@Deprecated
191191
String getJrubyVersion() {
192-
deprecated('Use jruby.getProposedJRubyVersion() rather getProposedJRubyVersion()')
192+
deprecated('Use jruby.getJrubyVersion() rather getJrubyVersion()')
193193
jruby.jrubyVersion
194194
}
195195

base-plugin/src/main/groovy/com/github/jrubygradle/JRubyPluginExtension.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class JRubyPluginExtension extends AbstractCombinedProjectTaskExtension {
111111
*/
112112
@Deprecated
113113
String getDefaultVersion() {
114-
deprecated('Use getProposedJRubyVersion() rather than getDefaultVersion()')
114+
deprecated('Use getJrubyVersion() rather than getDefaultVersion()')
115115
getJrubyVersion()
116116
}
117117

base-plugin/src/test/groovy/com/github/jrubygradle/JRubyExecTaskSpec.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ class JRubyExecTaskSpec extends Specification {
7272
when:
7373
project.configure(execTask) {
7474
jruby.gemConfiguration configurationName
75-
jruby.getProposedJRubyVersion newVersion
75+
jruby.jrubyVersion newVersion
7676
}
7777
project.evaluate()
7878

7979
then:
80-
execTask.jruby.jrubyVersion != project.jruby.getProposedJRubyVersion
80+
execTask.jruby.jrubyVersion != project.jruby.jrubyVersion
8181

8282
and: "jrubyConfigurationName must point to this new configuration"
8383
execTask.jruby.getGemConfiguration().name == configurationName

0 commit comments

Comments
 (0)