pvdgm_beanstalk_api 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/README.md +9 -0
- data/Rakefile +38 -0
- data/app/controllers/beanstalk_api/application_controller.rb +68 -0
- data/app/controllers/beanstalk_api/jobs_controller.rb +27 -0
- data/app/controllers/beanstalk_api/tasks_controller.rb +16 -0
- data/app/controllers/beanstalk_api/tubes_controller.rb +149 -0
- data/app/helpers/beanstalk_api/application_helper.rb +4 -0
- data/app/views/layouts/beanstalk_api/application.html.erb +14 -0
- data/config/routes.rb +19 -0
- data/lib/beanstalk_api.rb +4 -0
- data/lib/beanstalk_api/engine.rb +11 -0
- data/lib/beanstalk_api/version.rb +3 -0
- data/lib/tasks/beanstalk_api_tasks.rake +4 -0
- data/spec/controllers/application_controller_spec.rb +87 -0
- data/spec/controllers/jobs_controller_spec.rb +35 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +29 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +38 -0
- data/spec/dummy/config/environments/production.rb +68 -0
- data/spec/dummy/config/environments/test.rb +38 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/db/schema.rb +121 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/spec_helper.rb +40 -0
- metadata +205 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
ENV["RAILS_ENV"] ||= 'test'
|
3
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
require 'rspec/autorun'
|
6
|
+
require 'ayl'
|
7
|
+
require 'beanstalk-client'
|
8
|
+
|
9
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
10
|
+
# in spec/support/ and its subdirectories.
|
11
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
12
|
+
|
13
|
+
RSpec.configure do |config|
|
14
|
+
# ## Mock Framework
|
15
|
+
#
|
16
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
17
|
+
#
|
18
|
+
# config.mock_with :mocha
|
19
|
+
# config.mock_with :flexmock
|
20
|
+
# config.mock_with :rr
|
21
|
+
|
22
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
23
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
24
|
+
|
25
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
26
|
+
# examples within a transaction, remove the following line or assign false
|
27
|
+
# instead of true.
|
28
|
+
config.use_transactional_fixtures = true
|
29
|
+
|
30
|
+
# If true, the base class of anonymous controllers will be inferred
|
31
|
+
# automatically. This will be the default behavior in future versions of
|
32
|
+
# rspec-rails.
|
33
|
+
config.infer_base_class_for_anonymous_controllers = false
|
34
|
+
|
35
|
+
# Run specs in random order to surface order dependencies. If you find an
|
36
|
+
# order dependency and want to debug it, you can fix the order by providing
|
37
|
+
# the seed, which is printed after each run.
|
38
|
+
# --seed 1234
|
39
|
+
config.order = "random"
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,205 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pvdgm_beanstalk_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dave Sieh
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-11-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.0.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.0.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: beanstalk-client
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.1.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.1.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: ayl
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.3.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.3.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: ayl-beanstalk
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.3.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.3.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: mysql2
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.14.1
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.14.1
|
97
|
+
description: A set of RESTFul API methods to return information from beanstalk as
|
98
|
+
well as control some behavior.
|
99
|
+
email:
|
100
|
+
- dave.sieh@providigm.com
|
101
|
+
executables: []
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- README.md
|
106
|
+
- Rakefile
|
107
|
+
- app/controllers/beanstalk_api/application_controller.rb
|
108
|
+
- app/controllers/beanstalk_api/jobs_controller.rb
|
109
|
+
- app/controllers/beanstalk_api/tasks_controller.rb
|
110
|
+
- app/controllers/beanstalk_api/tubes_controller.rb
|
111
|
+
- app/helpers/beanstalk_api/application_helper.rb
|
112
|
+
- app/views/layouts/beanstalk_api/application.html.erb
|
113
|
+
- config/routes.rb
|
114
|
+
- lib/beanstalk_api.rb
|
115
|
+
- lib/beanstalk_api/engine.rb
|
116
|
+
- lib/beanstalk_api/version.rb
|
117
|
+
- lib/tasks/beanstalk_api_tasks.rake
|
118
|
+
- spec/controllers/application_controller_spec.rb
|
119
|
+
- spec/controllers/jobs_controller_spec.rb
|
120
|
+
- spec/dummy/README.rdoc
|
121
|
+
- spec/dummy/Rakefile
|
122
|
+
- spec/dummy/app/assets/javascripts/application.js
|
123
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
124
|
+
- spec/dummy/app/controllers/application_controller.rb
|
125
|
+
- spec/dummy/app/helpers/application_helper.rb
|
126
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
127
|
+
- spec/dummy/config.ru
|
128
|
+
- spec/dummy/config/application.rb
|
129
|
+
- spec/dummy/config/boot.rb
|
130
|
+
- spec/dummy/config/database.yml
|
131
|
+
- spec/dummy/config/environment.rb
|
132
|
+
- spec/dummy/config/environments/development.rb
|
133
|
+
- spec/dummy/config/environments/production.rb
|
134
|
+
- spec/dummy/config/environments/test.rb
|
135
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
136
|
+
- spec/dummy/config/initializers/inflections.rb
|
137
|
+
- spec/dummy/config/initializers/mime_types.rb
|
138
|
+
- spec/dummy/config/initializers/secret_token.rb
|
139
|
+
- spec/dummy/config/initializers/session_store.rb
|
140
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
141
|
+
- spec/dummy/config/locales/en.yml
|
142
|
+
- spec/dummy/config/routes.rb
|
143
|
+
- spec/dummy/db/schema.rb
|
144
|
+
- spec/dummy/public/404.html
|
145
|
+
- spec/dummy/public/422.html
|
146
|
+
- spec/dummy/public/500.html
|
147
|
+
- spec/dummy/public/favicon.ico
|
148
|
+
- spec/dummy/script/rails
|
149
|
+
- spec/spec_helper.rb
|
150
|
+
homepage: https://www.abaqis.com
|
151
|
+
licenses: []
|
152
|
+
metadata: {}
|
153
|
+
post_install_message:
|
154
|
+
rdoc_options: []
|
155
|
+
require_paths:
|
156
|
+
- lib
|
157
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
requirements: []
|
168
|
+
rubyforge_project:
|
169
|
+
rubygems_version: 2.2.2
|
170
|
+
signing_key:
|
171
|
+
specification_version: 4
|
172
|
+
summary: API implementation for access to beanstalk tasks and information.
|
173
|
+
test_files:
|
174
|
+
- spec/dummy/db/schema.rb
|
175
|
+
- spec/dummy/script/rails
|
176
|
+
- spec/dummy/config.ru
|
177
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
178
|
+
- spec/dummy/app/assets/javascripts/application.js
|
179
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
180
|
+
- spec/dummy/app/controllers/application_controller.rb
|
181
|
+
- spec/dummy/app/helpers/application_helper.rb
|
182
|
+
- spec/dummy/config/application.rb
|
183
|
+
- spec/dummy/config/routes.rb
|
184
|
+
- spec/dummy/config/environments/development.rb
|
185
|
+
- spec/dummy/config/environments/test.rb
|
186
|
+
- spec/dummy/config/environments/production.rb
|
187
|
+
- spec/dummy/config/initializers/inflections.rb
|
188
|
+
- spec/dummy/config/initializers/session_store.rb
|
189
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
190
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
191
|
+
- spec/dummy/config/initializers/secret_token.rb
|
192
|
+
- spec/dummy/config/initializers/mime_types.rb
|
193
|
+
- spec/dummy/config/locales/en.yml
|
194
|
+
- spec/dummy/config/environment.rb
|
195
|
+
- spec/dummy/config/boot.rb
|
196
|
+
- spec/dummy/config/database.yml
|
197
|
+
- spec/dummy/public/404.html
|
198
|
+
- spec/dummy/public/favicon.ico
|
199
|
+
- spec/dummy/public/422.html
|
200
|
+
- spec/dummy/public/500.html
|
201
|
+
- spec/dummy/Rakefile
|
202
|
+
- spec/dummy/README.rdoc
|
203
|
+
- spec/spec_helper.rb
|
204
|
+
- spec/controllers/application_controller_spec.rb
|
205
|
+
- spec/controllers/jobs_controller_spec.rb
|