whurl_engine 2.0.0.rc1 → 2.0.0

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 (73) hide show
  1. data/app/assets/javascripts/whurl_engine/application.js +141 -0
  2. data/app/assets/javascripts/whurl_engine/{jquery-1.7.1.min.js → jquery-1-7-1-min.js} +0 -0
  3. data/app/assets/javascripts/whurl_engine/{jquery.livequery.js → jquery-livequery.js} +0 -0
  4. data/app/assets/javascripts/whurl_engine/{jquery-ui-1.8.16.min.js → jquery-ui-1-8-16-min.js} +0 -0
  5. data/app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/ios-style-checkboxes/off.png +0 -0
  6. data/app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/ios-style-checkboxes/on.png +0 -0
  7. data/app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/ios-style-checkboxes/slider.png +0 -0
  8. data/app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/ios-style-checkboxes/slider_center.png +0 -0
  9. data/app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/ios-style-checkboxes/slider_left.png +0 -0
  10. data/app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/ios-style-checkboxes/slider_right.png +0 -0
  11. data/app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/iphone-style-checkboxes/off.png +0 -0
  12. data/app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/iphone-style-checkboxes/on.png +0 -0
  13. data/app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/iphone-style-checkboxes/slider.png +0 -0
  14. data/app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/iphone-style-checkboxes/slider_center.png +0 -0
  15. data/app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/iphone-style-checkboxes/slider_left.png +0 -0
  16. data/app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/iphone-style-checkboxes/slider_right.png +0 -0
  17. data/app/controllers/whurl_engine/application_controller.rb +20 -1
  18. data/app/controllers/whurl_engine/categories_controller.rb +1 -1
  19. data/app/controllers/whurl_engine/header_definitions_controller.rb +32 -0
  20. data/app/controllers/whurl_engine/parameter_definitions_controller.rb +12 -12
  21. data/app/controllers/whurl_engine/resources_controller.rb +1 -1
  22. data/app/controllers/whurl_engine/whurls_controller.rb +1 -1
  23. data/app/helpers/whurl_engine/application_helper.rb +4 -0
  24. data/app/models/whurl_engine/header_definition.rb +7 -0
  25. data/app/models/whurl_engine/resource.rb +1 -0
  26. data/app/models/whurl_engine/whurl.rb +3 -14
  27. data/app/views/layouts/whurl_engine/application.html.haml +0 -7
  28. data/app/views/whurl_engine/categories/_category.html.haml +4 -3
  29. data/app/views/whurl_engine/categories/index.html.haml +2 -1
  30. data/app/views/whurl_engine/header_definitions/_form.html.haml +31 -0
  31. data/app/views/whurl_engine/header_definitions/_header_definition.html.haml +15 -0
  32. data/app/views/whurl_engine/header_definitions/create.js.haml +5 -0
  33. data/app/views/whurl_engine/header_definitions/destroy.js.haml +1 -0
  34. data/app/views/whurl_engine/header_definitions/edit.js.haml +3 -0
  35. data/app/views/whurl_engine/header_definitions/new.js.haml +3 -0
  36. data/app/views/whurl_engine/header_definitions/update.js.haml +6 -0
  37. data/app/views/whurl_engine/parameter_definitions/_form.html.haml +1 -1
  38. data/app/views/whurl_engine/parameter_definitions/_parameter_definition.html.haml +3 -2
  39. data/app/views/whurl_engine/parameter_definitions/update.js.haml +2 -2
  40. data/app/views/whurl_engine/resources/_resource.html.haml +3 -2
  41. data/app/views/whurl_engine/resources/show.html.haml +15 -3
  42. data/app/views/whurl_engine/whurls/_response.html.haml +3 -1
  43. data/app/views/whurl_engine/whurls/_whurl.html.haml +0 -5
  44. data/app/views/whurl_engine/whurls/show.html.haml +3 -2
  45. data/config/routes.rb +2 -1
  46. data/db/migrate/20120212182833_create_schema.rb +57 -0
  47. data/db/migrate/20120214074332_add_message_to_whurls.rb +5 -0
  48. data/lib/whurl_engine/config.rb +66 -0
  49. data/lib/whurl_engine/engine.rb +2 -0
  50. data/lib/whurl_engine/extension.rb +13 -0
  51. data/lib/whurl_engine/extensions/cancan/authorization_adapter.rb +73 -0
  52. data/lib/whurl_engine/extensions/cancan.rb +3 -0
  53. data/lib/whurl_engine/version.rb +1 -1
  54. data/lib/whurl_engine.rb +10 -1
  55. metadata +59 -50
  56. data/app/assets/flash/whurl_engine/ZeroClipboard.swf +0 -0
  57. data/app/assets/flash/whurl_engine/ZeroClipboard10.swf +0 -0
  58. data/app/assets/flash/whurl_engine/clippy.swf +0 -0
  59. data/app/assets/javascripts/whurl_engine/ZeroClipboard.js +0 -311
  60. data/app/assets/javascripts/whurl_engine/whurl.js +0 -136
  61. data/app/views/whurl_engine/whurls/edit.html.haml +0 -28
  62. data/db/migrate/20110209054322_create_whurls_table.rb +0 -14
  63. data/db/migrate/20111210192724_add_description_to_whurl.rb +0 -9
  64. data/db/migrate/20111210201607_add_custom_url_to_whurl.rb +0 -9
  65. data/db/migrate/20111211030904_rename_whurls_to_requests.rb +0 -8
  66. data/db/migrate/20111220233800_create_fields_for_whurl_requests.rb +0 -18
  67. data/db/migrate/20120106033416_create_responses.rb +0 -11
  68. data/db/migrate/20120106190508_create_categories_table.rb +0 -9
  69. data/db/migrate/20120107011500_create_resources_table.rb +0 -15
  70. data/db/migrate/20120107065652_create_parameters_table.rb +0 -12
  71. data/db/migrate/20120110205837_rename_parameters_to_parameter_definitions.rb +0 -5
  72. data/db/migrate/20120110205853_rename_requests_to_whurls.rb +0 -19
  73. data/db/migrate/20120111014928_add_raw_request_to_whurls.rb +0 -5
@@ -0,0 +1,57 @@
1
+ class CreateSchema < ActiveRecord::Migration
2
+ def up
3
+ create_table :whurl_engine_categories do |t|
4
+ t.string :name
5
+ t.text :description
6
+ t.timestamps
7
+ end
8
+
9
+ create_table :whurl_engine_header_definitions do |t|
10
+ t.integer :resource_id
11
+ t.string :name
12
+ t.string :example_value
13
+ t.text :description
14
+ t.boolean :required
15
+ t.timestamps
16
+ end
17
+
18
+ create_table :whurl_engine_parameter_definitions do |t|
19
+ t.integer :resource_id
20
+ t.string :name
21
+ t.string :example_value
22
+ t.text :description
23
+ t.boolean :required
24
+ t.timestamps
25
+ end
26
+
27
+ create_table :whurl_engine_resources do |t|
28
+ t.integer :category_id
29
+ t.string :base_uri
30
+ t.string :relative_path
31
+ t.string :http_method
32
+ t.text :description
33
+ t.boolean :rate_limited
34
+ t.boolean :requires_authentication
35
+ t.text :response_formats
36
+ t.timestamps
37
+ end
38
+
39
+ create_table :whurl_engine_whurls do |t|
40
+ t.string :hash_key, :limit => 6, :null => false
41
+ t.string :description
42
+ t.string :request_method, :limit => 10
43
+ t.text :request_body
44
+ t.text :request_parameters
45
+ t.text :request_headers
46
+ t.text :request_url
47
+ t.integer :resource_id
48
+ t.text :response_body
49
+ t.string :response_content_type
50
+ t.text :response_headers
51
+ t.text :raw_request
52
+ t.timestamps
53
+ end
54
+
55
+ add_index :whurl_engine_whurls, [:hash_key], :name => :index_whurls_on_hash_key, :unique => true
56
+ end
57
+ end
@@ -0,0 +1,5 @@
1
+ class AddMessageToWhurls < ActiveRecord::Migration
2
+ def change
3
+ add_column :whurl_engine_whurls, :response_message, :string
4
+ end
5
+ end
@@ -0,0 +1,66 @@
1
+ #much lifted from RailsAdmin https://github.com/sferik/rails_admin
2
+ module WhurlEngine
3
+ module Config
4
+
5
+ DEFAULT_AUTHORIZE = Proc.new {}
6
+
7
+ DEFAULT_CURRENT_USER = Proc.new do
8
+ request.env["warden"].try(:user) || respond_to?(:current_user) && current_user
9
+ end
10
+
11
+ class << self
12
+ # Setup authorization to be run as a before filter
13
+ # This is run inside the controller instance so you can setup any authorization you need to.
14
+ #
15
+ # By default, there is no authorization.
16
+ #
17
+ # @example Custom
18
+ # WhurlEngine.config do |config|
19
+ # config.authorize_with do
20
+ # redirect_to root_path unless warden.user.is_admin?
21
+ # end
22
+ # end
23
+ #
24
+ # To use an authorization adapter, pass the name of the adapter. For example,
25
+ # to use with CanCan[https://github.com/ryanb/cancan], pass it like this.
26
+ #
27
+ # @example CanCan
28
+ # WhurlEngine.config do |config|
29
+ # config.authorize_with :cancan
30
+ # end
31
+ #
32
+ # See the wiki[https://github.com/sferik/rails_admin/wiki] for more on authorization.
33
+ #
34
+ # @see WhurlEngine::Config::DEFAULT_AUTHORIZE
35
+ def authorize_with(*args, &block)
36
+ extension = args.shift
37
+ if(extension)
38
+ @authorize = Proc.new {
39
+ @authorization_adapter = WhurlEngine::AUTHORIZATION_ADAPTERS[extension].new(*([self] + args).compact)
40
+ }
41
+ else
42
+ @authorize = block if block
43
+ end
44
+ @authorize || DEFAULT_AUTHORIZE
45
+ end
46
+
47
+ # Setup a different method to determine the current user or admin logged in.
48
+ # This is run inside the controller instance and made available as a helper.
49
+ #
50
+ # By default, _request.env["warden"].user_ or _current_user_ will be used.
51
+ #
52
+ # @example Custom
53
+ # WhurlEngine.config do |config|
54
+ # config.current_user_method do
55
+ # current_admin
56
+ # end
57
+ # end
58
+ #
59
+ # @see WhurlEngine::Config::DEFAULT_CURRENT_USER
60
+ def current_user_method(&block)
61
+ @current_user = block if block
62
+ @current_user || DEFAULT_CURRENT_USER
63
+ end
64
+ end
65
+ end
66
+ end
@@ -1,3 +1,5 @@
1
+ require 'haml'
2
+
1
3
  module WhurlEngine
