forge-cli 0.0.16 → 0.0.17

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.
@@ -1,7 +1,7 @@
1
1
  class ForgeCLI
2
2
  class ModuleInstaller
3
- def self.install_module!(module_name, app)
4
- mi = new(module_name, app)
3
+ def self.install_module!(module_name, app, app_path)
4
+ mi = new(module_name, app, app_path)
5
5
  mi.run!
6
6
  end
7
7
 
@@ -37,7 +37,7 @@ class ForgeCLI
37
37
  def copy_files!
38
38
  @mod["files"].each do |file|
39
39
  source_file = File.join(base_path, file)
40
- destination = File.join(app_path, file)
40
+ destination = File.join(@app_path, file)
41
41
  destination_dir = File.dirname(destination)
42
42
 
43
43
  unless File.exist?(source_file)
@@ -52,7 +52,7 @@ class ForgeCLI
52
52
  if File.directory?(source_file)
53
53
  Dir[File.join(source_file, '**', '*')].each do |s|
54
54
  source_file = s
55
- destination = File.join(app_path, s.gsub(base_path, ''))
55
+ destination = File.join(@app_path, s.gsub(base_path, ''))
56
56
  destination_dir = File.dirname(destination)
57
57
  FileUtils.mkdir_p(destination_dir)
58
58
  unless File.directory?(source_file)
@@ -68,7 +68,7 @@ class ForgeCLI
68
68
  def delete_files!
69
69
  @mod["delete"].each do |file|
70
70
  raise "You can't delete non-app files" if file.match(/^\//)
71
- destination = File.join(app_path, file)
71
+ destination = File.join(@app_path, file)
72
72
  if File.exist?(destination)
73
73
  ForgeCLI::Output.write("remove", file)
74
74
  FileUtils.rm(destination)
@@ -78,7 +78,7 @@ class ForgeCLI
78
78
 
79
79
  def create_migrations!
80
80
  source_path = File.join(base_path, 'db', 'migrate')
81
- destination_path = File.join(app_path, 'db', 'migrate')
81
+ destination_path = File.join(@app_path, 'db', 'migrate')
82
82
  unless File.exist?(destination_path)
83
83
  FileUtils.mkdir_p(destination_path)
84
84
  end
@@ -1,3 +1,3 @@
1
1
  class ForgeCLI
2
- VERSION = '0.0.16'
2
+ VERSION = '0.0.17'
3
3
  end
data/lib/forge/Gemfile CHANGED
@@ -1,12 +1,13 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Most dependencies come from this gem
4
4
  gem 'forge-rad', '~> 3.2.13', :require => 'forge-rad'
5
5
 
6
6
  # Extra Plugins
7
7
  gem 'exception_notification', :require => 'exception_notifier'
8
- gem 'rails-settings', :git => 'git://github.com/100hz/rails-settings.git'
8
+ gem 'rails-settings', :git => 'git://github.com/devlinzed/rails-settings.git'
9
9
  gem 'launchy'
10
+ gem 'nokogiri', '1.5.10'
10
11
 
11
12
  # The Groups
12
13
  group :development, :test do
@@ -10,6 +10,6 @@ module Forge
10
10
 
11
11
  class Configuration
12
12
  attr_accessor :mobile_layout, :support_instructions_in_layout,
13
- :languages, :seo_callout, :support_instruction_in_help
13
+ :languages, :seo_callout, :support_instructions_in_help
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forge-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: