Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • J jruby-maven-plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The TorqueBox Project
  • jruby-maven-plugins
  • Issues
  • #89
Closed
Open
Issue created Mar 01, 2017 by Vasili Zolotov@vasili-zolotov

support for Ruby 2.x?

I am getting errors like this while doing maven build:

...
Downloading: http://rubygems-proxy.torquebox.org/releases/rubygems/swagger-diff/1.0.1/swagger-diff-1.0.1.pom
Downloaded: http://rubygems-proxy.torquebox.org/releases/rubygems/swagger-diff/1.0.1/swagger-diff-1.0.1.pom (4 KB at 4.5 KB/sec)
Downloading: http://rubygems-proxy.torquebox.org/releases/rubygems/swagger-diff/1.0.1/swagger-diff-1.0.1.gem
Downloaded: http://rubygems-proxy.torquebox.org/releases/rubygems/swagger-diff/1.0.1/swagger-diff-1.0.1.gem (84 KB at 96.9 KB/sec)
[INFO] Successfully installed swagger-diff-1.0.1
[INFO] ERROR:  Error installing /Users/zolotov/.m2/repository/rubygems/addressable/2.5.0/addressable-2.5.0.gem:
[INFO] 	addressable requires Ruby version >= 2.0.
[INFO] 1 gem installed
[INFO] ERROR:  Error installing /Users/zolotov/.m2/repository/rubygems/public_suffix/2.0.5/public_suffix-2.0.5.gem:
[INFO] 	public_suffix requires Ruby version >= 2.0.
...

pom.xml snippet:

      <plugin>
        <groupId>de.saumya.mojo</groupId>
        <artifactId>gem-maven-plugin</artifactId>
        <version>${gem-maven.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>exec</goal>
            </goals>
            <phase>compile</phase>
            <configuration>
              <execArgs>${project.build.directory}/rubygems/bin/swagger-diff -i ${old} ${new}</execArgs>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>rubygems</groupId>
            <artifactId>swagger-diff</artifactId>
            <version>${swagger-diff.version}</version>
            <type>gem</type>
          </dependency>
        </dependencies>
      </plugin>

Unfortunately there's no version of swagger-diff that would work with Ruby <2.0. Is there a way to make this work? I believe jruby supports ruby 2.2 now.

Assignee
Assign to
Time tracking