2
4
  class Engine < Rails::Engine
3
5
  isolate_namespace WhurlEngine
@@ -0,0 +1,13 @@
1
+ module WhurlEngine
2
+ EXTENSIONS = []
3
+ AUTHORIZATION_ADAPTERS = {}
4
+
5
+ # Extend WhurlEngine
6
+ #
7
+ # The extension may define various adapters (e.g., for authorization) and
8
+ # register those via the options hash.
9
+ def self.add_extension(extension_key, extension_definition)
10
+ EXTENSIONS << extension_key
11
+ AUTHORIZATION_ADAPTERS[extension_key] = extension_definition::AuthorizationAdapter
12
+ end
13
+ end
@@ -0,0 +1,73 @@
1
+ #much lifted from RailsAdmin https://github.com/sferik/rails_admin
2
+ module WhurlEngine
3
+ module Extensions
4
+ module CanCan
5
+ # This adapter is for the CanCan[https://github.com/ryanb/cancan] authorization library.
6
+ # You can create another adapter for different authorization behavior, just be certain it
7
+ # responds to each of the public methods here.
8
+ class AuthorizationAdapter
9
+ # See the +authorize_with+ config method for where the initialization happens.
10
+ def initialize(controller, ability = ::Ability)
11
+ @controller = controller
12
+ @controller.instance_variable_set '@ability', ability
13
+ @controller.extend ControllerExtension
14
+ @controller.current_ability.authorize!(:access, :whurl_engine)
15
+ end
16
+
17
+ # This method is called in every controller action and should raise an exception
18
+ # when the authorization fails. The first argument is the name of the controller
19
+ # action as a symbol (:create, :bulk_delete, etc.). The second argument is the
20
+ # AbstractModel instance that applies. The third argument is the actual model
21
+ # instance if it is available.
22
+ def authorize(action, abstract_model = nil, model_object = nil)
23
+ action = translate_action(action)
24
+ @controller.current_ability.authorize!(action, model_object || abstract_model && abstract_model.model) if action
25
+ end
26
+
27
+ # This method is called primarily from the view to determine whether the given user
28
+ # has access to perform the action on a given model. It should return true when authorized.
29
+ # This takes the same arguments as +authorize+. The difference is that this will
30
+ # return a boolean whereas +authorize+ will raise an exception when not authorized.
31
+ def authorized?(action, abstract_model = nil, model_object = nil)
32
+ action = translate_action(action)
33
+ @controller.current_ability.can?(action, model_object || abstract_model && abstract_model.model) if action
34
+ end
35
+
36
+ # This is called when needing to scope a database query. It is called within the list
37
+ # and bulk_delete/destroy actions and should return a scope which limits the records
38
+ # to those which the user can perform the given action on.
39
+ def query(action, abstract_model)
40
+ action = translate_action(action)
41
+ abstract_model.model.accessible_by(@controller.current_ability, action)
42
+ end
43
+
44
+ # This is called in the new/create actions to determine the initial attributes for new
45
+ # records. It should return a hash of attributes which match what the user
46
+ # is authorized to create.
47
+ def attributes_for(action, abstract_model)
48
+ action = translate_action(action)
49
+ @controller.current_ability.attributes_for(action, abstract_model && abstract_model.model)
50
+ end
51
+
52
+ private
53
+
54
+ # Change the action into something that fits better with CanCan's conventions
55
+ def translate_action(action)
56
+ case action
57
+ when :list, :bulk_action then :index
58
+ when :delete, :bulk_destroy, :bulk_delete then :destroy
59
+ else action
60
+ end
61
+ end
62
+
63
+ module ControllerExtension
64
+ def current_ability
65
+ # use _current_user instead of default current_user so it works with
66
+ # whatever current user method is defined with WhurlEngine
67
+ @current_ability ||= @ability.new(_current_user)
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,3 @@
1
+ require 'whurl_engine/extensions/cancan/authorization_adapter'
2
+
3
+ WhurlEngine.add_extension(:cancan, WhurlEngine::Extensions::CanCan)
@@ -1,3 +1,3 @@
1
1
  module WhurlEngine
