volt 0.6.1 → 0.6.2

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.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/volt.rb +4 -0
  4. data/lib/volt/models/array_model.rb +9 -4
  5. data/lib/volt/models/model.rb +10 -4
  6. data/lib/volt/models/model_hash_behaviour.rb +0 -5
  7. data/lib/volt/models/persistors/array_store.rb +0 -2
  8. data/lib/volt/models/persistors/model_store.rb +5 -1
  9. data/lib/volt/models/persistors/query/query_listener.rb +0 -4
  10. data/lib/volt/page/bindings/event_binding.rb +4 -0
  11. data/lib/volt/page/tasks.rb +1 -1
  12. data/lib/volt/server.rb +8 -3
  13. data/lib/volt/server/rack/index_files.rb +3 -2
  14. data/sauce_connect.log +135 -0
  15. data/spec/{app → apps/file_loading/app}/bootstrap/assets/js/bootstrap.js +0 -0
  16. data/spec/{app → apps/file_loading/app}/main/assets/js/test1.js +0 -0
  17. data/spec/{app → apps/file_loading/app}/main/config/dependencies.rb +0 -0
  18. data/spec/{app → apps/file_loading/app}/shared/assets/js/test2.js +0 -0
  19. data/spec/{app → apps/file_loading/app}/shared/config/dependencies.rb +0 -0
  20. data/spec/{app → apps/file_loading/app}/slideshow/assets/js/test3.js +0 -0
  21. data/spec/apps/kitchen_sink/app/home/config/routes.rb +1 -0
  22. data/spec/apps/kitchen_sink/app/home/controllers/index_controller.rb +3 -0
  23. data/spec/apps/kitchen_sink/app/home/views/index/index.html +7 -0
  24. data/spec/apps/kitchen_sink/public/index.html +17 -0
  25. data/spec/integration/test_integration_spec.rb +11 -0
  26. data/spec/models/model_spec.rb +12 -0
  27. data/spec/server/rack/asset_files_spec.rb +2 -2
  28. data/spec/server/rack/component_paths_spec.rb +4 -4
  29. data/spec/spec_helper.rb +42 -0
  30. data/volt.gemspec +7 -0
  31. metadata +109 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da0ec8ba7a9dd12d296bbcc1aa8d61f1ead80e7b
4
- data.tar.gz: 2c2cfe82c79dffd7595ca067c684733e4c5808fb
3
+ metadata.gz: ad7b974be48d9e051da486a3fb540b1dd21b2f31
4
+ data.tar.gz: e422b3f499ad74e7002582e0cd615c0330737078
5
5
  SHA512:
6
- metadata.gz: 00936670499b943bd1cd52a2db013c9991429b85b1739cccb237975832524aaff9ad195856d09f2e3c9f2527004990a3287c1c1a676cd47ca5955b5011c0e983
7
- data.tar.gz: 171b29c7808b72547de2e088981f69cacf515426f89a0a5c2eaac286d358f0dfb2ef58695c4ff4893860ea8f59d3de748c9a4863af7256ae4a8710652e99c47b
6
+ metadata.gz: 68fe2b105d242b536057b5f026378501384f2d1d1aff0a76b876692bf2c34c1defb0c287bc3f5548cbf6e44d1a6e11696c0d9ea95bdd02dbf37fd49c65a514e9
7
+ data.tar.gz: 6142a43179215f02ca911de33e82b86eb9912aa4cd97d55c20ebf828c00420288f12aec45997dee74e8fe5a9b8e01bb4721062c54f11d111580fa2c905417ba2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
data/lib/volt.rb CHANGED
@@ -7,6 +7,10 @@ class Volt
7
7
  @root ||= File.expand_path(Dir.pwd)
8
8
  end
9
9
 
10
+ def self.root=(val)
11
+ @root = val
12
+ end
13
+
10
14
  def self.server?
11
15
  !!ENV['SERVER']
12
16
  end
@@ -61,12 +61,17 @@ class ArrayModel < ReactiveArray
61
61
  end
62
62
 
63
63
  # Make sure it gets wrapped
64
- def <<(*args)
65
- args = wrap_values(args)
64
+ def <<(model)
65
+ if model.cur.is_a?(Model)
66
+ # Set the new path
67
+ model.cur.options = @options.merge(path: @options[:path] + [:[]])
68
+ else
69
+ model = wrap_values([model]).first
70
+ end
66
71
 
67
- super(*args)
72
+ super(model)
68
73
 
69
- @persistor.added(args[0], @array.size-1) if @persistor
74
+ @persistor.added(model, @array.size-1) if @persistor
70
75
  end
71
76
 
72
77
  # Make sure it gets wrapped
@@ -25,17 +25,23 @@ class Model
25
25
  attr_reader :parent, :path, :persistor, :options
26
26
 
27
27
  def initialize(attributes={}, options={})
28
+ self.options = options
29
+
30
+ self.attributes = wrap_values(attributes)
31
+
32
+ @persistor.loaded if @persistor
33
+ end
34
+
35
+ # Update the options
36
+ def options=(options)
28
37
  @options = options
29
38
  @parent = options[:parent]
30
39
  @path = options[:path] || []
31
40
  @class_paths = options[:class_paths]
32
41
  @persistor = setup_persistor(options[:persistor])
33
-
34
- self.attributes = wrap_values(attributes)
35
-
36
- @persistor.loaded if @persistor
37
42
  end
38
43
 
44
+
39
45
  # Pass the comparison through
40
46
  def ==(val)
41
47
  if val.is_a?(Model)
@@ -58,9 +58,4 @@ module ModelHashBehaviour
58
58
  return hash
59
59
  end
60
60
 
61
-
62
- def [](val)
63
- raise "Models do not support hash style lookup. Hashes inserted into other models are converted to models, see https://github.com/voltrb/volt#automatic-model-conversion"
64
- end
65
-
66
61
  end
@@ -70,8 +70,6 @@ module Persistors
70
70
  load_data
71
71
  end
72
72
  end
73
-
74
- puts "QUERY: #{@query.deep_cur.inspect}"
75
73
 
76
74
  run_query(@model, @query.deep_cur)
77
75
  end
@@ -84,7 +84,11 @@ module Persistors
84
84
  end
85
85
  end
86
86
  end
87
-
87
+
88
+ def [](val)
89
+ raise "Models do not support hash style lookup. Hashes inserted into other models are converted to models, see https://github.com/voltrb/volt#automatic-model-conversion"
90
+ end
91
+
88
92
  private
89
93
  # Return the attributes that are only for this store, not any sub-associations.
90
94
  def self_attributes
@@ -29,7 +29,6 @@ class QueryListener
29
29
  end
30
30
 
31
31
  def add_store(store, &block)
32
- puts "ADD STORE: #{store.inspect} - to #{self.inspect}"
33
32
  @stores << store
