naranya_ecm-sdk 0.0.8 → 0.0.9
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.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/lib/naranya_ecm-sdk.rb +0 -3
- data/lib/naranya_ecm-sdk/version.rb +1 -1
- data/lib/naranya_ecm/behaviors.rb +1 -0
- data/lib/naranya_ecm/behaviors/resourceable.rb +20 -0
- data/lib/naranya_ecm/models.rb +2 -0
- data/lib/naranya_ecm/models/category.rb +26 -28
- data/lib/naranya_ecm/models/content.rb +42 -93
- data/lib/naranya_ecm/models/content_version.rb +18 -27
- data/lib/naranya_ecm/models/download_authorization.rb +30 -32
- data/lib/naranya_ecm/models/embedded_hash.rb +10 -0
- data/lib/naranya_ecm/models/embedded_localized_hash.rb +38 -0
- data/lib/naranya_ecm/models/lifecycle.rb +21 -23
- data/lib/naranya_ecm/models/media_resource.rb +21 -23
- data/naranya_ecm-sdk.gemspec +2 -2
- metadata +33 -31
- data/lib/naranya_ecm/site_from_configuration.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa3c941b20c7a0c131d3258eb65bcde07bbe4213
|
4
|
+
data.tar.gz: bc90e3e548dc4b5cbf26acaeae43ec97f37fd162
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48154db75d14e930f2a89eb5b7c64f65231b16fc05706e809801d2ed157d94e9b0e0c6968f22bc6dda758b505e0d244017c4f6272c61d70e49c2608d385739d0
|
7
|
+
data.tar.gz: 9c2dc788f21c4352bab8b363e69b0f1a404b1eb4f8e1717a212c62af30cf4b8822a42f706c7dbae1d1502595fcde273ecddfde69b50abd361771e7de66d4d521
|
data/Gemfile
CHANGED
data/lib/naranya_ecm-sdk.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
# estoy loco...
|
2
|
+
|
3
|
+
module NaranyaEcm::Behaviors
|
4
|
+
module Resourceable
|
5
|
+
extend ActiveSupport::Concern
|
6
|
+
|
7
|
+
included do
|
8
|
+
self.site = NaranyaEcm.options.site
|
9
|
+
before_save :normalize_attributes
|
10
|
+
end
|
11
|
+
|
12
|
+
def normalize_attributes
|
13
|
+
# Remove associated objects; Keep only the ID's:
|
14
|
+
self.reflections
|
15
|
+
.select { |key, val| val.class.name == "ActiveResource::Reflection::AssociationReflection" }
|
16
|
+
.keys.each { |attribute_name| self.attributes.delete attribute_name }
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/naranya_ecm/models.rb
CHANGED
@@ -1,42 +1,40 @@
|
|
1
1
|
require 'active_resource'
|
2
2
|
|
3
|
-
module NaranyaEcm
|
4
|
-
|
5
|
-
class Category < ::ActiveResource::Base
|
3
|
+
module NaranyaEcm::Models
|
4
|
+
class Category < ::ActiveResource::Base
|
6
5
|
|
7
|
-
|
6
|
+
include NaranyaEcm::Behaviors::Resourceable
|
8
7
|
|
9
|
-
|
8
|
+
include NaranyaEcm::Behaviors::Timestampable
|
10
9
|
|
11
|
-
|
12
|
-
|
10
|
+
include NaranyaEcm::Search::Methods
|
11
|
+
include NaranyaEcm::Cache::Methods
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
self.include_root_in_json = true
|
13
|
+
class NameTranslations < ::ActiveResource::Base
|
14
|
+
include NaranyaEcm::Behaviors::Localizable
|
15
|
+
end
|
19
16
|
|
20
|
-
|
21
|
-
schema do
|
22
|
-
# define each attribute separately
|
23
|
-
string :id, :code, :created_at, :updated_at
|
17
|
+
self.include_root_in_json = true
|
24
18
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
attribute 'description_translations', 'string'
|
19
|
+
# Definir los atributos conocidos:
|
20
|
+
schema do
|
21
|
+
# define each attribute separately
|
22
|
+
string :id, :code, :created_at, :updated_at
|
30
23
|
|
31
|
-
|
24
|
+
# unsupported types should be left as strings
|
25
|
+
# overload the accessor methods if you need to convert them
|
26
|
+
#attribute 'created_at', 'string'
|
27
|
+
attribute 'name_translations', 'string'
|
28
|
+
attribute 'description_translations', 'string'
|
32
29
|
|
33
|
-
|
34
|
-
delegate :description, to: :title_translations
|
30
|
+
end
|
35
31
|
|
36
|
-
|
37
|
-
|
38
|
-
end
|
32
|
+
delegate :name, to: :name_translations
|
33
|
+
delegate :description, to: :title_translations
|
39
34
|
|
35
|
+
def contents
|
36
|
+
Content.find :all, params: { category_id: self.id }
|
40
37
|
end
|
38
|
+
|
41
39
|
end
|
42
|
-
end
|
40
|
+
end
|
@@ -1,108 +1,57 @@
|
|
1
1
|
require 'active_resource'
|
2
2
|
|
3
|
-
module NaranyaEcm
|
4
|
-
|
5
|
-
class Content < ::ActiveResource::Base
|
3
|
+
module NaranyaEcm::Models
|
4
|
+
class Content < ::ActiveResource::Base
|
6
5
|
|
7
|
-
|
6
|
+
#include ActiveModel::Dirty
|
8
7
|
|
9
|
-
|
8
|
+
include NaranyaEcm::Behaviors::Resourceable
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
include NaranyaEcm::Search::Methods
|
11
|
+
include NaranyaEcm::Cache::Methods
|
12
|
+
|
13
|
+
class TitleTranslations < EmbeddedLocalizedHash; end
|
14
|
+
class DescriptionTranslations < EmbeddedLocalizedHash; end
|
15
|
+
class ContentRating < EmbeddedHash; end
|
15
16
|
|
16
|
-
|
17
|
-
include NaranyaEcm::Behaviors::Localizable
|
18
|
-
end
|
17
|
+
self.include_root_in_json = true
|
19
18
|
|
20
|
-
|
21
|
-
|
22
|
-
end
|
19
|
+
has_many :versions, class_name: "naranya_ecm/models/content_version"
|
20
|
+
belongs_to :current_version, class_name: "naranya_ecm/models/content_version"
|
23
21
|
|
24
|
-
|
25
|
-
def initialize(*args)
|
26
|
-
super()
|
27
|
-
given_attrs = args.shift
|
28
|
-
given_attrs.each { |k,v| self[k] = v } unless given_attrs.nil?
|
29
|
-
end
|
30
|
-
end
|
22
|
+
belongs_to :category, class_name: "naranya_ecm/models/category"
|
31
23
|
|
32
|
-
|
24
|
+
has_many :media_resources, class_name: "naranya_ecm/models/media_resource"
|
33
25
|
|
34
|
-
|
26
|
+
# Definir los atributos conocidos:
|
27
|
+
schema do
|
28
|
+
# define each attribute separately
|
29
|
+
string :id, :type, :lifecycle_name, :lifecycle_state, :content_rating, :created_at, :updated_at
|
30
|
+
string :category_id
|
31
|
+
string :author
|
32
|
+
string :main_url
|
35
33
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
string :category, :category_id
|
44
|
-
string :author
|
45
|
-
string :main_url
|
46
|
-
|
47
|
-
# unsupported types should be left as strings
|
48
|
-
# overload the accessor methods if you need to convert them
|
49
|
-
#attribute 'created_at', 'string'
|
50
|
-
attribute 'title_translations', 'string'
|
51
|
-
attribute 'description_translations', 'string'
|
52
|
-
attribute 'keywords', 'string'
|
53
|
-
|
54
|
-
attribute 'media_resources', 'string'
|
55
|
-
attribute 'current_version', 'string'
|
56
|
-
|
57
|
-
# Extra attributes:
|
58
|
-
NaranyaEcm.options['extra_attributes']['content'].each do |key, val|
|
59
|
-
attribute key, val
|
60
|
-
end
|
61
|
-
|
62
|
-
end
|
63
|
-
|
64
|
-
schema_attrs = self.schema.keys.map(&:to_sym)
|
65
|
-
define_attribute_methods(*schema_attrs)
|
66
|
-
schema_attrs.each do |attr_sym|
|
67
|
-
# getter:
|
68
|
-
define_method(attr_sym) { @attributes[attr_sym] }
|
69
|
-
# setter:
|
70
|
-
define_method("#{attr_sym}=".to_sym) do |value|
|
71
|
-
self.send "#{attr_sym}_will_change!".to_sym unless value == @attributes[attr_sym]
|
72
|
-
@attributes[attr_sym] = value
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
delegate :title, to: :title_translations
|
77
|
-
delegate :description, to: :description_translations
|
78
|
-
|
79
|
-
def initialize(attributes = {}, persisted = false)
|
80
|
-
super
|
81
|
-
attributes[:title_translations] = TitleTranslations.new unless attributes[:title_translations].present?
|
82
|
-
attributes[:description_translations] = DescriptionTranslations.new unless attributes[:description_translations].present?
|
83
|
-
end
|
84
|
-
|
85
|
-
include NaranyaEcm::Behaviors::Timestampable
|
86
|
-
|
87
|
-
# include NaranyaEcm::Lifecycles::Lifecycleable
|
88
|
-
# ##################################################################
|
89
|
-
# # StateMachine:
|
90
|
-
# state_machine :lifecycle_state, initial: :draft do
|
91
|
-
|
92
|
-
# state :draft
|
93
|
-
|
94
|
-
# state :awaiting_validation
|
95
|
-
|
96
|
-
# state :rejected
|
97
|
-
|
98
|
-
# state :validated
|
99
|
-
|
100
|
-
# state :published
|
34
|
+
# unsupported types should be left as strings
|
35
|
+
# overload the accessor methods if you need to convert them
|
36
|
+
#attribute 'created_at', 'string'
|
37
|
+
attribute 'title_translations', 'string'
|
38
|
+
attribute 'description_translations', 'string'
|
39
|
+
attribute 'keywords', 'string'
|
40
|
+
end
|
101
41
|
|
102
|
-
|
42
|
+
delegate :title, to: :title_translations
|
43
|
+
delegate :description, to: :description_translations
|
103
44
|
|
104
|
-
|
105
|
-
|
45
|
+
def initialize(attributes = {}, persisted = false)
|
46
|
+
super
|
47
|
+
attributes[:title_translations] = TitleTranslations.new unless attributes[:title_translations].present?
|
48
|
+
attributes[:description_translations] = DescriptionTranslations.new unless attributes[:description_translations].present?
|
49
|
+
attributes[:content_rating] = ContentRating.new unless attributes[:content_rating].present?
|
106
50
|
end
|
51
|
+
|
52
|
+
include NaranyaEcm::Behaviors::Timestampable
|
53
|
+
|
54
|
+
#include NaranyaEcm::Lifecycles::ContentLifecycle
|
55
|
+
|
107
56
|
end
|
108
|
-
end
|
57
|
+
end
|
@@ -1,38 +1,29 @@
|
|
1
1
|
require 'active_resource'
|
2
2
|
|
3
|
-
module NaranyaEcm
|
4
|
-
|
5
|
-
class ContentVersion < ::ActiveResource::Base
|
3
|
+
module NaranyaEcm::Models
|
4
|
+
class ContentVersion < ::ActiveResource::Base
|
6
5
|
|
7
|
-
|
8
|
-
include NaranyaEcm::Behaviors::Timestampable
|
9
|
-
|
10
|
-
self.include_root_in_json = true
|
6
|
+
class DescriptionTranslations < EmbeddedLocalizedHash; end
|
11
7
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
8
|
+
include NaranyaEcm::Behaviors::Resourceable
|
9
|
+
include NaranyaEcm::Behaviors::Timestampable
|
10
|
+
|
11
|
+
self.include_root_in_json = true
|
16
12
|
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
# Definir los atributos conocidos:
|
14
|
+
schema do
|
15
|
+
# define each attribute separately
|
16
|
+
string :id, :name, :lifecycle_name, :lifecycle_state
|
17
|
+
integer :code
|
18
|
+
end
|
20
19
|
|
21
|
-
|
22
|
-
include NaranyaEcm::Behaviors::Localizable
|
23
|
-
end
|
24
|
-
|
25
|
-
delegate :description, to: :description_translations
|
20
|
+
delegate :description, to: :description_translations
|
26
21
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
has_many :media_resources,
|
31
|
-
class_name: "naranya_ecm/models/media_resource"
|
22
|
+
belongs_to :content, class_name: "naranya_ecm/models/content"
|
23
|
+
has_many :media_resources, class_name: "naranya_ecm/models/media_resource"
|
32
24
|
|
33
|
-
|
34
|
-
|
25
|
+
#include NaranyaEcm::Lifecycles::Lifecycleable
|
26
|
+
# include NaranyaEcm::Lifecycles::VersionLifecycle
|
35
27
|
|
36
|
-
end
|
37
28
|
end
|
38
29
|
end
|
@@ -1,43 +1,41 @@
|
|
1
1
|
require 'active_resource'
|
2
2
|
|
3
|
-
module NaranyaEcm
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
given_attrs.each { |k,v| self[k] = v } unless given_attrs.nil?
|
14
|
-
end
|
15
|
-
def to_query_params
|
16
|
-
self.map { |key, value| "#{key}=#{value}" }.join '&'
|
17
|
-
end
|
3
|
+
module NaranyaEcm::Models
|
4
|
+
class DownloadAuthorization < ActiveResource::Base
|
5
|
+
|
6
|
+
include NaranyaEcm::Cache::Methods
|
7
|
+
|
8
|
+
class Tokens < HashWithIndifferentAccess
|
9
|
+
def initialize(*args)
|
10
|
+
super()
|
11
|
+
given_attrs = args.shift
|
12
|
+
given_attrs.each { |k,v| self[k] = v } unless given_attrs.nil?
|
18
13
|
end
|
14
|
+
def to_query_params
|
15
|
+
self.map { |key, value| "#{key}=#{value}" }.join '&'
|
16
|
+
end
|
17
|
+
end
|
19
18
|
|
20
|
-
|
21
|
-
|
19
|
+
include NaranyaEcm::Behaviors::Resourceable
|
20
|
+
include NaranyaEcm::Behaviors::Timestampable
|
22
21
|
|
23
|
-
|
22
|
+
self.include_root_in_json = true
|
24
23
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
# Definir los atributos conocidos:
|
25
|
+
schema do
|
26
|
+
string :id, :media_resource_id, :expires_at, :tokens, :created_at, :updated_at
|
27
|
+
end
|
29
28
|
|
30
|
-
|
29
|
+
belongs_to :media_resource, class_name: "naranya_ecm/models/media_resource"
|
31
30
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
end
|
38
|
-
@authorized_url
|
31
|
+
def authorized_url
|
32
|
+
unless @authorized_url
|
33
|
+
uri = URI(self.media_resource.downloadable_url)
|
34
|
+
uri.query = self.tokens.to_query_params
|
35
|
+
@authorized_url = uri.to_s
|
39
36
|
end
|
40
|
-
|
37
|
+
@authorized_url
|
41
38
|
end
|
39
|
+
|
42
40
|
end
|
43
|
-
end
|
41
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
|
2
|
+
module NaranyaEcm::Models
|
3
|
+
class EmbeddedLocalizedHash < EmbeddedHash
|
4
|
+
|
5
|
+
alias_method :locales, :keys
|
6
|
+
alias_method :available_locales, :locales
|
7
|
+
|
8
|
+
def lookup
|
9
|
+
locale = ::I18n.locale
|
10
|
+
if ::I18n.respond_to?(:fallbacks)
|
11
|
+
lookup_result = self[::I18n.fallbacks[locale].map(&:to_s).find{ |loc| self.has_key?(loc) }]
|
12
|
+
else
|
13
|
+
lookup_result = self[locale.to_s]
|
14
|
+
end
|
15
|
+
lookup_result || self.present? ? self.first[1] : nil
|
16
|
+
end
|
17
|
+
|
18
|
+
def method_missing(method_name, *args, &block)
|
19
|
+
if method_name == self.class.aliased_lookup_name
|
20
|
+
# El nombre del método debe ser un alias de lookup.
|
21
|
+
# Agregar el alias:
|
22
|
+
self.class.send :alias_method, self.class.aliased_lookup_name, :lookup
|
23
|
+
# llamar el método de lookup. La siguiente ocación no caerá aqui:
|
24
|
+
lookup
|
25
|
+
else
|
26
|
+
super # You *must* call super if you don't handle the
|
27
|
+
# method, otherwise you'll mess up Ruby's method
|
28
|
+
# lookup.
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
class << self
|
33
|
+
def aliased_lookup_name
|
34
|
+
@lookup_alias ||= self.name.demodulize[0..-("Translations".length+1)].underscore.to_sym
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -1,36 +1,34 @@
|
|
1
1
|
|
2
|
-
module NaranyaEcm
|
3
|
-
module Models
|
2
|
+
module NaranyaEcm::Models
|
4
3
|
|
5
4
|
# Value Object de Lifecycle de documentos / versiones / media / etc.
|
6
|
-
|
7
|
-
|
5
|
+
class Lifecycle < String
|
6
|
+
include Comparable
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
KNOWN_LIFECYCLES = %w(simple validatable)
|
9
|
+
.map { |m| m.to_sym }
|
10
|
+
.freeze
|
12
11
|
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
def is_lifecycle?(given_lifecycle)
|
13
|
+
given_lifecycle.to_s == self
|
14
|
+
end
|
16
15
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
end
|
16
|
+
KNOWN_LIFECYCLES.each do |lifecycle_name|
|
17
|
+
define_method("is_#{lifecycle_name}?") do
|
18
|
+
is_lifecycle?(lifecycle_name)
|
21
19
|
end
|
20
|
+
end
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
end
|
22
|
+
def method_missing(method_name, *args, &block)
|
23
|
+
if method_name.to_s =~ /^is_(\w+)\?$/
|
24
|
+
is_lifecycle?($1)
|
25
|
+
else
|
26
|
+
super # You *must* call super if you don't handle the
|
27
|
+
# method, otherwise you'll mess up Ruby's method
|
28
|
+
# lookup.
|
31
29
|
end
|
32
|
-
|
33
30
|
end
|
34
31
|
|
35
32
|
end
|
33
|
+
|
36
34
|
end
|
@@ -1,33 +1,31 @@
|
|
1
1
|
require 'active_resource'
|
2
2
|
|
3
|
-
module NaranyaEcm
|
4
|
-
|
5
|
-
class MediaResource < ActiveResource::Base
|
3
|
+
module NaranyaEcm::Models
|
4
|
+
class MediaResource < ActiveResource::Base
|
6
5
|
|
7
|
-
|
8
|
-
|
6
|
+
include NaranyaEcm::Behaviors::Resourceable
|
7
|
+
include NaranyaEcm::Behaviors::Timestampable
|
9
8
|
|
10
|
-
|
9
|
+
self.include_root_in_json = true
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
11
|
+
# Definir los atributos conocidos:
|
12
|
+
schema do
|
13
|
+
# define each attribute separately
|
14
|
+
string :id, :access_type, :type, :role, :downloadable_url
|
16
15
|
|
17
|
-
|
18
|
-
|
16
|
+
string :author
|
17
|
+
string :main_url
|
19
18
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
end
|
19
|
+
# unsupported types should be left as strings
|
20
|
+
# overload the accessor methods if you need to convert them
|
21
|
+
#attribute 'created_at', 'string'
|
22
|
+
attribute 'created_at', 'string'
|
23
|
+
attribute 'updated_at', 'string'
|
24
|
+
attribute 'compatible_device_ids', 'string'
|
25
|
+
attribute 'compatible_device_oses', 'string'
|
26
|
+
attribute 'compatible_device_os_versions', 'string'
|
30
27
|
|
31
28
|
end
|
29
|
+
|
32
30
|
end
|
33
|
-
end
|
31
|
+
end
|
data/naranya_ecm-sdk.gemspec
CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency 'activesupport',
|
23
|
-
spec.add_dependency 'activemodel',
|
22
|
+
spec.add_dependency 'activesupport', '~> 4.0.4'
|
23
|
+
spec.add_dependency 'activemodel', '~> 4.0.4'
|
24
24
|
spec.add_dependency 'activeresource', '~> 4.0.0'
|
25
25
|
spec.add_dependency 'state_machine'
|
26
26
|
spec.add_dependency 'fog'
|
metadata
CHANGED
@@ -1,153 +1,153 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: naranya_ecm-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Quintanilla
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0.
|
19
|
+
version: 4.0.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.0.
|
26
|
+
version: 4.0.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activemodel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 4.0.
|
33
|
+
version: 4.0.4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 4.0.
|
40
|
+
version: 4.0.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activeresource
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 4.0.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 4.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: state_machine
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: fog
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '1.5'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.5'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rake
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 3.0.0.beta2
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 3.0.0.beta2
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: vcr
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: webmock
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - ~>
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '1.16'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - ~>
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '1.16'
|
153
153
|
description: Cliente Ruby de NaranyaEcm
|
@@ -157,7 +157,7 @@ executables: []
|
|
157
157
|
extensions: []
|
158
158
|
extra_rdoc_files: []
|
159
159
|
files:
|
160
|
-
- .gitignore
|
160
|
+
- ".gitignore"
|
161
161
|
- Gemfile
|
162
162
|
- LICENSE.txt
|
163
163
|
- README.md
|
@@ -170,6 +170,7 @@ files:
|
|
170
170
|
- lib/naranya_ecm-sdk/version.rb
|
171
171
|
- lib/naranya_ecm/behaviors.rb
|
172
172
|
- lib/naranya_ecm/behaviors/localizable.rb
|
173
|
+
- lib/naranya_ecm/behaviors/resourceable.rb
|
173
174
|
- lib/naranya_ecm/behaviors/timestampable.rb
|
174
175
|
- lib/naranya_ecm/cache.rb
|
175
176
|
- lib/naranya_ecm/cache/key.rb
|
@@ -184,6 +185,8 @@ files:
|
|
184
185
|
- lib/naranya_ecm/models/content.rb
|
185
186
|
- lib/naranya_ecm/models/content_version.rb
|
186
187
|
- lib/naranya_ecm/models/download_authorization.rb
|
188
|
+
- lib/naranya_ecm/models/embedded_hash.rb
|
189
|
+
- lib/naranya_ecm/models/embedded_localized_hash.rb
|
187
190
|
- lib/naranya_ecm/models/lifecycle.rb
|
188
191
|
- lib/naranya_ecm/models/media_resource.rb
|
189
192
|
- lib/naranya_ecm/search.rb
|
@@ -191,7 +194,6 @@ files:
|
|
191
194
|
- lib/naranya_ecm/search/methods.rb
|
192
195
|
- lib/naranya_ecm/search/query.rb
|
193
196
|
- lib/naranya_ecm/search/results.rb
|
194
|
-
- lib/naranya_ecm/site_from_configuration.rb
|
195
197
|
- naranya_ecm-sdk.gemspec
|
196
198
|
- spec/models/category_spec.rb
|
197
199
|
- spec/models/content_spec.rb
|
@@ -211,17 +213,17 @@ require_paths:
|
|
211
213
|
- lib
|
212
214
|
required_ruby_version: !ruby/object:Gem::Requirement
|
213
215
|
requirements:
|
214
|
-
- -
|
216
|
+
- - ">="
|
215
217
|
- !ruby/object:Gem::Version
|
216
218
|
version: '0'
|
217
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
220
|
requirements:
|
219
|
-
- -
|
221
|
+
- - ">="
|
220
222
|
- !ruby/object:Gem::Version
|
221
223
|
version: '0'
|
222
224
|
requirements: []
|
223
225
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.
|
226
|
+
rubygems_version: 2.2.2
|
225
227
|
signing_key:
|
226
228
|
specification_version: 4
|
227
229
|
summary: Cliente Ruby de NaranyaEcm
|