discountnetwork 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.hound.yml +3 -0
- data/.rspec +1 -0
- data/.rubocop.yml +629 -0
- data/.sample.pryrc +4 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +405 -0
- data/Rakefile +6 -0
- data/bin/console +7 -0
- data/bin/rake +17 -0
- data/bin/rspec +17 -0
- data/bin/setup +6 -0
- data/discountnetwork.gemspec +28 -0
- data/lib/discountnetwork/account.rb +28 -0
- data/lib/discountnetwork/activation.rb +15 -0
- data/lib/discountnetwork/base.rb +20 -0
- data/lib/discountnetwork/booking.rb +23 -0
- data/lib/discountnetwork/client.rb +54 -0
- data/lib/discountnetwork/configuration.rb +17 -0
- data/lib/discountnetwork/destination.rb +9 -0
- data/lib/discountnetwork/password.rb +21 -0
- data/lib/discountnetwork/provider.rb +15 -0
- data/lib/discountnetwork/response.rb +19 -0
- data/lib/discountnetwork/result.rb +15 -0
- data/lib/discountnetwork/rspec.rb +5 -0
- data/lib/discountnetwork/search.rb +15 -0
- data/lib/discountnetwork/session.rb +9 -0
- data/lib/discountnetwork/supplementary.rb +15 -0
- data/lib/discountnetwork/testing/discountnetwork_api.rb +240 -0
- data/lib/discountnetwork/version.rb +3 -0
- data/lib/discountnetwork.rb +16 -0
- data/spec/discountnetwork/account_spec.rb +36 -0
- data/spec/discountnetwork/activation_spec.rb +46 -0
- data/spec/discountnetwork/booking_spec.rb +70 -0
- data/spec/discountnetwork/client_spec.rb +40 -0
- data/spec/discountnetwork/configuration_spec.rb +30 -0
- data/spec/discountnetwork/destination_spec.rb +16 -0
- data/spec/discountnetwork/password_spec.rb +41 -0
- data/spec/discountnetwork/provider_spec.rb +26 -0
- data/spec/discountnetwork/response_spec.rb +16 -0
- data/spec/discountnetwork/result_spec.rb +30 -0
- data/spec/discountnetwork/search_spec.rb +37 -0
- data/spec/discountnetwork/session_spec.rb +18 -0
- data/spec/discountnetwork/supplementary_spec.rb +40 -0
- data/spec/fixtures/booking.json +86 -0
- data/spec/fixtures/destinations.json +22 -0
- data/spec/fixtures/empty.json +0 -0
- data/spec/fixtures/ping.json +3 -0
- data/spec/fixtures/provider.json +16 -0
- data/spec/fixtures/providers.json +32 -0
- data/spec/fixtures/result.json +89 -0
- data/spec/fixtures/results.json +121 -0
- data/spec/fixtures/search.json +19 -0
- data/spec/fixtures/search_created.json +19 -0
- data/spec/fixtures/session_created.json +31 -0
- data/spec/fixtures/supplementaries.json +33 -0
- data/spec/fixtures/supplementary.json +21 -0
- data/spec/fixtures/user.json +31 -0
- data/spec/spec_helper.rb +12 -0
- metadata +189 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require "webmock/rspec"
|
2
|
+
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
3
|
+
require "discountnetwork"
|
4
|
+
require "discountnetwork/rspec"
|
5
|
+
|
6
|
+
RSpec.configure do |config|
|
7
|
+
config.before :all do
|
8
|
+
DiscountNetwork.configure do |discountnetwork_config|
|
9
|
+
discountnetwork_config.api_key = "SECRET_API_KEY"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,189 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: discountnetwork
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Abu Nashir
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-10-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rest-client
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.8'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.12'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: pry
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.10.3
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.10.3
|
97
|
+
description: The Ruby interface to the Discount Network API
|
98
|
+
email:
|
99
|
+
- abunashir@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".hound.yml"
|
106
|
+
- ".rspec"
|
107
|
+
- ".rubocop.yml"
|
108
|
+
- ".sample.pryrc"
|
109
|
+
- ".travis.yml"
|
110
|
+
- Gemfile
|
111
|
+
- LICENSE.txt
|
112
|
+
- README.md
|
113
|
+
- Rakefile
|
114
|
+
- bin/console
|
115
|
+
- bin/rake
|
116
|
+
- bin/rspec
|
117
|
+
- bin/setup
|
118
|
+
- discountnetwork.gemspec
|
119
|
+
- lib/discountnetwork.rb
|
120
|
+
- lib/discountnetwork/account.rb
|
121
|
+
- lib/discountnetwork/activation.rb
|
122
|
+
- lib/discountnetwork/base.rb
|
123
|
+
- lib/discountnetwork/booking.rb
|
124
|
+
- lib/discountnetwork/client.rb
|
125
|
+
- lib/discountnetwork/configuration.rb
|
126
|
+
- lib/discountnetwork/destination.rb
|
127
|
+
- lib/discountnetwork/password.rb
|
128
|
+
- lib/discountnetwork/provider.rb
|
129
|
+
- lib/discountnetwork/response.rb
|
130
|
+
- lib/discountnetwork/result.rb
|
131
|
+
- lib/discountnetwork/rspec.rb
|
132
|
+
- lib/discountnetwork/search.rb
|
133
|
+
- lib/discountnetwork/session.rb
|
134
|
+
- lib/discountnetwork/supplementary.rb
|
135
|
+
- lib/discountnetwork/testing/discountnetwork_api.rb
|
136
|
+
- lib/discountnetwork/version.rb
|
137
|
+
- spec/discountnetwork/account_spec.rb
|
138
|
+
- spec/discountnetwork/activation_spec.rb
|
139
|
+
- spec/discountnetwork/booking_spec.rb
|
140
|
+
- spec/discountnetwork/client_spec.rb
|
141
|
+
- spec/discountnetwork/configuration_spec.rb
|
142
|
+
- spec/discountnetwork/destination_spec.rb
|
143
|
+
- spec/discountnetwork/password_spec.rb
|
144
|
+
- spec/discountnetwork/provider_spec.rb
|
145
|
+
- spec/discountnetwork/response_spec.rb
|
146
|
+
- spec/discountnetwork/result_spec.rb
|
147
|
+
- spec/discountnetwork/search_spec.rb
|
148
|
+
- spec/discountnetwork/session_spec.rb
|
149
|
+
- spec/discountnetwork/supplementary_spec.rb
|
150
|
+
- spec/fixtures/booking.json
|
151
|
+
- spec/fixtures/destinations.json
|
152
|
+
- spec/fixtures/empty.json
|
153
|
+
- spec/fixtures/ping.json
|
154
|
+
- spec/fixtures/provider.json
|
155
|
+
- spec/fixtures/providers.json
|
156
|
+
- spec/fixtures/result.json
|
157
|
+
- spec/fixtures/results.json
|
158
|
+
- spec/fixtures/search.json
|
159
|
+
- spec/fixtures/search_created.json
|
160
|
+
- spec/fixtures/session_created.json
|
161
|
+
- spec/fixtures/supplementaries.json
|
162
|
+
- spec/fixtures/supplementary.json
|
163
|
+
- spec/fixtures/user.json
|
164
|
+
- spec/spec_helper.rb
|
165
|
+
homepage: https://github.com/discountnetwork/discountnetwork-ruby
|
166
|
+
licenses:
|
167
|
+
- MIT
|
168
|
+
metadata: {}
|
169
|
+
post_install_message:
|
170
|
+
rdoc_options: []
|
171
|
+
require_paths:
|
172
|
+
- lib
|
173
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - ">="
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: '0'
|
178
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
requirements: []
|
184
|
+
rubyforge_project:
|
185
|
+
rubygems_version: 2.6.4
|
186
|
+
signing_key:
|
187
|
+
specification_version: 4
|
188
|
+
summary: The Ruby interface to the Discount Network API
|
189
|
+
test_files: []
|