yooda-client 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfae9f593db9d56d3c012cc2a66fd66deb31d04b
4
- data.tar.gz: 7b46bef1fdf213de65b3697b1c70f009b1c132e2
3
+ metadata.gz: 21e155976eb6ad0c2595c2600b39fa6b1cbecb00
4
+ data.tar.gz: bc3ba0dcf55898ca6f209946cfbf2ab06d327abf
5
5
  SHA512:
6
- metadata.gz: d606cd9aefa35477af1fe7bb28d858bf5079a5354f6ef9ed2b0199ebe121a6f32bf7f996b929e839eb22a409b0c0beaa95c83ca8e613801b4cc4f9c33f0186e0
7
- data.tar.gz: 94bb33037dad2e80c06fbbbc0c29b5ea5ec072774c07f85d49472963d1e5f2a03fc12cec945b342364e1f6fd09000d7bb2da0cb987169d706630c07a019d98d7
6
+ metadata.gz: 2ea54bedbb6372cd0e5edd85a2ff0ce97b88e4341c97d8ad5f31c08b382a59617cd74e6f26e0c3cd01d02834a838834794f02050dccbfe52cbf9dca9d8ebd89e
7
+ data.tar.gz: 35fdcc287af4258a2915eff6428f52042d134dcb445add099b1b35d41596ab57856d56734face0082118abb06c5871c9cea0c71060d58965369cd664037be28f
@@ -0,0 +1,3 @@
1
+ Version 0.1.3
2
+ ----------
3
+ * Initial version with very limitted set of tests implemented
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yooda-client (0.1.2)
4
+ yooda-client (0.1.4)
5
5
  faraday (~> 0.13)
6
6
  faraday_middleware
7
7
  hashie (~> 3.5)
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
- # Yooda::Client
1
+ # A Ruby wrapper for the Yooda API
2
+ A simple and lightweight ruby module for working with Yooda via the Yooda API. Learn about the Yooda API at https://api.yooda.com/doc.
2
3
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/yooda/client`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
4
+ [La revanche des sites](http://www.la-revanche-des-sites.fr) ❤️ [Yooda](https://www.yooda.com), so if you have problems using the gem or would like to see support for new endpoints, please open an issue. We'll get it resolved as quick as we can.
6
5
 
7
6
  ## Installation
8
7
 
@@ -22,22 +21,36 @@ Or install it yourself as:
22
21
 
23
22
  ## Usage
24
23
 
25
- TODO: Write usage instructions here
24
+ ```ruby
25
+ client = Yooda::Client.new(apikey: "ok")
26
26
 
27
- ## Development
27
+ client.credits
28
+ client.histories
29
+ client.histories(request_date: Date.today.strftime("%Y-%m-%d"))
30
+ client.histories(return_max: 2, return_initial_position: 2)
28
31
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
32
+ client.domain_informations("www.la-revanche-des-sites.fr")
33
+ client.domain_market_kpi(1484887)
34
+ client.keywords_market_by_domain(1484887, return_max: 2, return_initial_position: 2)
30
35
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
36
+ client.keyword_informations("SEO")
37
+ client.keyword_market_kpi(124)
38
+ client.keywords_market_by_keyword(124, return_max: 2, return_initial_position: 2)
39
+ ```
32
40
 
33
41
  ## Contributing
34
42
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/yooda-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
43
+ Bug reports and pull requests are welcome on GitHub at https://github.com/larevanchedessites/yooda-api-ruby-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
44
 
37
- ## License
38
45
 
46
+ ## History
47
+
48
+ View the [changelog](https://github.com/larevanchedessites/yooda-api-ruby-client/blob/master/CHANGELOG.md). This gem follows [Semantic Versioning](http://semver.org/).
49
+
50
+ ## License
39
51
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
+ See [LICENSE](https://github.com/larevanchedessites/yooda-api-ruby-client/blob/master/LICENSE.txt) for details.
40
53
 
41
54
  ## Code of Conduct
42
55
 
43
- Everyone interacting in the Yooda::Client project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/yooda-client/blob/master/CODE_OF_CONDUCT.md).
56
+ Everyone interacting in the project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/yooda-client/blob/master/CODE_OF_CONDUCT.md).
@@ -25,7 +25,8 @@ module Yooda
25
25
 
26
26
  def initialize(options={})
27
27
  @apikey = options[:apikey] || Yooda.apikey
28
- @connection_middleware = options[:connection_middleware] || Yooda.connection_middleware || []
28
+ # @connection_middleware = options[:connection_middleware] || Yooda.connection_middleware || []
29
+ @connection_middleware = []
29
30
  @connection_middleware += DEFAULT_CONNECTION_MIDDLEWARE
30
31
  end
31
32
 
@@ -3,7 +3,7 @@ module Yooda
3
3
  class Version
4
4
  MAJOR = 0 unless defined? Yooda::Version::MAJOR
5
5
  MINOR = 1 unless defined? Yooda::Version::MINOR
6
- PATCH = 3 unless defined? Yooda::Version::PATCH
6
+ PATCH = 4 unless defined? Yooda::Version::PATCH
7
7
  PRE = nil unless defined? Yooda::Version::PRE
8
8
 
9
9
  class << self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yooda-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bastien Montois
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-30 00:00:00.000000000 Z
11
+ date: 2017-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -118,6 +118,7 @@ files:
118
118
  - ".gitignore"
119
119
  - ".rspec"
120
120
  - ".travis.yml"
121
+ - CHANGELOG.md
121
122
  - CODE_OF_CONDUCT.md
122
123
  - Gemfile
123
124
  - Gemfile.lock