helix 0.0.3.0.pre → 0.0.3.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/helix.rb +1 -1
- data/lib/helix/config.rb +1 -4
- data/lib/helix/durationed_media.rb +2 -2
- metadata +82 -101
data/lib/helix.rb
CHANGED
data/lib/helix/config.rb
CHANGED
@@ -36,10 +36,7 @@ module Helix
|
|
36
36
|
def self.load(yaml_file_location = DEFAULT_FILENAME)
|
37
37
|
config = self.instance
|
38
38
|
config.instance_variable_set(:@filename, yaml_file_location)
|
39
|
-
creds = YAML.load(File.open(yaml_file_location)).
|
40
|
-
k, v = *pair
|
41
|
-
memo.merge(k.to_sym => v)
|
42
|
-
end
|
39
|
+
creds = YAML.load(File.open(yaml_file_location)).symbolize_keys
|
43
40
|
config.instance_variable_set(:@credentials, creds)
|
44
41
|
RestClient.proxy = config.proxy
|
45
42
|
config
|
@@ -56,8 +56,8 @@ module Helix
|
|
56
56
|
# @param [Hash] attrs The attributes for creating xml.
|
57
57
|
# @return [String] Returns xml either from a raw entry or generated from attributes.
|
58
58
|
def get_xml(attrs={})
|
59
|
-
return attrs[:use_raw_xml] if attrs[:use_raw_xml]
|
60
|
-
xml_opts = {root: :add
|
59
|
+
return attrs[:use_raw_xml] if attrs[:use_raw_xml].present?
|
60
|
+
xml_opts = {root: :add}
|
61
61
|
{ list: { entry: attrs[:url_params] || {} } }.to_xml(xml_opts)
|
62
62
|
end
|
63
63
|
|
metadata
CHANGED
@@ -1,161 +1,142 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: helix
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.3.0.pre
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease: 8
|
5
|
+
version: 0.0.3.1.pre
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Twistage, Inc
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
|
13
|
+
date: 2013-05-13 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
15
16
|
name: json
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 1.5.4
|
22
|
-
type: :runtime
|
23
17
|
prerelease: false
|
24
|
-
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
19
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
29
23
|
version: 1.5.4
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: rest-client
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - '='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: 1.6.7
|
38
24
|
type: :runtime
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rest-client
|
39
28
|
prerelease: false
|
40
|
-
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
30
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
31
|
+
requirements:
|
32
|
+
- - "="
|
33
|
+
- !ruby/object:Gem::Version
|
45
34
|
version: 1.6.7
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: nori
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - '='
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 1.1.3
|
54
35
|
type: :runtime
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: nori
|
55
39
|
prerelease: false
|
56
|
-
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
41
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
42
|
+
requirements:
|
43
|
+
- - "="
|
44
|
+
- !ruby/object:Gem::Version
|
61
45
|
version: 1.1.3
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: i18n
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - '='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 0.5.0
|
70
46
|
type: :runtime
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: i18n
|
71
50
|
prerelease: false
|
72
|
-
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
52
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
53
|
+
requirements:
|
54
|
+
- - "="
|
55
|
+
- !ruby/object:Gem::Version
|
77
56
|
version: 0.5.0
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: to_xml
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - '='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: 0.1.1
|
86
57
|
type: :runtime
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: activesupport
|
87
61
|
prerelease: false
|
88
|
-
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
89
63
|
none: false
|
90
|
-
requirements:
|
91
|
-
- -
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: 0.
|
64
|
+
requirements:
|
65
|
+
- - "="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 3.0.19
|
68
|
+
type: :runtime
|
69
|
+
version_requirements: *id005
|
94
70
|
description: Provides helper libraries for Ruby access to the Twistage API
|
95
71
|
email: kbaird@twistage.com
|
96
72
|
executables: []
|
73
|
+
|
97
74
|
extensions: []
|
75
|
+
|
98
76
|
extra_rdoc_files: []
|
99
|
-
|
77
|
+
|
78
|
+
files:
|
100
79
|
- lib/helix.rb
|
101
|
-
- lib/helix/restful.rb
|
102
|
-
- lib/helix/album.rb
|
103
|
-
- lib/helix/uploadable.rb
|
104
80
|
- lib/helix/base.rb
|
105
|
-
- lib/helix/image.rb
|
106
81
|
- lib/helix/audio_playlist.rb
|
107
|
-
- lib/helix/
|
82
|
+
- lib/helix/image.rb
|
83
|
+
- lib/helix/restful.rb
|
84
|
+
- lib/helix/library.rb
|
85
|
+
- lib/helix/uploadable.rb
|
86
|
+
- lib/helix/statistics.rb
|
108
87
|
- lib/helix/video_playlist.rb
|
88
|
+
- lib/helix/media.rb
|
89
|
+
- lib/helix/video.rb
|
90
|
+
- lib/helix/album.rb
|
109
91
|
- lib/helix/durationed_media.rb
|
110
|
-
- lib/helix/exceptions.rb
|
111
|
-
- lib/helix/config.rb
|
112
92
|
- lib/helix/tag.rb
|
113
|
-
- lib/helix/library.rb
|
114
|
-
- lib/helix/video.rb
|
115
|
-
- lib/helix/track.rb
|
116
|
-
- lib/helix/statistics.rb
|
117
93
|
- lib/helix/playlist.rb
|
118
|
-
-
|
119
|
-
-
|
94
|
+
- lib/helix/track.rb
|
95
|
+
- lib/helix/exceptions.rb
|
96
|
+
- lib/helix/config.rb
|
120
97
|
- spec/audio_playlist_spec.rb
|
121
|
-
- spec/statistics_spec.rb
|
122
98
|
- spec/library_spec.rb
|
99
|
+
- spec/spec_helper.rb
|
123
100
|
- spec/config_spec.rb
|
124
|
-
- spec/media_spec.rb
|
125
|
-
- spec/image_spec.rb
|
126
|
-
- spec/album_spec.rb
|
127
|
-
- spec/track_spec.rb
|
128
101
|
- spec/base_spec.rb
|
129
|
-
- spec/
|
102
|
+
- spec/playlist_spec.rb
|
103
|
+
- spec/video_spec.rb
|
130
104
|
- spec/tag_spec.rb
|
105
|
+
- spec/durationed_media_spec.rb
|
106
|
+
- spec/album_spec.rb
|
107
|
+
- spec/image_spec.rb
|
108
|
+
- spec/statistics_spec.rb
|
131
109
|
- spec/video_playlist_spec.rb
|
132
|
-
- spec/
|
110
|
+
- spec/media_spec.rb
|
111
|
+
- spec/track_spec.rb
|
133
112
|
- LICENSE
|
134
113
|
- README.md
|
135
114
|
homepage: https://github.com/Twistage/helix/
|
136
|
-
licenses:
|
115
|
+
licenses:
|
137
116
|
- 3-Clause BSD
|
138
117
|
post_install_message:
|
139
118
|
rdoc_options: []
|
140
|
-
|
119
|
+
|
120
|
+
require_paths:
|
141
121
|
- lib
|
142
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
143
123
|
none: false
|
144
|
-
requirements:
|
145
|
-
- -
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
version:
|
148
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: "0"
|
128
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
129
|
none: false
|
150
|
-
requirements:
|
151
|
-
- -
|
152
|
-
- !ruby/object:Gem::Version
|
130
|
+
requirements:
|
131
|
+
- - ">"
|
132
|
+
- !ruby/object:Gem::Version
|
153
133
|
version: 1.3.1
|
154
134
|
requirements: []
|
135
|
+
|
155
136
|
rubyforge_project:
|
156
|
-
rubygems_version: 1.8.
|
137
|
+
rubygems_version: 1.8.11
|
157
138
|
signing_key:
|
158
139
|
specification_version: 3
|
159
140
|
summary: Wrapper library for the video API
|
160
141
|
test_files: []
|
161
|
-
|
142
|
+
|