agape-red-recipes 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module AgapeRedRecipes
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -31,7 +31,14 @@ class RecipeGenerator < Rails::Generators::Base
31
31
  end
32
32
 
33
33
  def apply_recipe the_recipe
34
- apply "https://raw.github.com/AgapeRedRecipes/#{the_recipe}/master/recipe.rb"
34
+ if the_recipe.include?('.')
35
+ RecipeGenerator.source_root(Rails.root)
36
+ apply the_recipe
37
+ elsif the_recipe.starts_with?('http')
38
+ apply the_recipe
39
+ else
40
+ apply "https://raw.github.com/AgapeRedRecipes/#{the_recipe}/master/recipe.rb"
41
+ end
35
42
  end
36
43
 
37
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agape-red-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: