tijuana_client 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0bb1dbe9e00346de49536c7cb6e548426035d8e7
4
- data.tar.gz: b4a29258b1a2c379990efbeca670a4d25624436d
3
+ metadata.gz: 5daaa3c657b520a3bead43d93771b69da44926d1
4
+ data.tar.gz: 2cf5c4e80e9f5c295f0c8e93ce1f5aea3e7ac9ae
5
5
  SHA512:
6
- metadata.gz: e0ff7de8a5e482d6a1ac1282d4879ef6e407ade651420f1c5835db7fa0b82a00d409bb359f734581b1338f0f0060693bf19381e97536461260fc7299749d271b
7
- data.tar.gz: 873c81447a873554ed4aa30b2dbbcfce591e8c722bcd1cda2e2d964b83a875f8c0b0a90e5f887eef8b5810b6ed55b73f2f35f6374516dbec3d1cb8610aa5fa3f
6
+ metadata.gz: 3a6c16c0b7268fbdeba8d8b1d3126c968955c548c6c362ee8afbb6a018ef313b9f25c8fc469c924be99ba7ecb2f336c85bb9669dd380a09105b31b2201dccfb9
7
+ data.tar.gz: 68e6acb780f11eace53e4c70c719becf49a93ed11e86e293b971125b7981dc38ea99876dcbbf6e89a0d687cd78cbddedb51bd5f366a994e357a5c50383738900
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- tijuana_client
1
+ tijuana-client
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.0.0-p645
1
+ 2.5.1
data/.travis.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
- - "2.0.0"
3
+ - "2.4.2"
data/Gemfile CHANGED
@@ -1,14 +1,14 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'vertebrae'
3
+ gem 'vertebrae', '~> 0.5.0'
4
4
 
5
5
  # Add dependencies to develop your gem here.
6
6
  # Include everything needed to run rake, tests, features, etc.
7
7
  group :development do
8
- gem "rspec"
8
+ gem 'rspec'
9
9
  gem 'webmock'
10
10
  gem 'pry'
11
11
  gem 'pry-byebug'
12
- gem "bundler"
13
- gem "jeweler", "~> 2.0.0"
12
+ gem 'bundler'
13
+ gem 'jeweler', '~> 2.1', '>= 2.1.2'
14
14
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -44,7 +44,9 @@ module TijuanaClient
44
44
  connection.stack do |builder|
45
45
  builder.use Faraday::Request::Multipart
46
46
  builder.use Faraday::Request::UrlEncoded
47
- builder.use Vertebrae::Request::BasicAuth, connection.configuration.authentication if connection.configuration.authenticated?
47
+ if connection.configuration.authenticated?
48
+ builder.use Faraday::Request::BasicAuthentication, connection.configuration.username, connection.configuration.password
49
+ end
48
50
 
49
51
  builder.use Faraday::Response::Logger if ENV['DEBUG']
50
52
 
@@ -63,4 +65,4 @@ module TijuanaClient
63
65
  end
64
66
  end
65
67
  end
66
- end
68
+ end
data/spec/user_spec.rb CHANGED
@@ -74,8 +74,8 @@ describe TijuanaClient::User do
74
74
  let(:request_path) { '/api/users/' }
75
75
 
76
76
  before(:each) do
77
- stub_request(:post, "https://username:password@test.com#{request_path}").with(body: request_body).to_return(:body => body, :status => status,
78
- :headers => { content_type: "application/json; charset=utf-8"})
77
+ stub_request(:post, "https://test.com#{request_path}").with(basic_auth: ['username', 'password'], body: request_body)
78
+ .to_return(:body => body, :status => status, :headers => { content_type: "application/json; charset=utf-8"})
79
79
  end
80
80
 
81
81
  describe "success" do
@@ -2,18 +2,18 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: tijuana_client 0.2.2 ruby lib
5
+ # stub: tijuana_client 0.2.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
- s.name = "tijuana_client"
9
- s.version = "0.2.2"
8
+ s.name = "tijuana_client".freeze
9
+ s.version = "0.2.3"
10
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 = ["Nathan Woodhull"]
14
- s.date = "2015-07-09"
15
- s.description = "An API client for the code that runs Getup.org.au"
16
- s.email = "nathan@controlshiftlabs.com"
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["Nathan Woodhull".freeze]
14
+ s.date = "2018-12-04"
15
+ s.description = "An API client for the code that runs Getup.org.au".freeze
16
+ s.email = "nathan@controlshiftlabs.com".freeze
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
19
  "README.md"
@@ -23,7 +23,6 @@ Gem::Specification.new do |s|
23
23
  ".ruby-version",
24
24
  ".travis.yml",
25
25
  "Gemfile",
26
- "Gemfile.lock",
27
26
  "LICENSE.txt",
28
27
  "README.md",
29
28
  "Rakefile",
@@ -39,39 +38,39 @@ Gem::Specification.new do |s|
39
38
  "spec/user_spec.rb",
40
39
  "tijuana_client.gemspec"
41
40
  ]
42
- s.homepage = "http://github.com/controlshift/tijuana_client"
43
- s.licenses = ["MIT"]
44
- s.rubygems_version = "2.4.6"
45
- s.summary = "API client for Tijuana"
41
+ s.homepage = "http://github.com/controlshift/tijuana_client".freeze
42
+ s.licenses = ["MIT".freeze]
43
+ s.rubygems_version = "2.6.14".freeze
44
+ s.summary = "API client for Tijuana".freeze
46
45
 
47
46
  if s.respond_to? :specification_version then
48
47
  s.specification_version = 4
49
48
 
50
49
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
- s.add_runtime_dependency(%q<vertebrae>, [">= 0"])
52
- s.add_development_dependency(%q<rspec>, [">= 0"])
53
- s.add_development_dependency(%q<webmock>, [">= 0"])
54
- s.add_development_dependency(%q<pry>, [">= 0"])
55
- s.add_development_dependency(%q<pry-byebug>, [">= 0"])
56
- s.add_development_dependency(%q<bundler>, [">= 0"])
57
- s.add_development_dependency(%q<jeweler>, ["~> 2.0.0"])
50
+ s.add_runtime_dependency(%q<vertebrae>.freeze, ["~> 0.5.0"])
51
+ s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
52
+ s.add_development_dependency(%q<webmock>.freeze, [">= 0"])
53
+ s.add_development_dependency(%q<pry>.freeze, [">= 0"])
54
+ s.add_development_dependency(%q<pry-byebug>.freeze, [">= 0"])
55
+ s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
56
+ s.add_development_dependency(%q<jeweler>.freeze, [">= 2.1.2", "~> 2.1"])
58
57
  else
59
- s.add_dependency(%q<vertebrae>, [">= 0"])
60
- s.add_dependency(%q<rspec>, [">= 0"])
61
- s.add_dependency(%q<webmock>, [">= 0"])
62
- s.add_dependency(%q<pry>, [">= 0"])
63
- s.add_dependency(%q<pry-byebug>, [">= 0"])
64
- s.add_dependency(%q<bundler>, [">= 0"])
65
- s.add_dependency(%q<jeweler>, ["~> 2.0.0"])
58
+ s.add_dependency(%q<vertebrae>.freeze, ["~> 0.5.0"])
59
+ s.add_dependency(%q<rspec>.freeze, [">= 0"])
60
+ s.add_dependency(%q<webmock>.freeze, [">= 0"])
61
+ s.add_dependency(%q<pry>.freeze, [">= 0"])
62
+ s.add_dependency(%q<pry-byebug>.freeze, [">= 0"])
63
+ s.add_dependency(%q<bundler>.freeze, [">= 0"])
64
+ s.add_dependency(%q<jeweler>.freeze, [">= 2.1.2", "~> 2.1"])
66
65
  end
67
66
  else
68
- s.add_dependency(%q<vertebrae>, [">= 0"])
69
- s.add_dependency(%q<rspec>, [">= 0"])
70
- s.add_dependency(%q<webmock>, [">= 0"])
71
- s.add_dependency(%q<pry>, [">= 0"])
72
- s.add_dependency(%q<pry-byebug>, [">= 0"])
73
- s.add_dependency(%q<bundler>, [">= 0"])
74
- s.add_dependency(%q<jeweler>, ["~> 2.0.0"])
67
+ s.add_dependency(%q<vertebrae>.freeze, ["~> 0.5.0"])
68
+ s.add_dependency(%q<rspec>.freeze, [">= 0"])
69
+ s.add_dependency(%q<webmock>.freeze, [">= 0"])
70
+ s.add_dependency(%q<pry>.freeze, [">= 0"])
71
+ s.add_dependency(%q<pry-byebug>.freeze, [">= 0"])
72
+ s.add_dependency(%q<bundler>.freeze, [">= 0"])
73
+ s.add_dependency(%q<jeweler>.freeze, [">= 2.1.2", "~> 2.1"])
75
74
  end
76
75
  end
77
76
 
metadata CHANGED
@@ -1,113 +1,119 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tijuana_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Woodhull
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2018-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vertebrae
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.5.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: webmock
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: pry-byebug
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: jeweler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 2.0.0
103
+ version: 2.1.2
104
+ - - "~>"
105
+ - !ruby/object:Gem::Version
106
+ version: '2.1'
104
107
  type: :development
105
108
  prerelease: false
106
109
  version_requirements: !ruby/object:Gem::Requirement
107
110
  requirements:
108
- - - ~>
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: 2.1.2
114
+ - - "~>"
109
115
  - !ruby/object:Gem::Version
110
- version: 2.0.0
116
+ version: '2.1'
111
117
  description: An API client for the code that runs Getup.org.au
112
118
  email: nathan@controlshiftlabs.com
113
119
  executables: []
@@ -116,11 +122,10 @@ extra_rdoc_files:
116
122
  - LICENSE.txt
117
123
  - README.md
118
124
  files:
119
- - .ruby-gemset
120
- - .ruby-version
121
- - .travis.yml
125
+ - ".ruby-gemset"
126
+ - ".ruby-version"
127
+ - ".travis.yml"
122
128
  - Gemfile
