url_to_image_path 0.1.21 → 0.1.22

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: 7f42df85c847280a8beaa84c8b84b52d50aeaf1e
4
- data.tar.gz: e97958144c19e482a4b25fc588caaa874ded1834
3
+ metadata.gz: b0399377321545c0f74085f5591e2717216d28af
4
+ data.tar.gz: f26178e6a46777b6666e0ef26d793342d2b1925a
5
5
  SHA512:
6
- metadata.gz: 77ff761373987669a5219f73eeafe83ce9e20293a1c4e61f29a2d8874080d25c0f4307fa523cfa8f3e4cee06e8a8920f797696a6328a840c28235c2780c47a9b
7
- data.tar.gz: 3ebf06849aa486ec15d8af8d352f626028452f7e7391d8219e5bc0503575a696279976fef27d5c83444e49ff5dea420f27971e2e3d7b32f94d8f811fc98f3ef0
6
+ metadata.gz: de09f995f20c641fb2f03c1b971d81bbc48aa66f3d7fe2777bc77c92a7f3302b82b99322c55e473df92a6aa96cc1eef607bc9d4a2546499a65305913925863d3
7
+ data.tar.gz: dd290eb1056b025c605711da60377269f988040e6831fc42df8a76c2ae8f9841ce437fd8a1d35d8b86deec7b69400978e91d7727fb16108f437db01ad620efc5
@@ -0,0 +1,11 @@
1
+ require 'url_to_image_path'
2
+ require 'rails'
3
+ module MyPlugin
4
+ class Railtie < Rails::Railtie
5
+ railtie_name :url_to_image_path
6
+
7
+ rake_tasks do
8
+ load "tasks/convert_urls.rake"
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module UrlToImagePath
2
- VERSION = "0.1.21"
2
+ VERSION = "0.1.22"
3
3
  end
@@ -1,9 +1,5 @@
1
1
  require "url_to_image_path/version"
2
2
 
3
3
  module UrlToImagePath
4
- class Railtie < Rails::Railtie
5
- rake_tasks do
6
- load 'tasks/convert_urls.rake'
7
- end
8
- end
4
+ require 'url_to_image_path/railtie' if defined?(Rails)
9
5
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url_to_image_path
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neven Rakonić
@@ -71,11 +71,13 @@ files:
71
71
  - bin/console
72
72
  - bin/setup
73
73
  - lib/url_to_image_path.rb
74
+ - lib/url_to_image_path/railtie.rb
74
75
  - lib/url_to_image_path/version.rb
75
76
  - tasks/convert_urls.rake
76
77
  - tasks/rspec.rake
77
78
  - url_to_image_path-0.1.1.gem
78
79
  - url_to_image_path-0.1.2.gem
80
+ - url_to_image_path-0.1.21.gem
79
81
  - url_to_image_path.gemspec
80
82
  homepage: https://github.com/nevenRakonic/url_to_image_path
81
83
  licenses: