You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by AhyoungRyu <gi...@git.apache.org> on 2016/07/12 09:29:21 UTC

[GitHub] zeppelin pull request #1167: [ZEPPELIN-813] Update safe_yaml version 0.9.7 -...

GitHub user AhyoungRyu opened a pull request:

    https://github.com/apache/zeppelin/pull/1167

    [ZEPPELIN-813] Update safe_yaml version 0.9.7 -> 1.0.4

    ### What is this PR for?
    This PR will fix [ZEPPELIN-813](https://issues.apache.org/jira/browse/ZEPPELIN-813).
    I'm not sure what environment exactly generate this errors. I saw the below error in OS X 10.11.3 
    and ruby 2.3.0.
    
    ```
    $ bundle exec jekyll serve --watch
    /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.1.5/lib/commander/user_interaction.rb:328: warning: constant ::TimeoutError is deprecated
    /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.1.5/lib/commander/runner.rb:365:in `block in require_program': program version required (Commander::Runner::CommandError)
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.1.5/lib/commander/runner.rb:364:in `each'
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.1.5/lib/commander/runner.rb:364:in `require_program'
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.1.5/lib/commander/runner.rb:52:in `run!'
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.1.5/lib/commander/delegates.rb:7:in `run!'
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/commander-4.1.5/lib/commander/import.rb:10:in `block in <top (required)>'
    /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/safe_yaml-0.9.7/lib/safe_yaml/syck_node_monkeypatch.rb:42:in `<top (required)>': uninitialized constant Syck (NameError)
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/safe_yaml-0.9.7/lib/safe_yaml.rb:200:in `require'
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/safe_yaml-0.9.7/lib/safe_yaml.rb:200:in `<module:YAML>'
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/safe_yaml-0.9.7/lib/safe_yaml.rb:132:in `<top (required)>'
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/jekyll-1.3.0/lib/jekyll.rb:21:in `require'
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/jekyll-1.3.0/lib/jekyll.rb:21:in `<top (required)>'
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/jekyll-1.3.0/bin/jekyll:7:in `require'
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/jekyll-1.3.0/bin/jekyll:7:in `<top (required)>'
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/bin/jekyll:23:in `load'
    	from /Users/cyhsutw/.rbenv/versions/2.3.0/bin/jekyll:23:in `<main>'
    ```
    
    Maybe this error will be gone with `bundle update`. But it would be better we set `safe_yaml` version for the other users. So I just updated `safe_yaml` version from `0.9.7` to `1.0.4` in `Gemfile.lock` manually. And confirmed that there are no compatibility issues with ruby version `2.3.0`(latest stable version), `2.2.1`, `2.1.1` and `2.0.0`(this version is no longer maintained by ruby). 
    
    I also updated `docs/README.md` since we need ruby version higher than `2.0.0` not `1.9.3`. Please see [here](https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/#requirements).
    
    ### What type of PR is it?
    Bug Fix & Documentation
    
    ### What is the Jira issue?
    [ZEPPELIN-813](https://issues.apache.org/jira/browse/ZEPPELIN-813)
    
    ### How should this be tested?
    
    ###### 1. Apply this patch
    
    ```
    $ cd docs
    $ bundle install
    ```
    If you already installed dependencies before, you need 
    
    ```
    $ bundle update safe_yaml
    ```
    
    ###### 2. Check what version of `safe_yaml` is installed -> `1.0.4` should be installed. Then
    
    ```
    $ bundle exec jekyll serve --watch
    ```
    It should be run with no issues.
    
    ### Questions:
    * Does the licenses files need update? no
    * Is there breaking changes for older versions? no
    * Does this needs documentation? no


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/AhyoungRyu/zeppelin ZEPPELIN-813

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/1167.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1167
    
----
commit a2fd980f92b3c7f1cff6e82f255dfac19e801d99
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-07-12T08:55:00Z

    Update safe_yaml version 0.9.7 -> 1.0.4

commit 9cf8b421b5f54d5921007e267c9291493ccc6272
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-07-12T08:55:16Z

    Update docs/README.md

commit 458957d5b8f2b93e83d1a914ed2d4d782244b869
Author: AhyoungRyu <fb...@hanmail.net>
Date:   2016-07-12T08:58:02Z

    Add a newline

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin pull request #1167: [ZEPPELIN-813] Update safe_yaml version 0.9.7 -...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/zeppelin/pull/1167


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1167: [ZEPPELIN-813] Update safe_yaml version 0.9.7 -> 1.0.4

Posted by AhyoungRyu <gi...@git.apache.org>.
Github user AhyoungRyu commented on the issue:

    https://github.com/apache/zeppelin/pull/1167
  
    Can someone review this one? As I said in the description, 
    >confirmed that there are no compatibility issues with ruby version 2.3.0(latest stable version), 2.2.1, 2.1.1 and 2.0.0(this version is no longer maintained by ruby).
    
    There will be no problem with just updating `safe_yaml` version.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] zeppelin issue #1167: [ZEPPELIN-813] Update safe_yaml version 0.9.7 -> 1.0.4

Posted by minahlee <gi...@git.apache.org>.
Github user minahlee commented on the issue:

    https://github.com/apache/zeppelin/pull/1167
  
    LGTM. merge it if there is no more discussion


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---