refinerycms 0.9.7 → 0.9.7.1
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.
- data/.gitignore +0 -1
- data/Gemfile +6 -4
- data/bin/refinery +70 -23
- data/changelog.md +100 -85
- data/config/{database.yml.example → database.yml.mysql} +1 -1
- data/config/database.yml.postgresql +57 -0
- data/config/database.yml.sqlite3 +26 -0
- data/lib/gemspec.rb +1 -1
- data/vendor/plugins/authentication/app/controllers/admin/users_controller.rb +1 -1
- data/vendor/plugins/authentication/app/views/users/new.html.erb +10 -1
- data/vendor/plugins/authentication/config/locales/sl.yml +5 -4
- data/vendor/plugins/images/config/locales/sl.yml +4 -4
- data/vendor/plugins/inquiries/config/locales/sl.yml +2 -1
- data/vendor/plugins/refinery/app/views/welcome.html.erb +6 -1
- data/vendor/plugins/refinery/config/locales/sl.yml +1 -1
- data/vendor/plugins/refinery/lib/refinery.rb +1 -1
- metadata +7 -4
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
source :rubygems
|
2
2
|
|
3
3
|
# Specify the database driver as appropriate for your application (only one is necessary).
|
4
|
-
|
5
|
-
gem 'sqlite3-ruby', :require => 'sqlite3'
|
4
|
+
# Defaults to sqlite3. Don't remove any of these below in the core or gems won't install.
|
5
|
+
gem 'sqlite3-ruby', :require => 'sqlite3' #db_adapter=sqlite3
|
6
|
+
#gem 'mysql', :require => 'mysql' #db_adapter=mysql
|
7
|
+
#gem 'pg' #db_adapter=postgresql
|
6
8
|
|
7
|
-
# Specify your favourite web server (only one).
|
9
|
+
# Specify your favourite web server (only one) - not required.
|
8
10
|
#gem 'unicorn', :group => :development
|
9
11
|
#gem 'mongrel', :group => :development
|
10
12
|
|
@@ -40,7 +42,7 @@ end
|
|
40
42
|
|
41
43
|
#===REQUIRED FOR REFINERY GEM INSTALL===
|
42
44
|
# Leave the gem below disabled (commented out) if you're not using the gem install method.
|
43
|
-
#gem 'refinerycms', '= 0.9.7.
|
45
|
+
#gem 'refinerycms', '= 0.9.7.1'
|
44
46
|
#===END OF REFINERY GEM INSTALL REQUIREMENTS===
|
45
47
|
|
46
48
|
# Bundle gems for certain environments:
|
data/bin/refinery
CHANGED
@@ -5,8 +5,13 @@ require 'fileutils'
|
|
5
5
|
refinery_root = (defined?(REFINERY_ROOT) && REFINERY_ROOT.is_a?(Pathname) ? REFINERY_ROOT : Pathname.new(File.expand_path(File.dirname(__FILE__) << "/..")))
|
6
6
|
unless (app_path = ARGV.shift).nil? or app_path.length == 0
|
7
7
|
# if "" or "." or "./" is specified then get the current directory otherwise accept the specified app_path.
|
8
|
-
|
9
|
-
|
8
|
+
if (app_path.length <= 2 and ((is_current_dir = app_path =~ /(\.(\/)?)/).nil? or is_current_dir < 2))
|
9
|
+
rails_root = Dir.getwd
|
10
|
+
else
|
11
|
+
rails_root = app_path =~ /^\// ? app_path : File.expand_path(File.join(Dir.getwd, app_path.gsub(/^\.\//, '')))
|
12
|
+
end
|
13
|
+
|
14
|
+
if File.directory?(rails_root)
|
10
15
|
if ARGV.include?("--force")
|
11
16
|
# remove the contents of the current directory
|
12
17
|
Dir[File.join(rails_root, "*")].each {|dir| FileUtils::rm_rf(dir, :secure => true) }
|
@@ -15,20 +20,30 @@ unless (app_path = ARGV.shift).nil? or app_path.length == 0
|
|
15
20
|
end
|
16
21
|
end
|
17
22
|
|
18
|
-
unless File.
|
23
|
+
unless File.directory?(rails_root) and !ARGV.include?("--force")
|
19
24
|
# make the application path directory
|
20
25
|
FileUtils::makedirs rails_root
|
21
26
|
|
22
27
|
# copy in all of the relevant directories and root files.
|
23
|
-
to_copy = %w(app config db lib public themes script
|
24
|
-
refinery_root.join(dir).to_s
|
28
|
+
to_copy = %w(app config db lib public themes script *.md Rakefile .gitignore config.ru asdas).map do |dir|
|
29
|
+
(new_file_path = refinery_root.join(dir)).exist? ? new_file_path.to_s : nil
|
25
30
|
end
|
26
|
-
FileUtils::cp_r to_copy, rails_root, :verbose => false
|
31
|
+
FileUtils::cp_r to_copy.compact, rails_root, :verbose => false
|
27
32
|
|
28
33
|
# ensure lib/refinery_initializer.rb and lib/gemspec.rb don't make it in.
|
29
34
|
FileUtils::rm File.join(%W(#{rails_root} lib refinery_initializer.rb)) if File.exists?(File.join(%W(#{rails_root} lib refinery_initializer.rb)))
|
30
35
|
FileUtils::rm File.join(%W(#{rails_root} lib gemspec.rb)) if File.exists?(File.join(%W(#{rails_root} lib gemspec.rb)))
|
31
36
|
|
37
|
+
# copy the appropriate database adapter as specified (or not)
|
38
|
+
db_adapter = 'sqlite3'
|
39
|
+
if ARGV.collect{|a| a.split('=').first}.include?('--database')
|
40
|
+
ARGV.each do |arg|
|
41
|
+
arg_parts = arg.split('=')
|
42
|
+
db_adapter = arg_parts.last if arg_parts.first == '--database'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
FileUtils::cp File.join(%W(#{rails_root} config database.yml.#{db_adapter})), File.join(%W(#{rails_root} config database.yml.example))
|
46
|
+
|
32
47
|
# add in the config files
|
33
48
|
%w(database amazon_s3 rackspace_cloudfiles).each do |config|
|
34
49
|
FileUtils::move File.join(%W(#{rails_root} config #{config}.yml.example)), File.join(%W(#{rails_root} config #{config}.yml))
|
@@ -45,7 +60,9 @@ unless (app_path = ARGV.shift).nil? or app_path.length == 0
|
|
45
60
|
line.gsub!("your_production_#{config}", "#{app_name}_production")
|
46
61
|
end
|
47
62
|
# write the new content into the file.
|
48
|
-
File.open(File.join(%W(#{rails_root} config #{config}.yml)), "w")
|
63
|
+
config_file = File.open(File.join(%W(#{rails_root} config #{config}.yml)), "w")
|
64
|
+
config_file.puts(lines.join("\n"))
|
65
|
+
config_file.close
|
49
66
|
end
|
50
67
|
end
|
51
68
|
|
@@ -61,35 +78,65 @@ unless (app_path = ARGV.shift).nil? or app_path.length == 0
|
|
61
78
|
match = line.scan(/(:secret)([^']*)([\'])([^\']*)/).flatten.last
|
62
79
|
line.gsub!(match, new_digest) unless match.nil?
|
63
80
|
end
|
64
|
-
|
65
|
-
|
81
|
+
|
82
|
+
# write the new content into the config file.
|
83
|
+
app_config = File.open(File.join(%W(#{rails_root} config #{app_config_file})), "w")
|
84
|
+
app_config.puts(lines.join("\n"))
|
85
|
+
app_config.close
|
66
86
|
|
67
87
|
# read in the Gemfile and write it back out with the refinerycms gem enabled.
|
68
|
-
lines =
|
69
|
-
lines.each do |line|
|
88
|
+
(lines = refinery_root.join('Gemfile').open('r').read.split("\n")).each do |line|
|
70
89
|
line.gsub!("#gem 'refinerycms'", "gem 'refinerycms'")
|
90
|
+
|
91
|
+
# Ensure that the correct database gem libraries are included for the database adapter
|
92
|
+
# that the user has specified in the refinery install command.
|
93
|
+
if line =~ /\#db\_adapter\=/
|
94
|
+
if line =~ %r{#db_adapter=#{db_adapter}}
|
95
|
+
line.gsub!(/^(\#*\ ?gem)/, 'gem')
|
96
|
+
else
|
97
|
+
line.gsub!(/^(\ ?gem)/, '#gem')
|
98
|
+
end
|
99
|
+
end
|
71
100
|
end
|
101
|
+
|
72
102
|
# write the new content into the file.
|
73
|
-
File.open(File.join(%W(#{rails_root} Gemfile)), "w")
|
103
|
+
app_gemfile = File.open(File.join(%W(#{rails_root} Gemfile)), "w")
|
104
|
+
app_gemfile.puts(lines.join("\n"))
|
105
|
+
app_gemfile.close
|
74
106
|
|
75
107
|
puts "\n---------"
|
76
108
|
puts "Refinery successfully installed in '#{rails_root}'!\n\n"
|
77
|
-
|
109
|
+
|
110
|
+
# automate..
|
111
|
+
Dir.chdir(rails_root) do
|
112
|
+
puts "Installing gem requirements using bundler..\n"
|
113
|
+
puts (cmd="bundle install --without test")
|
114
|
+
puts `#{cmd}`
|
115
|
+
|
116
|
+
puts "\n\nSetting up your development database..\n"
|
117
|
+
puts (cmd="rake -f #{File.join(rails_root, 'Rakefile')} db:setup")
|
118
|
+
puts `#{cmd}`
|
119
|
+
|
120
|
+
puts "\n\nUpdating some core refinery files..\n"
|
121
|
+
puts (cmd="rake -f #{File.join(rails_root, 'Rakefile')} refinery:update")
|
122
|
+
puts `#{cmd}`
|
123
|
+
end
|
124
|
+
|
78
125
|
# output helpful messages.
|
79
|
-
puts "=== ACTION REQUIRED ==="
|
80
|
-
puts "
|
126
|
+
puts "\n=== ACTION REQUIRED ==="
|
127
|
+
puts "Now you can launch your webserver using:"
|
81
128
|
puts "\ncd #{rails_root}"
|
82
|
-
puts "
|
83
|
-
puts "
|
84
|
-
puts "rake refinery:update"
|
85
|
-
puts "\nunicorn_rails -p3000"
|
86
|
-
puts "or"
|
87
|
-
puts "ruby script/server"
|
88
|
-
puts "\nThis will install all the required gems, set up your database, and launches the webserver."
|
129
|
+
puts "script/server"
|
130
|
+
puts "\nThis will launch the built-in webserver at port 3000."
|
89
131
|
puts "You can now see your site running in your browser at http://localhost:3000"
|
90
132
|
puts "\nThanks for installing Refinery, enjoy creating your new application!"
|
91
133
|
puts "---------\n\n"
|
92
134
|
end
|
93
135
|
else
|
94
|
-
puts "
|
136
|
+
puts "\nPlease specify the path where you want to install Refinery. i.e. refinery /path/to/project [options]"
|
137
|
+
puts "\n"
|
138
|
+
puts "Options:"
|
139
|
+
puts "--force Forces the directory to be overriden if the directory already exists"
|
140
|
+
puts "--database=name Preconfigure for selected database (options: mysql/postgresql/sqlite3 - default: sqlite3)."
|
141
|
+
puts "\n"
|
95
142
|
end
|
data/changelog.md
CHANGED
@@ -1,313 +1,328 @@
|
|
1
|
-
|
1
|
+
## 0.9.7.1 [03 July 2010]
|
2
|
+
|
3
|
+
- Bugfixes in the gem installation method process. [Philip Arndt]
|
4
|
+
- Made installing from gem faster. [Philip Arndt]
|
5
|
+
- Provided example files for sqlite3, mysql and postgresql. [Philip Arndt]
|
6
|
+
- Created option for specifying a database adapter (sqlite3, mysql or postgresql) when creating from Gem. [Philip Arndt]
|
7
|
+
- Other bugfixes including UI consistency around signup. [Philip Arndt]
|
8
|
+
|
9
|
+
## 0.9.7 [02 July 2010]
|
2
10
|
|
3
11
|
- Full backend internationalisation (i18n) support and frontend i18n routing. [Maarten Hoogendoorn and Philip Arndt and many others]
|
4
12
|
- Marketable URLs, such as /contact [Joshua Davey and Joe Sak].
|
5
13
|
- Switched to bundler and rack. [Alex Coles and Philip Arndt]
|
6
14
|
- Added options to Refinery Settings :restricted, :scoping, :callback_proc_as_string. [Steven Heidel and Philip Arndt]
|
7
|
-
- Added
|
8
|
-
-
|
9
|
-
-
|
15
|
+
- Added caching abilities to frontend and to RefinerySetting to drastically speed up the application under certain conditions [Philip Arndt]
|
16
|
+
- Added spam filtering to contact form. [djones]
|
17
|
+
- Full Refinery UI redesign. [Resolve Digital]
|
18
|
+
- User Role support. [Amanda Wagener and Philip Arndt]
|
10
19
|
|
11
|
-
|
20
|
+
## 0.9.6.34 [09 May 2010]
|
12
21
|
|
13
22
|
- Bugfixes.
|
14
23
|
|
15
|
-
|
24
|
+
## 0.9.6.33 [06 May 2010]
|
16
25
|
|
17
26
|
- Bugfixes.
|
18
27
|
|
19
|
-
|
28
|
+
## 0.9.6.32 [05 May 2010]
|
20
29
|
|
21
30
|
- Bugfixes.
|
22
31
|
|
23
|
-
|
32
|
+
## 0.9.6.31 [19 April 2010]
|
24
33
|
|
25
34
|
- Bugfixes.
|
26
35
|
|
27
|
-
|
36
|
+
## 0.9.6.30 [15 April 2010]
|
28
37
|
|
29
38
|
- Bugfixes.
|
30
39
|
|
31
|
-
|
40
|
+
## 0.9.6.29 [14 April 2010]
|
32
41
|
|
33
42
|
- Bugfixes.
|
34
43
|
|
35
|
-
|
44
|
+
## 0.9.6.28 [12 April 2010]
|
36
45
|
|
37
46
|
- Bugfixes.
|
38
47
|
|
39
|
-
|
48
|
+
## 0.9.6.27 [12 April 2010]
|
40
49
|
|
41
50
|
- Bugfixes.
|
42
51
|
|
43
|
-
|
52
|
+
## 0.9.6.26 [07 April 2010]
|
44
53
|
|
45
54
|
- Bugfixes.
|
46
55
|
|
47
|
-
|
56
|
+
## 0.9.6.25 [01 April 2010]
|
48
57
|
|
49
58
|
- Bugfixes.
|
50
59
|
|
51
|
-
|
60
|
+
## 0.9.6.24 [26 March 2010]
|
52
61
|
|
53
62
|
- Bugfixes.
|
54
63
|
|
55
|
-
|
64
|
+
## 0.9.6.23 [26 March 2010]
|
56
65
|
|
57
66
|
- Bugfixes.
|
58
67
|
|
59
|
-
|
68
|
+
## 0.9.6.22 [26 March 2010]
|
60
69
|
|
61
70
|
- Bugfixes.
|
62
71
|
|
63
|
-
|
72
|
+
## 0.9.6.21 [23 March 2010]
|
64
73
|
|
65
74
|
- Bugfixes.
|
66
75
|
|
67
|
-
|
76
|
+
## 0.9.6.19 [03 March 2010]
|
68
77
|
|
69
78
|
- Bugfixes.
|
70
79
|
|
71
|
-
|
80
|
+
## 0.9.6.18 [02 March 2010]
|
72
81
|
|
73
82
|
- Bugfixes.
|
74
83
|
|
75
|
-
|
84
|
+
## 0.9.6.17 [02 March 2010]
|
76
85
|
|
77
86
|
- Bugfixes.
|
78
87
|
|
79
|
-
|
88
|
+
## 0.9.6.16 [02 March 2010]
|
80
89
|
|
81
90
|
- Bugfixes.
|
82
91
|
|
83
|
-
|
92
|
+
## 0.9.6.15 [01 March 2010]
|
84
93
|
|
85
94
|
- Bugfixes.
|
86
95
|
|
87
|
-
|
96
|
+
## 0.9.6.14 [24 February 2010]
|
88
97
|
|
89
98
|
- Bugfixes.
|
90
99
|
|
91
|
-
|
100
|
+
## 0.9.6.13 [23 February 2010]
|
92
101
|
|
93
102
|
- Bugfixes.
|
94
103
|
|
95
|
-
|
104
|
+
## 0.9.6.12 [16 February 2010]
|
96
105
|
|
97
106
|
- Bugfixes.
|
98
107
|
|
99
|
-
|
108
|
+
## 0.9.6.11 [16 February 2010]
|
100
109
|
|
101
110
|
- Bugfixes.
|
102
111
|
|
103
|
-
|
112
|
+
## 0.9.6.10 [15 February 2010]
|
104
113
|
|
105
114
|
- Bugfixes.
|
106
115
|
|
107
|
-
|
116
|
+
## 0.9.6.9 [15 February 2010]
|
108
117
|
|
109
118
|
- Bugfixes.
|
110
119
|
|
111
|
-
|
120
|
+
## 0.9.6.8 [14 February 2010]
|
112
121
|
|
113
122
|
- Bugfixes.
|
114
123
|
|
115
|
-
|
124
|
+
## 0.9.6.7 [10 February 2010]
|
116
125
|
|
117
126
|
- Bugfixes.
|
118
127
|
|
119
|
-
|
128
|
+
## 0.9.6.6 [10 February 2010]
|
120
129
|
|
121
130
|
- Bugfixes.
|
122
131
|
|
123
|
-
|
132
|
+
## 0.9.6.5 [08 February 2010]
|
124
133
|
|
125
134
|
- Bugfixes.
|
126
135
|
|
127
|
-
|
136
|
+
## 0.9.6.4 [07 February 2010]
|
128
137
|
|
129
138
|
- Bugfixes.
|
130
139
|
|
131
|
-
|
140
|
+
## 0.9.6.3 [07 February 2010]
|
132
141
|
|
133
142
|
- Bugfixes.
|
134
143
|
|
135
|
-
|
144
|
+
## 0.9.6.2 [04 February 2010]
|
136
145
|
|
137
146
|
- Bugfixes.
|
138
147
|
|
139
|
-
|
148
|
+
## 0.9.6.1 [04 February 2010]
|
140
149
|
|
141
150
|
- Bugfixes.
|
142
151
|
|
143
|
-
|
152
|
+
## 0.9.6 [04 February 2010]
|
144
153
|
|
145
154
|
- Minor release.
|
146
155
|
|
147
|
-
|
156
|
+
## 0.9.5.31 [27 January 2010]
|
148
157
|
|
149
158
|
- Bugfixes.
|
150
159
|
|
151
|
-
|
160
|
+
## 0.9.5.30 [24 January 2010]
|
152
161
|
|
153
162
|
- Bugfixes.
|
154
163
|
|
155
|
-
|
164
|
+
## 0.9.5.29 [23 December 2009]
|
156
165
|
|
157
166
|
- Bugfixes.
|
158
167
|
|
159
|
-
|
168
|
+
## 0.9.5.28 [17 December 2009]
|
160
169
|
|
161
170
|
- Bugfixes.
|
162
171
|
|
163
|
-
|
172
|
+
## 0.9.5.27 [16 December 2009]
|
164
173
|
|
165
174
|
- Bugfixes.
|
166
175
|
|
167
|
-
|
176
|
+
## 0.9.5.26 [13 December 2009]
|
168
177
|
|
169
178
|
- Bugfixes.
|
170
179
|
|
171
|
-
|
180
|
+
## 0.9.5.25 [09 December 2009]
|
172
181
|
|
173
182
|
- Bugfixes.
|
174
183
|
|
175
|
-
|
184
|
+
## 0.9.5.24 [08 December 2009]
|
176
185
|
|
177
186
|
- Bugfixes.
|
178
187
|
|
179
|
-
|
188
|
+
## 0.9.5.23 [07 December 2009]
|
180
189
|
|
181
190
|
- Bugfixes.
|
182
191
|
|
183
|
-
|
192
|
+
## 0.9.5.22 [07 December 2009]
|
184
193
|
|
185
194
|
- Bugfixes.
|
186
195
|
|
187
|
-
|
196
|
+
## 0.9.5.21 [06 December 2009]
|
188
197
|
|
189
198
|
- Bugfixes.
|
190
199
|
|
191
|
-
|
200
|
+
## 0.9.5.20 [03 December 2009]
|
192
201
|
|
193
202
|
- Bugfixes.
|
194
203
|
|
195
|
-
|
204
|
+
## 0.9.5.19 [30 November 2009]
|
196
205
|
|
197
206
|
- Bugfixes.
|
198
207
|
|
199
|
-
|
208
|
+
## 0.9.5.18 [29 November 2009]
|
200
209
|
|
201
210
|
- Bugfixes.
|
202
211
|
|
203
|
-
|
212
|
+
## 0.9.5.16 [26 November 2009]
|
204
213
|
|
205
214
|
- Bugfixes.
|
206
215
|
|
207
|
-
|
216
|
+
## 0.9.5.15 [22 November 2009]
|
208
217
|
|
209
218
|
- Bugfixes.
|
210
219
|
|
211
|
-
|
220
|
+
## 0.9.5.14 [19 November 2009]
|
212
221
|
|
213
222
|
- Bugfixes.
|
214
223
|
|
215
|
-
|
224
|
+
## 0.9.5.13 [18 November 2009]
|
216
225
|
|
217
226
|
- Bugfixes.
|
218
227
|
|
219
|
-
|
228
|
+
## 0.9.5.12 [18 November 2009]
|
220
229
|
|
221
230
|
- Bugfixes.
|
222
231
|
|
223
|
-
|
232
|
+
## 0.9.5.11 [18 November 2009]
|
224
233
|
|
225
234
|
- Bugfixes.
|
226
235
|
|
227
|
-
|
236
|
+
## 0.9.5.10 [17 November 2009]
|
228
237
|
|
229
238
|
- Bugfixes.
|
230
239
|
|
231
|
-
|
240
|
+
## 0.9.5.9 [16 November 2009]
|
232
241
|
|
233
242
|
- Bugfixes.
|
234
243
|
|
235
|
-
|
244
|
+
## 0.9.5.8 [15 November 2009]
|
236
245
|
|
237
246
|
- Bugfixes.
|
238
247
|
|
239
|
-
|
248
|
+
## 0.9.5.7 [09 November 2009]
|
240
249
|
|
241
250
|
- Bugfixes.
|
242
251
|
|
243
|
-
|
252
|
+
## 0.9.5.6 [09 November 2009]
|
244
253
|
|
245
254
|
- Bugfixes.
|
246
255
|
|
247
|
-
|
256
|
+
## 0.9.5.5 [08 November 2009]
|
248
257
|
|
249
258
|
- Bugfixes.
|
250
259
|
|
251
|
-
|
260
|
+
## 0.9.5.4 [04 November 2009]
|
252
261
|
|
253
262
|
- Bugfixes.
|
254
263
|
|
255
|
-
|
264
|
+
## 0.9.5.3 [04 November 2009]
|
256
265
|
|
257
266
|
- Bugfixes.
|
258
267
|
|
259
|
-
|
268
|
+
## 0.9.5.2 [04 November 2009]
|
260
269
|
|
261
270
|
- Bugfixes.
|
262
271
|
|
263
|
-
|
272
|
+
## 0.9.5.1 [03 November 2009]
|
264
273
|
|
265
274
|
- Bugfixes.
|
266
275
|
|
267
|
-
|
276
|
+
## 0.9.5 [03 November 2009]
|
268
277
|
|
269
278
|
- Minor release.
|
270
279
|
|
271
|
-
|
280
|
+
## 0.9.4.4 [29 October 2009]
|
272
281
|
|
273
282
|
- Bugfixes.
|
274
283
|
|
275
|
-
|
284
|
+
## 0.9.4.3 [19 October 2009]
|
276
285
|
|
277
286
|
- Bugfixes.
|
278
287
|
|
279
|
-
|
288
|
+
## 0.9.4.2 [19 October 2009]
|
280
289
|
|
281
290
|
- Bugfixes.
|
282
291
|
|
283
|
-
|
292
|
+
## 0.9.4 [15 October 2009]
|
284
293
|
|
285
294
|
- Minor release.
|
286
295
|
|
287
|
-
|
296
|
+
## 0.9.3 [11 October 2009]
|
288
297
|
|
289
|
-
-
|
298
|
+
- Optimise loading of WYM Editors
|
299
|
+
- Supported more plugins' menu matches
|
290
300
|
|
291
|
-
|
301
|
+
## 0.9.2.2 [08 October 2009]
|
292
302
|
|
293
303
|
- Bugfixes.
|
294
304
|
|
295
|
-
|
305
|
+
## 0.9.2.1 [08 October 2009]
|
296
306
|
|
297
|
-
-
|
307
|
+
- Fix bug with using instance_methods vs using methods to detect whether friendly_id is present.
|
298
308
|
|
299
|
-
|
309
|
+
## 0.9.2 [08 October 2009]
|
300
310
|
|
301
|
-
-
|
311
|
+
- Update rails gem requirement to 2.3.4.
|
302
312
|
|
303
|
-
|
313
|
+
## 0.9.1.2 [07 October 2009]
|
304
314
|
|
305
|
-
-
|
315
|
+
- Updated JS libraries and added lots of convenience methods.
|
306
316
|
|
307
|
-
|
317
|
+
## 0.9.1.1 [05 October 2009]
|
308
318
|
|
309
|
-
-
|
319
|
+
- HTML & CSS changes.
|
320
|
+
|
321
|
+
## 0.9.1 [04 October 2009]
|
322
|
+
|
323
|
+
- Bugfixes
|
324
|
+
- Renamed project from Refinery to refinerycms and released as a gem.
|
310
325
|
|
311
|
-
|
326
|
+
## 0.9 [29 May 2009]
|
312
327
|
|
313
328
|
- Initial public release.
|
@@ -17,8 +17,8 @@ cucumber: &cucumber
|
|
17
17
|
<<: *test
|
18
18
|
|
19
19
|
production: &production
|
20
|
-
database: your_production_database
|
21
20
|
adapter: mysql
|
22
21
|
host: localhost
|
22
|
+
database: your_production_database
|
23
23
|
username: your_production_database_login
|
24
24
|
password: your_production_database_password
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# PostgreSQL. Versions 7.4 and 8.x are supported.
|
2
|
+
#
|
3
|
+
# Install the ruby-postgres driver:
|
4
|
+
# gem install ruby-postgres
|
5
|
+
# On Mac OS X:
|
6
|
+
# gem install ruby-postgres -- --include=/usr/local/pgsql
|
7
|
+
# On Windows:
|
8
|
+
# gem install ruby-postgres
|
9
|
+
# Choose the win32 build.
|
10
|
+
# Install PostgreSQL and put its /bin directory on your path.
|
11
|
+
login: &login
|
12
|
+
adapter: postgresql
|
13
|
+
encoding: unicode
|
14
|
+
username: postgres
|
15
|
+
password: postgres
|
16
|
+
pool: 5
|
17
|
+
|
18
|
+
development: &development
|
19
|
+
database: your_local_database
|
20
|
+
<<: *login
|
21
|
+
|
22
|
+
# Connect on a TCP socket. Omitted by default since the client uses a
|
23
|
+
# domain socket that doesn't need configuration. Windows does not have
|
24
|
+
# domain sockets, so uncomment these lines.
|
25
|
+
#host: localhost
|
26
|
+
#port: 5432
|
27
|
+
|
28
|
+
# Schema search path. The server defaults to $user,public
|
29
|
+
#schema_search_path: myapp,sharedapp,public
|
30
|
+
|
31
|
+
# Minimum log levels, in increasing order:
|
32
|
+
# debug5, debug4, debug3, debug2, debug1,
|
33
|
+
# log, notice, warning, error, fatal, and panic
|
34
|
+
# The server defaults to notice.
|
35
|
+
#min_messages: warning
|
36
|
+
|
37
|
+
# Warning: The database defined as "test" will be erased and
|
38
|
+
# re-generated from your development database when you run "rake".
|
39
|
+
# Do not set this db to the same as development or production.
|
40
|
+
test: &test
|
41
|
+
database: your_test_database
|
42
|
+
<<: *login
|
43
|
+
|
44
|
+
# Warning: The database defined as "cucumber" will be erased and
|
45
|
+
# re-generated from your development database when you run "rake".
|
46
|
+
# Do not set this db to the same as development or production.
|
47
|
+
cucumber: &cucumber
|
48
|
+
database: your_cucumber_database
|
49
|
+
<<: *login
|
50
|
+
|
51
|
+
production: &production
|
52
|
+
adapter: postgresql
|
53
|
+
encoding: unicode
|
54
|
+
pool: 5
|
55
|
+
database: your_production_database
|
56
|
+
username: your_production_database_login
|
57
|
+
password: your_production_database_password
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# SQLite version 3.x
|
2
|
+
development:
|
3
|
+
adapter: sqlite3
|
4
|
+
database: db/development.sqlite3
|
5
|
+
timeout: 5000
|
6
|
+
|
7
|
+
# Warning: The database defined as 'test' will be erased and
|
8
|
+
# re-generated from your development database when you run 'rake'.
|
9
|
+
# Do not set this db to the same as development or production.
|
10
|
+
test:
|
11
|
+
adapter: sqlite3
|
12
|
+
database: db/test.sqlite3
|
13
|
+
timeout: 5000
|
14
|
+
|
15
|
+
# Warning: The database defined as 'cucumber' will be erased and
|
16
|
+
# re-generated from your development database when you run 'rake'.
|
17
|
+
# Do not set this db to the same as development or production.
|
18
|
+
cucumber:
|
19
|
+
adapter: sqlite3
|
20
|
+
database: db/cucumber.sqlite3
|
21
|
+
timeout: 5000
|
22
|
+
|
23
|
+
production:
|
24
|
+
adapter: sqlite3
|
25
|
+
database: db/production.sqlite3
|
26
|
+
timeout: 5000
|
data/lib/gemspec.rb
CHANGED
@@ -5,7 +5,7 @@ files = %w( .gitignore .yardopts Gemfile Rakefile changelog.md readme.md license
|
|
5
5
|
files += Dir.glob("#{dir}/**/*")
|
6
6
|
end
|
7
7
|
|
8
|
-
files.reject!{|f| !File.exist?(f) or f =~ /^(public\/system)|(config\/database.yml$)|(.*\/cache)|(
|
8
|
+
files.reject!{|f| !File.exist?(f) or f =~ /^(public\/system)|(config\/database.yml$)|(.*\/cache)|(db\/.*\.sqlite3?)|(.+\.rbc)/}
|
9
9
|
|
10
10
|
gemspec = <<EOF
|
11
11
|
Gem::Specification.new do |s|
|
@@ -22,7 +22,7 @@ class Admin::UsersController < Admin::BaseController
|
|
22
22
|
|
23
23
|
if @user.save
|
24
24
|
@user.plugins = @selected_plugin_names
|
25
|
-
redirect_to
|
25
|
+
redirect_to(admin_users_url, :notice => t('refinery.crudify.created', :what => @user.login))
|
26
26
|
else
|
27
27
|
render :action => 'new'
|
28
28
|
end
|
@@ -17,10 +17,19 @@
|
|
17
17
|
<%= f.label :password_confirmation %>
|
18
18
|
<%= f.password_field :password_confirmation, :class => 'larger widest' %>
|
19
19
|
</div>
|
20
|
+
|
20
21
|
<% if just_installed? %>
|
21
22
|
<% Refinery::Plugins.registered.in_menu.names.sort.each do |plugin| -%>
|
22
23
|
<%= hidden_field_tag 'user[plugins][]', plugin, :id => "plugins_#{plugin.downcase.gsub(" ", "_")}" %>
|
23
24
|
<% end -%>
|
24
25
|
<% end -%>
|
25
|
-
|
26
|
+
|
27
|
+
<%= render :partial => "/shared/admin/form_actions",
|
28
|
+
:locals => {
|
29
|
+
:f => f,
|
30
|
+
:submit_continue => false,
|
31
|
+
:submit_button_text => t('.sign_up'),
|
32
|
+
:hide_delete => true,
|
33
|
+
:hide_cancel => true
|
34
|
+
}%>
|
26
35
|
<% end -%>
|
@@ -22,8 +22,9 @@ sl:
|
|
22
22
|
login_failed: Oprostite, vaše geslo ali uporabniško ime je bilo napačno.
|
23
23
|
logged_out: Uspešno ste se odjavili.
|
24
24
|
new:
|
25
|
+
hello_please_sign_in: "Pozdravljeni! Prosimo prijavite se."
|
25
26
|
login: Uporabniško ime
|
26
|
-
|
27
|
+
sign_in: Prijavi se
|
27
28
|
cancel: Prekliči
|
28
29
|
password: Geslo
|
29
30
|
remember_me: Zapomni se me
|
@@ -71,8 +72,8 @@ sl:
|
|
71
72
|
user_session: SejaUporabnika
|
72
73
|
attributes:
|
73
74
|
user_session:
|
74
|
-
login:
|
75
|
-
email:
|
76
|
-
password:
|
75
|
+
login: Uporabniško ime
|
76
|
+
email: Email
|
77
|
+
password: Geslo
|
77
78
|
remember_me: zapomni se me
|
78
79
|
incorrect: "Oprostite, {{login_field}} ali geslo je bilo napačno."
|
@@ -11,16 +11,16 @@ sl:
|
|
11
11
|
image: Slika
|
12
12
|
use_current_image: Uporabi trenutno sliko
|
13
13
|
or: ali
|
14
|
-
replace_image:
|
14
|
+
replace_image: jo zamenjaj z ...
|
15
15
|
current_image: Trenutna Slika
|
16
|
-
maximum_image_size: "
|
16
|
+
maximum_image_size: "Največja dovoljena velikost slike je lahko {{megabytes}} megabajtov."
|
17
17
|
index:
|
18
18
|
create_new_image: Ustvari Novo Sliko
|
19
19
|
no_images_yet: Trenutno še ni nobene slike. Za prenos prve slike kliknite "Ustvari Novo Sliko".
|
20
20
|
view:
|
21
|
-
switch_to: Preklopi v {{view_name}}
|
21
|
+
switch_to: Preklopi pogled v {{view_name}}
|
22
22
|
list: seznam
|
23
|
-
grid:
|
23
|
+
grid: mrežo
|
24
24
|
search:
|
25
25
|
results_for: Iskalni rezultati za {{query}}
|
26
26
|
grid_view:
|
@@ -32,9 +32,10 @@ sl:
|
|
32
32
|
closed: "Povpraševanje '{{inquiry}}' je zaprto"
|
33
33
|
reopened: "Povpraševanje '{{inquiry}}' je ponovno odprto"
|
34
34
|
index:
|
35
|
+
no_inquiries: Trenutno še ni nobenega povpraševanja.
|
36
|
+
submenu:
|
35
37
|
update_notified: Uredi prejemnike obvestila
|
36
38
|
edit_confirmation_email: Uredni potrditveni email
|
37
|
-
no_inquiries: Trenutno še ni nobenega povpraševanja.
|
38
39
|
show:
|
39
40
|
details: Podrobnosti
|
40
41
|
click_to_email: Pošlji email sporočilo
|
@@ -53,7 +53,7 @@ sl:
|
|
53
53
|
current: "Trenutna {{what}}"
|
54
54
|
download_current: "Prenesi trenutno {{what}}"
|
55
55
|
opens_in_new_window: Odpri v novem oknu
|
56
|
-
remove_current: "Odstrani
|
56
|
+
remove_current: "Odstrani trenutno {{what}}"
|
57
57
|
resource: vir
|
58
58
|
message:
|
59
59
|
close: Zapri
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 7
|
10
|
-
|
10
|
+
- 1
|
11
|
+
version: 0.9.7.1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Resolve Digital
|
@@ -17,7 +18,7 @@ autorequire:
|
|
17
18
|
bindir: bin
|
18
19
|
cert_chain: []
|
19
20
|
|
20
|
-
date: 2010-07-
|
21
|
+
date: 2010-07-03 00:00:00 +12:00
|
21
22
|
default_executable:
|
22
23
|
dependencies: []
|
23
24
|
|
@@ -52,7 +53,9 @@ files:
|
|
52
53
|
- config/application.rb
|
53
54
|
- config/boot.rb
|
54
55
|
- config/cucumber.yml
|
55
|
-
- config/database.yml.
|
56
|
+
- config/database.yml.mysql
|
57
|
+
- config/database.yml.postgresql
|
58
|
+
- config/database.yml.sqlite3
|
56
59
|
- config/environment.rb
|
57
60
|
- config/environments/cucumber.rb
|
58
61
|
- config/environments/development.rb
|