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 +1 -1
- data/VERSION +1 -1
- data/espresso.gemspec +1 -1
- data/lib/espresso/model.rb +3 -10
- metadata +3 -2
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
data/espresso.gemspec
CHANGED
data/lib/espresso/model.rb
CHANGED
@@ -5,11 +5,7 @@ module Espresso
|
|
5
5
|
module Model
|
6
6
|
def self.included(model)
|
7
7
|
model.extend ClassMethods
|
8
|
-
model.
|
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
|
45
|
-
|
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.
|
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.
|
100
|
+
rubygems_version: 1.3.5
|
100
101
|
signing_key:
|
101
102
|
specification_version: 3
|
102
103
|
summary: Rails extender to simplify rails development
|