button 1.1.0 → 1.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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTRlYTE4OWNjZGQyY2I0MzE1ZTU5NTg2OTA2YTFiMTA5MTU1ZDQ4Yw==
5
- data.tar.gz: !binary |-
6
- NzJjMWY5NDcyZDE3OWExNjkwYWQwYTc4YjY5YjdiMmJlN2UzYWUzMg==
2
+ SHA1:
3
+ metadata.gz: 554dc2147f47d860cca675f697009f591eaf9e05
4
+ data.tar.gz: eb9318d22215c7063b8d058c06a0bef8d8e656d4
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MDVkZjFjMjI5ZWU1YjE3NGUxODgzMWM2YTJjY2I2NmZiZjQ4YmQ0ZTFhNWE4
10
- ZTBkZDMzNzgyZGVlYjIwZjY3MTQxNzIwZDY2Y2U1NTBhYjFkMDNlMzhjM2Ew
11
- ZjZiMjg0YjMzZDEzMzgxZDk3YzYyZTAxMDE5NGJkNDk0NjE5OGM=
12
- data.tar.gz: !binary |-
13
- ODNmYzAzZWRiOWIwYWVlZTYyZTBiOWQ1YjgxMjk3OWY1MDlkOTIzYmNhOTQ4
14
- YjVkMWViYjM1YjFiNmEwZTI5ZTQ3NzE2YjA4MjUwZDRiZDMyNDM5ODJlYTUz
15
- Zjc0ZDZjMjYyZjVmZjNiODU1NTc3N2Q5MTk4ZWY2Y2ViMzEyMmQ=
6
+ metadata.gz: e497e33ff19b28f46b9ccc24bd63bf87f6a1a331c42509285311c5a3853a0c5e18454de84ff75d5540af884fd021441fc8810dba9104405972e70f46dfa076c1
7
+ data.tar.gz: 2f9abd98c76efff13054341b34a362edc7ae9bd758b402d4308f7884751d02fe088bf7ac7bccfe6d087d2e76ec665a682eecea6f97d91d67f874139712dc24b5
data/CHANGELOG.md CHANGED
@@ -1,2 +1,8 @@
1
+ 1.1.1 December 1, 2016
2
+ - Fix User-Agent bug
3
+
4
+ 1.1.0 December 1, 2016
5
+ - Add client config options
6
+
1
7
  1.0.0 August 11, 2016
2
8
  - Initial Release
@@ -71,10 +71,10 @@ module Button
71
71
 
72
72
  def api_request(request, body = nil)
73
73
  request.basic_auth(@api_key, '')
74
- request.add_field('User-Agent', USER_AGENT)
74
+ request['User-Agent'] = USER_AGENT
75
75
 
76
76
  if !body.nil? && body.respond_to?(:to_json)
77
- request.add_field('Content-Type', 'application/json')
77
+ request['Content-Type'] = 'application/json'
78
78
  request.body = body.to_json
79
79
  end
80
80
 
@@ -1,3 +1,3 @@
1
1
  module Button
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: button
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Button
@@ -38,17 +38,17 @@ require_paths:
38
38
  - lib
39
39
  required_ruby_version: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ! '>='
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: 1.9.3
44
44
  required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ! '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  requirements: []
50
50
  rubyforge_project:
51
- rubygems_version: 2.4.8
51
+ rubygems_version: 2.5.1
52
52
  signing_key:
53
53
  specification_version: 4
54
54
  summary: ruby client for the Button Order API