34
33
 
35
34
  if @listening
@@ -52,14 +51,11 @@ class QueryListener
52
51
  # When there are no stores left, remove the query listener from
53
52
  # the pool, it can get created again later.
54
53
  if @stores.size == 0
55
- puts "OM"
56
54
  @query_listener_pool.remove(@collection, @query)
57
- puts "PM"
58
55
 
59
56
  # Stop listening
60
57
  if @listening
61
58
  @listening = false
62
- puts "TOTAL REMOVE"
63
59
  @tasks.call('QueryTasks', 'remove_listener', @collection, @query)
64
60
  end
65
61
  end
@@ -16,6 +16,10 @@ class JSEvent
16
16
  # `this.js_event.stopPropagation();`
17
17
  `this.js_event.preventDefault();`
18
18
  end
19
+
20
+ def target
21
+ `this.js_event.toElement`
22
+ end
19
23
  end
20
24
 
21
25
 
@@ -57,7 +57,7 @@ class Tasks
57
57
  # a query.
58
58
  def notify_query(method_name, collection, query, *args)
59
59
  query_obj = Persistors::ArrayStore.query_pool.lookup(collection, query)
60
- puts "FOUND QUERY: #{collection.inspect} - #{query.inspect} - #{query_obj.inspect} - #{method_name} - #{query_obj.instance_variable_get('@stores').inspect}"
60
+ # puts "FOUND QUERY: #{collection.inspect} - #{query.inspect} - #{query_obj.inspect} - #{method_name} - #{query_obj.instance_variable_get('@stores').inspect}"
61
61
  query_obj.send(method_name, *args)
62
62
  end
63
63
 
data/lib/volt/server.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  ENV['SERVER'] = 'true'
2
2
 
3
3
  require 'opal'
4
+ require 'thin'
4
5
  require "rack"
5
6
  if RUBY_PLATFORM != 'java'
6
7
  require "rack/sockjs"
@@ -42,9 +43,13 @@ module Rack
42
43
  end
43
44
 
44
45
  class Server
45
- def initialize
46
- @app_path = File.expand_path(File.join(Dir.pwd, "app"))
47
- @component_paths = ComponentPaths.new
46
+ def initialize(root_path=nil)
47
+ root_path ||= Dir.pwd
48
+ Volt.root = root_path
49
+
50
+ @app_path = File.expand_path(File.join(root_path, "app"))
51
+
52
+ @component_paths = ComponentPaths.new(root_path)
48
53
 
49
54
  setup_change_listener
50
55
 
@@ -10,7 +10,8 @@ class IndexFiles
10
10
 
11
11
  @@router ||= Routes.new.define do
12
12
  # Find the route file
13
- route_file = File.read('app/home/config/routes.rb')
13
+ home_path = component_paths.component_path('home')
14
+ route_file = File.read("#{home_path}/config/routes.rb")
14
15
  eval(route_file)
15
16
  end
16
17
  end
@@ -32,7 +33,7 @@ class IndexFiles
32
33
  end
33
34
 
34
35
  def html
35
- index_path = File.expand_path(File.join(Dir.pwd, "public/index.html"))
36
+ index_path = File.expand_path(File.join(Volt.root, "public/index.html"))
36
37
  html = File.read(index_path)
37
38
 
38
39
  ERB.new(html).result(binding)
data/sauce_connect.log ADDED
@@ -0,0 +1,135 @@
1
+ 2014-02-13 14:24:21,720 - sauce_connect:575 - INFO - / Starting \
2
+ 2014-02-13 14:24:21,723 - sauce_connect:576 - INFO - Please wait for "You may start your tests" to start your tests.
3
+ 2014-02-13 14:24:21,727 - sauce_connect:588 - DEBUG - System is -6.0 hours off UTC
4
+ 2014-02-13 14:24:21,729 - sauce_connect:590 - DEBUG - options: {'user': 'ryanstout', 'ports': ['56752'], 'no_ssl_bump_domains': '', 'domains': ['sauce-connect.proxy'], 'debug_ssh': False, 'tunnel_ports': ['80'], 'allow_unclean_exit': False, 'rest_url': 'https://saucelabs.com/rest/v1', 'logfile': 'sauce_connect.log', 'squid_opts': '', 'logfilesize': '31457280', 'boost_mode': True, 'tunnel_identifier': '', 'fast_fail_regexps': '', 'vm_version': '', 'quiet': False, 'latency_log': 150, 'use_ssh_config': False, 'ssh': False, 'se_port': '4445', 'readyfile': 'sauce_connect.ready', 'shared_tunnel': False, 'ssh_port': 443, 'direct_domains': '', 'host': '127.0.0.1'}
5
+ 2014-02-13 14:24:21,730 - sauce_connect:591 - DEBUG - metadata: {'PythonVersion': '2.5.1', 'OwnerHost': '127.0.0.1', 'Release': '3.0-r30', 'OwnerPorts': ['56752'], 'Ports': ['80'], 'Platform': 'Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64', 'Build': '46', 'ScriptRelease': 46, 'ScriptName': 'sauce_connect'}
6
+ 2014-02-13 14:24:21,730 - sauce_connect:593 - INFO - Forwarding: ['sauce-connect.proxy']:['80'] -> 127.0.0.1:['56752']
7
+ 2014-02-13 14:24:21,739 - sauce_connect:385 - INFO - Succesfully connected to local server 127.0.0.1:56752 in 3ms
8
+ 2014-02-13 14:24:22,012 - sauce_connect:248 - INFO - {"no_ssl_bump_domains":null,"squid_config":null,"use_caching_proxy":true,"metadata":{"PythonVersion":"2.5.1","OwnerHost":"127.0.0.1","Release":"3.0-r30","OwnerPorts":["56752"],"Ports":["80"],"Platform":"Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64","Build":"46","ScriptRelease":46,"ScriptName":"sauce_connect"},"use_kgp":true,"tunnel_identifier":"","shared_tunnel":false,"fast_fail_regexps":null,"ssh_port":443,"direct_domains":null,"vm_version":"","domain_names":["sauce-connect.proxy"]}
9
+ 2014-02-13 14:24:26,351 - sauce_connect:260 - INFO - Tunnel remote VM is provisioned (fc2d8860735b46a486d50402352e43e5)
10
+ 2014-02-13 14:24:27,068 - sauce_connect:278 - INFO - Tunnel remote VM is booting ..
11
+ 2014-02-13 14:24:50,168 - sauce_connect:282 - INFO - Tunnel remote VM is running at maki77096.miso.saucelabs.com
12
+ 2014-02-13 14:24:50,181 - sauce_connect:385 - INFO - Succesfully connected to local server 127.0.0.1:56752 in 0ms
13
+ 2014-02-13 14:24:50,184 - sauce_connect:665 - INFO - Starting connection to tunnel host...
14
+ 2014-02-13 14:24:50,187 - sauce_connect:665 - INFO - Connecting to tunnel host maki77096.miso.saucelabs.com as ryanstout
15
+ 2014-02-13 14:24:50,267 - sauce_connect:665 - INFO - Forwarding Selenium with ephemeral port 56755
16
+ 2014-02-13 14:24:50,272 - sauce_connect:665 - INFO - Selenium HTTP proxy listening on port 4445
17
+ 2014-02-13 14:24:50,697 - sauce_connect:0 - INFO - Successful handshake with Sauce Connect server
18
+ 2014-02-13 14:24:50,746 - sauce_connect:0 - INFO - Tunnel host version: 0.1.0, remote endpoint ID: b74a3433db314256ad0c257a9de4116a
19
+ 2014-02-13 14:24:50,750 - sauce_connect:665 - INFO - Connected! You may start your tests.
20
+ 2014-02-13 14:24:55,766 - sauce_connect:0 - INFO - received SIGINT
21
+ 2014-02-13 14:30:56,137 - sauce_connect:575 - INFO - / Starting \
22
+ 2014-02-13 14:30:56,138 - sauce_connect:576 - INFO - Please wait for "You may start your tests" to start your tests.
23
+ 2014-02-13 14:30:56,144 - sauce_connect:588 - DEBUG - System is -6.0 hours off UTC
24
+ 2014-02-13 14:30:56,144 - sauce_connect:590 - DEBUG - options: {'user': 'ryanstout', 'ports': ['57407'], 'no_ssl_bump_domains': '', 'domains': ['sauce-connect.proxy'], 'debug_ssh': False, 'tunnel_ports': ['80'], 'allow_unclean_exit': False, 'rest_url': 'https://saucelabs.com/rest/v1', 'logfile': 'sauce_connect.log', 'squid_opts': '', 'logfilesize': '31457280', 'boost_mode': True, 'tunnel_identifier': '', 'fast_fail_regexps': '', 'vm_version': '', 'quiet': False, 'latency_log': 150, 'use_ssh_config': False, 'ssh': False, 'se_port': '4445', 'readyfile': 'sauce_connect.ready', 'shared_tunnel': False, 'ssh_port': 443, 'direct_domains': '', 'host': '127.0.0.1'}
25
+ 2014-02-13 14:30:56,145 - sauce_connect:591 - DEBUG - metadata: {'PythonVersion': '2.5.1', 'OwnerHost': '127.0.0.1', 'Release': '3.0-r30', 'OwnerPorts': ['57407'], 'Ports': ['80'], 'Platform': 'Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64', 'Build': '46', 'ScriptRelease': 46, 'ScriptName': 'sauce_connect'}
26
+ 2014-02-13 14:30:56,147 - sauce_connect:593 - INFO - Forwarding: ['sauce-connect.proxy']:['80'] -> 127.0.0.1:['57407']
27
+ 2014-02-13 14:30:56,154 - sauce_connect:385 - INFO - Succesfully connected to local server 127.0.0.1:57407 in 3ms
28
+ 2014-02-13 14:30:57,117 - sauce_connect:248 - INFO - {"no_ssl_bump_domains":null,"squid_config":null,"use_caching_proxy":true,"metadata":{"PythonVersion":"2.5.1","OwnerHost":"127.0.0.1","Release":"3.0-r30","OwnerPorts":["57407"],"Ports":["80"],"Platform":"Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64","Build":"46","ScriptRelease":46,"ScriptName":"sauce_connect"},"use_kgp":true,"tunnel_identifier":"","shared_tunnel":false,"fast_fail_regexps":null,"ssh_port":443,"direct_domains":null,"vm_version":"","domain_names":["sauce-connect.proxy"]}
29
+ 2014-02-13 14:31:01,721 - sauce_connect:260 - INFO - Tunnel remote VM is provisioned (d554c7eba2814f1e827b86cf265c7d50)
30
+ 2014-02-13 14:31:02,644 - sauce_connect:278 - INFO - Tunnel remote VM is booting ..
31
+ 2014-02-13 14:31:38,207 - sauce_connect:282 - INFO - Tunnel remote VM is running at maki77119.miso.saucelabs.com
32
+ 2014-02-13 14:31:38,219 - sauce_connect:385 - INFO - Succesfully connected to local server 127.0.0.1:57407 in 0ms
33
+ 2014-02-13 14:31:38,220 - sauce_connect:665 - INFO - Starting connection to tunnel host...
34
+ 2014-02-13 14:31:38,223 - sauce_connect:665 - INFO - Connecting to tunnel host maki77119.miso.saucelabs.com as ryanstout
35
+ 2014-02-13 14:31:38,309 - sauce_connect:665 - INFO - Forwarding Selenium with ephemeral port 57415
36
+ 2014-02-13 14:31:38,450 - sauce_connect:665 - INFO - Selenium HTTP proxy listening on port 4445
37
+ 2014-02-13 14:31:38,788 - sauce_connect:0 - INFO - Successful handshake with Sauce Connect server
38
+ 2014-02-13 14:31:38,834 - sauce_connect:0 - INFO - Tunnel host version: 0.1.0, remote endpoint ID: bb9891d69b0b48b492fc15286664f218
39
+ 2014-02-13 14:31:38,836 - sauce_connect:665 - INFO - Connected! You may start your tests.
40
+ 2014-02-13 14:31:51,937 - sauce_connect:0 - INFO - Request started: GET http://127.0.0.1:3000/
41
+ 2014-02-13 14:31:51,946 - sauce_connect:0 - INFO - Could not proxy http://127.0.0.1:3000/, exception: java.net.ConnectException: Connection refused
42
+ 2014-02-13 14:31:52,088 - sauce_connect:0 - INFO - Request started: GET http://127.0.0.1:3000/favicon.ico
43
+ 2014-02-13 14:31:52,092 - sauce_connect:0 - INFO - Could not proxy http://127.0.0.1:3000/favicon.ico, exception: java.net.ConnectException: Connection refused
44
+ 2014-02-13 14:31:55,500 - sauce_connect:0 - INFO - received SIGINT
45
+ 2014-02-13 14:55:05,936 - sauce_connect:575 - INFO - / Starting \
46
+ 2014-02-13 14:55:05,938 - sauce_connect:576 - INFO - Please wait for "You may start your tests" to start your tests.
47
+ 2014-02-13 14:55:05,944 - sauce_connect:588 - DEBUG - System is -6.0 hours off UTC
48
+ 2014-02-13 14:55:05,944 - sauce_connect:590 - DEBUG - options: {'user': 'ryanstout', 'ports': ['57810'], 'no_ssl_bump_domains': '', 'domains': ['sauce-connect.proxy'], 'debug_ssh': False, 'tunnel_ports': ['80'], 'allow_unclean_exit': False, 'rest_url': 'https://saucelabs.com/rest/v1', 'logfile': 'sauce_connect.log', 'squid_opts': '', 'logfilesize': '31457280', 'boost_mode': True, 'tunnel_identifier': '', 'fast_fail_regexps': '', 'vm_version': '', 'quiet': False, 'latency_log': 150, 'use_ssh_config': False, 'ssh': False, 'se_port': '4445', 'readyfile': 'sauce_connect.ready', 'shared_tunnel': False, 'ssh_port': 443, 'direct_domains': '', 'host': '127.0.0.1'}
49
+ 2014-02-13 14:55:05,947 - sauce_connect:591 - DEBUG - metadata: {'PythonVersion': '2.5.1', 'OwnerHost': '127.0.0.1', 'Release': '3.0-r30', 'OwnerPorts': ['57810'], 'Ports': ['80'], 'Platform': 'Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64', 'Build': '46', 'ScriptRelease': 46, 'ScriptName': 'sauce_connect'}
50
+ 2014-02-13 14:55:05,947 - sauce_connect:593 - INFO - Forwarding: ['sauce-connect.proxy']:['80'] -> 127.0.0.1:['57810']
51
+ 2014-02-13 14:55:05,954 - sauce_connect:385 - INFO - Succesfully connected to local server 127.0.0.1:57810 in 3ms
52
+ 2014-02-13 14:55:06,543 - sauce_connect:248 - INFO - {"no_ssl_bump_domains":null,"squid_config":null,"use_caching_proxy":true,"metadata":{"PythonVersion":"2.5.1","OwnerHost":"127.0.0.1","Release":"3.0-r30","OwnerPorts":["57810"],"Ports":["80"],"Platform":"Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64","Build":"46","ScriptRelease":46,"ScriptName":"sauce_connect"},"use_kgp":true,"tunnel_identifier":"","shared_tunnel":false,"fast_fail_regexps":null,"ssh_port":443,"direct_domains":null,"vm_version":"","domain_names":["sauce-connect.proxy"]}
53
+ 2014-02-13 14:55:06,671 - sauce_connect:0 - INFO - received SIGINT
54
+ 2014-02-13 14:57:40,688 - sauce_connect:575 - INFO - / Starting \
55
+ 2014-02-13 14:57:40,691 - sauce_connect:576 - INFO - Please wait for "You may start your tests" to start your tests.
56
+ 2014-02-13 14:57:40,697 - sauce_connect:588 - DEBUG - System is -6.0 hours off UTC
57
+ 2014-02-13 14:57:40,697 - sauce_connect:590 - DEBUG - options: {'user': 'ryanstout', 'ports': ['57821'], 'no_ssl_bump_domains': '', 'domains': ['sauce-connect.proxy'], 'debug_ssh': False, 'tunnel_ports': ['80'], 'allow_unclean_exit': False, 'rest_url': 'https://saucelabs.com/rest/v1', 'logfile': 'sauce_connect.log', 'squid_opts': '', 'logfilesize': '31457280', 'boost_mode': True, 'tunnel_identifier': '', 'fast_fail_regexps': '', 'vm_version': '', 'quiet': False, 'latency_log': 150, 'use_ssh_config': False, 'ssh': False, 'se_port': '4445', 'readyfile': 'sauce_connect.ready', 'shared_tunnel': False, 'ssh_port': 443, 'direct_domains': '', 'host': '127.0.0.1'}
58
+ 2014-02-13 14:57:40,698 - sauce_connect:591 - DEBUG - metadata: {'PythonVersion': '2.5.1', 'OwnerHost': '127.0.0.1', 'Release': '3.0-r30', 'OwnerPorts': ['57821'], 'Ports': ['80'], 'Platform': 'Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64', 'Build': '46', 'ScriptRelease': 46, 'ScriptName': 'sauce_connect'}
59
+ 2014-02-13 14:57:40,700 - sauce_connect:593 - INFO - Forwarding: ['sauce-connect.proxy']:['80'] -> 127.0.0.1:['57821']
60
+ 2014-02-13 14:57:40,707 - sauce_connect:385 - INFO - Succesfully connected to local server 127.0.0.1:57821 in 3ms
61
+ 2014-02-13 14:57:42,609 - sauce_connect:202 - WARNING - NOTICE: Already running tunnels exist that would collide with this instance of Connect. Shutting them down before starting.
62
+ Read http://saucelabs.com/docs/connect#tunnel-identifier for more details.
63
+ 2014-02-13 14:57:42,611 - sauce_connect:213 - INFO - Shutting down tunnel VM: bfa843b94ae9414a9b16cce6d3ee7cf8 running without any identifiers
64
+ 2014-02-13 14:57:48,062 - sauce_connect:248 - INFO - {"no_ssl_bump_domains":null,"squid_config":null,"use_caching_proxy":true,"metadata":{"PythonVersion":"2.5.1","OwnerHost":"127.0.0.1","Release":"3.0-r30","OwnerPorts":["57821"],"Ports":["80"],"Platform":"Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64","Build":"46","ScriptRelease":46,"ScriptName":"sauce_connect"},"use_kgp":true,"tunnel_identifier":"","shared_tunnel":false,"fast_fail_regexps":null,"ssh_port":443,"direct_domains":null,"vm_version":"","domain_names":["sauce-connect.proxy"]}
65
+ 2014-02-13 14:57:53,861 - sauce_connect:260 - INFO - Tunnel remote VM is provisioned (a29a4204eeba4056820d14ca32d8cccf)
66
+ 2014-02-13 14:57:54,299 - sauce_connect:278 - INFO - Tunnel remote VM is booting ..
67
+ 2014-02-13 14:58:23,881 - sauce_connect:282 - INFO - Tunnel remote VM is running at maki77104.miso.saucelabs.com
68
+ 2014-02-13 14:58:23,894 - sauce_connect:385 - INFO - Succesfully connected to local server 127.0.0.1:57821 in 0ms
69
+ 2014-02-13 14:58:23,897 - sauce_connect:665 - INFO - Starting connection to tunnel host...
70
+ 2014-02-13 14:58:23,898 - sauce_connect:665 - INFO - Connecting to tunnel host maki77104.miso.saucelabs.com as ryanstout
71
+ 2014-02-13 14:58:24,140 - sauce_connect:665 - INFO - Forwarding Selenium with ephemeral port 57844
72
+ 2014-02-13 14:58:24,144 - sauce_connect:665 - INFO - Selenium HTTP proxy listening on port 4445
73
+ 2014-02-13 14:58:24,608 - sauce_connect:0 - INFO - Successful handshake with Sauce Connect server
74
+ 2014-02-13 14:58:24,657 - sauce_connect:0 - INFO - Tunnel host version: 0.1.0, remote endpoint ID: ec01d03caf3c4bcca38e83e8d590fdd9
75
+ 2014-02-13 14:58:24,658 - sauce_connect:665 - INFO - Connected! You may start your tests.
76
+ 2014-02-13 14:58:42,484 - sauce_connect:0 - INFO - Request started: GET http://127.0.0.1:3000/
77
+ 2014-02-13 14:58:42,493 - sauce_connect:0 - INFO - Could not proxy http://127.0.0.1:3000/, exception: java.net.ConnectException: Connection refused
78
+ 2014-02-13 14:58:42,720 - sauce_connect:0 - INFO - Request started: GET http://127.0.0.1:3000/favicon.ico
79
+ 2014-02-13 14:58:42,721 - sauce_connect:0 - INFO - Could not proxy http://127.0.0.1:3000/favicon.ico, exception: java.net.ConnectException: Connection refused
80
+ 2014-02-13 14:58:45,823 - sauce_connect:0 - INFO - received SIGINT
81
+ 2014-02-13 15:01:36,489 - sauce_connect:575 - INFO - / Starting \
82
+ 2014-02-13 15:01:36,492 - sauce_connect:576 - INFO - Please wait for "You may start your tests" to start your tests.
83
+ 2014-02-13 15:01:36,496 - sauce_connect:588 - DEBUG - System is -6.0 hours off UTC
84
+ 2014-02-13 15:01:36,497 - sauce_connect:590 - DEBUG - options: {'user': 'ryanstout', 'ports': ['57874'], 'no_ssl_bump_domains': '', 'domains': ['sauce-connect.proxy'], 'debug_ssh': False, 'tunnel_ports': ['80'], 'allow_unclean_exit': False, 'rest_url': 'https://saucelabs.com/rest/v1', 'logfile': 'sauce_connect.log', 'squid_opts': '', 'logfilesize': '31457280', 'boost_mode': True, 'tunnel_identifier': '', 'fast_fail_regexps': '', 'vm_version': '', 'quiet': False, 'latency_log': 150, 'use_ssh_config': False, 'ssh': False, 'se_port': '4445', 'readyfile': 'sauce_connect.ready', 'shared_tunnel': False, 'ssh_port': 443, 'direct_domains': '', 'host': '127.0.0.1'}
85
+ 2014-02-13 15:01:36,500 - sauce_connect:591 - DEBUG - metadata: {'PythonVersion': '2.5.1', 'OwnerHost': '127.0.0.1', 'Release': '3.0-r30', 'OwnerPorts': ['57874'], 'Ports': ['80'], 'Platform': 'Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64', 'Build': '46', 'ScriptRelease': 46, 'ScriptName': 'sauce_connect'}
86
+ 2014-02-13 15:01:36,500 - sauce_connect:593 - INFO - Forwarding: ['sauce-connect.proxy']:['80'] -> 127.0.0.1:['57874']
87
+ 2014-02-13 15:01:36,507 - sauce_connect:385 - INFO - Succesfully connected to local server 127.0.0.1:57874 in 3ms
88
+ 2014-02-13 15:01:36,707 - sauce_connect:248 - INFO - {"no_ssl_bump_domains":null,"squid_config":null,"use_caching_proxy":true,"metadata":{"PythonVersion":"2.5.1","OwnerHost":"127.0.0.1","Release":"3.0-r30","OwnerPorts":["57874"],"Ports":["80"],"Platform":"Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64","Build":"46","ScriptRelease":46,"ScriptName":"sauce_connect"},"use_kgp":true,"tunnel_identifier":"","shared_tunnel":false,"fast_fail_regexps":null,"ssh_port":443,"direct_domains":null,"vm_version":"","domain_names":["sauce-connect.proxy"]}
89
+ 2014-02-13 15:01:40,437 - sauce_connect:260 - INFO - Tunnel remote VM is provisioned (af3709876e714047b29808eb56c0ebf9)
90
+ 2014-02-13 15:01:41,137 - sauce_connect:278 - INFO - Tunnel remote VM is booting ..
91
+ 2014-02-13 15:02:07,947 - sauce_connect:282 - INFO - Tunnel remote VM is running at maki77038.miso.saucelabs.com
92
+ 2014-02-13 15:02:07,960 - sauce_connect:385 - INFO - Succesfully connected to local server 127.0.0.1:57874 in 0ms
93
+ 2014-02-13 15:02:07,963 - sauce_connect:665 - INFO - Starting connection to tunnel host...
94
+ 2014-02-13 15:02:07,964 - sauce_connect:665 - INFO - Connecting to tunnel host maki77038.miso.saucelabs.com as ryanstout
95
+ 2014-02-13 15:02:08,180 - sauce_connect:665 - INFO - Forwarding Selenium with ephemeral port 57917
96
+ 2014-02-13 15:02:08,184 - sauce_connect:665 - INFO - Selenium HTTP proxy listening on port 4445
97
+ 2014-02-13 15:02:08,538 - sauce_connect:0 - INFO - Successful handshake with Sauce Connect server
98
+ 2014-02-13 15:02:08,588 - sauce_connect:0 - INFO - Tunnel host version: 0.1.0, remote endpoint ID: 8ebc7f4644964ef0b2fe0de5f9bcb448
99
+ 2014-02-13 15:02:08,592 - sauce_connect:665 - INFO - Connected! You may start your tests.
100
+ 2014-02-13 15:02:36,704 - sauce_connect:0 - INFO - Request started: GET http://127.0.0.1:3000/
101
+ 2014-02-13 15:02:36,714 - sauce_connect:0 - INFO - Could not proxy http://127.0.0.1:3000/, exception: java.net.ConnectException: Connection refused
102
+ 2014-02-13 15:02:36,940 - sauce_connect:0 - INFO - Request started: GET http://127.0.0.1:3000/favicon.ico
103
+ 2014-02-13 15:02:36,943 - sauce_connect:0 - INFO - Could not proxy http://127.0.0.1:3000/favicon.ico, exception: java.net.ConnectException: Connection refused
104
+ 2014-02-13 15:02:40,171 - sauce_connect:0 - INFO - received SIGINT
105
+ 2014-02-13 15:03:26,038 - sauce_connect:575 - INFO - / Starting \
106
+ 2014-02-13 15:03:26,040 - sauce_connect:576 - INFO - Please wait for "You may start your tests" to start your tests.
107
+ 2014-02-13 15:03:26,046 - sauce_connect:588 - DEBUG - System is -6.0 hours off UTC
108
+ 2014-02-13 15:03:26,046 - sauce_connect:590 - DEBUG - options: {'user': 'ryanstout', 'ports': ['57941'], 'no_ssl_bump_domains': '', 'domains': ['sauce-connect.proxy'], 'debug_ssh': False, 'tunnel_ports': ['80'], 'allow_unclean_exit': False, 'rest_url': 'https://saucelabs.com/rest/v1', 'logfile': 'sauce_connect.log', 'squid_opts': '', 'logfilesize': '31457280', 'boost_mode': True, 'tunnel_identifier': '', 'fast_fail_regexps': '', 'vm_version': '', 'quiet': False, 'latency_log': 150, 'use_ssh_config': False, 'ssh': False, 'se_port': '4445', 'readyfile': 'sauce_connect.ready', 'shared_tunnel': False, 'ssh_port': 443, 'direct_domains': '', 'host': '127.0.0.1'}
109
+ 2014-02-13 15:03:26,048 - sauce_connect:591 - DEBUG - metadata: {'PythonVersion': '2.5.1', 'OwnerHost': '127.0.0.1', 'Release': '3.0-r30', 'OwnerPorts': ['57941'], 'Ports': ['80'], 'Platform': 'Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64', 'Build': '46', 'ScriptRelease': 46, 'ScriptName': 'sauce_connect'}
110
+ 2014-02-13 15:03:26,058 - sauce_connect:593 - INFO - Forwarding: ['sauce-connect.proxy']:['80'] -> 127.0.0.1:['57941']
111
+ 2014-02-13 15:03:26,065 - sauce_connect:385 - INFO - Succesfully connected to local server 127.0.0.1:57941 in 2ms
112
+ 2014-02-13 15:03:30,970 - sauce_connect:248 - INFO - {"no_ssl_bump_domains":null,"squid_config":null,"use_caching_proxy":true,"metadata":{"PythonVersion":"2.5.1","OwnerHost":"127.0.0.1","Release":"3.0-r30","OwnerPorts":["57941"],"Ports":["80"],"Platform":"Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64","Build":"46","ScriptRelease":46,"ScriptName":"sauce_connect"},"use_kgp":true,"tunnel_identifier":"","shared_tunnel":false,"fast_fail_regexps":null,"ssh_port":443,"direct_domains":null,"vm_version":"","domain_names":["sauce-connect.proxy"]}
113
+ 2014-02-13 15:03:34,927 - sauce_connect:260 - INFO - Tunnel remote VM is provisioned (6cf1b1d77d8a408e9a972edb5bf4f63a)
114
+ 2014-02-13 15:03:35,119 - sauce_connect:278 - INFO - Tunnel remote VM is booting ..
115
+ 2014-02-13 15:04:13,437 - sauce_connect:0 - INFO - received SIGINT
116
+ 2014-02-13 15:06:18,496 - sauce_connect:575 - INFO - / Starting \
117
+ 2014-02-13 15:06:18,500 - sauce_connect:576 - INFO - Please wait for "You may start your tests" to start your tests.
118
+ 2014-02-13 15:06:18,505 - sauce_connect:588 - DEBUG - System is -6.0 hours off UTC
119
+ 2014-02-13 15:06:18,506 - sauce_connect:590 - DEBUG - options: {'user': 'ryanstout', 'ports': ['57996'], 'no_ssl_bump_domains': '', 'domains': ['sauce-connect.proxy'], 'debug_ssh': False, 'tunnel_ports': ['80'], 'allow_unclean_exit': False, 'rest_url': 'https://saucelabs.com/rest/v1', 'logfile': 'sauce_connect.log', 'squid_opts': '', 'logfilesize': '31457280', 'boost_mode': True, 'tunnel_identifier': '', 'fast_fail_regexps': '', 'vm_version': '', 'quiet': False, 'latency_log': 150, 'use_ssh_config': False, 'ssh': False, 'se_port': '4445', 'readyfile': 'sauce_connect.ready', 'shared_tunnel': False, 'ssh_port': 443, 'direct_domains': '', 'host': '127.0.0.1'}
120
+ 2014-02-13 15:06:18,506 - sauce_connect:591 - DEBUG - metadata: {'PythonVersion': '2.5.1', 'OwnerHost': '127.0.0.1', 'Release': '3.0-r30', 'OwnerPorts': ['57996'], 'Ports': ['80'], 'Platform': 'Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64', 'Build': '46', 'ScriptRelease': 46, 'ScriptName': 'sauce_connect'}
121
+ 2014-02-13 15:06:18,507 - sauce_connect:593 - INFO - Forwarding: ['sauce-connect.proxy']:['80'] -> 127.0.0.1:['57996']
122
+ 2014-02-13 15:06:18,516 - sauce_connect:385 - INFO - Succesfully connected to local server 127.0.0.1:57996 in 4ms
123
+ 2014-02-13 15:06:19,280 - sauce_connect:248 - INFO - {"no_ssl_bump_domains":null,"squid_config":null,"use_caching_proxy":true,"metadata":{"PythonVersion":"2.5.1","OwnerHost":"127.0.0.1","Release":"3.0-r30","OwnerPorts":["57996"],"Ports":["80"],"Platform":"Java-1.7.0_10-Java_HotSpot-TM-_64-Bit_Server_VM,_23.6-b04,_Oracle_Corporation-on-Mac_OS_X-10.9.1-x86_64","Build":"46","ScriptRelease":46,"ScriptName":"sauce_connect"},"use_kgp":true,"tunnel_identifier":"","shared_tunnel":false,"fast_fail_regexps":null,"ssh_port":443,"direct_domains":null,"vm_version":"","domain_names":["sauce-connect.proxy"]}
124
+ 2014-02-13 15:06:22,979 - sauce_connect:260 - INFO - Tunnel remote VM is provisioned (cf76a8c18d7c429893aa3c9d975dabb6)
125
+ 2014-02-13 15:06:23,588 - sauce_connect:278 - INFO - Tunnel remote VM is booting ..
126
+ 2014-02-13 15:06:51,533 - sauce_connect:282 - INFO - Tunnel remote VM is running at maki77065.miso.saucelabs.com
127
+ 2014-02-13 15:06:51,546 - sauce_connect:385 - INFO - Succesfully connected to local server 127.0.0.1:57996 in 0ms
128
+ 2014-02-13 15:06:51,549 - sauce_connect:665 - INFO - Starting connection to tunnel host...
129
+ 2014-02-13 15:06:51,551 - sauce_connect:665 - INFO - Connecting to tunnel host maki77065.miso.saucelabs.com as ryanstout
130
+ 2014-02-13 15:06:51,632 - sauce_connect:665 - INFO - Forwarding Selenium with ephemeral port 58006
131
+ 2014-02-13 15:06:51,637 - sauce_connect:665 - INFO - Selenium HTTP proxy listening on port 4445
132
+ 2014-02-13 15:06:52,045 - sauce_connect:0 - INFO - Successful handshake with Sauce Connect server
133
+ 2014-02-13 15:06:52,092 - sauce_connect:0 - INFO - Tunnel host version: 0.1.0, remote endpoint ID: e002ed2a061e49738dcda5dbe882e5a1
134
+ 2014-02-13 15:06:52,096 - sauce_connect:665 - INFO - Connected! You may start your tests.
135
+ 2014-02-13 15:06:52,444 - sauce_connect:0 - INFO - received SIGINT
@@ -0,0 +1 @@
1
+ get '/'
@@ -0,0 +1,3 @@
1
+ class IndexController < ModelController
2
+ model :page
3
+ end
@@ -0,0 +1,7 @@
1
+ <:title>
2
+ Home
3
+ </:title>
4
+
5
+ <:body>
6
+ <h1>Home</h1>
7
+ </:body>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <% javascript_files.each do |javascript_file| %>
6
+ <script src="<%= javascript_file %>"></script>
7
+ <% end %>
8
+
9
+ <% css_files.each do |css_file| %>
10
+ <link href="<%= css_file %>" media="all" rel="stylesheet" type="text/css" />
11
+ <% end %>
12
+
13
+ </head>
14
+ <body>
15
+
16
+ </body>
17
+ </html>
@@ -0,0 +1,11 @@
1
+ if ENV['IN_BROWSER']
2
+ require 'spec_helper'
3
+
4
+ describe "integration test", :type => :feature do
5
+ it "should load the page" do
6
+ visit '/'
7
+
8
+ expect(page).to have_content('Home')
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,10 @@
1
1
  require 'volt/models'
2
2
 
3
+
4
+ class TestItem < Model
5
+
6
+ end
7
+
3
8
  describe Model do
4
9
 
5
10
  it "should allow _ methods to be used to store values without predefining them" do
@@ -477,6 +482,13 @@ describe Model do
477
482
  @model._lists << {_name: 'List 1', _items: []}
478
483
  expect(@model._lists[0]._items.path.cur).to eq([:_lists, :[], :_items])
479
484
  end
485
+
486
+ it "should update the path when added from a model instance to a collection" do
487
+ test_item = TestItem.new
488
+
489
+ @model._items << test_item
490
+ expect(@model._items[0].path).to eq([:_items, :[]])
491
+ end
480
492
  end
481
493
 
482
494
  describe "persistors" do
@@ -3,9 +3,9 @@ if RUBY_PLATFORM != 'opal'
3
3
 
4
4
  describe AssetFiles do
5
5
  before do
6
- spec_app_root = File.join(File.dirname(__FILE__), "../..")
6
+ spec_app_root = File.join(File.dirname(__FILE__), "../../apps/file_loading")
7
7
 
8
- path_to_main = File.join(File.dirname(__FILE__), "../../app/main")
8
+ path_to_main = File.join(File.dirname(__FILE__), "../../apps/file_loading/app/main")
9
9
  @component_paths = ComponentPaths.new(spec_app_root)
10
10
  end
11
11
 
@@ -3,16 +3,16 @@ if RUBY_PLATFORM != 'opal'
3
3
 
4
4
  describe ComponentPaths do
5
5
  before do
6
- spec_app_root = File.join(File.dirname(__FILE__), "../..")
6
+ spec_app_root = File.join(File.dirname(__FILE__), "../../apps/file_loading")
7
7
 
8
- path_to_main = File.join(File.dirname(__FILE__), "../../app/main")
8
+ path_to_main = File.join(File.dirname(__FILE__), "../../apps/file_loading/app/main")
9
9
  @component_paths = ComponentPaths.new(spec_app_root)
10
10
  end
11
11
 
12
12
  it "should return the paths to all app folders" do
13
13
  match_count = 0
14
14
  @component_paths.app_folders do |app_folder|
15
- if app_folder[/spec\/app$/] || app_folder[/spec\/vendor\/app$/]
15
+ if app_folder[/spec\/apps\/file_loading\/app$/] || app_folder[/spec\/apps\/file_loading\/vendor\/app$/]
16
16
  match_count += 1
17
17
  end
18
18
  end
@@ -22,7 +22,7 @@ if RUBY_PLATFORM != 'opal'
22
22
 
23
23
  it "should return the path to a component" do
24
24
  main_path = @component_paths.component_path('main')
