espresso 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -53,3 +53,6 @@ rescue LoadError
53
53
  abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
54
54
  end
55
55
  end
56
+
57
+ desc "Bump patch version and release to github and gemcutter"
58
+ task :bump => %w(version:bump:patch release gemcutter:release)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
data/espresso.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{espresso}
8
- s.version = "0.0.6"
8
+ s.version = "0.0.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alexander Semyonov"]
@@ -8,8 +8,7 @@ module Espresso
8
8
  model.class_eval do
9
9
  include InstanceMethods
10
10
 
11
- attr_accessor :name_field
12
- @name_field = :name
11
+ name_field(:name)
13
12
  end
14
13
  end
15
14
 
@@ -33,5 +33,10 @@ module Espresso
33
33
  end
34
34
  result
35
35
  end
36
+
37
+ # Build interpolation options for flash messages
38
+ def interpolation_options
39
+ { :resource_title => resource.to_s }
40
+ end
36
41
  end
37
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: espresso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Semyonov