lightrail_client 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/README.md +5 -5
- data/lib/lightrail_client/connection.rb +2 -1
- data/lib/lightrail_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c6b4592ac7e30408700f5d577f53a4aadbd35b8
|
4
|
+
data.tar.gz: e12987b5719e1399001fca35e5e612fbac84acb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aad950b69d0821be109cf07e2523697d30b9c3e5a09a280755ccaa7d0dc3a389ca2bee54566a9107d2c9d364c0ccf62925e60931a99c9c3b7135c0331ebc704b
|
7
|
+
data.tar.gz: d721b386ccc2fb6d99a95c4d882284064db901ecf573045a74e9aaec25c6a94ab5daada340b7aedbfee08feeb798064bbd0c07102e319e11b125be92edfa8c45
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Lightrail Client
|
1
|
+
# Lightrail Client for Ruby
|
2
2
|
|
3
|
-
Lightrail is a modern platform for digital account credits, gift cards, promotions, and points (to learn more, visit [Lightrail](https://www.lightrail.com/)).
|
3
|
+
Lightrail is a modern platform for digital account credits, gift cards, promotions, and points (to learn more, visit [Lightrail](https://www.lightrail.com/)). This is a basic library for developers to easily connect with the Lightrail API using Ruby. If you are looking for specific use cases or other languages, check out the complete list of all [Lightrail libraries and integrations](https://github.com/Giftbit/Lightrail-API-Docs/blob/master/docs/client-libraries.md).
|
4
4
|
|
5
5
|
## Features
|
6
6
|
|
@@ -273,10 +273,10 @@ gift_fund = Lightrail::Card.fund({
|
|
273
273
|
|
274
274
|
## Installation
|
275
275
|
|
276
|
-
This gem is
|
276
|
+
This gem is available on RubyGems.org. To use it in your project, add this line to your application's Gemfile:
|
277
277
|
|
278
278
|
```ruby
|
279
|
-
gem 'lightrail_client'
|
279
|
+
gem 'lightrail_client'
|
280
280
|
```
|
281
281
|
|
282
282
|
And then execute:
|
@@ -297,4 +297,4 @@ To install this gem onto your local machine, run `bundle exec rake install`.
|
|
297
297
|
|
298
298
|
## License
|
299
299
|
|
300
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
300
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
@@ -4,6 +4,7 @@ module Lightrail
|
|
4
4
|
conn = Faraday.new Lightrail.api_base, ssl: {version: :TLSv1_2}
|
5
5
|
conn.headers['Content-Type'] = 'application/json; charset=utf-8'
|
6
6
|
conn.headers['Authorization'] = "Bearer #{Lightrail.api_key}"
|
7
|
+
conn.headers['User-Agent'] = "Lightrail-Ruby/#{Gem.loaded_specs['lightrail_client'].version.version}"
|
7
8
|
conn
|
8
9
|
end
|
9
10
|
|
@@ -47,4 +48,4 @@ module Lightrail
|
|
47
48
|
end
|
48
49
|
end
|
49
50
|
end
|
50
|
-
end
|
51
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lightrail_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lightrail
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|