25
- expect(main_path).to match(/spec\/app\/main$/)
25
+ expect(main_path).to match(/spec\/apps\/file_loading\/app\/main$/)
26
26
  end
27
27
  end
28
28
  end
data/spec/spec_helper.rb CHANGED
@@ -5,8 +5,50 @@
5
5
  #
6
6
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
7
 
8
+ ENV['SAUCE_USERNAME'] = 'ryanstout'
9
+ ENV['SAUCE_ACCESS_KEY'] = 'a537b01d-33ed-4028-9e80-eeb602748a5f'
10
+
11
+ require 'capybara/rspec'
12
+
13
+ if ENV['IN_BROWSER']
14
+ # Needed at the moment to get chrome tests working
15
+ require 'chromedriver2/helper'
16
+ require 'capybara/poltergeist'
17
+ # require "sauce/capybara"
18
+ # require 'sauce/connect'
19
+ end
20
+
8
21
  require 'volt'
9
22
 
23
+ # Capybara.default_driver = :sauce
24
+ # Capybara.server_port = 2020
25
+ #
26
+ # Sauce.config do |conf|
27
+ # conf[:start_tunnel] = true
28
+ # conf[:browsers] = [
29
+ # ["Windows 7","Firefox","26"]
30
+ # ]
31
+ # # conf[:application_host] = "127.0.0.1"
32
+ # # conf[:application_port] = "2020"
33
+ # # conf[:browser_url] = "http://127.0.0.1:2020/"
34
+ # end
35
+
36
+ # Capybara.register_driver :selenium do |app|
37
+ # Capybara::Selenium::Driver.new(app, :browser => :chrome)
38
+ # end
39
+
40
+ # Capybara.default_driver = :selenium
41
+ if ENV['IN_BROWSER']
42
+ require 'volt/server'
43
+
44
+
45
+ kitchen_sink_path = File.expand_path(File.join(File.dirname(__FILE__), "apps/kitchen_sink"))
46
+ Capybara.app = Server.new(kitchen_sink_path).app
47
+
48
+ Capybara.default_driver = :poltergeist
49
+ end
50
+
51
+
10
52
  if RUBY_PLATFORM != 'opal'
