active_decorator 0.5.2 → 0.5.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: a70c9cac44bcc2335cf9a3ce46f611bd7e13e59c
4
- data.tar.gz: 1138c4793b86837ab88baa90119d41e88c26385c
3
+ metadata.gz: 8b629e8976c74e87685b7bb1fbf2e147e98b28d0
4
+ data.tar.gz: 39f23f27bf3a043b71dce4e6d819d1108090ba81
5
5
  SHA512:
6
- metadata.gz: 8c248e0ec8f5891d606a3d1f353263514b36f856d0f9d6aa605e7a984b4027f60044a03f0ec83f5655f5b9958a9338d69fc556d82bf6233e72daafcfd65d6a3d
7
- data.tar.gz: 574698bc3d3f7f10deeb73ee1e5be0baa8edc52e5a0b6a7d70d4b99a80186cb010ef7bd3a19493cbaeb1234e35065b8aaf8a2bef7c7996637308adf30846fbd2
6
+ metadata.gz: 5bd056ada07410daf3273da2227d1a486d16676cba88cf7ed6297fa6647feccd97d1219c5e86cee571c790a368f6ad2c5a8a6c1e556ded5c64167971f5cdfb0b
7
+ data.tar.gz: b7e46eac597123a5ae5d9741c76101341684d3e0ca93b6ae1792eb152c8b4f7691faf82c695ad3c7e926744b2b2ce27d602219eb58a9d820b0a027dc5df58b4c
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.authors = ["Akira Matsuda"]
9
9
  s.email = ["ronnie@dio.jp"]
10
10
  s.homepage = 'https://github.com/amatsuda/active_decorator'
11
- s.summary = %q{A simple and Rubyish view helper for Rails 3}
12
- s.description = %q{A simple and Rubyish view helper for Rails 3}
11
+ s.summary = %q{A simple and Rubyish view helper for Rails}
12
+ s.description = %q{A simple and Rubyish view helper for Rails}
13
13
 
14
14
  s.rubyforge_project = "active_decorator"
15
15
 
@@ -1,3 +1,3 @@
1
1
  module ActiveDecorator
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
@@ -15,7 +15,7 @@ Examples:
15
15
  DESC
16
16
 
17
17
  def create_decorator_file
18
- template 'decorator.rb', File.join('app/decorators', "#{singular_name}_decorator.rb")
18
+ template 'decorator.rb', File.join('app/decorators', class_path, "#{file_name}_decorator.rb")
19
19
  end
20
20
 
21
21
  hook_for :test_framework
@@ -3,7 +3,7 @@ module Rspec
3
3
  source_root File.expand_path('../templates', __FILE__)
4
4
 
5
5
  def create_spec_file
6
- template 'decorator_spec.rb', File.join('spec/decorators', "#{singular_name}_decorator_spec.rb")
6
+ template 'decorator_spec.rb', File.join('spec/decorators', class_path, "#{file_name}_decorator_spec.rb")
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@ module TestUnit
3
3
  source_root File.expand_path('../templates', __FILE__)
4
4
 
5
5
  def create_test_file
6
- template 'decorator_test.rb', File.join('test/decorators', "#{singular_name}_decorator_test.rb")
6
+ template 'decorator_test.rb', File.join('test/decorators', class_path, "#{file_name}_decorator_test.rb")
7
7
  end
8
8
  end
9
9
  end
@@ -2,6 +2,7 @@ require 'active_record'
2
2
  require 'action_controller/railtie'
3
3
  require 'action_mailer/railtie'
4
4
  require 'action_view/railtie'
5
+ require 'ostruct'
5
6
  require 'jbuilder'
6
7
 
7
8
  # config
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-28 00:00:00.000000000 Z
11
+ date: 2015-06-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A simple and Rubyish view helper for Rails 3
13
+ description: A simple and Rubyish view helper for Rails
14
14
  email:
15
15
  - ronnie@dio.jp
16
16
  executables: []
@@ -89,7 +89,7 @@ rubyforge_project: active_decorator
89
89
  rubygems_version: 2.4.5
90
90
  signing_key:
91
91
  specification_version: 4
92
- summary: A simple and Rubyish view helper for Rails 3
92
+ summary: A simple and Rubyish view helper for Rails
93
93
  test_files:
94
94
  - spec/configuration_spec.rb
95
95
  - spec/controllers/fake_detection_spec.rb