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 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.
@@ -1,3 +1,8 @@
1
+ if RUBY_VERSION > "1.9"
2
+ require "yaml"
3
+ YAML::ENGINE.yamler = "syck"
4
+ end
5
+
1
6
  module Radiant
2
7
  class Exporter
3
8
  cattr_accessor :exportable_models
@@ -1,3 +1,3 @@
1
1
  module RadiantExporterExtension
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -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
@@ -0,0 +1,2 @@
1
+ cd ~/radiant
2
+ bundle exec rake spec:extensions EXT=exporter
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
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: 2011-10-22 00:00:00 -05:00
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.3.9.3
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
data/README DELETED
@@ -1,5 +0,0 @@
1
- = Exporter
2
-
3
- Export your models to YAML at yoursite.com/admin/export
4
-
5
- If you want to add models for exporting, add them to the Radiant::Exporter.exportable_models array.