codegears 0.0.9.pre → 0.0.10.pre

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.
@@ -10,14 +10,15 @@ module Command
10
10
  puts "#{k.capitalize} #{v.first}\n".red
11
11
  end
12
12
  else
13
- puts "Application successfully created.\n".green
13
+ puts "Application successfully created.".green
14
14
  puts "Add the following lines to the file config/initializers/codegears.rb:\n".green
15
+ puts "require \"cg\"\n".green
15
16
  puts "CG::App.configure do |instance|".green
16
17
  puts " instance.id = \"#{response['id']}\"".green
17
18
  puts " instance.secret_id = \"#{response['secret_id']}\"".green
18
19
  puts " instance.secret_token = \"#{response['secret_token']}\"\n".green
19
- puts "end\n"
20
- puts "And restart application to start using the CodeGears platform.\n".green
20
+ puts "end\n".green
21
+ puts "And restart application to start using the CodeGears platform.".green
21
22
  end
22
23
  end
23
24
  end
data/lib/cg/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CG
2
- VERSION = "0.0.9.pre"
2
+ VERSION = "0.0.10.pre"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require "cg/api"
2
+ require "colorize"
2
3
 
3
4
  module Cg
4
5
  module Generators
@@ -11,6 +12,7 @@ module Cg
11
12
  def create_config_file
12
13
  init_settings
13
14
  template "config.rb.template", "config/initializers/codegears.rb"
15
+ puts "Restart application to start using the CodeGears platform.".green
14
16
  end
15
17
 
16
18
  private
@@ -1,3 +1,5 @@
1
+ require "cg"
2
+
1
3
  CG::APP.configure do |instance|
2
4
  instance.id = "<%= @id %>"
3
5
  instance.secret_id = "<%= @secret_id %>"
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codegears
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9.pre
5
- prerelease: 6
4
+ version: 0.0.10.pre
5
+ prerelease: 7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Juri Semjonov