fuel 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/fuel/post.rb +5 -1
  3. data/app/views/fuel/posts/_post.html.erb +3 -0
  4. data/app/views/fuel/posts/_tweet.html.erb +4 -0
  5. data/lib/fuel/configuration.rb +2 -1
  6. data/lib/fuel/version.rb +1 -1
  7. data/lib/generators/templates/fuel.rb +5 -1
  8. metadata +32 -145
  9. data/test/controllers/fuel/posts_controller_test.rb +0 -9
  10. data/test/dummy/README.rdoc +0 -28
  11. data/test/dummy/Rakefile +0 -6
  12. data/test/dummy/app/assets/javascripts/application.js +0 -13
  13. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  14. data/test/dummy/app/controllers/application_controller.rb +0 -5
  15. data/test/dummy/app/helpers/application_helper.rb +0 -2
  16. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  17. data/test/dummy/bin/bundle +0 -3
  18. data/test/dummy/bin/rails +0 -4
  19. data/test/dummy/bin/rake +0 -4
  20. data/test/dummy/config.ru +0 -4
  21. data/test/dummy/config/application.rb +0 -23
  22. data/test/dummy/config/boot.rb +0 -5
  23. data/test/dummy/config/database.yml +0 -25
  24. data/test/dummy/config/environment.rb +0 -5
  25. data/test/dummy/config/environments/development.rb +0 -29
  26. data/test/dummy/config/environments/production.rb +0 -80
  27. data/test/dummy/config/environments/test.rb +0 -36
  28. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  29. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  30. data/test/dummy/config/initializers/friendly_id.rb +0 -88
  31. data/test/dummy/config/initializers/fuel.rb +0 -12
  32. data/test/dummy/config/initializers/inflections.rb +0 -16
  33. data/test/dummy/config/initializers/mime_types.rb +0 -5
  34. data/test/dummy/config/initializers/secret_token.rb +0 -12
  35. data/test/dummy/config/initializers/session_store.rb +0 -3
  36. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  37. data/test/dummy/config/locales/en.yml +0 -23
  38. data/test/dummy/config/routes.rb +0 -5
  39. data/test/dummy/db/development.sqlite3 +0 -0
  40. data/test/dummy/db/migrate/20140123225741_create_fuel_posts.fuel.rb +0 -16
  41. data/test/dummy/db/migrate/20140123230639_create_friendly_id_slugs.rb +0 -15
  42. data/test/dummy/db/schema.rb +0 -42
  43. data/test/dummy/db/test.sqlite3 +0 -0
  44. data/test/dummy/log/development.log +0 -24081
  45. data/test/dummy/public/404.html +0 -58
  46. data/test/dummy/public/422.html +0 -58
  47. data/test/dummy/public/500.html +0 -57
  48. data/test/dummy/public/favicon.ico +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sprockets/014dac3985653ba3455824e5bdaf93bd +0 -0
  50. data/test/dummy/tmp/cache/assets/development/sprockets/03ac2f751ed77389257433b768f934c3 +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/05c5819ebb446d33153d21337d3a20ad +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/3ebee12608c20315d8de4675220e3d04 +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/741e06bd7a3e5bc32d44a86b156237b4 +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/7cb8cf7fca54a9d0c860db5e7a874fa9 +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/9501761eef62112c4a992aa52331b52f +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/970522fbbd63cf689683466c5196857f +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/9e6bbc6ad4182b36488ed894b2cf25af +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/9f4599bbfc23ec621d87974b1cb749e3 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/9f6c8d6fbf570cfe1a06179461b0de2d +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/a97bc057d70e3604312a80f169e9e6e9 +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/bfa298bb2836528bc682672f2a549707 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/c21e7a5dd39166b6f02a10131e7b60a5 +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/c78d634ffc32ae4fadbe52ac7ca08aac +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/d7fb93600298f6787c9defd51a75aeb5 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/d9ff247d231468f7dc28844500bc20aa +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/f089ae120c22843da39b636bfc4b8e01 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  73. data/test/dummy/tmp/pids/server.pid +0 -1
  74. data/test/fixtures/fuel/posts.yml +0 -17
  75. data/test/fuel_test.rb +0 -7
  76. data/test/helpers/fuel/posts_helper_test.rb +0 -6
  77. data/test/integration/navigation_test.rb +0 -10
  78. data/test/models/fuel/post_test.rb +0 -9
  79. data/test/test_helper.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f310d77050d8cb12755547614ec17f7700a64845
4
- data.tar.gz: 3995b3f951c1448ea8626173aa7eedaf065575f1
3
+ metadata.gz: 576e9f221804e86f815329d6bd57e52be94b4bbd
4
+ data.tar.gz: 4fb2b85840bba4b01b27ec1e473dcac4bf018d5a
5
5
  SHA512:
6
- metadata.gz: dcd8663746910f30bd3d2127045929e3d2c5d906d1c777d2db58cb02d119befe7eae3eb00c6ac57349129c5a84733c4adf881c91f416130a5dfc0e2c66f3807a
7
- data.tar.gz: a99fe6d75c168e68186f1aee3f68e58b61009e7c29079326363de73e159b65a8e72a0ec4fc1e2485577a77202deabf41c64e5ee67a664bd85d15c1bca2fb5a23
6
+ metadata.gz: 0f57cadf29b44ce8384131a7c5948245650e1ba6f47f53a6a554d2f317747e4ece89f9a016f4dee26b8ae4cb38a7a346adf7799b08ca85e9b7c94acdccf20879
7
+ data.tar.gz: 89db80ef607f357d4501074e5085f8e9525a871f52da519c38ce61a2f2db0a3c6a35f4e324a28a6cf08d980b54c6fc9d3f2c49ed6d27efbad27ad2ae0c62474f
@@ -7,7 +7,7 @@ module Fuel
7
7
  attr_accessible :tag, :author, :content, :title
8
8
  end
9
9
 
10
- validates_presence_of :title, :content, :author
10
+ validates_presence_of :title, :content, :author, if: :is_published
11
11
  paginates_per 5
12
12
 
13
13
  def should_generate_new_friendly_id?
@@ -18,5 +18,9 @@ module Fuel
18
18
  self.published = false
19
19
  end
20
20
 
21
+ def is_published
22
+ self.published
23
+ end
24
+
21
25
  end
22
26
  end
@@ -1,6 +1,9 @@
1
1
  <div class="fuel-post-additional-info">
2
2
  <!-- <span class="fuel_post_date"><%= post.created_at.strftime('%b %d, %Y') %> - </span> -->
3
3
  <span class="fuel-post-author">By <%= post.author %></span>
4
+ <span class="fuel-social-buttons">
5
+ <%= render 'tweet', post: post if action_name == "show" && Fuel.configuration.twitter %>
6
+ </span>
4
7
  </div>
5
8
  <% if action_name == "show" %>
6
9
  <div class="fuel-post-content">
@@ -0,0 +1,4 @@
1
+ <div>
2
+ <a href="https://twitter.com/share" class="twitter-share-button" data-text="<%= post.title %>" data-counturl="<%= post_url(post) %>" data-url="<%= post_url(post) %>" data-lang="en">Tweet</a>
3
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
4
+ </div>
@@ -2,12 +2,13 @@ module Fuel
2
2
  class Configuration
3
3
 
4
4
  # What kind of comments do you want to add to your blog ? (:active_record, :disqus or :no)
5
- attr_accessor :layout, :blog_title, :disqus_name
5
+ attr_accessor :layout, :blog_title, :disqus_name, :twitter
6
6
 
7
7
  def initialize
8
8
  @layout = "application"
9
9
  @blog_title = "Blog"
10
10
  @disqus_name = nil
11
+ @twitter = false
11
12
  end
12
13
 
13
14
  end
data/lib/fuel/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fuel
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
@@ -5,8 +5,12 @@ Fuel.configure do |config|
5
5
  config.layout = "application"
6
6
 
7
7
  # Change title of blog
8
- #config.blog_title = "Blog"
8
+ config.blog_title = "Blog"
9
9
 
