deals 0.0.1 → 0.0.2
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.
- data/Gemfile +2 -0
- data/app/controllers/categories_controller.rb +1 -1
- data/app/controllers/deals_controller.rb +1 -1
- data/app/controllers/places_controller.rb +1 -1
- data/app/uploaders/photo_uploader.rb +2 -2
- data/lib/deals/cli.rb +2 -1
- data/lib/deals/version.rb +1 -1
- metadata +71 -55
data/Gemfile
CHANGED
@@ -8,6 +8,8 @@ gemspec
|
|
8
8
|
# jquery-rails is used by the dummy application
|
9
9
|
gem "jquery-rails"
|
10
10
|
gem "carrierwave"
|
11
|
+
gem "fog", "~> 1.3.1"
|
12
|
+
|
11
13
|
# Declare any dependencies that are still in development here instead of in
|
12
14
|
# your gemspec. These might include edge Rails or gems from your path or
|
13
15
|
# Git. Remember to move these dependencies to your gemspec before releasing
|
@@ -11,8 +11,8 @@ class PhotoUploader < CarrierWave::Uploader::Base
|
|
11
11
|
# include Sprockets::Helpers::IsolatedHelper
|
12
12
|
|
13
13
|
# Choose what kind of storage to use for this uploader:
|
14
|
-
storage :file
|
15
|
-
|
14
|
+
# storage :file
|
15
|
+
storage :fog
|
16
16
|
|
17
17
|
# Override the directory where uploaded files will be stored.
|
18
18
|
# This is a sensible default for uploaders that are meant to be mounted:
|
data/lib/deals/cli.rb
CHANGED
@@ -46,10 +46,11 @@ module Deals
|
|
46
46
|
insert_into_file "Gemfile", "gem 'rails_admin'\n", :after => "gem 'devise'\n"
|
47
47
|
end
|
48
48
|
|
49
|
-
desc "inject_carrierwave", "add carrierwave"
|
49
|
+
desc "inject_carrierwave", "add carrierwave and fog"
|
50
50
|
def inject_carrierwave
|
51
51
|
puts 'add reference to carrierwave in GEMFILE'
|
52
52
|
insert_into_file "Gemfile", "gem 'carrierwave'\n", :after => "gem 'rails_admin'\n"
|
53
|
+
insert_into_file "Gemfile", "gem 'fog', '~> 1.3.1'", :after => "gem 'carrierwave'\n"
|
53
54
|
create_file "config/initializers/carrierwave.rb", "require 'carrierwave/orm/activerecord'"
|
54
55
|
end
|
55
56
|
|
data/lib/deals/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deals
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-04-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -75,6 +75,22 @@ dependencies:
|
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: fog
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
78
94
|
description: Deals API
|
79
95
|
email:
|
80
96
|
- mrbarrettgriffith@gmail.com
|
@@ -83,67 +99,67 @@ executables:
|
|
83
99
|
extensions: []
|
84
100
|
extra_rdoc_files: []
|
85
101
|
files:
|
86
|
-
- app/assets/javascripts/deals/application.js
|
87
|
-
- app/assets/stylesheets/deals/application.css
|
88
|
-
- app/controllers/application_controller.rb
|
89
102
|
- app/controllers/categories_controller.rb
|
103
|
+
- app/controllers/application_controller.rb
|
90
104
|
- app/controllers/deals/application_controller.rb
|
105
|
+
- app/controllers/places_controller.rb
|
91
106
|
- app/controllers/deals_controller.rb
|
92
107
|
- app/controllers/home_controller.rb
|
93
|
-
- app/
|
94
|
-
- app/
|
95
|
-
- app/
|
108
|
+
- app/assets/stylesheets/deals/application.css
|
109
|
+
- app/assets/javascripts/deals/application.js
|
110
|
+
- app/uploaders/photo_uploader.rb
|
96
111
|
- app/models/deal.rb
|
97
112
|
- app/models/place.rb
|
98
|
-
- app/
|
113
|
+
- app/models/category.rb
|
99
114
|
- app/views/layouts/deals/application.html.erb
|
115
|
+
- app/helpers/deals/application_helper.rb
|
100
116
|
- bin/deals
|
101
117
|
- config/routes.rb
|
102
|
-
- db/migrate/20121212014610_create_deals.rb
|
103
118
|
- db/migrate/20121212015114_create_categories.rb
|
104
119
|
- db/migrate/20121212015129_create_places.rb
|
105
120
|
- db/migrate/20121218023245_add_photo_to_deals.rb
|
121
|
+
- db/migrate/20121212014610_create_deals.rb
|
106
122
|
- lib/deals/cli.rb
|
107
|
-
- lib/deals/engine.rb
|
108
123
|
- lib/deals/version.rb
|
109
|
-
- lib/deals.rb
|
124
|
+
- lib/deals/engine.rb
|
110
125
|
- lib/tasks/deals_tasks.rake
|
126
|
+
- lib/deals.rb
|
111
127
|
- LICENSE
|
112
128
|
- Rakefile
|
113
129
|
- README.md
|
114
130
|
- Gemfile
|
115
131
|
- Gemfile.lock
|
132
|
+
- test/integration/navigation_test.rb
|
133
|
+
- test/test_helper.rb
|
116
134
|
- test/deals_test.rb
|
117
|
-
- test/dummy/
|
118
|
-
- test/dummy/
|
135
|
+
- test/dummy/public/favicon.ico
|
136
|
+
- test/dummy/public/500.html
|
137
|
+
- test/dummy/public/404.html
|
138
|
+
- test/dummy/public/422.html
|
139
|
+
- test/dummy/script/rails
|
140
|
+
- test/dummy/Rakefile
|
119
141
|
- test/dummy/app/controllers/application_controller.rb
|
120
|
-
- test/dummy/app/
|
142
|
+
- test/dummy/app/assets/stylesheets/application.css
|
143
|
+
- test/dummy/app/assets/javascripts/application.js
|
121
144
|
- test/dummy/app/views/layouts/application.html.erb
|
122
|
-
- test/dummy/
|
123
|
-
- test/dummy/config/
|
145
|
+
- test/dummy/app/helpers/application_helper.rb
|
146
|
+
- test/dummy/config/routes.rb
|
124
147
|
- test/dummy/config/database.yml
|
125
|
-
- test/dummy/config/
|
126
|
-
- test/dummy/config/environments/development.rb
|
148
|
+
- test/dummy/config/application.rb
|
127
149
|
- test/dummy/config/environments/production.rb
|
150
|
+
- test/dummy/config/environments/development.rb
|
128
151
|
- test/dummy/config/environments/test.rb
|
129
|
-
- test/dummy/config/
|
130
|
-
- test/dummy/config/
|
131
|
-
- test/dummy/config/
|
132
|
-
- test/dummy/config/initializers/secret_token.rb
|
152
|
+
- test/dummy/config/boot.rb
|
153
|
+
- test/dummy/config/locales/en.yml
|
154
|
+
- test/dummy/config/environment.rb
|
133
155
|
- test/dummy/config/initializers/session_store.rb
|
134
156
|
- test/dummy/config/initializers/wrap_parameters.rb
|
135
|
-
- test/dummy/config/
|
136
|
-
- test/dummy/config/
|
157
|
+
- test/dummy/config/initializers/mime_types.rb
|
158
|
+
- test/dummy/config/initializers/secret_token.rb
|
159
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
160
|
+
- test/dummy/config/initializers/inflections.rb
|
137
161
|
- test/dummy/config.ru
|
138
|
-
- test/dummy/public/404.html
|
139
|
-
- test/dummy/public/422.html
|
140
|
-
- test/dummy/public/500.html
|
141
|
-
- test/dummy/public/favicon.ico
|
142
|
-
- test/dummy/Rakefile
|
143
162
|
- test/dummy/README.rdoc
|
144
|
-
- test/dummy/script/rails
|
145
|
-
- test/integration/navigation_test.rb
|
146
|
-
- test/test_helper.rb
|
147
163
|
homepage: http://www.barrettgriffith.com
|
148
164
|
licenses: []
|
149
165
|
post_install_message:
|
@@ -164,39 +180,39 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
180
|
version: '0'
|
165
181
|
requirements: []
|
166
182
|
rubyforge_project:
|
167
|
-
rubygems_version: 1.8.
|
183
|
+
rubygems_version: 1.8.25
|
168
184
|
signing_key:
|
169
185
|
specification_version: 3
|
170
186
|
summary: Deals API
|
171
187
|
test_files:
|
188
|
+
- test/integration/navigation_test.rb
|
189
|
+
- test/test_helper.rb
|
172
190
|
- test/deals_test.rb
|
173
|
-
- test/dummy/
|
174
|
-
- test/dummy/
|
191
|
+
- test/dummy/public/favicon.ico
|
192
|
+
- test/dummy/public/500.html
|
193
|
+
- test/dummy/public/404.html
|
194
|
+
- test/dummy/public/422.html
|
195
|
+
- test/dummy/script/rails
|
196
|
+
- test/dummy/Rakefile
|
175
197
|
- test/dummy/app/controllers/application_controller.rb
|
176
|
-
- test/dummy/app/
|
198
|
+
- test/dummy/app/assets/stylesheets/application.css
|
199
|
+
- test/dummy/app/assets/javascripts/application.js
|
177
200
|
- test/dummy/app/views/layouts/application.html.erb
|
178
|
-
- test/dummy/
|
179
|
-
- test/dummy/config/
|
201
|
+
- test/dummy/app/helpers/application_helper.rb
|
202
|
+
- test/dummy/config/routes.rb
|
180
203
|
- test/dummy/config/database.yml
|
181
|
-
- test/dummy/config/
|
182
|
-
- test/dummy/config/environments/development.rb
|
204
|
+
- test/dummy/config/application.rb
|
183
205
|
- test/dummy/config/environments/production.rb
|
206
|
+
- test/dummy/config/environments/development.rb
|
184
207
|
- test/dummy/config/environments/test.rb
|
185
|
-
- test/dummy/config/
|
186
|
-
- test/dummy/config/
|
187
|
-
- test/dummy/config/
|
188
|
-
- test/dummy/config/initializers/secret_token.rb
|
208
|
+
- test/dummy/config/boot.rb
|
209
|
+
- test/dummy/config/locales/en.yml
|
210
|
+
- test/dummy/config/environment.rb
|
189
211
|
- test/dummy/config/initializers/session_store.rb
|
190
212
|
- test/dummy/config/initializers/wrap_parameters.rb
|
191
|
-
- test/dummy/config/
|
192
|
-
- test/dummy/config/
|
213
|
+
- test/dummy/config/initializers/mime_types.rb
|
214
|
+
- test/dummy/config/initializers/secret_token.rb
|
215
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
216
|
+
- test/dummy/config/initializers/inflections.rb
|
193
217
|
- test/dummy/config.ru
|
194
|
-
- test/dummy/public/404.html
|
195
|
-
- test/dummy/public/422.html
|
196
|
-
- test/dummy/public/500.html
|
197
|
-
- test/dummy/public/favicon.ico
|
198
|
-
- test/dummy/Rakefile
|
199
218
|
- test/dummy/README.rdoc
|
200
|
-
- test/dummy/script/rails
|
201
|
-
- test/integration/navigation_test.rb
|
202
|
-
- test/test_helper.rb
|