gallery 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 478370db8e1d39eb6fff001f1cd9fc35d37161f6
4
- data.tar.gz: 672efbff267eb2df2def1c3869e11a1f14c5d37a
3
+ metadata.gz: 5bb6247af89d57a4d388b7b35fb814b72c62493f
4
+ data.tar.gz: c59bce96234e2b27f156ac06a32ca1fcfa9531f9
5
5
  SHA512:
6
- metadata.gz: 6b9473b9ece91c62fb9a70727e3c82d3a9c30966a0dbc9d12127425cccb20ce54bf9908fc227daa9a310843d24049f15ad1b3be7022aaef3f55ce0b58cd19b0e
7
- data.tar.gz: 42b3383784901bb7cffe590815aaeb09fc822187ba97fae2b4e97d2c57bd3e6f083eb54fbfe7a40305dacd2bd646c5bfeed29a1bec657ea60b9076d56d19f601
6
+ metadata.gz: 91a03c50a6858ea526d146e7bc4b2b82e1ab4e46e9678009e6ac1b2691556b831795892d8585666568f38a8ce195de3b0296428b1a2dec3f0027b699ca9801e0
7
+ data.tar.gz: 71bb7df74dcf18b4b9105a626bca4e3fc38a5e0662f769c86c04ffbe4f6d97fe097ae08871a2a6c74a11db8615bd57bf55fa497e12238c42b430535f412cef66
@@ -6,7 +6,7 @@ module Gallery
6
6
  def index
7
7
  @identities = Identity.all
8
8
  @public_albums = Album.published
9
- @private_albums = Album.private
9
+ @private_albums = Album.not_published
10
10
  configpath = Rails.root.join('config', 'gallery_api_keys.yml')
11
11
  @providers = YAML.load(ERB.new(File.new(configpath).read).result).keys
12
12
  end
@@ -6,7 +6,7 @@ module Gallery
6
6
  belongs_to :identity, :touch => true
7
7
 
8
8
  scope :published, -> { where(public: true) }
9
- scope :private, -> {where(public: false)}
9
+ scope :not_published, -> {where(public: false)}
10
10
  default_scope order('updated_at DESC')
11
11
 
12
12
  def fetch_photos
@@ -1,3 +1,3 @@
1
1
  module Gallery
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nam Chu Hoai