giftbit-rails 1.0.0 → 1.0.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: 598bd714828681e4294bc0f30325973c2be875fda9f7225a47793494b80c7481
4
- data.tar.gz: f693634c944e63e093f4ecadd8089cc8603cf90c5067e69509751939515a6f12
3
+ metadata.gz: 5eab81b5ab877372c19292ad1371949ca9e0eb3579612ec0823a26722c70fc29
4
+ data.tar.gz: 1997cae111060ac827712d33190e3308847cfe1f0ac8fd5831e44d02466c756e
5
5
  SHA512:
6
- metadata.gz: 891bb572b519ac62ddf15a8d137dcaf027b8125505976ba4077a8e60868e2b06a612a2e848cc298bffdeac71ffe18ff41a62ed024d429570c5c6da412dabcb82
7
- data.tar.gz: bd187302c2a881c2d94dd72ee9c03d1784e71ae6cc57ba08910cc5e3e14ee7874f31823f26a4423cabde0301296b0f548f456f7fbd62d2d6534f750b1b3cd99b
6
+ metadata.gz: f55bf27e4b56de362e9accace5d3bd1081e864efcd4ad0ba3cb06304bdca5185f83ec00a02a417e13ffa5b6d73f410a69609f89cf20275ae495d52a8e6040fd7
7
+ data.tar.gz: d2af1aaa83b95df5b2d3fbba914c40148b157163f6dea29d490fee1b2d4c0254d9267621eaf0bb34ef1f80ef30e84d98034b423659e1fb8c17f6a97460a8b64a
data/README.md CHANGED
@@ -36,7 +36,7 @@ List all Brands
36
36
 
37
37
  Retrieve Brand
38
38
 
39
- response = Giftbit::Brand.show(id: 'brand_code')
39
+ response = Giftbit::Brand.find(id: 'brand_code')
40
40
 
41
41
  #### Region
42
42
 
@@ -81,6 +81,21 @@ Using uuid
81
81
 
82
82
  response = Giftbit::Campaign.find(uuid: 'campaign_uuid')
83
83
 
84
+ #### Embedded
85
+
86
+ Create Embedded Gift (params can be found [here](https://www.giftbit.com/giftbitapi/#/reference/1/embedded/create-embedded-gift))
87
+
88
+ response = Giftbit::Embedded.create({
89
+
90
+ "contact": {
91
+ "firstname": "Perry",
92
+ "lastname": "Johnson",
93
+ "email": "pjohnson@giftbit.com"
94
+ },
95
+ "price_in_cents": 5000,
96
+ "brand_code": "itunesus",
97
+ "id": "clientProvidedGiftId_abc123"})
98
+
84
99
  #### Funds
85
100
 
86
101
  Retrieve funding information
@@ -131,7 +146,7 @@ Using uuid
131
146
 
132
147
  ## Contributing
133
148
 
134
- Bug reports and pull requests are welcome on GitHub at https://github.com/fakhir-shad/giftbit-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
149
+ Bug reports and pull requests are welcome on GitHub at https://github.com/fakhir-shad/giftbit. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
135
150
 
136
151
  ## License
137
152
 
@@ -3,6 +3,7 @@ require 'giftbit-rails/link'
3
3
  require 'giftbit-rails/gift'
4
4
  require 'giftbit-rails/fund'
5
5
  require 'giftbit-rails/campaign'
6
+ require 'giftbit-rails/embedded'
6
7
  require 'giftbit-rails/region'
7
8
  require 'giftbit-rails/brand'
8
9
  require 'giftbit-rails/ping'
@@ -0,0 +1,12 @@
1
+ require 'giftbit-rails/request'
2
+
3
+ module Giftbit
4
+ class Embedded < Request
5
+ class << self
6
+ def create *args
7
+ params = extract_params args
8
+ fire_post("/embedded", params)
9
+ end
10
+ end
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Giftbit
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: giftbit-rails
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
  - Fakhir Shad
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-11-25 00:00:00.000000000 Z
12
+ date: 2019-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -73,6 +73,7 @@ files:
73
73
  - lib/giftbit-rails.rb
74
74
  - lib/giftbit-rails/brand.rb
75
75
  - lib/giftbit-rails/campaign.rb
76
+ - lib/giftbit-rails/embedded.rb
76
77
  - lib/giftbit-rails/error.rb
77
78
  - lib/giftbit-rails/fund.rb
78
79
  - lib/giftbit-rails/gift.rb