multicity 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,8 +6,14 @@ module Multicity
6
6
  :url_area => 'https://www.multicity-carsharing.de/wp-content/plugins/multicity_map/geschaeftsbereich.kml'
7
7
  }
8
8
 
9
+ # Set the user agent
10
+ def self.user_agent=val
11
+ @@user_agent = val
12
+ end
13
+
9
14
  def initialize
10
15
  @agent = Mechanize.new
16
+ @agent.user_agent = @@user_agent ||= "Multicity Rubygem",
11
17
  end
12
18
 
13
19
  # Gets all cars in Berlin
@@ -40,7 +46,6 @@ module Multicity
40
46
 
41
47
  def headers
42
48
  {
43
- "user-agent" => "Multicity Rubygem",
44
49
  "content-type" => "application/x-www-form-urlencoded;charset=utf-8",
45
50
  "accept-charset" => "utf-8"
46
51
  }
@@ -1,3 +1,3 @@
1
1
  module Multicity
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multicity
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Simon Woker
@@ -15,11 +15,9 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-01-28 00:00:00 Z
18
+ date: 2013-02-07 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
- prerelease: false
22
- name: json
23
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
22
  none: false
25
23
  requirements:
@@ -31,10 +29,10 @@ dependencies:
31
29
  - 6
32
30
  version: "1.6"
33
31
  requirement: *id001
32
+ prerelease: false
34
33
  type: :runtime
34
+ name: json
35
35
  - !ruby/object:Gem::Dependency
36
- prerelease: false
37
- name: mechanize
38
36
  version_requirements: &id002 !ruby/object:Gem::Requirement
39
37
  none: false
40
38
  requirements:
@@ -45,10 +43,10 @@ dependencies:
45
43
  - 0
46
44
  version: "0"
47
45
  requirement: *id002
46
+ prerelease: false
48
47
  type: :runtime
48
+ name: mechanize
49
49
  - !ruby/object:Gem::Dependency
50
- prerelease: false
51
- name: xml-simple
52
50
  version_requirements: &id003 !ruby/object:Gem::Requirement
53
51
  none: false
54
52
  requirements:
@@ -59,10 +57,10 @@ dependencies:
59
57
  - 0
60
58
  version: "0"
61
59
  requirement: *id003
60
+ prerelease: false
62
61
  type: :runtime
62
+ name: xml-simple
63
63
  - !ruby/object:Gem::Dependency
64
- prerelease: false
65
- name: rake
66
64
  version_requirements: &id004 !ruby/object:Gem::Requirement
67
65
  none: false
68
66
  requirements:
@@ -73,7 +71,9 @@ dependencies:
73
71
  - 0
74
72
  version: "0"
75
73
  requirement: *id004
74
+ prerelease: false
76
75
  type: :development
76
+ name: rake
77
77
  description: Wraps the Multicity JSON to use it nicely in your own environment. You can use this Gem to read all cars that are available.
78
78
  email: github@simonwoker.de
79
79
  executables: []
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  requirements: []
121
121
 
122
122
  rubyforge_project:
123
- rubygems_version: 1.8.24
123
+ rubygems_version: 1.8.25
124
124
  signing_key:
125
125
  specification_version: 3
126
126
  summary: Wrapper for the Multicity API