krasivotokak-espresso 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -55,4 +55,4 @@ rescue LoadError
55
55
  end
56
56
 
57
57
  desc "Bump patch version and release to github and gemcutter"
58
- task :bump => %w(version:bump:patch release gemcutter:release)
58
+ task :bump => %w(version:bump:patch release gemcutter:release install)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
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.8"
8
+ s.version = "0.0.9"
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"]
@@ -5,11 +5,7 @@ module Espresso
5
5
  module Model
6
6
  def self.included(model)
7
7
  model.extend ClassMethods
8
- model.class_eval do
9
- include InstanceMethods
10
-
11
- name_field(:name)
12
- end
8
+ model.send :include, InstanceMethods
13
9
  end
14
10
 
15
11
  module ClassMethods
@@ -41,11 +37,8 @@ module Espresso
41
37
  # «NameField» is a main field, used to represent model in to_s method and in simple queries
42
38
  # @param [Symbol, String] new_name_field new field name
43
39
  # @return [Symbol] field name
44
- def name_field(new_name_field = nil)
45
- if new_name_field.present?
46
- @@name_field = new_name_field.to_sym
47
- end
48
- @@name_field
40
+ def name_field
41
+ :name
49
42
  end
50
43
 
51
44
  # Make a slug from object’s NameField
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: krasivotokak-espresso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Semyonov
@@ -76,6 +76,7 @@ files:
76
76
  - test/test_helper.rb
77
77
  has_rdoc: false
78
78
  homepage: http://github.com/krasivotokak/espresso
79
+ licenses:
79
80
  post_install_message:
80
81
  rdoc_options:
81
82
  - --charset=UTF-8
@@ -96,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  requirements: []
97
98
 
98
99
  rubyforge_project:
99
- rubygems_version: 1.2.0
100
+ rubygems_version: 1.3.5
100
101
  signing_key:
101
102
  specification_version: 3
102
103
  summary: Rails extender to simplify rails development