batman-rails 0.15.2 → 0.15.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/batman-rails.gemspec +1 -1
- data/lib/batman-rails/version.rb +1 -1
- data/test/view_generator_test.rb +14 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12985b6c9b29ad1faf9fb4b619939512fe321ae9
|
4
|
+
data.tar.gz: 95fbbd780c076eab54aab23f4e18bb6fb9a8f5e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0de16672c2d22c2c234e88b134879e7bb9f18eb4154e05798a95bb69ccc4cba741305eece3fcfb9df249d4440696675a3f4fc4d91cb8a6a482ecf5346f713b20
|
7
|
+
data.tar.gz: 75cf1615857550dc70d2a3aca74554fdd0acd4efa99fabeff6da218bc03ea04487253f7bf18dfd7326a2c8431bed6c5ff035ce7326a2611a52f4feee30bfc1a1
|
data/batman-rails.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
|
|
11
11
|
gem.description = %q{Quickly get started with batman.js in a Rails app. Provides generators to get started and bundles in the latest version of batman.js.}
|
12
12
|
gem.summary = %q{Use batman.js with Rails}
|
13
13
|
gem.homepage = "https://github.com/Shopify/batman-rails"
|
14
|
-
gem.date = "2013-08-
|
14
|
+
gem.date = "2013-08-30"
|
15
15
|
|
16
16
|
gem.add_dependency "railties", [">= 3.2"]
|
17
17
|
|
data/lib/batman-rails/version.rb
CHANGED
data/test/view_generator_test.rb
CHANGED
@@ -5,15 +5,24 @@ class ViewGeneratorTest < Rails::Generators::TestCase
|
|
5
5
|
tests Batman::Generators::ViewGenerator
|
6
6
|
|
7
7
|
test "simple view" do
|
8
|
-
run_generator %w(
|
8
|
+
run_generator %w(task)
|
9
9
|
|
10
10
|
assert_file "#{javascripts_path}/batman/views/task_view.js.coffee" do |view|
|
11
|
-
view_class
|
12
|
-
view_index_class = Regexp.escape("class Sample.TaskIndexView extends Sample.TaskView")
|
13
|
-
view_show_class = Regexp.escape("class Sample.TaskShowView extends Sample.TaskView")
|
14
|
-
|
11
|
+
view_class = Regexp.escape("class Sample.TaskView extends Batman.View")
|
15
12
|
assert_match /#{view_class}/, view
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
test "controller views" do
|
17
|
+
run_generator %w(tasks index show)
|
18
|
+
|
19
|
+
assert_file "#{javascripts_path}/batman/views/tasks/tasks_index_view.js.coffee" do |view|
|
20
|
+
view_index_class = Regexp.escape("class Sample.TasksIndexView extends Batman.View")
|
16
21
|
assert_match /#{view_index_class}/, view
|
22
|
+
end
|
23
|
+
|
24
|
+
assert_file "#{javascripts_path}/batman/views/tasks/tasks_show_view.js.coffee" do |view|
|
25
|
+
view_show_class = Regexp.escape("class Sample.TasksShowView extends Batman.View")
|
17
26
|
assert_match /#{view_show_class}/, view
|
18
27
|
end
|
19
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: batman-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Small
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-08-
|
14
|
+
date: 2013-08-30 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|