triumph 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -27,5 +27,13 @@ module Triumph
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
def to_s
|
31
|
+
condition = achievement_conditions.first
|
32
|
+
|
33
|
+
return "Grant this achievement when a user has more than #{quantity} #{observe_class.pluralize}
|
34
|
+
and there are #{condition.total_operator} #{condition.total_value}
|
35
|
+
where #{condition.comparison_attribute} is
|
36
|
+
#{condition.comparison_operator} #{condition.comparison_value}"
|
37
|
+
end
|
30
38
|
end
|
31
39
|
end
|
@@ -4,9 +4,7 @@
|
|
4
4
|
<tr>
|
5
5
|
<th>Name</th>
|
6
6
|
<th>Description</th>
|
7
|
-
<th>Observe class</th>
|
8
7
|
<th>Conditions</th>
|
9
|
-
<th>Quantity</th>
|
10
8
|
<th></th>
|
11
9
|
<th></th>
|
12
10
|
<th></th>
|
@@ -16,9 +14,7 @@
|
|
16
14
|
<tr>
|
17
15
|
<td><%= achievement.name %></td>
|
18
16
|
<td><%= achievement.description %></td>
|
19
|
-
<td><%= achievement
|
20
|
-
<td><%= achievement.conditions %></td>
|
21
|
-
<td><%= achievement.quantity %></td>
|
17
|
+
<td><%= achievement %></td>
|
22
18
|
<td><%= link_to 'Show', achievement %></td>
|
23
19
|
<td><%= link_to 'Edit', edit_triumph_achievement_path(achievement) %></td>
|
24
20
|
<td><%= link_to 'Destroy', achievement, :confirm => 'Are you sure?', :method => :delete %></td>
|
@@ -11,20 +11,8 @@
|
|
11
11
|
</p>
|
12
12
|
|
13
13
|
<p>
|
14
|
-
|
15
|
-
<%= @achievement.observe_class %>
|
14
|
+
<%= @achievement %>
|
16
15
|
</p>
|
17
16
|
|
18
|
-
<p>
|
19
|
-
<b>Conditions:</b>
|
20
|
-
<%= @achievement.conditions %>
|
21
|
-
</p>
|
22
|
-
|
23
|
-
<p>
|
24
|
-
<b>Quantity:</b>
|
25
|
-
<%= @achievement.quantity %>
|
26
|
-
</p>
|
27
|
-
|
28
|
-
|
29
17
|
<%= link_to 'Edit', edit_triumph_achievement_path(@achievement) %> |
|
30
18
|
<%= link_to 'Back', triumph_achievements_path %>
|
data/triumph.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: triumph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Adam Bray
|
@@ -156,7 +156,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
hash:
|
159
|
+
hash: 1793603896583687947
|
160
160
|
segments:
|
161
161
|
- 0
|
162
162
|
version: "0"
|