acts_as_hoc_avatarable 0.1.7 → 0.1.8

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1365ca6b566929f80c73b3563c37dced30481961
4
- data.tar.gz: 961c9c89e45e3f5736cd22d3fd1803924ae0bc97
3
+ metadata.gz: c78303c6a1efacc7feb296146fb1c64cb20ca76f
4
+ data.tar.gz: bef89ae181686fdc18ce6b2b046cefb6b0037a9b
5
5
  SHA512:
6
- metadata.gz: b9c8cb1aa63c45781d0e33cad6c0b1460cc0fce2e71a943ce2e5de7ad4fa0bbfcd62119cb31be45759db96cdfb1414595f52681120bef43017e676bb50cfeb8d
7
- data.tar.gz: 4477f8940afaa4f71580766cbaa7f8947ea3bfaa7042b61c422fb6d70b9e4c4d97bb298ef73f18cdc5f21fe3b2b868021819efd82c2fb58ca1965dfeee73cdaa
6
+ metadata.gz: 2fce89607ec177306a8674d3913afdbbb7766a098eaf21683a92e9922363f1a425fb18d788652dc2e65adf30a1ad485c0311823ab526f1eb62c45007eabbd814
7
+ data.tar.gz: 409f6afa0d1446bdae4629762560fe7a511ced76e5588cdec1de44f77274322e944e79356123766989d79475ee6d26108337feeccbf7054180cc31febee22f5a
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Ease the use of active storage as avatar
4
4
  This uses ActiveStorage, thus minimum rails version is 5.2
5
-
5
+
6
6
  ## Installation
7
7
 
8
8
  Add this line to your application's Gemfile:
@@ -25,6 +25,14 @@ install it with:
25
25
 
26
26
  $ rails generate acts_as_hoc_avatarable:install
27
27
 
28
+ You also need ActiveStorage so run the following
29
+
30
+ $ rails activestorage:install
31
+
32
+ And finally migrate with:
33
+
34
+ $ rails db:migrate
35
+
28
36
  ## License
29
37
 
30
38
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,3 +1,3 @@
1
1
  module ActsAsHocAvatarable
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -1,26 +1,16 @@
1
- require 'rails/generators/migration'
2
1
  module ActsAsHocAvatarable
3
2
  module Generators
4
3
  class InstallGenerator < Rails::Generators::Base
5
- include Rails::Generators::Migration
4
+
6
5
  source_root File.expand_path('../templates', __FILE__)
7
6
 
8
7
  def copy_initializer_file
9
8
  template "initializer.rb", "config/initializers/acts_as_hoc_avatarable.rb"
10
9
  end
11
10
 
12
- def install_active_storage
13
- rake 'active_storage::install'
14
- end
15
-
16
- def self.next_migration_number(dirname)
17
- if ActiveRecord::Base.timestamped_migrations
18
- sleep 1 # make sure each time we get a different timestamp
19
- Time.new.utc.strftime("%Y%m%d%H%M%S")
20
- else
21
- "%.3d" % (current_migration_number(dirname) + 1)
22
- end
23
- end
11
+ # def install_active_storage
12
+ # rake 'active_storage::install'
13
+ # end
24
14
  end
25
15
  end
26
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_hoc_avatarable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gert Lavsen