forge-cli 0.0.15 → 0.0.16

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,7 +10,7 @@ class ForgeCLI::App < Thor
10
10
  app = Dir.pwd
11
11
  modules = modules.split(',')
12
12
  modules.each do |mod|
13
- ForgeCLI::ModuleInstaller.install_module!(mod, app)
13
+ ForgeCLI::ModuleInstaller.install_module!(mod, app, app)
14
14
  end
15
15
  end
16
16
 
@@ -9,10 +9,11 @@ class ForgeCLI::ApplicationCreator
9
9
  end
10
10
 
11
11
  def create_application!
12
- system("/usr/bin/env rails new #{@app}")
13
- ForgeCLI::ModuleInstaller.install_module!(:base, @app)
12
+ system("/usr/bin/env rails new #{@app} --skip-bundle")
13
+ app_path = File.join(Dir.pwd, @app)
14
+ ForgeCLI::ModuleInstaller.install_module!(:base, @app, app_path)
14
15
  @modules.each do |mod|
15
- ForgeCLI::ModuleInstaller.install_module!(mod, @app)
16
+ ForgeCLI::ModuleInstaller.install_module!(mod, @app, app_path)
16
17
  end
17
18
 
18
19
  # Remove some base Rails files that we don't want
@@ -5,10 +5,11 @@ class ForgeCLI
5
5
  mi.run!
6
6
  end
7
7
 
8
- def initialize(module_name, app)
8
+ def initialize(module_name, app, app_path)
9
9
  @module_name = module_name.to_s
10
10
  @mod = module_manifest
11
11
  @app = app
12
+ @app_path = app_path
12
13
  end
13
14
 
14
15
  def run!
@@ -104,10 +105,6 @@ class ForgeCLI
104
105
  @base_path ||= File.join(File.dirname(__FILE__), "..", "forge")
105
106
  end
106
107
 
107
- def app_path
108
- @app_path ||= File.join(Dir.pwd, @app)
109
- end
110
-
111
108
  def module_manifest
112
109
  @module_manifest = YAML.load_file(File.join(File.dirname(__FILE__), 'modules', @module_name, 'manifest.yml'))
113
110
  end
@@ -10,7 +10,7 @@ class ForgeCLI
10
10
  end
11
11
 
12
12
  def fix_gemfile
13
- if RUBY_VERSION.match(/^1\.9/)
13
+ if RUBY_VERSION.to_f > 1.8
14
14
  gemfile_content = File.read(File.join(@app, 'Gemfile'))
15
15
  new_content = gemfile_content.gsub("gem 'capybara', '~> 2.0.0'", "gem 'capybara'")
16
16
  new_content = gemfile_content.gsub("gem 'shoulda-matchers', '~> 2.0.0'", "gem 'shoulda-matchers'")
@@ -1,3 +1,3 @@
1
1
  class ForgeCLI
2
- VERSION = '0.0.15'
2
+ VERSION = '0.0.16'
3
3
  end
@@ -1,11 +1,7 @@
1
1
  class CommentsController < ApplicationController
2
2
  before_filter :get_archive_months, :only => :create
3
- before_filter :get_post_categories, :only => :create
4
- # TODO: figure out a caching mechanism
5
- # cache_sweeper :post_sweeper, :only => [:create, :destroy]
6
- # TODO: rakismet back in
7
- # has_rakismet :only => :create
8
-
3
+ before_filter :get_post_categories, :only => :create
4
+
9
5
  def create
10
6
  params[:comment].merge!({:user_ip => request.remote_ip, :user_agent => request.env['HTTP_USER_AGENT'], :referrer => request.env['HTTP_REFERER']})
11
7
  @comment = Comment.new(params[:comment])
@@ -1,6 +1,4 @@
1
1
  class EventsController < ApplicationController
2
- caches_page :index, :show
3
-
4
2
  if Forge.config.events.display == :calendar
5
3
  helper LaterDude::CalendarHelper
6
4
  end
@@ -1,7 +1,7 @@
1
1
  class Forge::HelpTopicsController < ForgeController
2
2
 
3
3
  def index
4
- @help_topics = HelpTopic.order(:title).group(:title)
4
+ @help_topics = HelpTopic.order(:title).group(:title, :id)
5
5
  respond_to do |format|
6
6
  format.js { render :layout => false }
7
7
  format.html { }
@@ -1,7 +1,6 @@
1
1
  class Forge::PostsController < ForgeController
2
2
  before_filter :get_collections
3
3
  before_filter :uses_ckeditor, :only => [:new, :update, :create, :edit]
4
- cache_sweeper :page_sweeper, :only => [:update, :create, :destroy]
5
4
  load_and_authorize_resource
6
5
 
7
6
  def index
@@ -1,8 +1,6 @@
1
1
  class PostsController < ApplicationController
2
2
  before_filter :get_archive_months, :only => [:index, :category, :show]
3
3
  before_filter :get_post_categories
4
- caches_page :show, :index, :category
5
-
6
4
  # TODO: re-enable caching
7
5
  # caches_page :index, :feed
8
6
 
@@ -46,7 +46,6 @@ module Forge3
46
46
 
47
47
  config.autoload_paths += [
48
48
  File.join(Rails.root, 'lib'),
49
- File.join(Rails.root, 'app', 'sweepers'),
50
49
  File.join(Rails.root, 'app', 'form_builders'),
51
50
  File.join(Rails.root, 'app', 'abilities')
52
51
  ]
@@ -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
13
+ :languages, :seo_callout, :support_instruction_in_help
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,118 +1,120 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: forge-cli
3
- version: !ruby/object:Gem::Version
4
- hash: 1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.16
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 15
10
- version: 0.0.15
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - factor[e] design initiative
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-05-13 00:00:00 -04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2013-06-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: rake
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rdoc
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
39
25
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rdoc
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
47
38
  type: :development
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: aruba
51
39
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
53
41
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: aruba
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
61
54
  type: :development
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
64
- name: rails
65
55
  prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rails
64
+ requirement: !ruby/object:Gem::Requirement
67
65
  none: false
68
- requirements:
69
- - - "="
70
- - !ruby/object:Gem::Version
71
- hash: 21
72
- segments:
73
- - 3
74
- - 2
75
- - 13
66
+ requirements:
67
+ - - '='
68
+ - !ruby/object:Gem::Version
76
69
  version: 3.2.13
77
70
  type: :runtime
78
- version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: rainbow
81
71
  prerelease: false
82
- requirement: &id005 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
83
73
  none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- hash: 3
88
- segments:
89
- - 0
90
- version: "0"
74
+ requirements:
75
+ - - '='
76
+ - !ruby/object:Gem::Version
77
+ version: 3.2.13
78
+ - !ruby/object:Gem::Dependency
79
+ name: rainbow
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
91
86
  type: :runtime
92
- version_requirements: *id005
93
- - !ruby/object:Gem::Dependency
94
- name: thor
95
87
  prerelease: false
96
- requirement: &id006 !ruby/object:Gem::Requirement
88
+ version_requirements: !ruby/object:Gem::Requirement
97
89
  none: false
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- hash: 3
102
- segments:
103
- - 0
104
- version: "0"
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: thor
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
105
102
  type: :runtime
106
- version_requirements: *id006
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
107
110
  description:
108
111
  email: sean@factore.ca
109
- executables:
112
+ executables:
110
113
  - forge
111
114
  extensions: []
112
-
113
- extra_rdoc_files:
115
+ extra_rdoc_files:
114
116
  - README.rdoc
115
- files:
117
+ files:
116
118
  - bin/forge
117
119
  - lib/forge/app/abilities/video_ability.rb
118
120
  - lib/forge/app/assets/javascripts/app.js
@@ -1458,44 +1460,34 @@ files:
1458
1460
  - lib/forge-cli/version.rb
1459
1461
  - lib/forge-cli.rb
1460
1462
  - README.rdoc
1461
- has_rdoc: true
1462
1463
  homepage: http://factore.ca/forge-cms
1463
1464
  licenses: []
1464
-
1465
1465
  post_install_message:
1466
- rdoc_options:
1466
+ rdoc_options:
1467
1467
  - --title
1468
1468
  - forge-cli
1469
1469
  - --main
1470
1470
  - README.rdoc
1471
1471
  - -ri
1472
- require_paths:
1472
+ require_paths:
1473
1473
  - lib
1474
1474
  - lib
1475
- required_ruby_version: !ruby/object:Gem::Requirement
1475
+ required_ruby_version: !ruby/object:Gem::Requirement
1476
1476
  none: false
1477
- requirements:
1478
- - - ">="
1479
- - !ruby/object:Gem::Version
1480
- hash: 3
1481
- segments:
1482
- - 0
1483
- version: "0"
1484
- required_rubygems_version: !ruby/object:Gem::Requirement
1477
+ requirements:
1478
+ - - ! '>='
1479
+ - !ruby/object:Gem::Version
1480
+ version: '0'
1481
+ required_rubygems_version: !ruby/object:Gem::Requirement
1485
1482
  none: false
1486
- requirements:
1487
- - - ">="
1488
- - !ruby/object:Gem::Version
1489
- hash: 3
1490
- segments:
1491
- - 0
1492
- version: "0"
1483
+ requirements:
1484
+ - - ! '>='
1485
+ - !ruby/object:Gem::Version
1486
+ version: '0'
1493
1487
  requirements: []
1494
-
1495
1488
  rubyforge_project:
1496
- rubygems_version: 1.5.2
1489
+ rubygems_version: 1.8.23
1497
1490
  signing_key:
1498
1491
  specification_version: 3
1499
- summary: "Forge: A CMS for Rapid Application Development"
1492
+ summary: ! 'Forge: A CMS for Rapid Application Development'
1500
1493
  test_files: []
1501
-