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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6d9f5784fb624b33cfc0fd816b35413adde6361
4
- data.tar.gz: 566e6f53b7a884ae120eea7027273027b7c71d57
3
+ metadata.gz: 12985b6c9b29ad1faf9fb4b619939512fe321ae9
4
+ data.tar.gz: 95fbbd780c076eab54aab23f4e18bb6fb9a8f5e6
5
5
  SHA512:
6
- metadata.gz: 581d3be867c30b4202bd8973ba425913b6105a0eb434517280910e4d1a384d264cd3f4c0cef5c759ee65d644b117e119d6e0655a5d6f11485280f8deb763b81d
7
- data.tar.gz: 78a085fd37fb5024ac2af04676ecf62bd318a6c5657ced16bd66d8587c362faadd34fcadb27a7ab64fd21dd39a9662a4da842e6cadafde08c85aec6b4b63524f
6
+ metadata.gz: 0de16672c2d22c2c234e88b134879e7bb9f18eb4154e05798a95bb69ccc4cba741305eece3fcfb9df249d4440696675a3f4fc4d91cb8a6a482ecf5346f713b20
7
+ data.tar.gz: 75cf1615857550dc70d2a3aca74554fdd0acd4efa99fabeff6da218bc03ea04487253f7bf18dfd7326a2c8431bed6c5ff035ce7326a2611a52f4feee30bfc1a1
@@ -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-18"
14
+ gem.date = "2013-08-30"
15
15
 
16
16
  gem.add_dependency "railties", [">= 3.2"]
17
17
 
@@ -1,6 +1,6 @@
1
1
  module Batman
2
2
  module Rails
3
- VERSION = "0.15.2"
3
+ VERSION = "0.15.3"
4
4
  BATMAN_VERSION = "0.15.0-rc2"
5
5
  end
6
6
  end
@@ -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(Task index show)
8
+ run_generator %w(task)
9
9
 
10
10
  assert_file "#{javascripts_path}/batman/views/task_view.js.coffee" do |view|
11
- view_class = Regexp.escape("class Sample.TaskView extends Batman.View")
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.2
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-18 00:00:00.000000000 Z
14
+ date: 2013-08-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties