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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ac91b33c8fcc53e6a2459a44a826c604ed036c6
4
- data.tar.gz: a825aed32553201cfdde45ccc1900b89b25c3396
3
+ metadata.gz: 9c6b4592ac7e30408700f5d577f53a4aadbd35b8
4
+ data.tar.gz: e12987b5719e1399001fca35e5e612fbac84acb5
5
5
  SHA512:
6
- metadata.gz: edc6f2c48d63a7db114f132666c7efbac10061047134f2db934c2958ce2788dd1ec4901b9c8ea6518be8965b624567f49b324480542b5fcb0edaa2f144701c31
7
- data.tar.gz: 0d37e39da7491d93039b362c4d4fa64044056f5eb4a11cdd40181fe969f596ce9307fcd54ab60849d53f05c2ed3fb6f2ac076b3d0a38782bf5fd97febc053ec8
6
+ metadata.gz: aad950b69d0821be109cf07e2523697d30b9c3e5a09a280755ccaa7d0dc3a389ca2bee54566a9107d2c9d364c0ccf62925e60931a99c9c3b7135c0331ebc704b
7
+ data.tar.gz: d721b386ccc2fb6d99a95c4d882284064db901ecf573045a74e9aaec25c6a94ab5daada340b7aedbfee08feeb798064bbd0c07102e319e11b125be92edfa8c45
data/.gitignore CHANGED
@@ -10,3 +10,7 @@
10
10
 
11
11
  # rspec failure tracking
12
12
  .rspec_status
13
+
14
+ # IntelliJ stuff
15
+ *.iml
16
+ .idea/
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Lightrail Client Gem (beta)
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/)). The Lightrail Client Gem 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).
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 in alpha mode and is not yet available on RubyGems. You can use it in your project by adding this line to your application's Gemfile:
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', :git => 'https://github.com/Giftbit/lightrail-client-ruby.git'
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
@@ -1,3 +1,3 @@
1
1
  module Lightrail
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  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.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-01-17 00:00:00.000000000 Z
11
+ date: 2018-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler