quaderno 2.1.0 → 2.1.1

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
  SHA256:
3
- metadata.gz: a9b1cc29c32e037177c8c590bf7aeec9712e6313445aa7e496584a56e773764f
4
- data.tar.gz: cf3ff48c4eb21de4f6669f4cb69350c2d8393f6318ea15899a559c5d865a711b
3
+ metadata.gz: f2a54020a3dc74c8a5e2404f97a769d1543a50fefe6ecb96525b9e9813dbf3c9
4
+ data.tar.gz: 266177a86d010c6ab328415ad48922c38114aff87c75d5033af90518eead03da
5
5
  SHA512:
6
- metadata.gz: ce39d849088fe2d0203af6cb46f2d1af55b9ea364be9cc72f28ae5276426352a0b8c2f6c1e5433e5af6afa5997e1b10d61b9c7721629ed69bc11e03cefbebcfb
7
- data.tar.gz: d822575449a512681d494565381beb6e5bb50f5ef6b680d3b3d2c7e90c86e84d1d747026c915398bae87c3244eeeca4c57ed3a7983a6774a104dca0a443b85ca
6
+ metadata.gz: 59597e1a56992dd3c1175dff0d3b6d7321870b04e990900a573945b10f827907d74ae89c6da565dd6ac18d6ed46f3e07af72533d5fdb23063194e0321e0e0a1e
7
+ data.tar.gz: 9ed734de5dd0490047b61dfe0f0a644dc071c1f0cd5bcf9ff3a51dd876990aa1966710b5c354f18ebe98170410af7d9bc9a1f6032e949bca0245599f9e1d3c79
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Quaderno-ruby is a ruby wrapper for [Quaderno API] (https://github.com/quaderno/quaderno-api).
4
4
 
5
- Current version is 2.1.0 See the changelog [here](https://github.com/quaderno/quaderno-ruby/blob/master/changelog.md)
5
+ Current version is 2.1.1 See the changelog [here](https://github.com/quaderno/quaderno-ruby/blob/master/changelog.md)
6
6
 
7
7
  ## Installation & Configuration
8
8
 
data/changelog.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.1
4
+ * Added assign operator to the user_agent_header
5
+
3
6
  ## 2.1.0
4
7
  * Added a new `Quaderno::Exceptions::ServerError` exception for more transparency, and better control of workflows
5
8
  * Added a `user_agent_header` optional configuration to make debugging oauth integrations easier
@@ -47,6 +47,10 @@ class Quaderno::Base < OpenStruct
47
47
  @@url = url
48
48
  end
49
49
 
50
+ def self.user_agent_header=(custom_user_agent)
51
+ @@user_agent_suffix = custom_user_agent
52
+ end
53
+
50
54
  def self.authorization(auth_token, mode = nil)
51
55
  mode ||= :production
52
56
  url = mode == :sandbox ? SANDBOX_URL : PRODUCTION_URL
@@ -143,7 +147,7 @@ class Quaderno::Base < OpenStruct
143
147
  end
144
148
 
145
149
  def self.user_agent_header
146
- @_user_agent_header ||= { "User-Agent" => ["Quaderno Ruby Gem #{Quaderno::VERSION}", @@user_agent_suffix].compact.join(' - ') }
150
+ { "User-Agent" => ["Quaderno Ruby Gem #{Quaderno::VERSION}", @@user_agent_suffix].compact.join(' - ') }
147
151
  end
148
152
 
149
153
  def self.version_header
@@ -1,3 +1,3 @@
1
1
  class Quaderno
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quaderno
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recrea
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2018-05-07 00:00:00.000000000 Z
@@ -173,7 +173,7 @@ homepage: http://github.com/quaderno/quaderno-ruby
173
173
  licenses:
174
174
  - MIT
175
175
  metadata: {}
176
- post_install_message:
176
+ post_install_message:
177
177
  rdoc_options: []
178
178
  require_paths:
179
179
  - lib
@@ -188,8 +188,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
- rubygems_version: 3.0.3
192
- signing_key:
191
+ rubygems_version: 3.1.6
192
+ signing_key:
193
193
  specification_version: 4
194
194
  summary: Ruby wrapper for the Quaderno API (https://quaderno.io/docs/api)
195
195
  test_files: []