forge-cli 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb034dc7596b2cf13168ae5f7d8f504e54d8fcbc
4
- data.tar.gz: 0f73b2c8c982284f5533553d4fc3b8b0e2c84979
3
+ metadata.gz: 5e9cc1af151ab7082fb9fbe118b75f897330f58b
4
+ data.tar.gz: f3aa67999f3bc77de2e2db5d34ec27d3285ef3e3
5
5
  SHA512:
6
- metadata.gz: 62a94b3ae2dffef6811e27390027e061cf1cefc9515f35bcf3640269a811d73479394ae1dc0d254d144473811f42548e257586b6ff360ad22abcf66fcc21c089
7
- data.tar.gz: 8f98b94286c1eef77d657d89a8b185585238ebc7463ec8cdf3bd1b9d9e1438a95cb7b8bd5bb166613eb4317ad0ce1f828ab5b2f78b03fa2223b9cf19f6fdc40a
6
+ metadata.gz: 62fc535da98ebb83d8aeade80045114efca86927a643f6f120a503c687497446298a32e24248b80096cf8acad7122bac0a4f81697ce37deba5c05bff78a1995c
7
+ data.tar.gz: ba2804bc053ce15d84ade2507158b2418fd8d3ed3d759b3a916d95d4d1844ebf41d800126005e69791e52843dd78f11c9b0ac7724aa26312d717b2d98d19b4ca
@@ -22,7 +22,7 @@ resource :settings, :only => [:show, :update]
22
22
  resources :help_topics, :only => [:index, :show]
23
23
 
24
24
  match "help", :controller => :help_topics, :action => :index, :via => :get
25
- match "help/search", :controller => :help_topics, :action => :search, :via => :post
25
+ match "help/search", :controller => :help_topics, :action => :search, :via => :get
26
26
  match "help/:slug", :controller => :help_topics, :action => :show, :via => :get
27
27
 
28
28
  root :to => "index#index"
@@ -1,3 +1,3 @@
1
1
  class ForgeCLI
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
3
3
  end
@@ -0,0 +1,24 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3-ruby (not necessary on OS X Leopard)
3
+ development:
4
+ adapter: postgresql
5
+ encoding: utf8
6
+ database: forge4_development
7
+
8
+ # Warning: The database defined as "test" will be erased and
9
+ # re-generated from your development database when you run "rake".
10
+ # Do not set this db to the same as development or production.
11
+ test:
12
+ adapter: postgresql
13
+ encoding: utf8
14
+ database: forge4_test
15
+
16
+ production:
17
+ adapter: mysql2
18
+ encoding: utf8
19
+ reconnect: true
20
+ database: _production
21
+ pool: 5
22
+ username:
23
+ password:
24
+ host: 10.200.113.226
@@ -0,0 +1,53 @@
1
+ default_run_options[:pty] = true
2
+ default_run_options[:shell] = '/bin/bash --login'
3
+
4
+ set :application, "" # The name of the application
5
+ set :repository, "git@github.com:factore/#{application}.git" # Path to the github repo
6
+ # set :repository, "git@bitbucket.org:factore/#{application}.git" # Path to the bitbucket repo
7
+
8
+ set :scm, "git"
9
+ set :scm_passphrase, "9shwartz90005"
10
+ set :user, "deploy"
11
+ set :deploy_via, :remote_cache
12
+ set :bundle_without, [:darwin, :development, :test, :linux]
13
+
14
+ set :deploy_to, "/var/apps/#{application}"
15
+
16
+ role :web, "metal1.factore.ca", "metal2.factore.ca"
17
+ role :db, "metal1.factore.ca", :primary => true
18
+
19
+ before("deploy:assets:precompile") { run "cd #{current_release}; cp config/database.yml.template config/database.yml" }
20
+ # Uncomment this line if the app uses ferret_server
21
+ # after("deploy:symlink") { run "chmod +rx #{current_path}/script/ferret_server" }
22
+ after("deploy:restart", "deploy:expire_cache")
23
+
24
+ # Clean up!
25
+ set :use_sudo, false
26
+ set :keep_releases, 2
27
+ after "deploy", "deploy:cleanup"
28
+ after "deploy:migrate", "deploy:cleanup"
29
+
30
+
31
+ # Passenger Stuff and Cache Expiry
32
+ namespace :deploy do
33
+ desc "Restarting mod_rails with restart.txt"
34
+ task :restart, :roles => :web, :except => { :no_release => true } do
35
+ run "touch #{current_path}/tmp/restart.txt"
36
+ end
37
+
38
+
39
+ [:start, :stop].each do |t|
40
+ desc "#{t} task is a no-op with mod_rails"
41
+ task t, :roles => :web do ; end
42
+ end
43
+
44
+ desc "Expire the cache"
45
+ task :expire_cache, :roles => :db do
46
+ run "cd /var/apps/#{application}/current; bundle exec rake forge:expire_cache RAILS_ENV=production;"
47
+ end
48
+
49
+ desc "Deploy Forge"
50
+ task :deploy_forge, :roles => :db do
51
+ run "cd #{current_release}; bundle exec rake forge:deploy RAILS_ENV=production PASSWORD=#{ENV['PASSWORD']}; bundle exec rake forge:load_help RAILS_ENV=production"
52
+ end
53
+ end
@@ -0,0 +1,23 @@
1
+ defaults: &defaults
2
+ type: pop # pop OR imap
3
+ server: pop.emailsrvr.com # server hostname
4
+ port: # 993 for IMAPs
5
+ ssl: false # Remove if not using SSL
6
+ username: forgetest-ca@forgemail.ca # Username
7
+ password: DdQhbTPE # Password
8
+ receiver: DispatchMailer # ActionMailer that will receive mail
9
+ use_login: true # Required for GMAIL
10
+ sleep_time: 60 # Poll Frequency. 60 seconds by default
11
+ authentication: # LOGIN, CRAM-MD5, PASSWORD (IMAP Only)
12
+
13
+ development:
14
+ <<: *defaults
15
+ # Override other values here
16
+
17
+ test:
18
+ <<: *defaults
19
+ # Override other values here
20
+
21
+ production:
22
+ <<: *defaults
23
+ # Override other values here
@@ -0,0 +1,19 @@
1
+ development:
2
+ bucket: forge3_development
3
+ access_key_id: AKIAI6K5OJBKKW2OCSBQ
4
+ secret_access_key: 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
5
+
6
+ test:
7
+ bucket: forge3_test
8
+ access_key_id: AKIAI6K5OJBKKW2OCSBQ
9
+ secret_access_key: 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
10
+
11
+ production:
12
+ bucket: forge3_production
13
+ access_key_id: AKIAI6K5OJBKKW2OCSBQ
14
+ secret_access_key: 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
15
+
16
+ encoded:
17
+ bucket: forge3_encoded
18
+ access_key_id: AKIAI6K5OJBKKW2OCSBQ
19
+ secret_access_key: 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
@@ -0,0 +1,2 @@
1
+ DEPRECATION WARNING: String based terminators are deprecated, please use a lambda. (called from define_paperclip_callbacks at /Users/adrianduyzer/www/forge/lib/forge/vendor/ruby/2.0.0/gems/paperclip-3.3.1/lib/paperclip/callbacks.rb:10)
2
+ DEPRECATION WARNING: String based terminators are deprecated, please use a lambda. (called from define_paperclip_callbacks at /Users/adrianduyzer/www/forge/lib/forge/vendor/ruby/2.0.0/gems/paperclip-3.3.1/lib/paperclip/callbacks.rb:10)
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/environment.rb'
3
+ require 'daemon'
4
+
5
+ class DispatchDaemonFetcherDaemon < Daemon::Base
6
+
7
+ @config = YAML.load_file("#{Rails.root}/config/dispatch_daemon.yml")
8
+ @config = @config[Rails.env].to_options
9
+
10
+ @sleep_time = @config.delete(:sleep_time) || 60
11
+ def self.start
12
+ puts "Starting DispatchDaemonFetcherDaemon"
13
+ # Add your own receiver object below
14
+ @fetcher = Fetcher.create({:receiver => DispatchMailer}.merge(@config))
15
+
16
+ loop do
17
+ @fetcher.fetch
18
+ sleep(@sleep_time)
19
+ end
20
+ end
21
+
22
+ def self.stop
23
+ puts "Stopping DispatchDaemonFetcherDaemon"
24
+ end
25
+
26
+ end
27
+
28
+ DispatchDaemonFetcherDaemon.daemonize
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forge-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - factor[e] design initiative
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-19 00:00:00.000000000 Z
11
+ date: 2013-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -102,19 +102,7 @@ extensions: []
102
102
  extra_rdoc_files:
103
103
  - README.md
104
104
  files:
105
- - bin/cucumber
106
- - bin/erubis
107
105
  - bin/forge
108
- - bin/htmldiff
109
- - bin/ldiff
110
- - bin/rackup
111
- - bin/rake
112
- - bin/rdoc
113
- - bin/ri
114
- - bin/sprockets
115
- - bin/thor
116
- - bin/tilt
117
- - bin/tt
118
106
  - lib/forge/app/abilities/video_ability.rb
119
107
  - lib/forge/app/assets/javascripts/app.js
120
108
  - lib/forge/app/assets/javascripts/application.js
@@ -426,6 +414,7 @@ files:
426
414
  - lib/forge/app/views/forge/orders/show.html.haml
427
415
  - lib/forge/app/views/forge/pages/_form.html.haml
428
416
  - lib/forge/app/views/forge/pages/_page.html.haml
417
+ - lib/forge/app/views/forge/pages/_page_list.html.haml
429
418
  - lib/forge/app/views/forge/pages/_subpage.html.haml
430
419
  - lib/forge/app/views/forge/pages/edit.html.haml
431
420
  - lib/forge/app/views/forge/pages/index.html.haml
@@ -551,7 +540,6 @@ files:
551
540
  - lib/forge/app/views/orders/checkout.html.haml
552
541
  - lib/forge/app/views/orders/edit_cart.html.haml
553
542
  - lib/forge/app/views/orders/paid.html.haml
554
- - lib/forge/app/views/pages/_page_list.html.haml
555
543
  - lib/forge/app/views/pages/show.html.haml
556
544
  - lib/forge/app/views/posts/_archive_months.html.haml
557
545
  - lib/forge/app/views/posts/_categories.html.haml
@@ -569,7 +557,10 @@ files:
569
557
  - lib/forge/Capfile
570
558
  - lib/forge/config/application.rb
571
559
  - lib/forge/config/boot.rb
560
+ - lib/forge/config/database.yml
572
561
  - lib/forge/config/database.yml.template
562
+ - lib/forge/config/deploy.rb
563
+ - lib/forge/config/dispatch_daemon.yml
573
564
  - lib/forge/config/environment.rb
574
565
  - lib/forge/config/environments/development.rb
575
566
  - lib/forge/config/environments/production.rb
@@ -591,6 +582,7 @@ files:
591
582
  - lib/forge/config/locales/devise.en.yml
592
583
  - lib/forge/config/locales/en.yml
593
584
  - lib/forge/config/routes.rb
585
+ - lib/forge/config/s3.yml
594
586
  - lib/forge/config/s3.yml.template
595
587
  - lib/forge/config/settings.yml
596
588
  - lib/forge/config/settings.yml.template
@@ -813,6 +805,7 @@ files:
813
805
  - lib/forge/lib/recipes/aaf_recipes.rb
814
806
  - lib/forge/lib/tasks/forge.rake
815
807
  - lib/forge/lib/templates/active_record/model/model.rb
808
+ - lib/forge/log/development.log
816
809
  - lib/forge/public/404.html
817
810
  - lib/forge/public/422.html
818
811
  - lib/forge/public/500.html
@@ -825,6 +818,7 @@ files:
825
818
  - lib/forge/public/robots.txt
826
819
  - lib/forge/Rakefile
827
820
  - lib/forge/script/delayed_job
821
+ - lib/forge/script/dispatch_daemon_fetcher
828
822
  - lib/forge/script/ferret_server
829
823
  - lib/forge/script/rails
830
824
  - lib/forge/spec/controllers/contact_controller_spec.rb
@@ -1003,7 +997,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1003
997
  version: '0'
1004
998
  requirements: []
1005
999
  rubyforge_project:
1006
- rubygems_version: 2.0.3
1000
+ rubygems_version: 2.0.5
1007
1001
  signing_key:
1008
1002
  specification_version: 4
1009
1003
  summary: 'Forge: A CMS for Rapid Application Development'
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'cucumber' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('cucumber', 'cucumber')
data/bin/erubis DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'erubis' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('erubis', 'erubis')
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'htmldiff' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('diff-lcs', 'htmldiff')
data/bin/ldiff DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'ldiff' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('diff-lcs', 'ldiff')
data/bin/rackup DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rackup' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rack', 'rackup')
data/bin/rake DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rake' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rake', 'rake')
data/bin/rdoc DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rdoc' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rdoc', 'rdoc')
data/bin/ri DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'ri' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('rdoc', 'ri')
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'sprockets' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('sprockets', 'sprockets')
data/bin/thor DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'thor' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('thor', 'thor')
data/bin/tilt DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'tilt' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('tilt', 'tilt')
data/bin/tt DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'tt' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
12
-
13
- require 'rubygems'
14
- require 'bundler/setup'
15
-
16
- load Gem.bin_path('treetop', 'tt')