refinerycms 2.0.8 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/refinerycms +24 -2
- data/templates/refinery/edge.rb +5 -5
- metadata +17 -19
data/bin/refinerycms
CHANGED
@@ -4,7 +4,29 @@ 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
|
+
if ARGV.size == 0 || ARGV[0] == "--help"
|
8
|
+
puts "Usage:"
|
9
|
+
puts " refinerycms APP_NAME [options]"
|
10
|
+
puts ""
|
11
|
+
puts "Options:"
|
12
|
+
# Support when running locally
|
13
|
+
relative_path = File.expand_path('../../core/lib/generators/refinery/cms/cms_generator.rb', __FILE__)
|
14
|
+
if File.exist?(relative_path)
|
15
|
+
require relative_path
|
16
|
+
else
|
17
|
+
gem 'refinerycms-core'
|
18
|
+
require 'generators/refinery/cms/cms_generator'
|
19
|
+
end
|
20
|
+
Refinery::CmsGenerator.class_options.each do |raw, option|
|
21
|
+
dasherized = "--#{option.name.to_s.gsub('_', '-')}"
|
22
|
+
dasherized = [option.aliases, "[#{dasherized}]"].flatten.join(', ') if option.aliases.any?
|
23
|
+
puts " #{dasherized}".ljust(28) << "# #{option.description}"
|
24
|
+
end
|
25
|
+
exit 0
|
26
|
+
end
|
27
|
+
|
7
28
|
application_name = ARGV.shift
|
29
|
+
|
8
30
|
result = Rails::Generators::AppGenerator.start [application_name, '-m', template_path, '--skip-test-unit'] | ARGV
|
9
31
|
|
10
32
|
if result && result.include?('Gemfile')
|
@@ -13,7 +35,7 @@ if result && result.include?('Gemfile')
|
|
13
35
|
note << "\ncd #{application_name}"
|
14
36
|
note << "rails server"
|
15
37
|
note << "\nThis will launch the built-in webserver at port 3000."
|
16
|
-
note << "You can now see
|
38
|
+
note << "You can now see Refinery running in your browser at http://localhost:3000/refinery"
|
17
39
|
|
18
40
|
if ARGV.include?('--heroku')
|
19
41
|
note << "\nIf you want files and images to work on Heroku, you will need setup S3:"
|
@@ -24,4 +46,4 @@ if result && result.include?('Gemfile')
|
|
24
46
|
note << "---------\n\n"
|
25
47
|
|
26
48
|
puts note
|
27
|
-
end
|
49
|
+
end
|
data/templates/refinery/edge.rb
CHANGED
@@ -13,16 +13,16 @@ end
|
|
13
13
|
append_file 'Gemfile' do
|
14
14
|
"
|
15
15
|
|
16
|
-
gem 'refinerycms', :git => 'git://github.com/
|
16
|
+
gem 'refinerycms', :git => 'git://github.com/refinery/refinerycms.git'
|
17
17
|
|
18
18
|
# USER DEFINED
|
19
19
|
|
20
20
|
# Specify additional Refinery CMS Engines here (all optional):
|
21
21
|
gem 'refinerycms-i18n', :git => 'git://github.com/parndt/refinerycms-i18n.git'
|
22
|
-
# gem 'refinerycms-blog', :git => 'git://github.com/
|
23
|
-
# gem 'refinerycms-inquiries', :git => 'git://github.com/
|
24
|
-
# gem 'refinerycms-search', :git => 'git://github.com/
|
25
|
-
# gem 'refinerycms-page-images', :git => 'git://github.com/
|
22
|
+
# gem 'refinerycms-blog', :git => 'git://github.com/refinery/refinerycms-blog.git'
|
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
26
|
|
27
27
|
# END USER DEFINED
|
28
28
|
"
|
metadata
CHANGED
@@ -1,19 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Philip Arndt
|
9
9
|
- Uģis Ozols
|
10
10
|
- Rob Yurkowski
|
11
|
-
- David Jones
|
12
|
-
- Steven Heidel
|
13
11
|
autorequire:
|
14
12
|
bindir: bin
|
15
13
|
cert_chain: []
|
16
|
-
date: 2012-
|
14
|
+
date: 2012-11-21 00:00:00.000000000 Z
|
17
15
|
dependencies:
|
18
16
|
- !ruby/object:Gem::Dependency
|
19
17
|
name: bundler
|
@@ -38,7 +36,7 @@ dependencies:
|
|
38
36
|
requirements:
|
39
37
|
- - '='
|
40
38
|
- !ruby/object:Gem::Version
|
41
|
-
version: 2.0.
|
39
|
+
version: 2.0.9
|
42
40
|
type: :runtime
|
43
41
|
prerelease: false
|
44
42
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -46,7 +44,7 @@ dependencies:
|
|
46
44
|
requirements:
|
47
45
|
- - '='
|
48
46
|
- !ruby/object:Gem::Version
|
49
|
-
version: 2.0.
|
47
|
+
version: 2.0.9
|
50
48
|
- !ruby/object:Gem::Dependency
|
51
49
|
name: refinerycms-core
|
52
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,7 +52,7 @@ dependencies:
|
|
54
52
|
requirements:
|
55
53
|
- - '='
|
56
54
|
- !ruby/object:Gem::Version
|
57
|
-
version: 2.0.
|
55
|
+
version: 2.0.9
|
58
56
|
type: :runtime
|
59
57
|
prerelease: false
|
60
58
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -62,7 +60,7 @@ dependencies:
|
|
62
60
|
requirements:
|
63
61
|
- - '='
|
64
62
|
- !ruby/object:Gem::Version
|
65
|
-
version: 2.0.
|
63
|
+
version: 2.0.9
|
66
64
|
- !ruby/object:Gem::Dependency
|
67
65
|
name: refinerycms-dashboard
|
68
66
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,7 +68,7 @@ dependencies:
|
|
70
68
|
requirements:
|
71
69
|
- - '='
|
72
70
|
- !ruby/object:Gem::Version
|
73
|
-
version: 2.0.
|
71
|
+
version: 2.0.9
|
74
72
|
type: :runtime
|
75
73
|
prerelease: false
|
76
74
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -78,7 +76,7 @@ dependencies:
|
|
78
76
|
requirements:
|
79
77
|
- - '='
|
80
78
|
- !ruby/object:Gem::Version
|
81
|
-
version: 2.0.
|
79
|
+
version: 2.0.9
|
82
80
|
- !ruby/object:Gem::Dependency
|
83
81
|
name: refinerycms-images
|
84
82
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,7 +84,7 @@ dependencies:
|
|
86
84
|
requirements:
|
87
85
|
- - '='
|
88
86
|
- !ruby/object:Gem::Version
|
89
|
-
version: 2.0.
|
87
|
+
version: 2.0.9
|
90
88
|
type: :runtime
|
91
89
|
prerelease: false
|
92
90
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -94,7 +92,7 @@ dependencies:
|
|
94
92
|
requirements:
|
95
93
|
- - '='
|
96
94
|
- !ruby/object:Gem::Version
|
97
|
-
version: 2.0.
|
95
|
+
version: 2.0.9
|
98
96
|
- !ruby/object:Gem::Dependency
|
99
97
|
name: refinerycms-pages
|
100
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -102,7 +100,7 @@ dependencies:
|
|
102
100
|
requirements:
|
103
101
|
- - '='
|
104
102
|
- !ruby/object:Gem::Version
|
105
|
-
version: 2.0.
|
103
|
+
version: 2.0.9
|
106
104
|
type: :runtime
|
107
105
|
prerelease: false
|
108
106
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -110,7 +108,7 @@ dependencies:
|
|
110
108
|
requirements:
|
111
109
|
- - '='
|
112
110
|
- !ruby/object:Gem::Version
|
113
|
-
version: 2.0.
|
111
|
+
version: 2.0.9
|
114
112
|
- !ruby/object:Gem::Dependency
|
115
113
|
name: refinerycms-resources
|
116
114
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,7 +116,7 @@ dependencies:
|
|
118
116
|
requirements:
|
119
117
|
- - '='
|
120
118
|
- !ruby/object:Gem::Version
|
121
|
-
version: 2.0.
|
119
|
+
version: 2.0.9
|
122
120
|
type: :runtime
|
123
121
|
prerelease: false
|
124
122
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -126,7 +124,7 @@ dependencies:
|
|
126
124
|
requirements:
|
127
125
|
- - '='
|
128
126
|
- !ruby/object:Gem::Version
|
129
|
-
version: 2.0.
|
127
|
+
version: 2.0.9
|
130
128
|
description: A Ruby on Rails CMS that supports Rails 3.2. It's easy to extend and
|
131
129
|
sticks to 'the Rails way' where possible.
|
132
130
|
email: info@refinerycms.com
|
@@ -155,7 +153,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
155
153
|
version: '0'
|
156
154
|
segments:
|
157
155
|
- 0
|
158
|
-
hash:
|
156
|
+
hash: -216616577462046168
|
159
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
158
|
none: false
|
161
159
|
requirements:
|
@@ -164,10 +162,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
162
|
version: '0'
|
165
163
|
segments:
|
166
164
|
- 0
|
167
|
-
hash:
|
165
|
+
hash: -216616577462046168
|
168
166
|
requirements: []
|
169
167
|
rubyforge_project: refinerycms
|
170
|
-
rubygems_version: 1.8.
|
168
|
+
rubygems_version: 1.8.24
|
171
169
|
signing_key:
|
172
170
|
specification_version: 3
|
173
171
|
summary: A Ruby on Rails CMS that supports Rails 3.2
|