mobile-rb 0.0.1 → 0.0.2
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
- data/.gitignore +1 -0
- data/README.md +45 -2
- data/lib/mobile/client.rb +0 -1
- data/lib/mobile/version.rb +1 -1
- data/mobile.gemspec +1 -2
- data/spec/mobile_spec.rb +0 -1
- metadata +3 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef5941a424a066fa57f8c4a98b9f2785c0f7916c
|
|
4
|
+
data.tar.gz: 50723c4fb7715215d70cc814cafd3937ea6c8b67
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96ee1a2359d29441a89faa573fa2ea8b9691b6191b684939c1e66e2cbbdea328d2eb9029ad0a3ccac117218cad430abfdc6321f046b17ad8e26cfd80b33c349e
|
|
7
|
+
data.tar.gz: 56dcc8a0401a13f9f0a5e4d12b5ea71c2bd5ed3c330b301c6735d937b1749437b0e5c2de4fd79109de15f1468c1d88fdb08342370275e55a5d9ccc4172326145
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Mobile-rb is a new ruby wrapper for the german Mobile.de API. Tests included (but need to be extended).
|
|
4
4
|
|
|
5
|
+
*Currently the gem only supports the [Search API](http://services.mobile.de/manual/search-api.html) of Mobile.de.*
|
|
6
|
+
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
```
|
|
@@ -18,10 +20,51 @@ client = Mobile.configure do |config|
|
|
|
18
20
|
end
|
|
19
21
|
```
|
|
20
22
|
|
|
23
|
+
### Fetching all ads
|
|
24
|
+
|
|
25
|
+
To fetch all ads by the user that is logged in do the following command:
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
client.ads()
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Fetching a specific ad
|
|
32
|
+
|
|
33
|
+
To fetch a specific ad by his ad-id just use the `ad` method of the client and pass the ad-id into the method:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
client.ad(472842)
|
|
37
|
+
```
|
|
38
|
+
|
|
21
39
|
## Contributing
|
|
22
40
|
|
|
23
|
-
1. Fork it ( https://github.com/
|
|
41
|
+
1. Fork it ( https://github.com/freshas/mobile-rb/fork )
|
|
24
42
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
25
43
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
26
|
-
4. Push to the branch (`git push origin
|
|
44
|
+
4. Push to the branch (`git push origin feature/feature-name`)
|
|
27
45
|
5. Create a new Pull Request
|
|
46
|
+
|
|
47
|
+
## License
|
|
48
|
+
|
|
49
|
+
Copyright (c) 2015 Dominik Schmidt
|
|
50
|
+
|
|
51
|
+
MIT License
|
|
52
|
+
|
|
53
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
54
|
+
a copy of this software and associated documentation files (the
|
|
55
|
+
"Software"), to deal in the Software without restriction, including
|
|
56
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
57
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
58
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
59
|
+
the following conditions:
|
|
60
|
+
|
|
61
|
+
The above copyright notice and this permission notice shall be
|
|
62
|
+
included in all copies or substantial portions of the Software.
|
|
63
|
+
|
|
64
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
65
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
66
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
67
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
68
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
69
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
70
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/mobile/client.rb
CHANGED
data/lib/mobile/version.rb
CHANGED
data/mobile.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["visualcake@me.com"]
|
|
11
11
|
spec.description = 'A Ruby interface to the Mobile.de API.'
|
|
12
12
|
spec.summary = spec.description
|
|
13
|
-
spec.homepage = ""
|
|
13
|
+
spec.homepage = "http://fresh.as/"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
|
@@ -24,5 +24,4 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.add_development_dependency "rspec", "~> 2.6"
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.7"
|
|
26
26
|
spec.add_development_dependency "rake", "~> 10.0"
|
|
27
|
-
spec.add_development_dependency "awesome_print", "~> 1.6.1"
|
|
28
27
|
end
|
data/spec/mobile_spec.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mobile-rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dominik Schmidt
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-01-
|
|
11
|
+
date: 2015-01-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: multi_xml
|
|
@@ -80,20 +80,6 @@ dependencies:
|
|
|
80
80
|
- - ~>
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '10.0'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: awesome_print
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - ~>
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: 1.6.1
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - ~>
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: 1.6.1
|
|
97
83
|
description: A Ruby interface to the Mobile.de API.
|
|
98
84
|
email:
|
|
99
85
|
- visualcake@me.com
|
|
@@ -114,7 +100,7 @@ files:
|
|
|
114
100
|
- mobile.gemspec
|
|
115
101
|
- spec/mobile_spec.rb
|
|
116
102
|
- spec/spec_helper.rb
|
|
117
|
-
homepage:
|
|
103
|
+
homepage: http://fresh.as/
|
|
118
104
|
licenses:
|
|
119
105
|
- MIT
|
|
120
106
|
metadata: {}
|