10
10
  # Add Disqus
11
11
  #config.disqus_name = 'your_disqus_name'
12
+
13
+ # Add Twitter
14
+ #config.twitter = true
15
+
12
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Francis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-11 00:00:00.000000000 Z
11
+ date: 2014-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -80,6 +80,34 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
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: '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: factory_girl_rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
83
111
  description: Fuel's goal is to be a simple yet customizable blogging gem.
84
112
  email:
85
113
  - ryan.p.francis@gmail.com
@@ -107,6 +135,7 @@ files:
107
135
  - app/views/fuel/admin/posts/new.html.erb
108
136
  - app/views/fuel/posts/_disqus.html.erb
109
137
  - app/views/fuel/posts/_post.html.erb
138
+ - app/views/fuel/posts/_tweet.html.erb
110
139
  - app/views/fuel/posts/index.html.erb
111
140
  - app/views/fuel/posts/show.html.erb
112
141
  - app/views/layouts/fuel/application.html.erb
@@ -120,77 +149,6 @@ files:
120
149
  - lib/generators/fuel/views_generator.rb
121
150
  - lib/generators/templates/fuel.rb
122
151
  - lib/tasks/fuel_tasks.rake
123
- - test/controllers/fuel/posts_controller_test.rb
124
- - test/dummy/README.rdoc
125
- - test/dummy/Rakefile
126
- - test/dummy/app/assets/javascripts/application.js
127
- - test/dummy/app/assets/stylesheets/application.css
128
- - test/dummy/app/controllers/application_controller.rb
129
- - test/dummy/app/helpers/application_helper.rb
130
- - test/dummy/app/views/layouts/application.html.erb
131
- - test/dummy/bin/bundle
132
- - test/dummy/bin/rails
133
- - test/dummy/bin/rake
134
- - test/dummy/config.ru
135
- - test/dummy/config/application.rb
136
- - test/dummy/config/boot.rb
137
- - test/dummy/config/database.yml
138
- - test/dummy/config/environment.rb
139
- - test/dummy/config/environments/development.rb
140
- - test/dummy/config/environments/production.rb
141
- - test/dummy/config/environments/test.rb
142
- - test/dummy/config/initializers/backtrace_silencers.rb
143
- - test/dummy/config/initializers/filter_parameter_logging.rb
144
- - test/dummy/config/initializers/friendly_id.rb
145
- - test/dummy/config/initializers/fuel.rb
146
- - test/dummy/config/initializers/inflections.rb
147
- - test/dummy/config/initializers/mime_types.rb
148
- - test/dummy/config/initializers/secret_token.rb
149
- - test/dummy/config/initializers/session_store.rb
150
- - test/dummy/config/initializers/wrap_parameters.rb
151
- - test/dummy/config/locales/en.yml
152
- - test/dummy/config/routes.rb
153
- - test/dummy/db/development.sqlite3
154
- - test/dummy/db/migrate/20140123225741_create_fuel_posts.fuel.rb
155
- - test/dummy/db/migrate/20140123230639_create_friendly_id_slugs.rb
156
- - test/dummy/db/schema.rb
157
- - test/dummy/db/test.sqlite3
158
- - test/dummy/log/development.log
159
- - test/dummy/public/404.html
160
- - test/dummy/public/422.html
161
- - test/dummy/public/500.html
162
- - test/dummy/public/favicon.ico
163
- - test/dummy/tmp/cache/assets/development/sprockets/014dac3985653ba3455824e5bdaf93bd
164
- - test/dummy/tmp/cache/assets/development/sprockets/03ac2f751ed77389257433b768f934c3
165
- - test/dummy/tmp/cache/assets/development/sprockets/05c5819ebb446d33153d21337d3a20ad
166
- - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
167
- - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
168
- - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
169
- - test/dummy/tmp/cache/assets/development/sprockets/3ebee12608c20315d8de4675220e3d04
170
- - test/dummy/tmp/cache/assets/development/sprockets/741e06bd7a3e5bc32d44a86b156237b4
171
- - test/dummy/tmp/cache/assets/development/sprockets/7cb8cf7fca54a9d0c860db5e7a874fa9
172
- - test/dummy/tmp/cache/assets/development/sprockets/9501761eef62112c4a992aa52331b52f
173
- - test/dummy/tmp/cache/assets/development/sprockets/970522fbbd63cf689683466c5196857f
174
- - test/dummy/tmp/cache/assets/development/sprockets/9e6bbc6ad4182b36488ed894b2cf25af
175
- - test/dummy/tmp/cache/assets/development/sprockets/9f4599bbfc23ec621d87974b1cb749e3
176
- - test/dummy/tmp/cache/assets/development/sprockets/9f6c8d6fbf570cfe1a06179461b0de2d
177
- - test/dummy/tmp/cache/assets/development/sprockets/a97bc057d70e3604312a80f169e9e6e9
178
- - test/dummy/tmp/cache/assets/development/sprockets/bfa298bb2836528bc682672f2a549707
179
- - test/dummy/tmp/cache/assets/development/sprockets/c21e7a5dd39166b6f02a10131e7b60a5
180
- - test/dummy/tmp/cache/assets/development/sprockets/c78d634ffc32ae4fadbe52ac7ca08aac
181
- - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
182
- - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
183
- - test/dummy/tmp/cache/assets/development/sprockets/d7fb93600298f6787c9defd51a75aeb5
184
- - test/dummy/tmp/cache/assets/development/sprockets/d9ff247d231468f7dc28844500bc20aa
185
- - test/dummy/tmp/cache/assets/development/sprockets/f089ae120c22843da39b636bfc4b8e01
186
- - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
187
- - test/dummy/tmp/pids/server.pid
188
- - test/fixtures/fuel/posts.yml
189
- - test/fuel_test.rb
190
- - test/helpers/fuel/posts_helper_test.rb
191
- - test/integration/navigation_test.rb
192
- - test/models/fuel/post_test.rb
193
- - test/test_helper.rb
194
152
  homepage: http://github.com/LaunchPadLab/fuel
195
153
  licenses: []
196
154
  metadata: {}
@@ -214,75 +172,4 @@ rubygems_version: 2.2.1
214
172
  signing_key:
215
173
  specification_version: 4
216
174
  summary: Fuel is a dead simple blogging gem (mountable engine)
217
- test_files:
218
- - test/controllers/fuel/posts_controller_test.rb
219
- - test/dummy/app/assets/javascripts/application.js
220
- - test/dummy/app/assets/stylesheets/application.css
221
- - test/dummy/app/controllers/application_controller.rb
222
- - test/dummy/app/helpers/application_helper.rb
223
- - test/dummy/app/views/layouts/application.html.erb
224
- - test/dummy/bin/bundle
225
- - test/dummy/bin/rails
226
- - test/dummy/bin/rake
227
- - test/dummy/config/application.rb
228
- - test/dummy/config/boot.rb
229
- - test/dummy/config/database.yml
230
- - test/dummy/config/environment.rb
231
- - test/dummy/config/environments/development.rb
232
- - test/dummy/config/environments/production.rb
233
- - test/dummy/config/environments/test.rb
234
- - test/dummy/config/initializers/backtrace_silencers.rb
235
- - test/dummy/config/initializers/filter_parameter_logging.rb
236
- - test/dummy/config/initializers/friendly_id.rb
237
- - test/dummy/config/initializers/fuel.rb
238
- - test/dummy/config/initializers/inflections.rb
239
- - test/dummy/config/initializers/mime_types.rb
240
- - test/dummy/config/initializers/secret_token.rb
241
- - test/dummy/config/initializers/session_store.rb
242
- - test/dummy/config/initializers/wrap_parameters.rb
243
- - test/dummy/config/locales/en.yml
244
- - test/dummy/config/routes.rb
245
- - test/dummy/config.ru
246
- - test/dummy/db/development.sqlite3
247
- - test/dummy/db/migrate/20140123225741_create_fuel_posts.fuel.rb
248
- - test/dummy/db/migrate/20140123230639_create_friendly_id_slugs.rb
249
- - test/dummy/db/schema.rb
250
- - test/dummy/db/test.sqlite3
251
- - test/dummy/log/development.log
252
- - test/dummy/public/404.html
253
- - test/dummy/public/422.html
254
- - test/dummy/public/500.html
255
- - test/dummy/public/favicon.ico
256
- - test/dummy/Rakefile
257
- - test/dummy/README.rdoc
258
- - test/dummy/tmp/cache/assets/development/sprockets/014dac3985653ba3455824e5bdaf93bd
259
- - test/dummy/tmp/cache/assets/development/sprockets/03ac2f751ed77389257433b768f934c3
260
- - test/dummy/tmp/cache/assets/development/sprockets/05c5819ebb446d33153d21337d3a20ad
261
- - test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
262
- - test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
263
- - test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
264
- - test/dummy/tmp/cache/assets/development/sprockets/3ebee12608c20315d8de4675220e3d04
265
- - test/dummy/tmp/cache/assets/development/sprockets/741e06bd7a3e5bc32d44a86b156237b4
266
- - test/dummy/tmp/cache/assets/development/sprockets/7cb8cf7fca54a9d0c860db5e7a874fa9
267
- - test/dummy/tmp/cache/assets/development/sprockets/9501761eef62112c4a992aa52331b52f
268
- - test/dummy/tmp/cache/assets/development/sprockets/970522fbbd63cf689683466c5196857f
269
- - test/dummy/tmp/cache/assets/development/sprockets/9e6bbc6ad4182b36488ed894b2cf25af
270
- - test/dummy/tmp/cache/assets/development/sprockets/9f4599bbfc23ec621d87974b1cb749e3
271
- - test/dummy/tmp/cache/assets/development/sprockets/9f6c8d6fbf570cfe1a06179461b0de2d
272
- - test/dummy/tmp/cache/assets/development/sprockets/a97bc057d70e3604312a80f169e9e6e9
273
- - test/dummy/tmp/cache/assets/development/sprockets/bfa298bb2836528bc682672f2a549707
274
- - test/dummy/tmp/cache/assets/development/sprockets/c21e7a5dd39166b6f02a10131e7b60a5
275
- - test/dummy/tmp/cache/assets/development/sprockets/c78d634ffc32ae4fadbe52ac7ca08aac
276
- - test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
277
- - test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
278
- - test/dummy/tmp/cache/assets/development/sprockets/d7fb93600298f6787c9defd51a75aeb5
279
- - test/dummy/tmp/cache/assets/development/sprockets/d9ff247d231468f7dc28844500bc20aa
280
- - test/dummy/tmp/cache/assets/development/sprockets/f089ae120c22843da39b636bfc4b8e01
281
- - test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
282
- - test/dummy/tmp/pids/server.pid
283
- - test/fixtures/fuel/posts.yml
284
- - test/fuel_test.rb
285
- - test/helpers/fuel/posts_helper_test.rb
286
- - test/integration/navigation_test.rb
287
- - test/models/fuel/post_test.rb
288
- - test/test_helper.rb
175
+ test_files: []
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Fuel
4
- class PostsControllerTest < ActionController::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
8
- end
9
- end
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
data/test/dummy/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Dummy::Application.load_tasks
@@ -1,13 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
@@ -1,13 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
10
- *
11
- *= require_self
12
- *= require_tree .
13
- */
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
6
- <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
data/test/dummy/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
data/test/dummy/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
data/test/dummy/config.ru DELETED
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails.application
@@ -1,23 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- Bundler.require(*Rails.groups)
6
- require "fuel"
7
-
8
- module Dummy
9
- class Application < Rails::Application
10
- # Settings in config/environments/* take precedence over those specified here.
11
- # Application configuration should go into files in config/initializers
12
- # -- all .rb files in that directory are automatically loaded.
13
-
14
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
15
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
16
- # config.time_zone = 'Central Time (US & Canada)'
17
-
18
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
19
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
- # config.i18n.default_locale = :de
21
- end
22
- end
23
-