11
53
  RSpec.configure do |config|
12
54
  config.run_all_when_everything_filtered = true
data/volt.gemspec CHANGED
@@ -43,4 +43,11 @@ Gem::Specification.new do |spec|
43
43
  spec.add_development_dependency "guard-rspec", "~> 1.2.0"
44
44
  spec.add_development_dependency "opal-rspec", "0.3.0.beta2"
45
45
  spec.add_development_dependency "yard", "~> 0.8.7.0"
46
+ spec.add_development_dependency "capybara", "~> 2.2.0"
47
+ spec.add_development_dependency "selenium-webdriver", "~> 2.39.0"
48
+ spec.add_development_dependency "chromedriver2-helper", "~> 0.0.8"
49
+ spec.add_development_dependency "poltergeist", "~> 1.5.0"
50
+ spec.add_development_dependency "sauce", "~> 3.3.0"
51
+ spec.add_development_dependency "sauce-connect", "~> 3.3.0"
52
+
46
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-13 00:00:00.000000000 Z
11
+ date: 2014-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -304,6 +304,90 @@ dependencies:
304
304
  - - "~>"
305
305
  - !ruby/object:Gem::Version
306
306
  version: 0.8.7.0
307
+ - !ruby/object:Gem::Dependency
308
+ name: capybara
309
+ requirement: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - "~>"
312
+ - !ruby/object:Gem::Version
313
+ version: 2.2.0
314
+ type: :development
315
+ prerelease: false
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - "~>"
319
+ - !ruby/object:Gem::Version
320
+ version: 2.2.0
321
+ - !ruby/object:Gem::Dependency
322
+ name: selenium-webdriver
323
+ requirement: !ruby/object:Gem::Requirement
324
+ requirements:
325
+ - - "~>"
326
+ - !ruby/object:Gem::Version
327
+ version: 2.39.0
328
+ type: :development
329
+ prerelease: false
330
+ version_requirements: !ruby/object:Gem::Requirement
331
+ requirements:
332
+ - - "~>"
333
+ - !ruby/object:Gem::Version
334
+ version: 2.39.0
335
+ - !ruby/object:Gem::Dependency
336
+ name: chromedriver2-helper
337
+ requirement: !ruby/object:Gem::Requirement
338
+ requirements:
339
+ - - "~>"
340
+ - !ruby/object:Gem::Version
341
+ version: 0.0.8
342
+ type: :development
343
+ prerelease: false
344
+ version_requirements: !ruby/object:Gem::Requirement
345
+ requirements:
346
+ - - "~>"
347
+ - !ruby/object:Gem::Version
348
+ version: 0.0.8
349
+ - !ruby/object:Gem::Dependency
350
+ name: poltergeist
351
+ requirement: !ruby/object:Gem::Requirement
352
+ requirements:
353
+ - - "~>"
354
+ - !ruby/object:Gem::Version
355
+ version: 1.5.0
356
+ type: :development
357
+ prerelease: false
358
+ version_requirements: !ruby/object:Gem::Requirement
359
+ requirements:
360
+ - - "~>"
361
+ - !ruby/object:Gem::Version
362
+ version: 1.5.0
363
+ - !ruby/object:Gem::Dependency
364
+ name: sauce
365
+ requirement: !ruby/object:Gem::Requirement
366
+ requirements:
367
+ - - "~>"
368
+ - !ruby/object:Gem::Version
369
+ version: 3.3.0
370
+ type: :development
371
+ prerelease: false
372
+ version_requirements: !ruby/object:Gem::Requirement
373
+ requirements:
374
+ - - "~>"
375
+ - !ruby/object:Gem::Version
376
+ version: 3.3.0
377
+ - !ruby/object:Gem::Dependency
378
+ name: sauce-connect
379
+ requirement: !ruby/object:Gem::Requirement
380
+ requirements:
381
+ - - "~>"
382
+ - !ruby/object:Gem::Version
383
+ version: 3.3.0
384
+ type: :development
385
+ prerelease: false
386
+ version_requirements: !ruby/object:Gem::Requirement
387
+ requirements:
388
+ - - "~>"
389
+ - !ruby/object:Gem::Version
390
+ version: 3.3.0
307
391
  description:
308
392
  email:
309
393
  - ryan@agileproductions.com
@@ -433,12 +517,18 @@ files:
433
517
  - lib/volt/utils/generic_counting_pool.rb
434
518
  - lib/volt/utils/generic_pool.rb
435
519
  - lib/volt/volt/environment.rb
436
- - spec/app/bootstrap/assets/js/bootstrap.js
437
- - spec/app/main/assets/js/test1.js
438
- - spec/app/main/config/dependencies.rb
439
- - spec/app/shared/assets/js/test2.js
440
- - spec/app/shared/config/dependencies.rb
441
- - spec/app/slideshow/assets/js/test3.js
520
+ - sauce_connect.log
521
+ - spec/apps/file_loading/app/bootstrap/assets/js/bootstrap.js
522
+ - spec/apps/file_loading/app/main/assets/js/test1.js
523
+ - spec/apps/file_loading/app/main/config/dependencies.rb
524
+ - spec/apps/file_loading/app/shared/assets/js/test2.js
525
+ - spec/apps/file_loading/app/shared/config/dependencies.rb
526
+ - spec/apps/file_loading/app/slideshow/assets/js/test3.js
527
+ - spec/apps/kitchen_sink/app/home/config/routes.rb
528
+ - spec/apps/kitchen_sink/app/home/controllers/index_controller.rb
529
+ - spec/apps/kitchen_sink/app/home/views/index/index.html
530
+ - spec/apps/kitchen_sink/public/index.html
531
+ - spec/integration/test_integration_spec.rb
442
532
  - spec/models/event_chain_spec.rb
443
533
  - spec/models/model_spec.rb
444
534
  - spec/models/old_model_spec.rb
@@ -530,12 +620,17 @@ specification_version: 4
530
620
  summary: A ruby web framework where your ruby runs on both server and client (via
531
621
  Opal)
532
622
  test_files:
533
- - spec/app/bootstrap/assets/js/bootstrap.js
534
- - spec/app/main/assets/js/test1.js
535
- - spec/app/main/config/dependencies.rb
536
- - spec/app/shared/assets/js/test2.js
537
- - spec/app/shared/config/dependencies.rb
538
- - spec/app/slideshow/assets/js/test3.js
623
+ - spec/apps/file_loading/app/bootstrap/assets/js/bootstrap.js
624
+ - spec/apps/file_loading/app/main/assets/js/test1.js
625
+ - spec/apps/file_loading/app/main/config/dependencies.rb
626
+ - spec/apps/file_loading/app/shared/assets/js/test2.js
627
+ - spec/apps/file_loading/app/shared/config/dependencies.rb
628
+ - spec/apps/file_loading/app/slideshow/assets/js/test3.js
629
+ - spec/apps/kitchen_sink/app/home/config/routes.rb
630
+ - spec/apps/kitchen_sink/app/home/controllers/index_controller.rb
631
+ - spec/apps/kitchen_sink/app/home/views/index/index.html
632
+ - spec/apps/kitchen_sink/public/index.html
633
+ - spec/integration/test_integration_spec.rb
539
634
  - spec/models/event_chain_spec.rb
540
635
  - spec/models/model_spec.rb
541
636
  - spec/models/old_model_spec.rb