testgem417 0.0.5 → 0.0.6
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.
- data/lib/testgem417.rb +34 -3
- data/lib/testgem417/version.rb +1 -1
- metadata +1 -1
data/lib/testgem417.rb
CHANGED
|
@@ -12,6 +12,22 @@ module Testgem417
|
|
|
12
12
|
"adapter: postgresql\n database: db/production"
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
def include_common_gems
|
|
16
|
+
gem_group :development do
|
|
17
|
+
gem 'better_errors'
|
|
18
|
+
gem 'binding_of_caller'
|
|
19
|
+
gem 'sqlite3'
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
gem_group :development, :test do
|
|
23
|
+
gem "rspec-rails"
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
gem_group :production do
|
|
27
|
+
gem 'pg'
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
15
31
|
def set_version
|
|
16
32
|
append_to_file "Gemfile", "ruby '1.9.3'", after: "source 'https://rubygems.org'\n"
|
|
17
33
|
inside Rails.root do
|
|
@@ -31,9 +47,7 @@ module Testgem417
|
|
|
31
47
|
end
|
|
32
48
|
|
|
33
49
|
def upload_git
|
|
34
|
-
|
|
35
|
-
run "curl -u '#{@gituser}' https://api.github.com/user/repos -d '{\"name\" : \"#{@project}\"}' "
|
|
36
|
-
end
|
|
50
|
+
run "curl -u '#{@gituser}' https://api.github.com/user/repos -d '{\"name\" : \"#{@project}\"}' "
|
|
37
51
|
git remote: "add origin git@github.com:#{@gituser}/#{@project}.git"
|
|
38
52
|
git push: "-u origin master"
|
|
39
53
|
end
|
|
@@ -45,5 +59,22 @@ module Testgem417
|
|
|
45
59
|
git push: "heroku master"
|
|
46
60
|
end
|
|
47
61
|
end
|
|
62
|
+
|
|
63
|
+
class DeviseGenerator < Rails::Generators::Base
|
|
64
|
+
# Should include the Devise gem, run install on devise,
|
|
65
|
+
# and generate the views. Also migrate the database.
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
class MailGenerator < Rails::Generators::Base
|
|
69
|
+
# Should set up Sendgrid for production and Letter Opener
|
|
70
|
+
# for development.
|
|
71
|
+
# Should also run the correct Heroku command to set up
|
|
72
|
+
# Sendgrid there.
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
class PaperclipGenerator < Rails::Generators::Base
|
|
76
|
+
# Should include the paperclip gem, the aws-paperclip gem,
|
|
77
|
+
# and Figaro for AWS.
|
|
78
|
+
end
|
|
48
79
|
end
|
|
49
80
|
end
|
data/lib/testgem417/version.rb
CHANGED