123
- - Gemfile.lock
124
129
  - LICENSE.txt
125
130
  - README.md
126
131
  - Rakefile
@@ -145,17 +150,17 @@ require_paths:
145
150
  - lib
146
151
  required_ruby_version: !ruby/object:Gem::Requirement
147
152
  requirements:
148
- - - '>='
153
+ - - ">="
149
154
  - !ruby/object:Gem::Version
150
155
  version: '0'
151
156
  required_rubygems_version: !ruby/object:Gem::Requirement
152
157
  requirements:
153
- - - '>='
158
+ - - ">="
154
159
  - !ruby/object:Gem::Version
155
160
  version: '0'
156
161
  requirements: []
157
162
  rubyforge_project:
158
- rubygems_version: 2.4.6
163
+ rubygems_version: 2.6.14
159
164
  signing_key:
160
165
  specification_version: 4
161
166
  summary: API client for Tijuana
data/Gemfile.lock DELETED
@@ -1,113 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- activesupport (4.2.3)
5
- i18n (~> 0.7)
6
- json (~> 1.7, >= 1.7.7)
7
- minitest (~> 5.1)
8
- thread_safe (~> 0.3, >= 0.3.4)
9
- tzinfo (~> 1.1)
10
- addressable (2.3.8)
11
- builder (3.2.2)
12
- byebug (4.0.5)
13
- columnize (= 0.9.0)
14
- coderay (1.1.0)
15
- columnize (0.9.0)
16
- crack (0.4.2)
17
- safe_yaml (~> 1.0.0)
18
- descendants_tracker (0.0.4)
19
- thread_safe (~> 0.3, >= 0.3.1)
20
- diff-lcs (1.2.5)
21
- faraday (0.9.1)
22
- multipart-post (>= 1.2, < 3)
23
- faraday_middleware (0.10.0)
24
- faraday (>= 0.7.4, < 0.10)
25
- git (1.2.9.1)
26
- github_api (0.12.3)
27
- addressable (~> 2.3)
28
- descendants_tracker (~> 0.0.4)
29
- faraday (~> 0.8, < 0.10)
30
- hashie (>= 3.3)
31
- multi_json (>= 1.7.5, < 2.0)
32
- nokogiri (~> 1.6.3)
33
- oauth2
34
- hashie (3.4.2)
35
- highline (1.7.2)
36
- i18n (0.7.0)
37
- jeweler (2.0.1)
38
- builder
39
- bundler (>= 1.0)
40
- git (>= 1.2.5)
41
- github_api
42
- highline (>= 1.6.15)
43
- nokogiri (>= 1.5.10)
44
- rake
45
- rdoc
46
- json (1.8.3)
47
- jwt (1.5.1)
48
- method_source (0.8.2)
49
- mini_portile (0.6.2)
50
- minitest (5.7.0)
51
- multi_json (1.11.2)
52
- multi_xml (0.5.5)
53
- multipart-post (2.0.0)
54
- nokogiri (1.6.6.2)
55
- mini_portile (~> 0.6.0)
56
- oauth2 (1.0.0)
57
- faraday (>= 0.8, < 0.10)
58
- jwt (~> 1.0)
59
- multi_json (~> 1.3)
60
- multi_xml (~> 0.5)
61
- rack (~> 1.2)
62
- pry (0.10.1)
63
- coderay (~> 1.1.0)
64
- method_source (~> 0.8.1)
65
- slop (~> 3.4)
66
- pry-byebug (3.1.0)
67
- byebug (~> 4.0)
68
- pry (~> 0.10)
69
- rack (1.6.4)
70
- rake (10.4.2)
71
- rdoc (4.2.0)
72
- json (~> 1.4)
73
- rspec (3.3.0)
74
- rspec-core (~> 3.3.0)
75
- rspec-expectations (~> 3.3.0)
76
- rspec-mocks (~> 3.3.0)
77
- rspec-core (3.3.1)
78
- rspec-support (~> 3.3.0)
79
- rspec-expectations (3.3.0)
80
- diff-lcs (>= 1.2.0, < 2.0)
81
- rspec-support (~> 3.3.0)
82
- rspec-mocks (3.3.1)
83
- diff-lcs (>= 1.2.0, < 2.0)
84
- rspec-support (~> 3.3.0)
85
- rspec-support (3.3.0)
86
- safe_yaml (1.0.4)
87
- slop (3.6.0)
88
- thread_safe (0.3.5)
89
- tzinfo (1.2.2)
90
- thread_safe (~> 0.1)
91
- vertebrae (0.2.11)
92
- activesupport
93
- faraday
94
- faraday_middleware
95
- hashie
96
- webmock (1.21.0)
97
- addressable (>= 2.3.6)
98
- crack (>= 0.3.2)
99
-
100
- PLATFORMS
101
- ruby
102
-
103
- DEPENDENCIES
104
- bundler
105
- jeweler (~> 2.0.0)
106
- pry
107
- pry-byebug
108
- rspec
109
- vertebrae
110
- webmock
111
-
112
- BUNDLED WITH
113
- 1.10.5