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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87c8e693d26deb5a3998f39f7c2e6d3e69df026a
4
- data.tar.gz: 4198785cc371867a214a09b4e87d8ae72c2dbfe0
3
+ metadata.gz: cae88a243f672c1aba5dfafb7f64e01ee70bde2b
4
+ data.tar.gz: 622f6f07b59c8ed53892524f94db081818319bee
5
5
  SHA512:
6
- metadata.gz: 9a7e1b47a7bed1ff4a43b06d2eef01c55f240e4f433d50f9eacfbca4b5c88427357e3e4d48f94b3dda0ffa900c12126dddcaa8377dfa862f17abbeff43ceebe6
7
- data.tar.gz: 05d70ebabd602d740197446c06534c3b728be0e629757a342ec1f65013348fb0b877cedf8cc1a369ad5e69878129f73674bf5d43cb2322e259dd0eab121547a7
6
+ metadata.gz: 201db2e645afb7ce911707a326e5ddb96b196b6c5303494ef8e84aa9f050d5ab1d7146fc2a4d9640a5b861221753fbdd1b71f48da9683f54a42f74f838c995f3
7
+ data.tar.gz: ef2e303e73846a0ada24307d39bfbe2642051d960964060f278c393f73d2169677459f02f9e9ef3ff413147ed980e4a8bc9944062d4b9d22d1a3bacd978f4927
data/README.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  TODO: Write a gem description
4
4
 
5
+ ```ruby
6
+ test = [1,2,3]
7
+ test.each do |t|
8
+ puts t
9
+ end
10
+ ```
11
+
5
12
  ## Installation
6
13
 
7
14
  Add this line to your application's Gemfile:
@@ -1,3 +1,3 @@
1
1
  module Woyo
2
- SERVER_VERSION = "0.0.6"
2
+ SERVER_VERSION = "0.0.7"
3
3
  end
@@ -5,6 +5,7 @@ body {
5
5
 
6
6
  p.going {
7
7
  display:none;
8
+ opacity:0;
8
9
  padding-left:1em;
9
10
  }
10
11
 
@@ -25,8 +25,8 @@
25
25
  <div class="panel">
26
26
  <h3>Links</h3>
27
27
  <ul>
28
- <li><a href='https://github.com/iqeo/woyo-world/wiki'>Woyo-World documentation</a></li>
29
- <li><a href='https://github.com/iqeo/woyo-server/wiki'>Woyo-Server documentation</a></li>
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>
@@ -2,19 +2,43 @@
2
2
  $(document).foundation();
3
3
 
4
4
  $(document).ready( function() {
5
- $("body").fadeIn('slow');
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.go == true ) {
11
- $go_link.siblings(".going").text(json.going).fadeIn('slow', function() {
12
- $("body").fadeOut('slow', function() {
13
- window.location.reload(true);
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
- $go_link.siblings(".going").text(json.going).fadeIn('slow');
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.com/iqeo/woyo-world/wiki'
80
- page.should have_link '', href: 'https://github.com/iqeo/woyo-server/wiki'
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.6
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-05-26 00:00:00.000000000 Z
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.6
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.6
110
+ version: 0.0.7
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: sinatra
113
113
  requirement: !ruby/object:Gem::Requirement