woyo-server 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/woyo/server/version.rb +1 -1
- data/public/server/css/server.css +1 -0
- data/public/server/default.html +2 -2
- data/public/server/js/server.js +31 -7
- data/spec/woyo/server/1_server_spec.rb +2 -2
- data/todo.txt +9 -0
- data/woyo-server.gemspec +1 -1
- metadata +6 -6
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: cae88a243f672c1aba5dfafb7f64e01ee70bde2b
         | 
| 4 | 
            +
              data.tar.gz: 622f6f07b59c8ed53892524f94db081818319bee
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 201db2e645afb7ce911707a326e5ddb96b196b6c5303494ef8e84aa9f050d5ab1d7146fc2a4d9640a5b861221753fbdd1b71f48da9683f54a42f74f838c995f3
         | 
| 7 | 
            +
              data.tar.gz: ef2e303e73846a0ada24307d39bfbe2642051d960964060f278c393f73d2169677459f02f9e9ef3ff413147ed980e4a8bc9944062d4b9d22d1a3bacd978f4927
         | 
    
        data/README.md
    CHANGED
    
    
    
        data/lib/woyo/server/version.rb
    CHANGED
    
    
    
        data/public/server/default.html
    CHANGED
    
    | @@ -25,8 +25,8 @@ | |
| 25 25 | 
             
                    <div class="panel">
         | 
| 26 26 | 
             
                      <h3>Links</h3>
         | 
| 27 27 | 
             
                      <ul>
         | 
| 28 | 
            -
                        <li><a href='https://github. | 
| 29 | 
            -
                        <li><a href='https://github. | 
| 28 | 
            +
                        <li><a href='https://iqeo.github.io/woyo-world/'>Woyo-World documentation</a></li>
         | 
| 29 | 
            +
                        <li><a href='https://iqeo.github.io/woyo-server/'>Woyo-Server documentation</a></li>
         | 
| 30 30 | 
             
                      </ul>
         | 
| 31 31 | 
             
                    </div>
         | 
| 32 32 | 
             
                  </div>
         | 
    
        data/public/server/js/server.js
    CHANGED
    
    | @@ -2,19 +2,43 @@ | |
| 2 2 | 
             
            $(document).foundation();
         | 
| 3 3 |  | 
| 4 4 | 
             
            $(document).ready( function() {
         | 
| 5 | 
            -
             | 
| 5 | 
            +
             | 
| 6 | 
            +
              var woyo = {
         | 
| 7 | 
            +
                time: {
         | 
| 8 | 
            +
                  page_in:  1000,
         | 
| 9 | 
            +
                  page_out: 1000,
         | 
| 10 | 
            +
                  go_slide: 1000,
         | 
| 11 | 
            +
                  go_fade:  1000,
         | 
| 12 | 
            +
                  go_delay: 2000
         | 
| 13 | 
            +
                }
         | 
| 14 | 
            +
              };
         | 
| 15 | 
            +
              
         | 
| 16 | 
            +
              $("body").fadeIn(woyo.time.page_in);
         | 
| 17 | 
            +
             | 
| 6 18 | 
             
              $(".way .go").click( function() {
         | 
| 7 19 | 
             
                $go_link = $(this);
         | 
| 8 20 | 
             
                go_url = $go_link.attr("href");
         | 
| 9 21 | 
             
                $.get( go_url, function(json) {
         | 
| 10 | 
            -
                  if ( json. | 
| 11 | 
            -
                     | 
| 12 | 
            -
             | 
| 13 | 
            -
             | 
| 14 | 
            -
             | 
| 22 | 
            +
                  if ( json.going.length > 0 ) {
         | 
| 23 | 
            +
                    // fix: animate slide with an easing function that begins and ends less abruptly
         | 
| 24 | 
            +
                    $go_link.siblings(".going")
         | 
| 25 | 
            +
                    .text(json.going)
         | 
| 26 | 
            +
                    .slideDown(woyo.time.go_slide)
         | 
| 27 | 
            +
                    .animate({opacity: 1}, woyo.time.go_fade)
         | 
| 28 | 
            +
                    .delay(woyo.time.go_delay).queue( function(next) {
         | 
| 29 | 
            +
                      if ( json.go == true ) {
         | 
| 30 | 
            +
                        $("body").fadeOut(woyo.time.page_out, function() {
         | 
| 31 | 
            +
                          window.location.reload(true);
         | 
| 32 | 
            +
                        });
         | 
| 33 | 
            +
                      };
         | 
| 34 | 
            +
                      next();
         | 
| 15 35 | 
             
                    });
         | 
| 16 36 | 
             
                  } else {
         | 
| 17 | 
            -
                     | 
| 37 | 
            +
                    if ( json.go == true ) {
         | 
| 38 | 
            +
                      $("body").fadeOut(woyo.time.page_out, function() {
         | 
| 39 | 
            +
                        window.location.reload(true);
         | 
| 40 | 
            +
                      });
         | 
| 41 | 
            +
                    };
         | 
| 18 42 | 
             
                  };
         | 
| 19 43 | 
             
                });
         | 
| 20 44 | 
             
                return false;
         | 
| @@ -76,8 +76,8 @@ describe Woyo::Server, :type => :feature  do | |
| 76 76 | 
             
                it 'welcome page links to github docs' do
         | 
| 77 77 | 
             
                  visit '/'
         | 
| 78 78 | 
             
                  status_code.should eq 200
         | 
| 79 | 
            -
                  page.should have_link '', href: 'https://github. | 
| 80 | 
            -
                  page.should have_link '', href: 'https://github. | 
| 79 | 
            +
                  page.should have_link '', href: 'https://iqeo.github.io/woyo-world/'
         | 
| 80 | 
            +
                  page.should have_link '', href: 'https://iqeo.github.io/woyo-server/'
         | 
| 81 81 | 
             
                end
         | 
| 82 82 |  | 
| 83 83 | 
             
                it 'uses foundation framework' do
         | 
    
        data/todo.txt
    CHANGED
    
    | @@ -1,4 +1,13 @@ | |
| 1 1 |  | 
| 2 | 
            +
            ! Smooth transitions for going ways
         | 
| 3 | 
            +
            ! Multiline descriptions
         | 
| 4 | 
            +
                <br/>   => <br/>        # html in text    
         | 
| 5 | 
            +
                <br>    => <br/>        # html in text + fixup tag ?
         | 
| 6 | 
            +
                </p><p> => </p><p ... > # html in text + set params for new paragraph
         | 
| 7 | 
            +
                </p><p> => <p></p>      # html in text
         | 
| 8 | 
            +
                \n      => <br/>        # convert
         | 
| 9 | 
            +
                \n\n    => </p><p ... > # convert - set params for new paragraph
         | 
| 10 | 
            +
             | 
| 2 11 | 
             
            Debugger
         | 
| 3 12 | 
             
            Use haml tenplate for default page including layout.haml
         | 
| 4 13 | 
             
            Test location description states
         | 
    
        data/woyo-server.gemspec
    CHANGED
    
    | @@ -25,7 +25,7 @@ Gem::Specification.new do |spec| | |
| 25 25 | 
             
              spec.add_development_dependency "capybara"
         | 
| 26 26 | 
             
              spec.add_development_dependency "selenium-webdriver"
         | 
| 27 27 |  | 
| 28 | 
            -
              spec.add_runtime_dependency "woyo-world", Woyo::SERVER_VERSION
         | 
| 28 | 
            +
              spec.add_runtime_dependency "woyo-world", ">= #{Woyo::SERVER_VERSION}"
         | 
| 29 29 | 
             
              spec.add_runtime_dependency "sinatra", "~> 1.4.5"
         | 
| 30 30 | 
             
              spec.add_runtime_dependency "sinatra-contrib", "~> 1.4.2"
         | 
| 31 31 | 
             
              spec.add_runtime_dependency "sinatra-partial"
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: woyo-server
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.7
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Gerard Fowley
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2014- | 
| 11 | 
            +
            date: 2014-07-09 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: bundler
         | 
| @@ -98,16 +98,16 @@ dependencies: | |
| 98 98 | 
             
              name: woyo-world
         | 
| 99 99 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 100 100 | 
             
                requirements:
         | 
| 101 | 
            -
                - -  | 
| 101 | 
            +
                - - ">="
         | 
| 102 102 | 
             
                  - !ruby/object:Gem::Version
         | 
| 103 | 
            -
                    version: 0.0. | 
| 103 | 
            +
                    version: 0.0.7
         | 
| 104 104 | 
             
              type: :runtime
         | 
| 105 105 | 
             
              prerelease: false
         | 
| 106 106 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 107 107 | 
             
                requirements:
         | 
| 108 | 
            -
                - -  | 
| 108 | 
            +
                - - ">="
         | 
| 109 109 | 
             
                  - !ruby/object:Gem::Version
         | 
| 110 | 
            -
                    version: 0.0. | 
| 110 | 
            +
                    version: 0.0.7
         | 
| 111 111 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 112 112 | 
             
              name: sinatra
         | 
| 113 113 | 
             
              requirement: !ruby/object:Gem::Requirement
         |