2
- VERSION = "2.0.0.rc1"
2
+ VERSION = "2.0.0"
3
3
  end
data/lib/whurl_engine.rb CHANGED
@@ -1,5 +1,14 @@
1
1
  require 'whurl_engine/engine'
2
- require 'haml'
2
+ require 'whurl_engine/config'
3
+ require 'whurl_engine/extension'
4
+ require 'whurl_engine/extensions/cancan'
3
5
 
4
6
  module WhurlEngine
7
+ def self.config(&block)
8
+ if block_given?
9
+ block.call(WhurlEngine::Config)
10
+ else
11
+ WhurlEngine::Config
12
+ end
13
+ end
5
14
  end
metadata CHANGED
@@ -1,20 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whurl_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc1
5
- prerelease: 6
4
+ version: 2.0.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Will Read
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-16 00:00:00.000000000 -08:00
12
+ date: 2012-02-14 00:00:00.000000000 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: coderay
17
- requirement: &2153497400 !ruby/object:Gem::Requirement
17
+ requirement: &2157756400 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 0.9.6
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2153497400
25
+ version_requirements: *2157756400
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: coffee-script
28
- requirement: &2153496920 !ruby/object:Gem::Requirement
28
+ requirement: &2157755980 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2153496920
36
+ version_requirements: *2157755980
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: httmultiparty
39
- requirement: &2153496240 !ruby/object:Gem::Requirement
39
+ requirement: &2157755440 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0.2'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2153496240
47
+ version_requirements: *2157755440
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: haml
50
- requirement: &2153495640 !ruby/object:Gem::Requirement
50
+ requirement: &2157754940 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 3.1.4
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *2153495640
58
+ version_requirements: *2157754940
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: json
61
- requirement: &2153495140 !ruby/object:Gem::Requirement
61
+ requirement: &2157754480 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 1.5.1
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *2153495140
69
+ version_requirements: *2157754480
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rails
72
- requirement: &2153494460 !ruby/object:Gem::Requirement
72
+ requirement: &2157754020 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 3.1.3
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *2153494460
80
+ version_requirements: *2157754020
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: rinku
83
- requirement: &2153494000 !ruby/object:Gem::Requirement
83
+ requirement: &2157770700 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ~>
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: 1.5.0
89
89
  type: :runtime
90
90
  prerelease: false
91
- version_requirements: *2153494000
91
+ version_requirements: *2157770700
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: sass
94
- requirement: &2153493400 !ruby/object:Gem::Requirement
94
+ requirement: &2157770240 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ~>
@@ -99,10 +99,10 @@ dependencies:
99
99
  version: 3.1.10
100
100
  type: :runtime
101
101
  prerelease: false
102
- version_requirements: *2153493400
102
+ version_requirements: *2157770240
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: uglifier
105
- requirement: &2153492920 !ruby/object:Gem::Requirement
105
+ requirement: &2157769860 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ! '>='
@@ -110,10 +110,10 @@ dependencies:
110
110
  version: '0'
111
111
  type: :runtime
112
112
  prerelease: false
113
- version_requirements: *2153492920
113
+ version_requirements: *2157769860
114
114
  - !ruby/object:Gem::Dependency
115
115
  name: heroku
116
- requirement: &2153492400 !ruby/object:Gem::Requirement
116
+ requirement: &2157769400 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ! '>='
@@ -121,10 +121,10 @@ dependencies:
121
121
  version: '0'
122
122
  type: :development
123
123
  prerelease: false
124
- version_requirements: *2153492400
124
+ version_requirements: *2157769400
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: mysql
127
- requirement: &2153491680 !ruby/object:Gem::Requirement
127
+ requirement: &2157768900 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ~>
@@ -132,10 +132,10 @@ dependencies:
132
132
  version: 2.8.1
133
133
  type: :development
134
134
  prerelease: false
135
- version_requirements: *2153491680
135
+ version_requirements: *2157768900
136
136
  - !ruby/object:Gem::Dependency
137
137
  name: webmock
138
- requirement: &2153491000 !ruby/object:Gem::Requirement
138
+ requirement: &2157768400 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ~>
@@ -143,7 +143,7 @@ dependencies:
143
143
  version: 1.7.10
144
144
  type: :development
145
145
  prerelease: false
146
- version_requirements: *2153491000
146
+ version_requirements: *2157768400
147
147
  description: ! "Whurl is a mountable engine for Rails 3.1+ apps allowing\n you
148
148
  to show the functionality of your API. You can save API calls and share them with
149
149
  your team or the public."
@@ -153,9 +153,6 @@ executables: []
153
153
  extensions: []
154
154
  extra_rdoc_files: []
155
155
  files:
156
- - app/assets/flash/whurl_engine/clippy.swf
157
- - app/assets/flash/whurl_engine/ZeroClipboard.swf
158
- - app/assets/flash/whurl_engine/ZeroClipboard10.swf
159
156
  - app/assets/images/whurl_engine/add.png
160
157
  - app/assets/images/whurl_engine/bg_new.png
161
158
  - app/assets/images/whurl_engine/clipboard.png
@@ -177,12 +174,10 @@ files:
177
174
  - app/assets/images/whurl_engine/send_button.jpg
178
175
  - app/assets/images/whurl_engine/splash.png
179
176
  - app/assets/javascripts/whurl_engine/application.js
180
- - app/assets/javascripts/whurl_engine/jquery-1.7.1.min.js
181
- - app/assets/javascripts/whurl_engine/jquery-ui-1.8.16.min.js
177
+ - app/assets/javascripts/whurl_engine/jquery-1-7-1-min.js
178
+ - app/assets/javascripts/whurl_engine/jquery-livequery.js
179
+ - app/assets/javascripts/whurl_engine/jquery-ui-1-8-16-min.js
182
180
  - app/assets/javascripts/whurl_engine/jquery-ujs.js
183
- - app/assets/javascripts/whurl_engine/jquery.livequery.js
184
- - app/assets/javascripts/whurl_engine/whurl.js
185
- - app/assets/javascripts/whurl_engine/ZeroClipboard.js
186
181
  - app/assets/stylesheets/whurl_engine/application.css.scss
187
182
  - app/assets/stylesheets/whurl_engine/custom-theme/images/ui-bg_flat_100_ffffff_40x100.png
188
183
  - app/assets/stylesheets/whurl_engine/custom-theme/images/ui-bg_flat_10_000000_40x100.png
@@ -200,14 +195,28 @@ files:
200
195
  - app/assets/stylesheets/whurl_engine/custom-theme/images/ui-icons_ef8c08_256x240.png
201
196
  - app/assets/stylesheets/whurl_engine/custom-theme/images/ui-icons_ffffff_256x240.png
202
197
  - app/assets/stylesheets/whurl_engine/custom-theme/jquery-ui-1.8.16.custom.css
198
+ - app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/ios-style-checkboxes/off.png
199
+ - app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/ios-style-checkboxes/on.png
200
+ - app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/ios-style-checkboxes/slider.png
201
+ - app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/ios-style-checkboxes/slider_center.png
202
+ - app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/ios-style-checkboxes/slider_left.png
203
+ - app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/ios-style-checkboxes/slider_right.png
204
+ - app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/iphone-style-checkboxes/off.png
205
+ - app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/iphone-style-checkboxes/on.png
206
+ - app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/iphone-style-checkboxes/slider.png
207
+ - app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/iphone-style-checkboxes/slider_center.png
208
+ - app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/iphone-style-checkboxes/slider_left.png
209
+ - app/assets/stylesheets/whurl_engine/iphone-style-checkboxes/images/iphone-style-checkboxes/slider_right.png
203
210
  - app/assets/stylesheets/whurl_engine/whurl.css.scss
204
211
  - app/controllers/whurl_engine/application_controller.rb
205
212
  - app/controllers/whurl_engine/categories_controller.rb
213
+ - app/controllers/whurl_engine/header_definitions_controller.rb
206
214
  - app/controllers/whurl_engine/parameter_definitions_controller.rb
207
215
  - app/controllers/whurl_engine/resources_controller.rb
208
216
  - app/controllers/whurl_engine/whurls_controller.rb
209
217
  - app/helpers/whurl_engine/application_helper.rb
210
218
  - app/models/whurl_engine/category.rb
219
+ - app/models/whurl_engine/header_definition.rb
211
220
  - app/models/whurl_engine/parameter_definition.rb
212
221
  - app/models/whurl_engine/resource.rb
213
222
  - app/models/whurl_engine/whurl.rb
@@ -220,6 +229,13 @@ files:
220
229
  - app/views/whurl_engine/categories/index.html.haml
221
230
  - app/views/whurl_engine/categories/new.js.haml
222
231
  - app/views/whurl_engine/categories/update.js.haml
232
+ - app/views/whurl_engine/header_definitions/_form.html.haml
233
+ - app/views/whurl_engine/header_definitions/_header_definition.html.haml
234
+ - app/views/whurl_engine/header_definitions/create.js.haml
235
+ - app/views/whurl_engine/header_definitions/destroy.js.haml
236
+ - app/views/whurl_engine/header_definitions/edit.js.haml
237
+ - app/views/whurl_engine/header_definitions/new.js.haml
238
+ - app/views/whurl_engine/header_definitions/update.js.haml
223
239
  - app/views/whurl_engine/parameter_definitions/_form.html.haml
224
240
  - app/views/whurl_engine/parameter_definitions/_parameter_definition.html.haml
225
241
  - app/views/whurl_engine/parameter_definitions/create.js.haml
@@ -242,7 +258,6 @@ files:
242
258
  - app/views/whurl_engine/whurls/_response.html.haml
243
259
  - app/views/whurl_engine/whurls/_whurl.html.haml
244
260
  - app/views/whurl_engine/whurls/destroy.js.haml
245
- - app/views/whurl_engine/whurls/edit.html.haml
246
261
  - app/views/whurl_engine/whurls/edit.js.haml
247
262
  - app/views/whurl_engine/whurls/new.html.haml
248
263
  - app/views/whurl_engine/whurls/show.html.haml
@@ -252,20 +267,14 @@ files:
252
267
  - config/initializers/nilclass.rb
253
268
  - config/initializers/string.rb
254
269
  - config/routes.rb
255
- - db/migrate/20110209054322_create_whurls_table.rb
256
- - db/migrate/20111210192724_add_description_to_whurl.rb
257
- - db/migrate/20111210201607_add_custom_url_to_whurl.rb
258
- - db/migrate/20111211030904_rename_whurls_to_requests.rb
259
- - db/migrate/20111220233800_create_fields_for_whurl_requests.rb
260
- - db/migrate/20120106033416_create_responses.rb
261
- - db/migrate/20120106190508_create_categories_table.rb
262
- - db/migrate/20120107011500_create_resources_table.rb
263
- - db/migrate/20120107065652_create_parameters_table.rb
264
- - db/migrate/20120110205837_rename_parameters_to_parameter_definitions.rb
265
- - db/migrate/20120110205853_rename_requests_to_whurls.rb
266
- - db/migrate/20120111014928_add_raw_request_to_whurls.rb
270
+ - db/migrate/20120212182833_create_schema.rb
271
+ - db/migrate/20120214074332_add_message_to_whurls.rb
267
272
  - lib/tasks/whurl_engine_tasks.rake
273
+ - lib/whurl_engine/config.rb
268
274
  - lib/whurl_engine/engine.rb
275
+ - lib/whurl_engine/extension.rb
276
+ - lib/whurl_engine/extensions/cancan/authorization_adapter.rb
277
+ - lib/whurl_engine/extensions/cancan.rb
269
278
  - lib/whurl_engine/version.rb
270
279
  - lib/whurl_engine.rb
271
280
  - MIT-LICENSE
@@ -287,9 +296,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
287
296
  required_rubygems_version: !ruby/object:Gem::Requirement
288
297
  none: false
289
298
  requirements:
290
- - - ! '>'
299
+ - - ! '>='
291
300
  - !ruby/object:Gem::Version
292
- version: 1.3.1
301
+ version: '0'
293
302
  requirements: []
294
303
  rubyforge_project:
295
304
  rubygems_version: 1.6.2