exhibit 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Exhibit is a simple gem to generate and work with presenters in Rails 3. It is based on the solution Ryan Bates created in [Railscasts Pro episode #287](http://railscasts.com/episodes/287-presenters-from-scratch).
4
4
 
5
- version 0.1.3
5
+ version 0.1.4
6
6
  Robin Brouwer
7
7
  45north
8
8
 
@@ -1,3 +1,3 @@
1
1
  module Exhibit
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -27,7 +27,11 @@ module Exhibit
27
27
  end
28
28
 
29
29
  def exhibit_name
30
- presenter_name.underscore.gsub('/', '_')
30
+ if options[:no_namespace]
31
+ presenter_name.underscore.split('/').last
32
+ else
33
+ presenter_name.underscore.gsub('/', '_')
34
+ end
31
35
  end
32
36
  end
33
37
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exhibit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Robin Brouwer