6 Replies Latest reply on Dec 23, 2013 4:31 PM by davidedwardclark

    Jive Apps Deprecated Warnings - Newer Version?

    dfilip

      When I use the Ruby-based 'jiveapps' utility, I receive various warnings, such as:

       

      /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.

      /usr/local/lib/ruby/gems/1.9.1/gems/systemu-2.2.0/lib/systemu.rb:29: Use RbConfig instead of obsolete and deprecated Config.

       

      I believe installed the latest version of jiveapps via gem, but I am not sure why I am getting these warnings.  Does everyone get these, or is this specific to my local setup / version of Ruby?  The version of Ruby I am using is:

       

           ruby 1.9.3p392 (2013-02-22) [i686-linux]

       

      Any similar experiences / fixes would be appreciated.

       

      Thanks!

       

      Dave.

        • Re: Jive Apps Deprecated Warnings - Newer Version?

          I'm getting the same warning too. even when using ruby 1.9.2. Still everything seems to work regardless for now.

          • Not sure why the clt is complaining about ruby. I've opened up a jira for us internally so we can track it. https://jira.jivesoftware.com/browse/JIVE-31386
            • Re: Jive Apps Deprecated Warnings - Newer Version?
              dfilip

              Since Nils Heuer is getting this as well, and he and I are both running Ruby 1.9.x, and others like Uttam Phalnikar are now, who are running Ruby 1.8, I'm wondering if it is just related to the version of Ruby?

               

              Ideally, would be great to have another version of the jiveapps gem that replaces the deprecated API calls with new ones, to eliminate the warnings.  Even if that would break running under 1.8, I believe the gem utility is smart enough to understand about versions and install the proper one.

              • Re: Jive Apps Deprecated Warnings - Newer Version?
                davidedwardclark

                I am also having trouble with the jiveapps gem. I am using Ruby version 2.0.

                 

                I get the following error when I run jiveapps create helloworld. The reason you don't see the iconv error is because I installed iconv. However, all these errors still exist:

                 

                /Library/Ruby/Gems/2.0.0/gems/rest-client-1.6.1/lib/restclient/payload.rb:46:in `read': wrong number of arguments (2 for 0..1) (ArgumentError)

                  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http/generic_request.rb:202:in `copy_stream'

                  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http/generic_request.rb:202:in `send_request_with_body_stream'

                  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http/generic_request.rb:132:in `exec'

                  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:1404:in `block in transport_request'

                  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:1403:in `catch'

                  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:1403:in `transport_request'

                  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:1376:in `request'

                  from /Library/Ruby/Gems/2.0.0/gems/rest-client-1.6.1/lib/restclient/net_http_ext.rb:15:in `request'

                  from /Library/Ruby/Gems/2.0.0/gems/rest-client-1.6.1/lib/restclient/request.rb:167:in `block in transmit'

                  from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:852:in `start'

                  from /Library/Ruby/Gems/2.0.0/gems/rest-client-1.6.1/lib/restclient/request.rb:166:in `transmit'

                  from /Library/Ruby/Gems/2.0.0/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute'

                  from /Library/Ruby/Gems/2.0.0/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in `execute'

                  from /Library/Ruby/Gems/2.0.0/gems/rest-client-1.6.1/lib/restclient/resource.rb:59:in `post'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/client.rb:178:in `process'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/client.rb:162:in `post'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/client.rb:91:in `add_key'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/commands/keys.rb:30:in `add'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/command.rb:46:in `run_internal'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/commands/auth.rb:106:in `save_credentials'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/commands/auth.rb:47:in `get_credentials'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/commands/auth.rb:30:in `user'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/commands/auth.rb:10:in `init_jiveapps'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/commands/auth.rb:6:in `client'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/commands/auth.rb:17:in `check'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/command.rb:46:in `run_internal'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/commands/app.rb:62:in `create'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/command.rb:46:in `run_internal'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/lib/jiveapps/command.rb:19:in `run'

                  from /Library/Ruby/Gems/2.0.0/gems/jiveapps-1.0.7/bin/jiveapps:15:in `<top (required)>'

                  from /usr/bin/jiveapps:23:in `load'

                  from /usr/bin/jiveapps:23:in `<main>'