fosbury 0.9.5 → 0.9.5.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.
Files changed (3) hide show
  1. checksums.yaml +6 -14
  2. data/lib/fosbury/client.rb +3 -8
  3. metadata +12 -11
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTQ0OThiYjBkNmQzMjk1MWI5MjUxMDU0ZDBlYWEyMTM3M2JjZWFjNg==
5
- data.tar.gz: !binary |-
6
- ZDM4M2UwN2Y2NmNlY2JkNTMwZDRlODcyNDZjNjI3MmJkNmQyYTMyOQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MTEzODcyMzQwY2MzYzFkYTUwODIwNWNkZGVhMzQ3MmI0ZjBlN2M3OTc0ODg1
10
- YzcyMGY3ODRmMDRmYzliMjhlZjQwYWJmNTM1YzdmZGM2OTc5YWVmYjdjYzk1
11
- YTVhZmNiZTBjYjVlNGZiZjJlZmJjMDAzNTRjMTg1M2ZkZWUwOWI=
12
- data.tar.gz: !binary |-
13
- MzJhNzY0Y2Y5ZDQyODc0Mjk2M2EwN2NiMjkzNjUzNjlmZjljMmQ0N2M5ODA1
14
- NGQ5MTAxOWZiOTQzN2Q1ODNlM2I3NmM5YTkyNTExZjdhMTgyYjNiNTIwMjhj
15
- ZmI3MzNkY2I2YTRhODViYTA4NGM1NTQ5NzE3ZDE3YjQyNGFhOTI=
2
+ SHA1:
3
+ metadata.gz: 979b714e0e356bb328f23ac6d6591ee9e324a822
4
+ data.tar.gz: f542d516cf2fc16c7c6ba9db5acbe7df8082b120
5
+ SHA512:
6
+ metadata.gz: e05f46967aa3ae6dc9406be1493578a085dc13f595e16e9dadca7edeac5decaf2fc3c9c173c0e83f3ffed767af44defca5f28195be81515223b91b4b9f8a94c2
7
+ data.tar.gz: 789bc8596f3e2a6b33aae53ee0804adb10006348a2a9e77388a5eb11095399919442f670521993642778050fd71c3ed37919c946df1b476973a73cf19be915f5
@@ -78,11 +78,6 @@ module Fosbury
78
78
  delete "#{@endpoint}passes/#{pass_id}"
79
79
  end
80
80
 
81
- # NOTE: Deprecated: Use push_pass instead, still here for legacy reasons
82
- def push pass_id, options={}
83
- push_pass(pass_id, options)
84
- end
85
-
86
81
  def push_pass pass_id, options={}
87
82
  put "#{@endpoint}passes/#{pass_id}/push", options
88
83
  end
@@ -105,9 +100,9 @@ module Fosbury
105
100
  get "#{@endpoint}/campaigns/#{campaign_id}/locations"
106
101
  end
107
102
 
108
- def create_campaign_location campaign_id, lat, long, name, address=''
103
+ def create_campaign_location campaign_id, lat, long, name, relevant_text, address=''
109
104
  raise "Please provide a campaign_id" if campaign_id.nil?
110
- options = { campaign_id: campaign_id, lat: lat, long: long, name: name, address: address }
105
+ options = { campaign_id: campaign_id, lat: lat, long: long, name: name, relevant_text: relevant_text, address: address}
111
106
  post "#{@endpoint}campaigns/#{campaign_id}/locations", options
112
107
  end
113
108
 
@@ -261,7 +256,7 @@ module Fosbury
261
256
  def delete_program_beacon program_id, beacon_id
262
257
  raise "Please provide a program_id" if program_id.nil?
263
258
  raise "Please provide a beacon_id" if beacon_id.nil?
264
- delete "#{@endpoint}/programs/#{campaign_id}/ibeacons/#{beacon_id}"
259
+ delete "#{@endpoint}/programs/#{program_id}/ibeacons/#{beacon_id}"
265
260
  end
266
261
 
267
262
  private
metadata CHANGED
@@ -1,59 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fosbury
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willem Spruijt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-27 00:00:00.000000000 Z
11
+ date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.6.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.6.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: 3.2.13
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 3.2.13
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.8.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.8.0
55
55
  description: Fosbury (http://www.fosbury.co) API client for Ruby. Fosbury is a platform
56
- to create and manage iOS Passbook campaigns.
56
+ to create and manage iOS Passbook and Google Wallet coupon campaign and loyalty
57
+ programs.
57
58
  email: willem@fosbury.co
58
59
  executables: []
59
60
  extensions: []
@@ -71,12 +72,12 @@ require_paths:
71
72
  - lib
72
73
  required_ruby_version: !ruby/object:Gem::Requirement
73
74
  requirements:
74
- - - ! '>='
75
+ - - '>='
75
76
  - !ruby/object:Gem::Version
76
77
  version: '0'
77
78
  required_rubygems_version: !ruby/object:Gem::Requirement
78
79
  requirements:
79
- - - ! '>='
80
+ - - '>='
80
81
  - !ruby/object:Gem::Version
81
82
  version: '0'
82
83
  requirements: []