backbone-support 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.jshintrc +38 -0
- data/.travis.yml +2 -2
- data/CHANGELOG +10 -1
- data/README.md +34 -27
- data/backbone-support.gemspec +1 -1
- data/bower.json +38 -0
- data/lib/assets/javascripts/backbone-support/composite_view.js +8 -8
- data/lib/assets/javascripts/backbone-support/observer.js +25 -13
- data/lib/assets/javascripts/backbone-support/swapping_router.js +1 -1
- data/lib/backbone-support/version.rb +1 -1
- data/spec/javascripts/composite_view_spec.js +46 -66
- data/spec/javascripts/helpers/helpers.js +0 -4
- data/spec/javascripts/observer_spec.js +12 -38
- data/spec/javascripts/support/jasmine.yml +84 -8
- data/spec/javascripts/support/jasmine_helper.rb +15 -0
- data/spec/javascripts/swapping_router_spec.js +29 -46
- data/vendor/assets/javascripts/backbone.js +216 -179
- data/vendor/assets/javascripts/underscore.js +673 -484
- metadata +21 -30
- data/Gemfile.lock +0 -46
- data/spec/javascripts/support/jasmine_config.rb +0 -23
- data/spec/javascripts/support/jasmine_runner.rb +0 -32
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backbone-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.5.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Chad Pytel
|
@@ -12,54 +11,48 @@ authors:
|
|
12
11
|
autorequire:
|
13
12
|
bindir: bin
|
14
13
|
cert_chain: []
|
15
|
-
date:
|
14
|
+
date: 2015-02-16 00:00:00.000000000 Z
|
16
15
|
dependencies:
|
17
16
|
- !ruby/object:Gem::Dependency
|
18
17
|
name: jasmine
|
19
18
|
requirement: !ruby/object:Gem::Requirement
|
20
|
-
none: false
|
21
19
|
requirements:
|
22
|
-
- -
|
20
|
+
- - "~>"
|
23
21
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
22
|
+
version: '2.0'
|
25
23
|
type: :development
|
26
24
|
prerelease: false
|
27
25
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
26
|
requirements:
|
30
|
-
- -
|
27
|
+
- - "~>"
|
31
28
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
29
|
+
version: '2.0'
|
33
30
|
- !ruby/object:Gem::Dependency
|
34
31
|
name: rake
|
35
32
|
requirement: !ruby/object:Gem::Requirement
|
36
|
-
none: false
|
37
33
|
requirements:
|
38
|
-
- -
|
34
|
+
- - ">="
|
39
35
|
- !ruby/object:Gem::Version
|
40
36
|
version: '0'
|
41
37
|
type: :development
|
42
38
|
prerelease: false
|
43
39
|
version_requirements: !ruby/object:Gem::Requirement
|
44
|
-
none: false
|
45
40
|
requirements:
|
46
|
-
- -
|
41
|
+
- - ">="
|
47
42
|
- !ruby/object:Gem::Version
|
48
43
|
version: '0'
|
49
44
|
- !ruby/object:Gem::Dependency
|
50
45
|
name: headless
|
51
46
|
requirement: !ruby/object:Gem::Requirement
|
52
|
-
none: false
|
53
47
|
requirements:
|
54
|
-
- -
|
48
|
+
- - ">="
|
55
49
|
- !ruby/object:Gem::Version
|
56
50
|
version: '0'
|
57
51
|
type: :development
|
58
52
|
prerelease: false
|
59
53
|
version_requirements: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
54
|
requirements:
|
62
|
-
- -
|
55
|
+
- - ">="
|
63
56
|
- !ruby/object:Gem::Version
|
64
57
|
version: '0'
|
65
58
|
description: SwappingController and CompositeView for Backbone.js
|
@@ -69,15 +62,16 @@ executables: []
|
|
69
62
|
extensions: []
|
70
63
|
extra_rdoc_files: []
|
71
64
|
files:
|
72
|
-
- .gitignore
|
73
|
-
- .
|
65
|
+
- ".gitignore"
|
66
|
+
- ".jshintrc"
|
67
|
+
- ".travis.yml"
|
74
68
|
- CHANGELOG
|
75
69
|
- Gemfile
|
76
|
-
- Gemfile.lock
|
77
70
|
- LICENSE
|
78
71
|
- README.md
|
79
72
|
- Rakefile
|
80
73
|
- backbone-support.gemspec
|
74
|
+
- bower.json
|
81
75
|
- lib/assets/javascripts/backbone-support.js
|
82
76
|
- lib/assets/javascripts/backbone-support/composite_view.js
|
83
77
|
- lib/assets/javascripts/backbone-support/observer.js
|
@@ -91,35 +85,33 @@ files:
|
|
91
85
|
- spec/javascripts/helpers/sinon-1.1.1.js
|
92
86
|
- spec/javascripts/observer_spec.js
|
93
87
|
- spec/javascripts/support/jasmine.yml
|
94
|
-
- spec/javascripts/support/
|
95
|
-
- spec/javascripts/support/jasmine_runner.rb
|
88
|
+
- spec/javascripts/support/jasmine_helper.rb
|
96
89
|
- spec/javascripts/support/jquery.js
|
97
90
|
- spec/javascripts/swapping_router_spec.js
|
98
91
|
- vendor/assets/javascripts/backbone.js
|
99
92
|
- vendor/assets/javascripts/underscore.js
|
100
93
|
homepage: http://github.com/thoughtbot/backbone-support
|
101
94
|
licenses: []
|
95
|
+
metadata: {}
|
102
96
|
post_install_message:
|
103
97
|
rdoc_options: []
|
104
98
|
require_paths:
|
105
99
|
- lib
|
106
100
|
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
101
|
requirements:
|
109
|
-
- -
|
102
|
+
- - ">="
|
110
103
|
- !ruby/object:Gem::Version
|
111
104
|
version: '0'
|
112
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
106
|
requirements:
|
115
|
-
- -
|
107
|
+
- - ">="
|
116
108
|
- !ruby/object:Gem::Version
|
117
109
|
version: '0'
|
118
110
|
requirements: []
|
119
111
|
rubyforge_project:
|
120
|
-
rubygems_version:
|
112
|
+
rubygems_version: 2.4.5
|
121
113
|
signing_key:
|
122
|
-
specification_version:
|
114
|
+
specification_version: 4
|
123
115
|
summary: SwappingController and CompositeView for Backbone.js
|
124
116
|
test_files:
|
125
117
|
- spec/javascripts/composite_view_spec.js
|
@@ -127,7 +119,6 @@ test_files:
|
|
127
119
|
- spec/javascripts/helpers/sinon-1.1.1.js
|
128
120
|
- spec/javascripts/observer_spec.js
|
129
121
|
- spec/javascripts/support/jasmine.yml
|
130
|
-
- spec/javascripts/support/
|
131
|
-
- spec/javascripts/support/jasmine_runner.rb
|
122
|
+
- spec/javascripts/support/jasmine_helper.rb
|
132
123
|
- spec/javascripts/support/jquery.js
|
133
124
|
- spec/javascripts/swapping_router_spec.js
|
data/Gemfile.lock
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
backbone-support (0.3.2)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
childprocess (0.3.9)
|
10
|
-
ffi (~> 1.0, >= 1.0.11)
|
11
|
-
diff-lcs (1.2.1)
|
12
|
-
ffi (1.4.0)
|
13
|
-
headless (1.0.1)
|
14
|
-
jasmine (1.3.0)
|
15
|
-
jasmine-core (>= 1.3.0)
|
16
|
-
rack (~> 1.0)
|
17
|
-
rspec (>= 1.3.1)
|
18
|
-
selenium-webdriver (>= 0.1.3)
|
19
|
-
jasmine-core (1.3.1)
|
20
|
-
multi_json (1.6.1)
|
21
|
-
rack (1.5.2)
|
22
|
-
rake (10.0.3)
|
23
|
-
rspec (2.13.0)
|
24
|
-
rspec-core (~> 2.13.0)
|
25
|
-
rspec-expectations (~> 2.13.0)
|
26
|
-
rspec-mocks (~> 2.13.0)
|
27
|
-
rspec-core (2.13.0)
|
28
|
-
rspec-expectations (2.13.0)
|
29
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
30
|
-
rspec-mocks (2.13.0)
|
31
|
-
rubyzip (0.9.9)
|
32
|
-
selenium-webdriver (2.31.0)
|
33
|
-
childprocess (>= 0.2.5)
|
34
|
-
multi_json (~> 1.0)
|
35
|
-
rubyzip
|
36
|
-
websocket (~> 1.0.4)
|
37
|
-
websocket (1.0.7)
|
38
|
-
|
39
|
-
PLATFORMS
|
40
|
-
ruby
|
41
|
-
|
42
|
-
DEPENDENCIES
|
43
|
-
backbone-support!
|
44
|
-
headless
|
45
|
-
jasmine (= 1.3.0)
|
46
|
-
rake
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module Jasmine
|
2
|
-
class Config
|
3
|
-
|
4
|
-
# Add your overrides or custom config code here
|
5
|
-
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
9
|
-
|
10
|
-
# Note - this is necessary for rspec2, which has removed the backtrace
|
11
|
-
module Jasmine
|
12
|
-
class SpecBuilder
|
13
|
-
def declare_spec(parent, spec)
|
14
|
-
me = self
|
15
|
-
example_name = spec["name"]
|
16
|
-
@spec_ids << spec["id"]
|
17
|
-
backtrace = @example_locations[parent.description + " " + example_name]
|
18
|
-
parent.it example_name, {} do
|
19
|
-
me.report_spec(spec["id"])
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
$:.unshift(ENV['JASMINE_GEM_PATH']) if ENV['JASMINE_GEM_PATH'] # for gem testing purposes
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
require 'jasmine'
|
5
|
-
jasmine_config_overrides = File.expand_path(File.join(File.dirname(__FILE__), 'jasmine_config.rb'))
|
6
|
-
require jasmine_config_overrides if File.exist?(jasmine_config_overrides)
|
7
|
-
if Jasmine::rspec2?
|
8
|
-
require 'rspec'
|
9
|
-
else
|
10
|
-
require 'spec'
|
11
|
-
end
|
12
|
-
|
13
|
-
jasmine_config = Jasmine::Config.new
|
14
|
-
spec_builder = Jasmine::SpecBuilder.new(jasmine_config)
|
15
|
-
|
16
|
-
should_stop = false
|
17
|
-
|
18
|
-
if Jasmine::rspec2?
|
19
|
-
RSpec.configuration.after(:suite) do
|
20
|
-
spec_builder.stop if should_stop
|
21
|
-
end
|
22
|
-
else
|
23
|
-
Spec::Runner.configure do |config|
|
24
|
-
config.after(:suite) do
|
25
|
-
spec_builder.stop if should_stop
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
spec_builder.start
|
31
|
-
should_stop = true
|
32
|
-
spec_builder.declare_suites
|