stuart-client-ruby 1.0.0 → 1.1.0

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: e6fe407f7e85f077cba35da969e8229ea66fe3cf
4
- data.tar.gz: 0865cf44453d5fb5702d264fc507207af4521941
3
+ metadata.gz: 8d48685d175f268ff5885b54c968329a8793a98f
4
+ data.tar.gz: d6e5356a7cf35c7672011bb57fad0675179d15c2
5
5
  SHA512:
6
- metadata.gz: ff636f7d5fbb3d80de6dab3eb9fd47df37829e5ddb48bc3ca4b9825f8a92db5742c111f72b1aa6e39b35015cdb17eb4dc8d7d91f4f44b136a5fc950758037d64
7
- data.tar.gz: 7f03c699e1bd01593ccb79ea80bd9a9d655c3526615981ada0dfc9c9bf94e6b71552c989bb8162d04a9d8ff178b972b3360637422a1852b71ab24c97aad007b9
6
+ metadata.gz: 299032668b273547d05a8217f4f63b4b70d4eeba1f7fda25be649e030762857c347fd0321e62a309081d17f77138df0c657ffd72a6144af02c7462d6060ac051
7
+ data.tar.gz: 8e42be838f2b84b4ef488fd5975014dda26fe8a2ee0d78b439b251c03f95412b873f7190fa42f677b9e44b0a3218d074e76faba8effb5d4f642c329dbf604dfd
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
+ [ ![Codeship Status for StuartApp/stuart-client-ruby](https://app.codeship.com/projects/47814430-f49c-0135-ebec-46d7136b8c34/status?branch=master)](https://app.codeship.com/projects/273162)
2
+
1
3
  # Stuart Ruby Client
2
4
  For a complete documentation of all endpoints offered by the Stuart API, you can visit [Stuart API documentation](https://stuart.api-docs.io).
3
5
 
4
6
  ## Install
5
- Via Composer:
6
-
7
7
  ``` bash
8
8
  $ gem install stuart-client-ruby
9
9
  ```
@@ -13,6 +13,7 @@ $ gem install stuart-client-ruby
13
13
  ### Initialize HTTP client
14
14
 
15
15
  ```ruby
16
+ require 'stuart-client-ruby'
16
17
  environment = Stuart::Infrastructure::Environment::SANDBOX
17
18
  api_client_id = 'c6058849d0a056fc743203acb8e6a850dad103485c3edc51b16a9260cc7a7689' # can be found here: https://admin-sandbox.stuart.com/client/api
18
19
  api_client_secret = 'aa6a415fce31967501662c1960fcbfbf4745acff99acb19dbc1aae6f76c9c618' # can be found here: https://admin-sandbox.stuart.com/client/api
@@ -36,7 +37,7 @@ job = {
36
37
  contact: {
37
38
  firstname: "Martin",
38
39
  lastname: "Pont",
39
- phone: "+33698348756'",
40
+ phone: "+33698348756",
40
41
  company: "KFC Paris Barbès"
41
42
  }
42
43
  }
data/Rakefile CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "rubygems"
4
4
  require "bundler"
5
- require "./lib/stuart/version"
5
+ require "./lib/stuart-client-ruby/version"
6
6
  begin
7
7
  Bundler.setup(:default, :development)
8
8
  rescue Bundler::BundlerError => e
@@ -0,0 +1,5 @@
1
+ require "stuart-client-ruby/infrastructure/environment"
2
+ require "stuart-client-ruby/infrastructure/api_response"
3
+ require "stuart-client-ruby/infrastructure/authenticator"
4
+ require "stuart-client-ruby/infrastructure/http_client"
5
+ require "stuart-client-ruby/version"
File without changes
@@ -1,7 +1,7 @@
1
1
  module Stuart
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
data/spec/spec_helper.rb CHANGED
@@ -1,2 +1,2 @@
1
- require "stuart"
1
+ require "stuart-client-ruby"
2
2
  require "rspec"
@@ -0,0 +1,78 @@
1
+ # Generated by juwelier
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: stuart-client-ruby 1.1.0 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "stuart-client-ruby"
9
+ s.version = "1.1.0"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Paul Caillau", "Maximilien Tyc"]
14
+ s.date = "2018-06-13"
15
+ s.description = "Communicate with the Stuart API"
16
+ s.email = "engineering@stuart.com"
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.md"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ ".rubocop.yml",
24
+ "Gemfile",
25
+ "LICENSE.txt",
26
+ "README.md",
27
+ "Rakefile",
28
+ "lib/stuart-client-ruby.rb",
29
+ "lib/stuart-client-ruby/client.rb",
30
+ "lib/stuart-client-ruby/infrastructure/api_response.rb",
31
+ "lib/stuart-client-ruby/infrastructure/authenticator.rb",
32
+ "lib/stuart-client-ruby/infrastructure/environment.rb",
33
+ "lib/stuart-client-ruby/infrastructure/http_client.rb",
34
+ "lib/stuart-client-ruby/version.rb",
35
+ "spec/spec_helper.rb",
36
+ "spec/stuart-client-ruby/infrastructure/authenticator_spec.rb",
37
+ "spec/stuart-client-ruby/infrastructure/http_client_spec.rb",
38
+ "stuart-client-ruby.gemspec"
39
+ ]
40
+ s.homepage = "http://github.com/stuartapp/stuart-client-ruby"
41
+ s.licenses = ["MIT"]
42
+ s.rubygems_version = "2.4.5.1"
43
+ s.summary = "Stuart API Ruby client"
44
+
45
+ if s.respond_to? :specification_version then
46
+ s.specification_version = 4
47
+
48
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
+ s.add_runtime_dependency(%q<oauth2>, [">= 0"])
50
+ s.add_runtime_dependency(%q<typhoeus>, [">= 0"])
51
+ s.add_development_dependency(%q<bundler>, [">= 0"])
52
+ s.add_development_dependency(%q<juwelier>, [">= 0"])
53
+ s.add_development_dependency(%q<rdoc>, [">= 0"])
54
+ s.add_development_dependency(%q<rspec>, [">= 0"])
55
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
56
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
57
+ else
58
+ s.add_dependency(%q<oauth2>, [">= 0"])
59
+ s.add_dependency(%q<typhoeus>, [">= 0"])
60
+ s.add_dependency(%q<bundler>, [">= 0"])
61
+ s.add_dependency(%q<juwelier>, [">= 0"])
62
+ s.add_dependency(%q<rdoc>, [">= 0"])
63
+ s.add_dependency(%q<rspec>, [">= 0"])
64
+ s.add_dependency(%q<shoulda>, [">= 0"])
65
+ s.add_dependency(%q<simplecov>, [">= 0"])
66
+ end
67
+ else
68
+ s.add_dependency(%q<oauth2>, [">= 0"])
69
+ s.add_dependency(%q<typhoeus>, [">= 0"])
70
+ s.add_dependency(%q<bundler>, [">= 0"])
71
+ s.add_dependency(%q<juwelier>, [">= 0"])
72
+ s.add_dependency(%q<rdoc>, [">= 0"])
73
+ s.add_dependency(%q<rspec>, [">= 0"])
74
+ s.add_dependency(%q<shoulda>, [">= 0"])
75
+ s.add_dependency(%q<simplecov>, [">= 0"])
76
+ end
77
+ end
78
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stuart-client-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Caillau
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-02-14 00:00:00.000000000 Z
12
+ date: 2018-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth2
@@ -137,17 +137,17 @@ files:
137
137
  - LICENSE.txt
138
138
  - README.md
139
139
  - Rakefile
140
- - lib/stuart.rb
141
- - lib/stuart/.DS_Store
142
- - lib/stuart/client.rb
143
- - lib/stuart/infrastructure/api_response.rb
144
- - lib/stuart/infrastructure/authenticator.rb
145
- - lib/stuart/infrastructure/environment.rb
146
- - lib/stuart/infrastructure/http_client.rb
147
- - lib/stuart/version.rb
140
+ - lib/stuart-client-ruby.rb
141
+ - lib/stuart-client-ruby/client.rb
142
+ - lib/stuart-client-ruby/infrastructure/api_response.rb
143
+ - lib/stuart-client-ruby/infrastructure/authenticator.rb
144
+ - lib/stuart-client-ruby/infrastructure/environment.rb
145
+ - lib/stuart-client-ruby/infrastructure/http_client.rb
146
+ - lib/stuart-client-ruby/version.rb
148
147
  - spec/spec_helper.rb
149
- - spec/stuart/infrastructure/authenticator_spec.rb
150
- - spec/stuart/infrastructure/http_client_spec.rb
148
+ - spec/stuart-client-ruby/infrastructure/authenticator_spec.rb
149
+ - spec/stuart-client-ruby/infrastructure/http_client_spec.rb
150
+ - stuart-client-ruby.gemspec
151
151
  homepage: http://github.com/stuartapp/stuart-client-ruby
152
152
  licenses:
153
153
  - MIT
data/lib/stuart.rb DELETED
@@ -1,5 +0,0 @@
1
- require "stuart/infrastructure/environment"
2
- require "stuart/infrastructure/api_response"
3
- require "stuart/infrastructure/authenticator"
4
- require "stuart/infrastructure/http_client"
5
- require "stuart/version"
data/lib/stuart/.DS_Store DELETED
Binary file