radiant-exporter-extension 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -0
- data/app/models/radiant/exporter.rb +5 -0
- data/lib/radiant-exporter-extension/version.rb +1 -1
- data/spec/ci/before_script +23 -0
- data/spec/ci/script +2 -0
- metadata +10 -6
- data/README +0 -5
data/README.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# Exporter
|
2
|
+
|
3
|
+
[![Build Status](https://secure.travis-ci.org/radiant/radiant-exporter-extension.png)](http://travis-ci.org/radiant/radiant-exporter-extension)
|
4
|
+
|
5
|
+
Export your models to YAML at yoursite.com/admin/export
|
6
|
+
|
7
|
+
If you want to add models for exporting, add them to the Radiant::Exporter.exportable_models array.
|
@@ -0,0 +1,23 @@
|
|
1
|
+
cd ~
|
2
|
+
git clone git://github.com/radiant/radiant.git
|
3
|
+
cd ~/radiant
|
4
|
+
if [[ $RADIANT_VERSION != "master" ]]
|
5
|
+
then
|
6
|
+
git checkout -b $RADIANT_VERSION $RADIANT_VERSION
|
7
|
+
fi
|
8
|
+
cp -r ~/builds/*/radiant-exporter-extension vendor/extensions/exporter
|
9
|
+
gem install bundler --pre
|
10
|
+
echo 'gem "radiant-exporter-extension", :path => "vendor/extensions/exporter"' >> Gemfile
|
11
|
+
bundle install
|
12
|
+
|
13
|
+
case $DB in
|
14
|
+
"mysql" )
|
15
|
+
mysql -e 'create database radiant_test;'
|
16
|
+
cp spec/ci/database.mysql.yml config/database.yml;;
|
17
|
+
"postgres" )
|
18
|
+
psql -c 'create database radiant_test;' -U postgres
|
19
|
+
cp spec/ci/database.postgresql.yml config/database.yml;;
|
20
|
+
esac
|
21
|
+
|
22
|
+
bundle exec rake db:migrate
|
23
|
+
bundle exec rake db:migrate:extensions
|
data/spec/ci/script
ADDED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-exporter-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Radiant CMS Dev Team
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-01-25 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -42,7 +42,9 @@ files:
|
|
42
42
|
- lib/tasks/exporter_extension_tasks.rake
|
43
43
|
- radiant-exporter-extension.gemspec
|
44
44
|
- Rakefile
|
45
|
-
- README
|
45
|
+
- README.md
|
46
|
+
- spec/ci/before_script
|
47
|
+
- spec/ci/script
|
46
48
|
- spec/controllers/admin/export_controller_spec.rb
|
47
49
|
- spec/models/radiant/exporter_spec.rb
|
48
50
|
- spec/spec.opts
|
@@ -77,11 +79,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
79
|
requirements: []
|
78
80
|
|
79
81
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.
|
82
|
+
rubygems_version: 1.6.2
|
81
83
|
signing_key:
|
82
84
|
specification_version: 3
|
83
85
|
summary: Export your models from Radiant
|
84
86
|
test_files:
|
87
|
+
- spec/ci/before_script
|
88
|
+
- spec/ci/script
|
85
89
|
- spec/controllers/admin/export_controller_spec.rb
|
86
90
|
- spec/models/radiant/exporter_spec.rb
|
87
91
|
- spec/spec.opts
|