mymedia 0.1.5 → 0.1.6
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
- checksums.yaml.gz.sig +0 -0
- data/lib/mymedia.rb +10 -7
- data.tar.gz.sig +0 -0
- metadata +22 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e365a107e2cec0e571a693a00271d08e3ac23c66
|
|
4
|
+
data.tar.gz: 9db56cf338f9560654f47cbb648b196f38c709d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b6b14073af133d67c20ce8f4e9f08f9a56dda3077f251431ddecdc35f330250f419103a43125d51736d52573ecb3686e56133fde9e3e88797d91e08a7aaa3b6
|
|
7
|
+
data.tar.gz: 20a14a0b2506243590d129fd0e4112d04d039d2db6ec68282a1296cedb5ded4c7cfddb06b3ef86288d9f041400e692d7f631416dae0ba6cc1924ec1b1ffb97f6
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/mymedia.rb
CHANGED
|
@@ -10,6 +10,7 @@ require 'sps-pub'
|
|
|
10
10
|
require 'dir-to-xml'
|
|
11
11
|
require 'dataisland'
|
|
12
12
|
require 'increment'
|
|
13
|
+
require 'simple-config'
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
module MyMedia
|
|
@@ -68,20 +69,22 @@ module MyMedia
|
|
|
68
69
|
|
|
69
70
|
def initialize(media_type: 'blog', public_type: 'blog', ext: 'txt', config: nil)
|
|
70
71
|
|
|
71
|
-
super()
|
|
72
|
+
super()
|
|
72
73
|
|
|
73
74
|
@schema = 'posts/post(title, url, raw_url)'
|
|
74
75
|
@logger = Logger.new('/tmp/mymedia.log','daily')
|
|
75
76
|
|
|
76
77
|
raise BaseException, "no config found" if config.nil?
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
@
|
|
81
|
-
@
|
|
78
|
+
|
|
79
|
+
c = SimpleConfig.new(config)
|
|
80
|
+
|
|
81
|
+
@home = c[:home]
|
|
82
|
+
@website = c[:website]
|
|
83
|
+
@dynamic_website = c[:dynamic_website]
|
|
84
|
+
@www = c[:www]
|
|
82
85
|
@domain = @website[/[^\.]+\.[^\.]+$/]
|
|
83
86
|
|
|
84
|
-
@sps =
|
|
87
|
+
@sps = c[:sps]
|
|
85
88
|
|
|
86
89
|
@media_type = media_type
|
|
87
90
|
@public_type = public_type ||= @media_type
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mymedia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
AuNecS7mQYhxSVKaAH8VGzIiea4rbybYlYRsOllgAkcmCFTQW39mbtmMPtDedk1N
|
|
32
32
|
ZQNJr93cq0mf/Q==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2014-12-
|
|
34
|
+
date: 2014-12-29 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex
|
|
@@ -133,6 +133,26 @@ dependencies:
|
|
|
133
133
|
- - ">="
|
|
134
134
|
- !ruby/object:Gem::Version
|
|
135
135
|
version: 0.1.4
|
|
136
|
+
- !ruby/object:Gem::Dependency
|
|
137
|
+
name: simple-config
|
|
138
|
+
requirement: !ruby/object:Gem::Requirement
|
|
139
|
+
requirements:
|
|
140
|
+
- - "~>"
|
|
141
|
+
- !ruby/object:Gem::Version
|
|
142
|
+
version: '0.2'
|
|
143
|
+
- - ">="
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: 0.2.0
|
|
146
|
+
type: :runtime
|
|
147
|
+
prerelease: false
|
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - "~>"
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: '0.2'
|
|
153
|
+
- - ">="
|
|
154
|
+
- !ruby/object:Gem::Version
|
|
155
|
+
version: 0.2.0
|
|
136
156
|
description:
|
|
137
157
|
email: james@r0bertson.co.uk
|
|
138
158
|
executables: []
|
metadata.gz.sig
CHANGED
|
Binary file
|