locomotivecms_mounter 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22319511037ee53f5fde01a98595c7e13625bb94
4
- data.tar.gz: a7ee27a364ec3a987db9ef5b6b2e2e07f5c10470
3
+ metadata.gz: 4c701ff803db0fc2eb729bd9f163c16250c3b025
4
+ data.tar.gz: 5d71e0b87dbca449ca804359ffb4d35bf041a290
5
5
  SHA512:
6
- metadata.gz: 076478319cfcc093fee428b4bb8ce7426ac4764118a2e2b4bf1d6b7735baed1174221fd472105a750ed7fc7f571226aee6831fe8e9525d1096cdd7ac8ef013ca
7
- data.tar.gz: e53c360a726731722ffaef69d85b080556651833134ac2f7a69997aea89edeae92eed2a9838c5947cf34b774b17884748554a29fe583a345e6702ab617226747
6
+ metadata.gz: b9aa9c4fc830cb2323ddef018e1477850b2952c7002a5f30ba63b99185d45159db980ac84e426d9567caecfe9ef3c969de2048db60281e7b0335c5cc2efb9cac
7
+ data.tar.gz: 57c6e614367f7c19baa15158ea7bb56cc53bbfdfb47ea0369710a04aaf05045f51b71edee5b7321855f3990ce1fd570324474e24e866355216c9f0693de50d6a
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ /spec/tmp/trace.log
2
+ /spec/tmp
3
+ .sass-cache/
4
+ .push-tmp/
5
+ .DS_Store
6
+ /spec/fixtures/default/deploy.yml
7
+ pkg
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format=doc
2
+ --color
3
+ --backtrace
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 2.1.1
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+
7
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,130 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ locomotivecms_mounter (1.4.3)
5
+ RedCloth (~> 4.2.3)
6
+ activesupport (~> 3.2.18)
7
+ chronic (~> 0.10.2)
8
+ coffee-script (~> 2.2.0)
9
+ colorize (~> 0.5.8)
10
+ compass (~> 1.0.1, >= 0.12)
11
+ haml (~> 4.0.5)
12
+ httmultiparty (= 0.3.10)
13
+ i18n (~> 0.6.11)
14
+ json (~> 1.8.0)
15
+ less (~> 2.2.1)
16
+ logger
17
+ mime-types (~> 1.19)
18
+ multi_json (~> 1.8.4)
19
+ sass (~> 3.4.4)
20
+ sprockets-sass (~> 1.2.0)
21
+ stringex (~> 2.0.3)
22
+ tilt (= 1.4.1)
23
+ tzinfo (~> 0.3.29)
24
+ yui-compressor (~> 0.12.0)
25
+ zip (~> 2.0.2)
26
+
27
+ GEM
28
+ remote: http://rubygems.org/
29
+ specs:
30
+ RedCloth (4.2.9)
31
+ activesupport (3.2.19)
32
+ i18n (~> 0.6, >= 0.6.4)
33
+ multi_json (~> 1.0)
34
+ addressable (2.3.6)
35
+ chronic (0.10.2)
36
+ chunky_png (1.3.1)
37
+ coffee-script (2.2.0)
38
+ coffee-script-source
39
+ execjs
40
+ coffee-script-source (1.8.0)
41
+ colorize (0.5.8)
42
+ commonjs (0.2.7)
43
+ compass (1.0.1)
44
+ chunky_png (~> 1.2)
45
+ compass-core (~> 1.0.1)
46
+ compass-import-once (~> 1.0.5)
47
+ rb-fsevent (>= 0.9.3)
48
+ rb-inotify (>= 0.9)
49
+ sass (>= 3.3.13, < 3.5)
50
+ compass-core (1.0.1)
51
+ multi_json (~> 1.0)
52
+ sass (>= 3.3.0, < 3.5)
53
+ compass-import-once (1.0.5)
54
+ sass (>= 3.2, < 3.5)
55
+ crack (0.4.2)
56
+ safe_yaml (~> 1.0.0)
57
+ diff-lcs (1.2.5)
58
+ execjs (2.2.1)
59
+ ffi (1.9.3)
60
+ haml (4.0.5)
61
+ tilt
62
+ hike (1.2.3)
63
+ httmultiparty (0.3.10)
64
+ httparty (>= 0.7.3)
65
+ multipart-post
66
+ httparty (0.13.1)
67
+ json (~> 1.8)
68
+ multi_xml (>= 0.5.2)
69
+ i18n (0.6.11)
70
+ json (1.8.1)
71
+ less (2.2.2)
72
+ commonjs (~> 0.2.6)
73
+ libv8 (3.11.8.17)
74
+ logger (1.2.8)
75
+ mime-types (1.25.1)
76
+ multi_json (1.8.4)
77
+ multi_xml (0.5.5)
78
+ multipart-post (2.0.0)
79
+ rack (1.5.2)
80
+ rack-test (0.6.2)
81
+ rack (>= 1.0)
82
+ rake (0.9.2)
83
+ rb-fsevent (0.9.4)
84
+ rb-inotify (0.9.5)
85
+ ffi (>= 0.5.0)
86
+ ref (1.0.5)
87
+ rspec (2.14.1)
88
+ rspec-core (~> 2.14.0)
89
+ rspec-expectations (~> 2.14.0)
90
+ rspec-mocks (~> 2.14.0)
91
+ rspec-core (2.14.8)
92
+ rspec-expectations (2.14.5)
93
+ diff-lcs (>= 1.1.3, < 2.0)
94
+ rspec-mocks (2.14.6)
95
+ ruby-debug-wrapper (0.0.1)
96
+ safe_yaml (1.0.3)
97
+ sass (3.4.5)
98
+ sprockets (2.12.2)
99
+ hike (~> 1.2)
100
+ multi_json (~> 1.0)
101
+ rack (~> 1.0)
102
+ tilt (~> 1.1, != 1.3.0)
103
+ sprockets-sass (1.2.0)
104
+ sprockets (~> 2.0)
105
+ tilt (~> 1.1)
106
+ stringex (2.0.11)
107
+ therubyracer (0.11.4)
108
+ libv8 (~> 3.11.8.12)
109
+ ref
110
+ tilt (1.4.1)
111
+ tzinfo (0.3.41)
112
+ vcr (2.4.0)
113
+ webmock (1.9.3)
114
+ addressable (>= 2.2.7)
115
+ crack (>= 0.3.2)
116
+ yui-compressor (0.12.0)
117
+ zip (2.0.2)
118
+
119
+ PLATFORMS
120
+ ruby
121
+
122
+ DEPENDENCIES
123
+ locomotivecms_mounter!
124
+ rack-test (~> 0.6.1)
125
+ rake (= 0.9.2)
126
+ rspec (~> 2.14.1)
127
+ ruby-debug-wrapper (~> 0.0.1)
128
+ therubyracer (~> 0.11.4)
129
+ vcr (= 2.4.0)
130
+ webmock (= 1.9.3)
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 [Didier Lafforgue]
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/NOTES ADDED
@@ -0,0 +1,4 @@
1
+ * Rules:
2
+
3
+ - select options (and their translations) are defined in the content type
4
+ - a content entry can assign an option to a select field only in the default locale
data/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # LocomotiveCMS Mounter
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/locomotivecms_mounter.svg)](http://badge.fury.io/rb/locomotivecms_mounter)
4
+ [![Code Climate](https://codeclimate.com/github/locomotivecms/mounter.png)](https://codeclimate.com/github/locomotivecms/mounter)
5
+ [![Dependency Status](https://gemnasium.com/locomotivecms/mounter.png)](https://gemnasium.com/locomotivecms/mounter)
6
+ [![Build Status](https://travis-ci.org/locomotivecms/mounter.svg?branch=master)](https://travis-ci.org/locomotivecms/mounter)
7
+ [![Coverage Status](https://coveralls.io/repos/locomotivecms/mounter/badge.png)](https://coveralls.io/r/locomotivecms/mounter)
8
+
9
+ The "LocomotiveCMS Mounter" is a simple module to store in memory a LocomotiveCMS site whatever the source is:
10
+
11
+ * a site template built with the editor and on the local filesystem
12
+ * a zip file of a site template on the local filesystem
13
+ * a zip file of a site template but online through an url
14
+ * a LocomotiveCMS engine
15
+
16
+ It also includes a mechanism which could save the site from the memory to any targets (filesystem, another LocomotiveCMS engine, ...etc).
17
+ This saving mechanism has to be implemented in the application using that module.
18
+
19
+
20
+ ## Contributing
21
+
22
+ 1. Fork it
23
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
24
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
25
+ 4. Push to the branch (`git push origin my-new-feature`)
26
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env rake
2
+ # encoding: utf-8
3
+
4
+ require 'rubygems'
5
+ require 'bundler/setup'
6
+
7
+ require 'rake'
8
+ require 'rspec'
9
+ require 'rspec/core/rake_task'
10
+ require 'rubygems/package_task'
11
+
12
+ $LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
13
+
14
+ require 'locomotive/mounter/version'
15
+
16
+ gemspec = eval(File.read('locomotivecms_mounter.gemspec'))
17
+ Gem::PackageTask.new(gemspec) do |pkg|
18
+ pkg.gem_spec = gemspec
19
+ end
20
+
21
+ desc 'build the gem and release it to rubygems.org'
22
+ task :release => :gem do
23
+ sh "gem push pkg/locomotivecms_mounter-#{gemspec.version}.gem"
24
+ end
25
+
26
+ RSpec::Core::RakeTask.new('spec:unit') do |spec|
27
+ spec.pattern = 'spec/unit/**/*_spec.rb'
28
+
29
+ end
30
+
31
+ RSpec::Core::RakeTask.new('spec:integration') do |spec|
32
+ spec.pattern = 'spec/integration/**/*_spec.rb'
33
+ end
34
+
35
+ task :spec => ['spec:unit', 'spec:integration']
36
+
37
+ task :default => :spec
data/TODO ADDED
@@ -0,0 +1,82 @@
1
+ - readers
2
+ - API
3
+ x site
4
+ x pages
5
+ x fetch all (+ translations)
6
+ x editable elements
7
+ x content assets
8
+ x content type (engine does not return the content_type_id)
9
+ x snippets
10
+ x content types
11
+ x content entries
12
+ - content assets
13
+ x theme assets
14
+ x content assets
15
+ x translations
16
+ - filesystem
17
+ x pages
18
+ x localized fullpath (rebuild the fullpath for localized pages based on the slug / parent slug)
19
+ x editable elements
20
+ x content type
21
+ x snippets
22
+ x content types
23
+ x content entries
24
+ x yaml front matter
25
+ x haml -> liquid
26
+ - theme_assets
27
+ - tests
28
+ - content_assets
29
+ - tests
30
+ - translations
31
+ - test
32
+
33
+ - writers
34
+ - API
35
+ x site
36
+ x create it if it does not exist (admin rights ?)
37
+ x update it
38
+ x theme assets
39
+ x pages
40
+ x layouts first
41
+ x editable elements ?
42
+ x content type
43
+ x content assets
44
+ x snippets
45
+ x content assets
46
+ x content types
47
+ x replace klass_name by the real class name of the content type
48
+ x select type: options
49
+ x content entries
50
+ x create
51
+ x update in another locale (only the translated and non blank fields)
52
+ x update with relationships
53
+ x content assets
54
+ x do not try to replace them every time (in other words, only when they got changed)
55
+ x translations
56
+ - FileSystem
57
+ x site
58
+ x pages
59
+ x page elements (YAML matters)
60
+ x snippets
61
+ x content types
62
+ x content entries
63
+ x theme assets
64
+ x use url instead of source
65
+ x convert in HAML, SASS, Coffeescript
66
+ x content assets
67
+ - translations
68
+ - tests
69
+
70
+
71
+ === case not handled for now ===
72
+
73
+ - a content type gets changed: new fields, renamed ones or deleted.
74
+
75
+ === BUGS ===
76
+
77
+ - theme_assets: some js are not correctly updated
78
+ - manage errors from the engine
79
+
80
+ ====== use case =====
81
+
82
+ -- filesystem -> mongodb (mongoid ?)
data/init.rb ADDED
@@ -0,0 +1,2 @@
1
+ # Init
2
+ require File.dirname(__FILE__) + '/lib/locomotive/mounter'
@@ -2,7 +2,7 @@
2
2
  module Locomotive
3
3
  module Mounter #:nodoc
4
4
 
5
- VERSION = '1.4.2'
5
+ VERSION = '1.4.3'
6
6
 
7
7
  end
8
8
  end
@@ -0,0 +1,63 @@
1
+ #!/usr/bin/env gem build
2
+ # encoding: utf-8
3
+
4
+ lib = File.expand_path('../lib/', __FILE__)
5
+ $:.unshift lib unless $:.include?(lib)
6
+
7
+ require 'locomotive/mounter/version'
8
+
9
+ Gem::Specification.new do |s|
10
+ s.name = 'locomotivecms_mounter'
11
+ s.version = Locomotive::Mounter::VERSION
12
+ s.platform = Gem::Platform::RUBY
13
+ s.authors = ['Didier Lafforgue']
14
+ s.email = ['didier@nocoffee.fr']
15
+ s.homepage = 'http://www.locomotivecms.com'
16
+ s.summary = 'LocomotiveCMS Mounter'
17
+ s.description = 'Mount any LocomotiveCMS site, from a template on the filesystem, a zip file or even an online engine'
18
+
19
+ s.files = `git ls-files`.split("\n").delete_if { |n| n.start_with?('spec') }
20
+ s.require_path = 'lib'
21
+ s.required_rubygems_version = '>= 1.3.6'
22
+ s.rubyforge_project = 'locomotivecms_mounter'
23
+
24
+ s.add_dependency 'tilt', '1.4.1'
25
+ s.add_dependency 'sprockets-sass', '~> 1.2.0'
26
+ s.add_dependency 'yui-compressor', '~> 0.12.0'
27
+ s.add_dependency 'haml', '~> 4.0.5'
28
+ s.add_dependency 'sass', '~> 3.4.4'
29
+ s.add_dependency 'compass', '>= 0.12', '~> 1.0.1'
30
+ s.add_dependency 'coffee-script', '~> 2.2.0'
31
+ s.add_dependency 'less', '~> 2.2.1'
32
+ s.add_dependency 'RedCloth', '~> 4.2.3'
33
+
34
+ s.add_dependency 'tzinfo', '~> 0.3.29'
35
+ s.add_dependency 'chronic', '~> 0.10.2'
36
+
37
+ s.add_dependency 'activesupport', '~> 3.2.18'
38
+ s.add_dependency 'i18n', '~> 0.6.11'
39
+ s.add_dependency 'stringex', '~> 2.0.3'
40
+
41
+ s.add_dependency 'multi_json', '~> 1.8.4'
42
+ s.add_dependency 'httmultiparty', '0.3.10'
43
+ s.add_dependency 'json', '~> 1.8.0'
44
+ s.add_dependency 'mime-types', '~> 1.19'
45
+
46
+ s.add_dependency 'zip', '~> 2.0.2'
47
+ s.add_dependency 'colorize', '~> 0.5.8'
48
+ s.add_dependency 'logger'
49
+
50
+ s.add_development_dependency 'rake', '0.9.2'
51
+ s.add_development_dependency 'rspec', '~> 2.14.1'
52
+ s.add_development_dependency 'rack-test', '~> 0.6.1'
53
+ s.add_development_dependency 'ruby-debug-wrapper', '~> 0.0.1'
54
+ s.add_development_dependency 'vcr', '2.4.0'
55
+ s.add_development_dependency 'therubyracer', '~> 0.11.4'
56
+ # s.add_development_dependency 'fakeweb'
57
+ s.add_development_dependency 'webmock', '1.9.3'
58
+ # s.add_development_dependency 'bson'
59
+ # s.add_development_dependency 'bson_ext'
60
+ # s.add_development_dependency 'typhoeus', '0.5.0'
61
+ # s.add_development_dependency 'faraday' #, '1.9.3'
62
+ end
63
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotivecms_mounter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didier Lafforgue
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-19 00:00:00.000000000 Z
11
+ date: 2014-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt
@@ -87,6 +87,9 @@ dependencies:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0.12'
90
+ - - "~>"
91
+ - !ruby/object:Gem::Version
92
+ version: 1.0.1
90
93
  type: :runtime
91
94
  prerelease: false
92
95
  version_requirements: !ruby/object:Gem::Requirement
@@ -94,6 +97,9 @@ dependencies:
94
97
  - - ">="
95
98
  - !ruby/object:Gem::Version
96
99
  version: '0.12'
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: 1.0.1
97
103
  - !ruby/object:Gem::Dependency
98
104
  name: coffee-script
99
105
  requirement: !ruby/object:Gem::Requirement
@@ -410,6 +416,17 @@ executables: []
410
416
  extensions: []
411
417
  extra_rdoc_files: []
412
418
  files:
419
+ - ".gitignore"
420
+ - ".rspec"
421
+ - ".travis.yml"
422
+ - Gemfile
423
+ - Gemfile.lock
424
+ - MIT-LICENSE
425
+ - NOTES
426
+ - README.md
427
+ - Rakefile
428
+ - TODO
429
+ - init.rb
413
430
  - lib/locomotive/mounter.rb
414
431
  - lib/locomotive/mounter/config.rb
415
432
  - lib/locomotive/mounter/engine_api.rb
@@ -432,6 +449,7 @@ files:
432
449
  - lib/locomotive/mounter/models/theme_asset.rb
433
450
  - lib/locomotive/mounter/models/translation.rb
434
451
  - lib/locomotive/mounter/mounting_point.rb
452
+ - lib/locomotive/mounter/reader/.DS_Store
435
453
  - lib/locomotive/mounter/reader/api.rb
436
454
  - lib/locomotive/mounter/reader/api/base.rb
437
455
  - lib/locomotive/mounter/reader/api/content_assets_reader.rb
@@ -480,6 +498,7 @@ files:
480
498
  - lib/locomotive/mounter/writer/file_system/theme_assets_writer.rb
481
499
  - lib/locomotive/mounter/writer/file_system/translations_writer.rb
482
500
  - lib/locomotive/mounter/writer/runner.rb
501
+ - locomotivecms_mounter.gemspec
483
502
  homepage: http://www.locomotivecms.com
484
503
  licenses: []
485
504
  metadata: {}