farscape 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,40 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
3
+
4
+ require 'crichton'
5
+ require 'representors'
6
+ require 'moya'
7
+
8
+ RAILS_PORT = 1234
9
+ SPEC_DIR = File.expand_path("..", __FILE__)
10
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
11
+ require 'farscape'
12
+
13
+ Dir["#{SPEC_DIR}/support/*.rb"].each { |f| require f }
14
+
15
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
16
+ RSpec.configure do |config|
17
+ config.treat_symbols_as_metadata_keys_with_true_values = true
18
+ config.run_all_when_everything_filtered = true
19
+ config.filter_run :focus
20
+
21
+ # Run specs in random order to surface order dependencies. If you find an
22
+ # order dependency and want to debug it, you can fix the order by providing
23
+ # the seed, which is printed after each run.
24
+ # --seed 1234
25
+ config.order = 'random' unless ENV['RANDOMIZE'] == 'false'
26
+
27
+ config.include Support::Helpers
28
+
29
+ config.before(:suite) do
30
+ old_handler = trap(:INT) {
31
+ Process.kill(:INT, $moya_rails_pid) if $moya_rails_pid
32
+ old_handler.call if old_handler.respond_to?(:call)
33
+ }
34
+ $moya_rails_pid = Moya.spawn_rails_process!(RAILS_PORT)
35
+ end
36
+
37
+ config.after(:suite) do
38
+ Process.kill(:INT, $moya_rails_pid)
39
+ end
40
+ end
@@ -0,0 +1,5 @@
1
+ module Support
2
+ module Helpers
3
+ # Do some helping
4
+ end
5
+ end
data/tasks/yard.rake ADDED
@@ -0,0 +1,15 @@
1
+ require 'rake'
2
+ require 'rake/clean'
3
+
4
+ CLOBBER.include('.yardoc', 'yardoc')
5
+ CLOBBER.uniq!
6
+
7
+ require 'yard'
8
+ require 'yard/rake/yardoc_task'
9
+
10
+ namespace :doc do
11
+ desc 'Generate Yardoc documentation'
12
+ task :yard do
13
+ YARD::Rake::YardocTask.new
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,221 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: farscape
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Mark W. Foster
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: addressable
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: faraday
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.9'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.9'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: representors
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.0.5
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.0.5
83
+ - !ruby/object:Gem::Dependency
84
+ name: byebug
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: redcarpet
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '3.3'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '3.3'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '2.14'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '2.14'
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.11'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.11'
139
+ - !ruby/object:Gem::Dependency
140
+ name: yard
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: " Farscape is a library that simplifies consuming Hypermedia API responses.\n"
154
+ email: ''
155
+ executables: []
156
+ extensions: []
157
+ extra_rdoc_files: []
158
+ files:
159
+ - CHANGELOG.md
160
+ - CONTRIBUTING.md
161
+ - Gemfile
162
+ - Gemfile.lock
163
+ - LICENSE.md
164
+ - README.md
165
+ - Rakefile
166
+ - WRITING_PLUGINS.md
167
+ - lib/farscape.rb
168
+ - lib/farscape/agent.rb
169
+ - lib/farscape/base_agent.rb
170
+ - lib/farscape/cache.rb
171
+ - lib/farscape/client/base_client.rb
172
+ - lib/farscape/client/http_client.rb
173
+ - lib/farscape/clients.rb
174
+ - lib/farscape/errors.rb
175
+ - lib/farscape/helpers/partially_ordered_list.rb
176
+ - lib/farscape/logger.rb
177
+ - lib/farscape/plugins.rb
178
+ - lib/farscape/representor.rb
179
+ - lib/farscape/transition.rb
180
+ - lib/farscape/version.rb
181
+ - lib/plugins/plugins.rb
182
+ - spec/lib/farscape/cache_spec.rb
183
+ - spec/lib/farscape/integration/entry_point_spec.rb
184
+ - spec/lib/farscape/integration/interface_spec.rb
185
+ - spec/lib/farscape/integration/representor_spec.rb
186
+ - spec/lib/farscape/integration/resource_crud_spec.rb
187
+ - spec/lib/farscape/logger_spec.rb
188
+ - spec/lib/farscape/plugins_spec.rb
189
+ - spec/lib/farscape/transition_spec.rb
190
+ - spec/lib/helpers/partially_ordered_list_spec.rb
191
+ - spec/spec_helper.rb
192
+ - spec/support/helpers.rb
193
+ - tasks/yard.rake
194
+ homepage: https://github.com/mdsol/farscape
195
+ licenses:
196
+ - MIT
197
+ metadata: {}
198
+ post_install_message:
199
+ rdoc_options:
200
+ - "--main"
201
+ - README.md
202
+ require_paths:
203
+ - lib
204
+ required_ruby_version: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ required_rubygems_version: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ requirements: []
215
+ rubyforge_project:
216
+ rubygems_version: 2.5.1
217
+ signing_key:
218
+ specification_version: 4
219
+ summary: It shoots through wormholes and takes you to unknown places in the universe!
220
+ test_files: []
221
+ has_rdoc: