refinerycms 2.0.10 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/refinerycms +15 -2
- data/templates/refinery/edge.rb +24 -20
- data/templates/refinery/installer.rb +16 -20
- metadata +24 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38cc70410f6bdd92b218d39a3546db122bd4c139
|
4
|
+
data.tar.gz: 9f4bd73cf266c9218f2e58ba58ce52e24d0c3944
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2110a488e988482cd189d447287e6f8c094e68dba4fce4e5e4f9d95573c7067e8aa055c7f93588dbc16f19c75f7c11feb2d3be5f5a79b8055ef165a353af833d
|
7
|
+
data.tar.gz: 6776cf2b05df7d047d130ea0f2204dad54ef49f168885455967c32be62c65162fa336de0b43628272d371c05a6a712470cfea8f033589753f48f03abb67f3ba8
|
data/bin/refinerycms
CHANGED
@@ -4,7 +4,7 @@ require 'rails/generators'
|
|
4
4
|
require 'rails/generators/rails/app/app_generator'
|
5
5
|
template_path = File.expand_path('../../templates/refinery/installer.rb', __FILE__)
|
6
6
|
|
7
|
-
|
7
|
+
def show_help_message
|
8
8
|
puts "Usage:"
|
9
9
|
puts " refinerycms APP_NAME [options]"
|
10
10
|
puts ""
|
@@ -22,9 +22,22 @@ if ARGV.size == 0 || ARGV[0] == "--help"
|
|
22
22
|
dasherized = [option.aliases, "[#{dasherized}]"].flatten.join(', ') if option.aliases.any?
|
23
23
|
puts " #{dasherized}".ljust(28) << "# #{option.description}"
|
24
24
|
end
|
25
|
+
end
|
26
|
+
|
27
|
+
if ARGV.empty?
|
28
|
+
show_help_message
|
25
29
|
exit 0
|
26
30
|
end
|
27
31
|
|
32
|
+
case ARGV.first
|
33
|
+
when "-h", "--help"
|
34
|
+
show_help_message
|
35
|
+
exit 0
|
36
|
+
when "-v", "--version"
|
37
|
+
puts "Refinery CMS #{Gem.loaded_specs['refinerycms'].version}"
|
38
|
+
exit 0
|
39
|
+
end
|
40
|
+
|
28
41
|
application_name = ARGV.shift
|
29
42
|
|
30
43
|
result = Rails::Generators::AppGenerator.start [application_name, '-m', template_path, '--skip-test-unit'] | ARGV
|
@@ -38,7 +51,7 @@ if result && result.include?('Gemfile')
|
|
38
51
|
note << "You can now see Refinery running in your browser at http://localhost:3000/refinery"
|
39
52
|
|
40
53
|
if ARGV.include?('--heroku')
|
41
|
-
note << "\nIf you want files and images to work on Heroku, you will need setup S3:"
|
54
|
+
note << "\nIf you want files and images to work on Heroku, you will need to setup S3:"
|
42
55
|
note << "heroku config:add S3_BUCKET=XXXXXXXXX S3_KEY=XXXXXXXXX S3_SECRET=XXXXXXXXXX S3_REGION=XXXXXXXXXX"
|
43
56
|
end
|
44
57
|
|
data/templates/refinery/edge.rb
CHANGED
@@ -1,39 +1,43 @@
|
|
1
1
|
require 'rbconfig'
|
2
2
|
|
3
|
-
gsub_file 'Gemfile', "gem 'jquery-rails'", "gem 'jquery-rails', '~> 2.0.0'"
|
4
3
|
# We want to ensure that you have an ExecJS runtime available!
|
5
4
|
begin
|
6
|
-
run 'bundle install'
|
7
5
|
require 'execjs'
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
rescue LoadError
|
7
|
+
abort "ExecJS is not installed. Please re-start the installer after running:\ngem install execjs"
|
8
|
+
end
|
9
|
+
|
10
|
+
if File.read("#{destination_root}/Gemfile") !~ /assets.+coffee-rails/m
|
11
|
+
gem "coffee-rails", :group => :assets
|
11
12
|
end
|
12
13
|
|
13
14
|
append_file 'Gemfile' do
|
14
15
|
"
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
#
|
21
|
-
gem 'refinerycms-
|
22
|
-
# gem 'refinerycms-
|
23
|
-
# gem 'refinerycms-inquiries', :git => 'git://github.com/refinery/refinerycms-inquiries.git'
|
24
|
-
# gem 'refinerycms-search', :git => 'git://github.com/refinery/refinerycms-search.git'
|
25
|
-
# gem 'refinerycms-page-images', :git => 'git://github.com/refinery/refinerycms-page-images.git'
|
26
|
-
|
27
|
-
# END USER DEFINED
|
16
|
+
gem 'refinerycms', github: 'refinery/refinerycms', branch: 'master'
|
17
|
+
|
18
|
+
# Optionally, specify additional Refinery CMS Extensions here:
|
19
|
+
gem 'refinerycms-acts-as-indexed', '~> 1.0.0'
|
20
|
+
# gem 'refinerycms-blog', github: 'refinery/refinerycms-blog', branch: 'master'
|
21
|
+
# gem 'refinerycms-inquiries', github: 'refinery/refinerycms-inquiries', branch: 'master'
|
22
|
+
# gem 'refinerycms-search', github: 'refinery/refinerycms-search', branch: 'master'
|
23
|
+
# gem 'refinerycms-page-images', github: 'refinery/refinerycms-page-images', branch: 'master'
|
28
24
|
"
|
29
25
|
end
|
30
26
|
|
27
|
+
begin
|
28
|
+
require 'execjs'
|
29
|
+
::ExecJS::Runtimes.autodetect
|
30
|
+
rescue
|
31
|
+
gsub_file 'Gemfile', "# gem 'therubyracer'", "gem 'therubyracer'"
|
32
|
+
end
|
33
|
+
|
31
34
|
run 'bundle install'
|
35
|
+
|
32
36
|
rake 'db:create'
|
33
37
|
generate "refinery:cms --fresh-installation #{ARGV.join(' ')}"
|
34
38
|
|
35
|
-
say <<-
|
39
|
+
say <<-SAY
|
36
40
|
============================================================================
|
37
41
|
Your new Refinery CMS application is now running on edge and mounted to /.
|
38
42
|
============================================================================
|
39
|
-
|
43
|
+
SAY
|
@@ -1,43 +1,39 @@
|
|
1
1
|
require 'rbconfig'
|
2
|
-
VERSION_BAND = '2.
|
2
|
+
VERSION_BAND = '2.1.0'
|
3
3
|
|
4
|
-
gsub_file 'Gemfile', "gem 'jquery-rails'", "gem 'jquery-rails', '~> 2.0.0'"
|
5
4
|
# We want to ensure that you have an ExecJS runtime available!
|
6
5
|
begin
|
7
|
-
run 'bundle install'
|
8
6
|
require 'execjs'
|
9
|
-
|
10
|
-
|
11
|
-
require 'pathname'
|
12
|
-
if Pathname.new(destination_root.to_s).join('Gemfile').read =~ /therubyracer/
|
13
|
-
gsub_file 'Gemfile', "# gem 'therubyracer'", "gem 'therubyracer'"
|
14
|
-
else
|
15
|
-
append_file 'Gemfile', <<-GEMFILE
|
16
|
-
|
17
|
-
group :assets do
|
18
|
-
# Added by Refinery. We want to ensure that you have an ExecJS runtime available!
|
19
|
-
gem 'therubyracer'
|
7
|
+
rescue LoadError
|
8
|
+
abort "ExecJS is not installed. Please re-start the installer after running:\ngem install execjs"
|
20
9
|
end
|
21
|
-
|
22
|
-
|
10
|
+
|
11
|
+
if File.read("#{destination_root}/Gemfile") !~ /assets.+coffee-rails/m
|
12
|
+
gem "coffee-rails", :group => :assets
|
23
13
|
end
|
24
14
|
|
25
15
|
append_file 'Gemfile', <<-GEMFILE
|
26
16
|
|
27
17
|
# Refinery CMS
|
28
|
-
gem 'refinerycms', '~> #{VERSION_BAND}'
|
18
|
+
gem 'refinerycms', '~> #{VERSION_BAND}'
|
29
19
|
|
30
|
-
#
|
31
|
-
gem 'refinerycms-
|
20
|
+
# Optionally, specify additional Refinery CMS Extensions here:
|
21
|
+
gem 'refinerycms-acts-as-indexed', '~> 1.0.0'
|
32
22
|
# gem 'refinerycms-blog', '~> #{VERSION_BAND}'
|
33
23
|
# gem 'refinerycms-inquiries', '~> #{VERSION_BAND}'
|
34
24
|
# gem 'refinerycms-search', '~> #{VERSION_BAND}'
|
35
25
|
# gem 'refinerycms-page-images', '~> #{VERSION_BAND}'
|
36
26
|
GEMFILE
|
37
27
|
|
38
|
-
|
28
|
+
begin
|
29
|
+
require 'execjs'
|
30
|
+
::ExecJS::Runtimes.autodetect
|
31
|
+
rescue
|
32
|
+
gsub_file 'Gemfile', "# gem 'therubyracer'", "gem 'therubyracer'"
|
33
|
+
end
|
39
34
|
|
40
35
|
run 'bundle install'
|
36
|
+
|
41
37
|
rake 'db:create'
|
42
38
|
generate "refinery:cms --fresh-installation #{ARGV.join(' ')}"
|
43
39
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Arndt
|
@@ -10,106 +10,112 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-08-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 1.2.2
|
22
|
+
- - <
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '2.0'
|
22
25
|
type: :runtime
|
23
26
|
prerelease: false
|
24
27
|
version_requirements: !ruby/object:Gem::Requirement
|
25
28
|
requirements:
|
26
|
-
- -
|
29
|
+
- - '>='
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 1.2.2
|
32
|
+
- - <
|
27
33
|
- !ruby/object:Gem::Version
|
28
|
-
version: '
|
34
|
+
version: '2.0'
|
29
35
|
- !ruby/object:Gem::Dependency
|
30
36
|
name: refinerycms-authentication
|
31
37
|
requirement: !ruby/object:Gem::Requirement
|
32
38
|
requirements:
|
33
39
|
- - '='
|
34
40
|
- !ruby/object:Gem::Version
|
35
|
-
version: 2.0
|
41
|
+
version: 2.1.0
|
36
42
|
type: :runtime
|
37
43
|
prerelease: false
|
38
44
|
version_requirements: !ruby/object:Gem::Requirement
|
39
45
|
requirements:
|
40
46
|
- - '='
|
41
47
|
- !ruby/object:Gem::Version
|
42
|
-
version: 2.0
|
48
|
+
version: 2.1.0
|
43
49
|
- !ruby/object:Gem::Dependency
|
44
50
|
name: refinerycms-core
|
45
51
|
requirement: !ruby/object:Gem::Requirement
|
46
52
|
requirements:
|
47
53
|
- - '='
|
48
54
|
- !ruby/object:Gem::Version
|
49
|
-
version: 2.0
|
55
|
+
version: 2.1.0
|
50
56
|
type: :runtime
|
51
57
|
prerelease: false
|
52
58
|
version_requirements: !ruby/object:Gem::Requirement
|
53
59
|
requirements:
|
54
60
|
- - '='
|
55
61
|
- !ruby/object:Gem::Version
|
56
|
-
version: 2.0
|
62
|
+
version: 2.1.0
|
57
63
|
- !ruby/object:Gem::Dependency
|
58
64
|
name: refinerycms-dashboard
|
59
65
|
requirement: !ruby/object:Gem::Requirement
|
60
66
|
requirements:
|
61
67
|
- - '='
|
62
68
|
- !ruby/object:Gem::Version
|
63
|
-
version: 2.0
|
69
|
+
version: 2.1.0
|
64
70
|
type: :runtime
|
65
71
|
prerelease: false
|
66
72
|
version_requirements: !ruby/object:Gem::Requirement
|
67
73
|
requirements:
|
68
74
|
- - '='
|
69
75
|
- !ruby/object:Gem::Version
|
70
|
-
version: 2.0
|
76
|
+
version: 2.1.0
|
71
77
|
- !ruby/object:Gem::Dependency
|
72
78
|
name: refinerycms-images
|
73
79
|
requirement: !ruby/object:Gem::Requirement
|
74
80
|
requirements:
|
75
81
|
- - '='
|
76
82
|
- !ruby/object:Gem::Version
|
77
|
-
version: 2.0
|
83
|
+
version: 2.1.0
|
78
84
|
type: :runtime
|
79
85
|
prerelease: false
|
80
86
|
version_requirements: !ruby/object:Gem::Requirement
|
81
87
|
requirements:
|
82
88
|
- - '='
|
83
89
|
- !ruby/object:Gem::Version
|
84
|
-
version: 2.0
|
90
|
+
version: 2.1.0
|
85
91
|
- !ruby/object:Gem::Dependency
|
86
92
|
name: refinerycms-pages
|
87
93
|
requirement: !ruby/object:Gem::Requirement
|
88
94
|
requirements:
|
89
95
|
- - '='
|
90
96
|
- !ruby/object:Gem::Version
|
91
|
-
version: 2.0
|
97
|
+
version: 2.1.0
|
92
98
|
type: :runtime
|
93
99
|
prerelease: false
|
94
100
|
version_requirements: !ruby/object:Gem::Requirement
|
95
101
|
requirements:
|
96
102
|
- - '='
|
97
103
|
- !ruby/object:Gem::Version
|
98
|
-
version: 2.0
|
104
|
+
version: 2.1.0
|
99
105
|
- !ruby/object:Gem::Dependency
|
100
106
|
name: refinerycms-resources
|
101
107
|
requirement: !ruby/object:Gem::Requirement
|
102
108
|
requirements:
|
103
109
|
- - '='
|
104
110
|
- !ruby/object:Gem::Version
|
105
|
-
version: 2.0
|
111
|
+
version: 2.1.0
|
106
112
|
type: :runtime
|
107
113
|
prerelease: false
|
108
114
|
version_requirements: !ruby/object:Gem::Requirement
|
109
115
|
requirements:
|
110
116
|
- - '='
|
111
117
|
- !ruby/object:Gem::Version
|
112
|
-
version: 2.0
|
118
|
+
version: 2.1.0
|
113
119
|
description: A Ruby on Rails CMS that supports Rails 3.2. It's easy to extend and
|
114
120
|
sticks to 'the Rails way' where possible.
|
115
121
|
email: info@refinerycms.com
|