zencoder 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/zencoder.rb CHANGED
@@ -3,16 +3,11 @@ require 'cgi'
3
3
  require 'net/https'
4
4
  require 'timeout'
5
5
 
6
- # Gems
7
- require 'active_support' # JSON and XML parsing/encoding
8
-
9
- # ActiveSupport 3.0
6
+ # ActiveSupport 3.0 with fallback to 2.0
10
7
  begin
11
- require 'active_support/core_ext/class'
12
- require 'active_support/core_ext/hash'
13
- require 'active_support/json'
14
- require 'active_support/xml'
8
+ require 'active_support/all' # Screw it
15
9
  rescue LoadError
10
+ require 'active_support' # JSON and XML parsing/encoding
16
11
  end
17
12
 
18
13
  # Zencoder
data/lib/zencoder/cli.rb CHANGED
@@ -1,6 +1,14 @@
1
1
  require 'rubygems'
2
- require 'trollop'
3
- require 'terminal-table/import'
2
+ begin
3
+ gem 'trollop', '~> 1.16.2'
4
+ gem 'terminal-table', '~> 1.4.2'
5
+ require 'trollop'
6
+ require 'terminal-table/import'
7
+ rescue LoadError
8
+ puts "You must install the trollop gem (~> 1.16.2) and the terminal-table gem (~> 1.4.2) to use the Zencoder CLI."
9
+ exit 1
10
+ end
11
+
4
12
  require 'zencoder'
5
13
  require 'zencoder/cli/helpers'
6
14
  require 'zencoder/cli/auth'
@@ -1,3 +1,3 @@
1
1
  class Zencoder
2
- GEM_VERSION = '2.2.1'
2
+ GEM_VERSION = '2.2.2'
3
3
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zencoder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
5
4
  prerelease: false
6
5
  segments:
7
6
  - 2
8
7
  - 2
9
- - 1
10
- version: 2.2.1
8
+ - 2
9
+ version: 2.2.2
11
10
  platform: ruby
12
11
  authors:
13
12
  - Nathan Sutton
@@ -16,97 +15,69 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-11-16 00:00:00 -06:00
18
+ date: 2010-11-17 00:00:00 -06:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
23
22
  name: activesupport
24
23
  prerelease: false
25
24
  requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
25
  requirements:
28
26
  - - ">="
29
27
  - !ruby/object:Gem::Version
30
- hash: 3
31
28
  segments:
32
29
  - 0
33
30
  version: "0"
34
31
  type: :runtime
35
32
  version_requirements: *id001
36
33
  - !ruby/object:Gem::Dependency
37
- name: trollop
34
+ name: i18n
38
35
  prerelease: false
39
36
  requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
37
  requirements:
42
- - - ~>
38
+ - - ">="
43
39
  - !ruby/object:Gem::Version
44
- hash: 83
45
40
  segments:
46
- - 1
47
- - 16
48
- - 2
49
- version: 1.16.2
41
+ - 0
42
+ version: "0"
50
43
  type: :runtime
51
44
  version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: terminal-table
54
- prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ~>
59
- - !ruby/object:Gem::Version
60
- hash: 3
61
- segments:
62
- - 1
63
- - 4
64
- - 2
65
- version: 1.4.2
66
- type: :runtime
67
- version_requirements: *id003
68
45
  - !ruby/object:Gem::Dependency
69
46
  name: shoulda
70
47
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
72
- none: false
48
+ requirement: &id003 !ruby/object:Gem::Requirement
73
49
  requirements:
74
50
  - - ">="
75
51
  - !ruby/object:Gem::Version
76
- hash: 3
77
52
  segments:
78
53
  - 0
79
54
  version: "0"
80
55
  type: :development
81
- version_requirements: *id004
56
+ version_requirements: *id003
82
57
  - !ruby/object:Gem::Dependency
83
58
  name: mocha
84
59
  prerelease: false
85
- requirement: &id005 !ruby/object:Gem::Requirement
86
- none: false
60
+ requirement: &id004 !ruby/object:Gem::Requirement
87
61
  requirements:
88
62
  - - ">="
89
63
  - !ruby/object:Gem::Version
90
- hash: 3
91
64
  segments:
92
65
  - 0
93
66
  version: "0"
94
67
  type: :development
95
- version_requirements: *id005
68
+ version_requirements: *id004
96
69
  - !ruby/object:Gem::Dependency
97
70
  name: webmock
98
71
  prerelease: false
99
- requirement: &id006 !ruby/object:Gem::Requirement
100
- none: false
72
+ requirement: &id005 !ruby/object:Gem::Requirement
101
73
  requirements:
102
74
  - - ">="
103
75
  - !ruby/object:Gem::Version
104
- hash: 3
105
76
  segments:
106
77
  - 0
107
78
  version: "0"
108
79
  type: :development
109
- version_requirements: *id006
80
+ version_requirements: *id005
110
81
  description: Zencoder <http://zencoder.com> integration library and CLI client.
111
82
  email: info@zencoder.com
112
83
  executables:
@@ -155,27 +126,23 @@ rdoc_options: []
155
126
  require_paths:
156
127
  - lib
157
128
  required_ruby_version: !ruby/object:Gem::Requirement
158
- none: false
159
129
  requirements:
160
130
  - - ">="
161
131
  - !ruby/object:Gem::Version
162
- hash: 3
163
132
  segments:
164
133
  - 0
165
134
  version: "0"
166
135
  required_rubygems_version: !ruby/object:Gem::Requirement
167
- none: false
168
136
  requirements:
169
137
  - - ">="
170
138
  - !ruby/object:Gem::Version
171
- hash: 3
172
139
  segments:
173
140
  - 0
174
141
  version: "0"
175
142
  requirements: []
176
143
 
177
144
  rubyforge_project: zencoder
178
- rubygems_version: 1.3.7
145
+ rubygems_version: 1.3.6
179
146
  signing_key:
180
147
  specification_version: 3
181
148
  summary: Zencoder <http://zencoder.com> integration library and CLI client.