mvg-live 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -12,6 +12,11 @@ A ruby client and CLI for mvg-live.de the real-time interface for Munich's publi
12
12
 
13
13
  gem install mvg-live
14
14
 
15
+ If you still use Ruby 1.8.7 or JRuby in Ruby 1.8.7-mode, please use the
16
+ old version as legacy support was dropped with the 1.0.0 release:
17
+
18
+ gem install mvg-live --version 0.0.1
19
+
15
20
 
16
21
  ## Ruby
17
22
 
@@ -1,32 +1,12 @@
1
- if '1.9'.respond_to?(:encode)
2
- module MVG
3
- class Live
4
- module Encoding
5
- def to_utf8(string)
6
- string.encode("UTF-8")
7
- end
8
-
9
- def to_encoding(string)
10
- string.encode @encoding
11
- end
1
+ module MVG
2
+ class Live
3
+ module Encoding
4
+ def to_utf8(string)
5
+ string.encode("UTF-8")
12
6
  end
13
- end
14
- end
15
-
16
- else
17
- # upgrade to 1.9.3 or gtfo. srsly!
18
- require 'iconv'
19
-
20
- module MVG
21
- class Live
22
- module Encoding
23
- def to_utf8(string)
24
- Iconv.iconv("utf8", @encoding, string).join
25
- end
26
7
 
27
- def to_encoding(string)
28
- Iconv.iconv(@encoding, "utf8", string).join
29
- end
8
+ def to_encoding(string)
9
+ string.encode @encoding
30
10
  end
31
11
  end
32
12
  end
@@ -1,5 +1,5 @@
1
1
  module MVG
2
2
  class Live
3
- VERSION = "1.0.0"
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
@@ -18,8 +18,11 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ['lib']
20
20
 
21
- #s.required_ruby_version = '>= 1.9.3'
22
- s.required_ruby_version = '>= 1.8.7'
21
+ s.required_ruby_version = '>= 1.9.2'
22
+
23
+ if RUBY_PLATFORM == 'java'
24
+ s.add_runtime_dependency 'jruby-openssl'
25
+ end
23
26
 
24
27
  s.add_development_dependency 'rake'
25
28
  s.add_development_dependency 'minitest'
@@ -33,8 +36,7 @@ Gem::Specification.new do |s|
33
36
  s.add_development_dependency 'mocha', '~> 0.11.4'
34
37
  s.add_development_dependency 'simplecov'
35
38
 
36
-
37
- s.add_runtime_dependency 'activemodel', '~> 3.2.2'
39
+ s.add_runtime_dependency 'activemodel', '~> 3.2.3'
38
40
  s.add_runtime_dependency 'faraday', '~> 0.8.0'
39
41
  s.add_runtime_dependency 'nokogiri', '~> 1.5.2'
40
42
  s.add_runtime_dependency 'json'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mvg-live
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -194,7 +194,7 @@ dependencies:
194
194
  requirements:
195
195
  - - ~>
196
196
  - !ruby/object:Gem::Version
197
- version: 3.2.2
197
+ version: 3.2.3
198
198
  type: :runtime
199
199
  prerelease: false
200
200
  version_requirements: !ruby/object:Gem::Requirement
@@ -202,7 +202,7 @@ dependencies:
202
202
  requirements:
203
203
  - - ~>
204
204
  - !ruby/object:Gem::Version
205
- version: 3.2.2
205
+ version: 3.2.3
206
206
  - !ruby/object:Gem::Dependency
207
207
  name: faraday
208
208
  requirement: !ruby/object:Gem::Requirement
@@ -305,7 +305,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
305
305
  requirements:
306
306
  - - ! '>='
307
307
  - !ruby/object:Gem::Version
308
- version: 1.8.7
308
+ version: 1.9.2
309
309
  required_rubygems_version: !ruby/object:Gem::Requirement
310
310
  none: false
311
311
  requirements:
@@ -314,7 +314,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
314
314
  version: '0'
315
315
  segments:
316
316
  - 0
317
- hash: -2294283612288134773
317
+ hash: 3124371489551250366
318
318
  requirements: []
319
319
  rubyforge_project: mvg-live
320
320
  rubygems_version: 1.8.23