tkh_illustrations 0.2.4 → 0.2.5

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2Q5MmQ1MmJlNjIyYjRhMDdlYjE0OWFlYjIyNGIxMzAwY2E3ZjA2Yw==
4
+ ZjNjZTg5NTMxYWQ0ODg5YTMxYjlmYzQ4MTU0NzI1NzY5N2VmYzQ2Zg==
5
5
  data.tar.gz: !binary |-
6
- NTcxNzlhNzMwZThkMGRjNTAyNjAxZDQyZTgyOWZjMTk1ZTAyMzMxYQ==
6
+ MDE2ZjQ2MGNhNjJjNGU1Y2Q0MWNjMGNiMjA5MjlmMmU4Yjk2NWYzNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MGE4Y2EzMzI3NDMyMjlhZDhlNWE3OWNjMTE3MzU1MjJkYWJhM2VlZTg2MTU5
10
- ZmU1MTgyNzQ1MjA0MDVmYjM3MTA5M2EzYzIyNDEzZTllYWQ0NDAzNDQ1NjI3
11
- MGVjMThiZDE0ZWNlMTc4NDVhNWQyY2I2OTk1Njk1YzFkYjI3NTc=
9
+ MDU3ZDg2YjQ5YWM3OTJhMTJiZjk0NWNmZTRlMzcyMzRmNjIzZjJlMjUwNDc5
10
+ ODJkNTFmNmY1YWFhZGMyYmY1NTY1ZjQwNWQzOWY1N2NmYzVjZTllMzk2MGYw
11
+ ZGQwZGNmYWU5YjRhNDI2YjUxZjg4MmI0NmI2ZTkyZmJjMjllMmU=
12
12
  data.tar.gz: !binary |-
13
- ZWE0ODkyZjhjNzMzMTZiM2RjMzBhMjI1YWQzMzUwNGI0ZDljYTljYmU4MWM0
14
- MjU5ODM2YmY4ZWQ2ODA5YjdhNDJmYjRiMDZiNDZkOGVhYTk5YTJmNGVmZmQx
15
- ZjA4ZjhhNjhjZmJlOTc1NWI5MTQzZDQ3ZTRmMGIzMTc5ZDc3M2U=
13
+ YTY5NDZkNDEwYmQ2ZTQ4OTI5OGVkZDVhMGJhMjdmY2I2ZmE1ZWZmYzRkZTg1
14
+ YmY3NmQyZDc1NTg2ZTVhNTY5ZTIxMzQ1YWU2YTYxYmI5MTA3M2MwMzI5OWY0
15
+ ODdmNTM3NzczODBjNjliYmIxYWUyNWJmZDIyNWMzMjkyNWMyZjA=
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # TKH Illustrations
2
2
 
3
3
 
4
+ ## 0.2.5
5
+
6
+ * Added an alphabetical scope to illustration model
7
+
4
8
 
5
9
  ## 0.2.4
6
10
 
@@ -4,18 +4,19 @@ Globalize::ActiveRecord::Translation.class_eval do
4
4
  end
5
5
 
6
6
  class Illustration < ActiveRecord::Base
7
-
7
+
8
8
  attr_accessible :image, :name
9
-
9
+
10
10
  validates_presence_of :name
11
-
11
+
12
12
  translates :name
13
-
13
+
14
14
  mount_uploader :image, ImageUploader
15
-
15
+
16
16
  def to_param
17
17
  name ? "#{id}-#{name.to_url}" : id
18
18
  end
19
19
 
20
20
  scope :by_recent, :order => 'updated_at desc'
21
+ scope :alphabetically, order('name')
21
22
  end
@@ -1,3 +1,3 @@
1
1
  module TkhIllustrations
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_illustrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swami Atma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-23 00:00:00.000000000 Z
11
+ date: 2013-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -196,7 +196,8 @@ files:
196
196
  - test/test_helper.rb
197
197
  - test/tkh_illustrations_test.rb
198
198
  homepage: https://github.com/allesklar/tkh_illustrations
199
- licenses: []
199
+ licenses:
200
+ - MIT
200
201
  metadata: {}
201
202
  post_install_message:
202
203
  rdoc_options: []