recruiter 0.0.7 → 0.1.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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/recruiter/articles_controller.rb +22 -0
  3. data/app/controllers/recruiter/jobs_controller.rb +5 -0
  4. data/app/controllers/recruiter/users/articles_controller.rb +55 -0
  5. data/app/controllers/recruiter/users/jobs_controller.rb +7 -7
  6. data/app/decorators/recruiter/article_decorator.rb +12 -0
  7. data/app/decorators/recruiter/job_decorator.rb +1 -19
  8. data/app/helpers/recruiter/header_helper.rb +1 -1
  9. data/app/helpers/recruiter/links_helper.rb +1 -1
  10. data/app/helpers/recruiter/markdown_helper.rb +5 -7
  11. data/app/models/recruiter/article.rb +10 -0
  12. data/app/models/recruiter/user.rb +1 -0
  13. data/app/views/layouts/recruiter/application.html.erb +1 -0
  14. data/app/views/recruiter/_filters.html.erb +1 -1
  15. data/app/views/recruiter/_login_status.html.erb +1 -1
  16. data/app/views/recruiter/_show_actions.html.erb +1 -1
  17. data/app/views/recruiter/_top_menu.html.erb +3 -1
  18. data/app/views/recruiter/articles/_article.html.erb +12 -0
  19. data/app/views/recruiter/articles/index.html.erb +12 -0
  20. data/app/views/recruiter/articles/show.html.erb +1 -0
  21. data/app/views/recruiter/jobs/_job.html.erb +1 -1
  22. data/app/views/recruiter/users/articles/_article.html.erb +17 -0
  23. data/app/views/recruiter/users/articles/_form.html.erb +12 -0
  24. data/app/views/recruiter/users/articles/edit.html.erb +3 -0
  25. data/app/views/recruiter/users/articles/index.html.erb +26 -0
  26. data/app/views/recruiter/users/articles/new.html.erb +4 -0
  27. data/app/views/recruiter/users/articles/show.html.erb +5 -0
  28. data/app/views/recruiter/users/jobs/_form.html.erb +1 -1
  29. data/app/views/recruiter/users/jobs/_job.html.erb +2 -6
  30. data/config/routes.rb +4 -2
  31. data/db/migrate/20140712201534_create_recruiter_articles.rb +12 -0
  32. data/lib/generators/templates/locales/pt-BR.yml +6 -0
  33. data/lib/generators/templates/locales/recruiter.pt-BR.yml +24 -0
  34. data/lib/recruiter/decorator_helper.rb +7 -0
  35. data/lib/recruiter/publicable_decorator_helper.rb +31 -0
  36. data/lib/recruiter/render/html.rb +21 -0
  37. data/lib/recruiter/renderer/html.rb +0 -0
  38. data/lib/recruiter/version.rb +1 -1
  39. data/lib/recruiter.rb +5 -1
  40. metadata +34 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 117b5e92b2e6603085ff8d3bca5d09f2d7b14730
4
- data.tar.gz: 3a36c0facbc24bf53350e6c6fc658ab0c90f5ed1
3
+ metadata.gz: 06dc8cbeb162ba31ee57882f0334a843db75e024
4
+ data.tar.gz: 369262dd4e6ce90d2a214966a2534f3c8eafadf6
5
5
  SHA512:
6
- metadata.gz: 824d3ce79f00c824e95fa4c6f8025544acc54ca721fe169c58f6627896f6d110a6a323be119fd0d55319b8b7c54f596ca3bf3ee2cfb9192949db29059a678e65
7
- data.tar.gz: f86286461067e32a7866f2030197dd18854c623009f83f20b0706fbf50080ed3adca08b4a2a8793d4576587048da9d461b9ca604f05ff7ab07977c32c1a0c4ee
6
+ metadata.gz: 716c43541dbd75e888b4d02045297ee7796bb49c29bfc96cbe3c039c368cbf63c16fa23f2411756a34294238cb629f58b3aee9de5320e529e1853cf0363aea34
7
+ data.tar.gz: 6b2668dbf4c173912a4c30e7a7cf59a73e7885e7016aae5db8008af62c84e4924a9c6adae0fe5a9fdf4ab7c3e470603d5ad418cb387a2785884db043c43c658a
@@ -0,0 +1,22 @@
1
+ module Recruiter
2
+ class ArticlesController < ApplicationController
3
+ respond_to :html, :json
4
+
5
+ def index
6
+ @articles = scope
7
+ respond_with(@articles)
8
+ end
9
+
10
+ def show
11
+ @article = scope.find(params[:id])
12
+ respond_with(@article)
13
+ end
14
+
15
+ private
16
+
17
+ def scope
18
+ Article.published
19
+ end
20
+
21
+ end
22
+ end
@@ -1,12 +1,17 @@
1
1
  module Recruiter
2
2
  class JobsController < ::RecruiterController
3
+ respond_to :html, :json
4
+
3
5
  def index
4
6
  @jobs = ::Recruiter::Filters::JobFilter.filter(filter_params).
5
7
  open.page(page).per(per_page)
8
+
9
+ respond_with(@jobs)
6
10
  end
7
11
 
8
12
  def show
9
13
  @job = Job.find(params[:id])
14
+ respond_with(@job)
10
15
  end
11
16
 
12
17
  private
@@ -0,0 +1,55 @@
1
+ module Recruiter
2
+ module Users
3
+ class ArticlesController < UserController
4
+ before_action :set_article, only: [:show, :edit, :update, :destroy]
5
+
6
+ def index
7
+ @articles = scope.page(page).per(per_page)
8
+ respond_with(@articles)
9
+ end
10
+
11
+ def show
12
+ respond_with(@article)
13
+ end
14
+
15
+ def new
16
+ @article = scope.build
17
+ respond_with(@article)
18
+ end
19
+
20
+ def create
21
+ @article = scope.build(article_params)
22
+ crud_flash @article.save
23
+ respond_with(@article)
24
+ end
25
+
26
+ def edit
27
+ respond_with(@article)
28
+ end
29
+
30
+ def update
31
+ crud_flash @article.update(article_params)
32
+ respond_with(@article)
33
+ end
34
+
35
+ def destroy
36
+ crud_flash @article.destroy
37
+ respond_with(@article)
38
+ end
39
+
40
+ private
41
+
42
+ def scope
43
+ current_user.articles
44
+ end
45
+
46
+ def set_article
47
+ @article = scope.find(params[:id])
48
+ end
49
+
50
+ def article_params
51
+ params.require(:article).permit(:title, :body, :published)
52
+ end
53
+ end
54
+ end
55
+ end
@@ -5,38 +5,38 @@ module Recruiter
5
5
 
6
6
  def index
7
7
  @jobs = scope.page(page).per(per_page)
8
- respond_with(@jobs)
8
+ respond_with(:user, @jobs)
9
9
  end
10
10
 
11
11
  def show
12
- respond_with(@job)
12
+ respond_with(:user, @job)
13
13
  end
14
14
 
15
15
  def edit
16
- respond_with(@job)
16
+ respond_with(:user, @job)
17
17
  end
18
18
 
19
19
  def new
20
20
  # TODO: This fixes issue #10. Not a beautiful think to do here
21
21
  flash.delete(:alert)
22
22
  @job = scope.new
23
- respond_with(@job)
23
+ respond_with(:user, @job)
24
24
  end
25
25
 
26
26
  def create
27
27
  @job = scope.build(job_params)
28
28
  crud_flash @job.save
29
- respond_with(@job)
29
+ respond_with(:user, @job)
30
30
  end
31
31
 
32
32
  def update
33
33
  crud_flash @job.update(job_params)
34
- respond_with(@job)
34
+ respond_with(:user, @job)
35
35
  end
36
36
 
37
37
  def destroy
38
38
  crud_flash @job.destroy
39
- respond_with(@job)
39
+ respond_with(:user, @job)
40
40
  end
41
41
 
42
42
  private
@@ -0,0 +1,12 @@
1
+ module Recruiter
2
+ class ArticleDecorator < Draper::Decorator
3
+ delegate_all
4
+
5
+ include Recruiter::DecoratorHelper
6
+ include Recruiter::PublicableDecoratorHelper
7
+
8
+ def published?
9
+ decorate_boolean(object.published?)
10
+ end
11
+ end
12
+ end
@@ -2,30 +2,12 @@ module Recruiter
2
2
  class JobDecorator < Draper::Decorator
3
3
  delegate_all
4
4
 
5
- def created_at_ago
6
- h.time_ago_in_words(object.created_at)
7
- end
5
+ include Recruiter::PublicableDecoratorHelper
8
6
 
9
7
  def title
10
8
  object.title.titleize
11
9
  end
12
10
 
13
- def updated_at_ago
14
- h.time_ago_in_words(object.updated_at)
15
- end
16
-
17
- def updated?
18
- object.created_at < object.updated_at
19
- end
20
-
21
- def published_at
22
- h.t('recruiter.messages.posts.published_at', time: created_at_ago)
23
- end
24
-
25
- def updated_at
26
- h.t('recruiter.messages.posts.updated_at', time: updated_at_ago)
27
- end
28
-
29
11
  def city
30
12
  object.city.name
31
13
  end
@@ -5,7 +5,7 @@ module Recruiter
5
5
  content_for(:title) { title }
6
6
  else
7
7
  parts = [content_for(:title)]
8
- parts << 'Rails Jobs Brazil'
8
+ parts << t('recruiter.site_title')
9
9
  parts.compact.uniq.join(' :: ')
10
10
  end
11
11
  end
@@ -6,7 +6,7 @@ module Recruiter
6
6
  link_to url, options, &block
7
7
  end
8
8
 
9
- def new_link(url, options = {})
9
+ def new_link(url = {action: :new}, options = {})
10
10
  options.reverse_merge!({ title: t('recruiter.links.new') })
11
11
 
12
12
  link_to(url, options) do
@@ -1,16 +1,14 @@
1
+ require "makeup"
2
+
1
3
  module Recruiter
2
4
  module MarkdownHelper
3
5
  def to_markdown(text)
4
- renderer.render(text).html_safe
6
+ sanitize(renderer.render("file.md", text).html_safe)
5
7
  end
6
8
 
7
9
  def renderer
8
- @md_renderer ||= Redcarpet::Markdown.new(
9
- Redcarpet::Render::HTML,
10
- filter_html: true,
11
- hard_wrap: true,
12
- no_intra_emphasis: true,
13
- fenced_code_blocks: true,
10
+ @md_renderer ||= Makeup::Markup.new(
11
+ highlighter: Makeup::SyntaxHighlighter.new
14
12
  )
15
13
  end
16
14
  end
@@ -0,0 +1,10 @@
1
+ module Recruiter
2
+ class Article < ActiveRecord::Base
3
+ belongs_to :user
4
+ validates :title, presence: true
5
+ validates :user, presence: true
6
+ validates :body, presence: true
7
+
8
+ scope :published, ->{ where(published: true) }
9
+ end
10
+ end
@@ -2,6 +2,7 @@ module Recruiter
2
2
  class User < ActiveRecord::Base
3
3
  devise :omniauthable, :trackable
4
4
  has_many :jobs
5
+ has_many :articles
5
6
  serialize :provider_data, JSON
6
7
 
7
8
  validates :name, presence: true
@@ -14,6 +14,7 @@
14
14
  <%= javascript_include_tag "vendor/modernizr" %>
15
15
  <%= csrf_meta_tags %>
16
16
  <%= render 'recruiter/analytics' %>
17
+ <style type="text/css"><%= Pygments.css %> </style>
17
18
  </head>
18
19
 
19
20
  <body>
@@ -5,7 +5,7 @@
5
5
  <section>
6
6
  <header>
7
7
  <h1><%= t('.title') %></h1>
8
- <%= form_tag(root_path, method: :get) do %>
8
+ <%= form_tag(jobs_path, method: :get) do %>
9
9
  <label for="state_id"><%= t('.state') %></label>
10
10
  <%= select_tag :state_id, state_options, prompt: t('.select_state'), include_blank: true, data: { 'filter-select' => '{"target": "#city_id", "filterParam":"state_id", "filter": "city", "data": { "open_jobs": "1"} }' } %>
11
11
 
@@ -1,4 +1,4 @@
1
- <li> <%= link_to t('recruiter.links.published_jobs'), :jobs %> </li>
1
+ <li> <%= link_to t('recruiter.links.published_jobs'), :user_jobs %> </li>
2
2
  <li>
3
3
  <%= link_to "#" do %>
4
4
  <%= current_user.decorate.avatar(30, 30) %>
@@ -1,5 +1,5 @@
1
1
  <div class="right">
2
- <%= button_link([:edit, record], 'medium success') do %>
2
+ <%= button_link({ action: :edit, id: record.id }, 'medium success') do %>
3
3
  <%= edit_icon %> <%= t('recruiter.links.edit') %>
4
4
  <% end %>
5
5
  <%= back_link %>
@@ -9,7 +9,9 @@
9
9
  <section class="top-bar-section">
10
10
  <!-- Right Nav Section -->
11
11
  <ul class="right">
12
- <li> <%= link_to(t('recruiter.links.jobs.new'), recruiter.new_job_path) %> </li>
12
+ <li> <%= link_to(t('recruiter.links.articles.index'), recruiter.articles_path) %> </li>
13
+ <li> <%= link_to(t('recruiter.links.articles.mine'), recruiter.user_articles_path) if current_user %> </li>
14
+ <li> <%= link_to(t('recruiter.links.jobs.new'), recruiter.new_user_job_path) %> </li>
13
15
  <%= render 'recruiter/login_links' unless current_user -%>
14
16
  <%= render 'recruiter/login_status' if current_user -%>
15
17
  </ul>
@@ -0,0 +1,12 @@
1
+ <div class="job">
2
+ <%= link_to article do %>
3
+ <article class="row">
4
+ <div class="small-12 columns">
5
+ <div class="wrapper">
6
+ <h2><%= article.decorate.title %></h2>
7
+ <div class="published_date line"><%= article.decorate.published_at %></div>
8
+ </div>
9
+ </div>
10
+ </article>
11
+ <% end %>
12
+ </div>
@@ -0,0 +1,12 @@
1
+ <%= title t('.title') %>
2
+
3
+ <h1><%= t('.title') %></h1>
4
+
5
+
6
+ <div class="row">
7
+ <div class="small-12 medium-4 large-8 columns">
8
+ <div id="jobs">
9
+ <%= render @articles %>
10
+ </div>
11
+ </div>
12
+ </div>
@@ -0,0 +1 @@
1
+ <%= render 'recruiter/users/articles/article', article: @article %>
@@ -1,5 +1,5 @@
1
1
  <div class="job">
2
- <%= link_to offer_path(job) do %>
2
+ <%= link_to job do %>
3
3
  <article class="row">
4
4
  <div class="small-12 columns">
5
5
  <div class="wrapper">
@@ -0,0 +1,17 @@
1
+ <% title article.decorate.title %>
2
+
3
+ <article>
4
+ <header>
5
+ <h1><%= article.decorate.title %></h1>
6
+ </header>
7
+
8
+ <div class="row">
9
+ <div class="small-4 columns">
10
+ <%= to_markdown(article.body) %>
11
+ </div>
12
+ </div>
13
+
14
+ <footer>
15
+ <p><%= article.decorate.publication %></p>
16
+ </footer>
17
+ </article>
@@ -0,0 +1,12 @@
1
+ <%= simple_form_for(:user, article) do |f| %>
2
+
3
+ <div class="row">
4
+ <div class="small-12 medium-8 large-8 columns">
5
+ <%= f.input :title %>
6
+ <%= f.input :body, as: :text, input_html: { rows: 5 }, hint: t('.markdown_hint').html_safe %>
7
+ <%= f.input :published %>
8
+ </div>
9
+ </div>
10
+
11
+ <%= render 'form_actions' %>
12
+ <% end %>
@@ -0,0 +1,3 @@
1
+ <h1><%= t('.title') %></h1>
2
+
3
+ <%= render 'form', article: @article %>
@@ -0,0 +1,26 @@
1
+ <h1><%= t('.title') %></h1>
2
+
3
+ <table class="wide">
4
+ <thead>
5
+ <tr>
6
+ <th><%= Recruiter::Article.human_attribute_name(:title) %></th>
7
+ <th><%= Recruiter::Article.human_attribute_name(:published) %></th>
8
+ <th><%= Recruiter::Article.human_attribute_name(:published_at) %></th>
9
+ <th class="actions"><%= new_link({ action: :new }, class: 'expand') %></th>
10
+ </tr>
11
+ </thead>
12
+ <% @articles.each do |article| %>
13
+ <tr>
14
+ <td><%= article.decorate.title %></td>
15
+ <td><%= article.decorate.published? %></td>
16
+ <td><%= article.decorate.published_at %></td>
17
+ <td class="actions">
18
+ <%= show_link([:user, article]) %>
19
+ <%= edit_link(action: :edit, id: article.id) %>
20
+ <%= destroy_link(action: :destroy, id: article.id) %>
21
+ </td>
22
+ </tr>
23
+ <% end %>
24
+ </table>
25
+
26
+ <%= paginate @articles %>
@@ -0,0 +1,4 @@
1
+ <h1><%= t('.title') %></h1>
2
+
3
+ <%= render 'form', article: @article %>
4
+
@@ -0,0 +1,5 @@
1
+ <%= render 'show_actions', record: @article %>
2
+ <h1><%= t('.title') %></h1>
3
+ <%= render 'recruiter/users/articles/article', article: @article %>
4
+
5
+ <%= render 'show_actions', record: @article %>
@@ -1,4 +1,4 @@
1
- <%= simple_form_for(job) do |f| %>
1
+ <%= simple_form_for([:user, job]) do |f| %>
2
2
 
3
3
  <div class="row">
4
4
  <div class="small-12 medium-8 large-8 columns">
@@ -19,17 +19,13 @@
19
19
  <div class="main">
20
20
  <div class="description"><%= to_markdown(job.description) %></div>
21
21
  </div>
22
+
22
23
  <div class="how-to-apply">
23
24
  <h2><%= Recruiter::Job.human_attribute_name(:how_to_apply) %></h2>
24
25
  <%= to_markdown(job.how_to_apply) %>
25
26
  </div>
26
27
 
27
28
  <footer>
28
- <p>
29
- <%= job.decorate.published_at %>
30
- <% if job.decorate.updated? %>
31
- | <%= job.decorate.updated_at %>
32
- <% end %>
33
- </p>
29
+ <p><%= job.decorate.publication %></p>
34
30
  </footer>
35
31
  </article>
data/config/routes.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  Recruiter::Engine.routes.draw do
2
2
  root to: 'jobs#index'
3
3
 
4
- resources :jobs, only: [:show], as: :offer
4
+ resources :jobs, only: [:index, :show]
5
+ resources :articles, only: [:index, :show]
5
6
 
6
7
  devise_for :users,
7
8
  class_name: 'Recruiter::User',
@@ -13,8 +14,9 @@ Recruiter::Engine.routes.draw do
13
14
  get 'sign_out', to: '/devise/sessions#destroy', as: :destroy_user_session
14
15
  end
15
16
 
16
- scope :profile, module: :users do
17
+ scope :profile, module: :users, as: :user do
17
18
  resources :jobs
19
+ resources :articles
18
20
  end
19
21
 
20
22
  get 'filters' => 'filters#index', as: :filters
@@ -0,0 +1,12 @@
1
+ class CreateRecruiterArticles < ActiveRecord::Migration
2
+ def change
3
+ create_table :recruiter_articles do |t|
4
+ t.string :title
5
+ t.text :body
6
+ t.references :user, index: true
7
+ t.boolean :published, index: true, default: false
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -222,6 +222,12 @@ pt-BR:
222
222
  how_to_apply: Como se candidatar
223
223
  city: Cidade
224
224
  state_id: Estado
225
+ recruiter/article:
226
+ title: Título
227
+ published_at: Publicação
228
+ description: Descrição
229
+ body: Conteúdo
230
+ published: Publicado
225
231
  views:
226
232
  pagination:
227
233
  first: "&laquo; Primeira"
@@ -1,10 +1,16 @@
1
1
  "pt-BR":
2
+ "true" : Sim
3
+ "false" : Não
2
4
  recruiter:
3
5
  url: http://rubyjobsbrazil.com.br
6
+ site_title: Ruby Jobs Brazil
4
7
  layout:
5
8
  header:
6
9
  meta_description: Vagas para programadores Ruby e Ruby on Rails no Brasil.
7
10
  site_name: rubyjobsbrazil
11
+ articles:
12
+ index:
13
+ title: Artigos Publicados
8
14
  jobs:
9
15
  index:
10
16
  title: Vagas em aberto
@@ -18,6 +24,18 @@
18
24
  select_city: Selecione uma Cidade
19
25
  submit: Procurar
20
26
  users:
27
+ articles:
28
+ new:
29
+ title: Novo Artigo
30
+ edit:
31
+ title: Edição de Artigo
32
+ show:
33
+ title: Visualização de Artigo
34
+ index:
35
+ title: Artigos
36
+ form:
37
+ tags: Tags
38
+ markdown_hint: Você pode usar <a href="https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#html">markdown</a> para formatar sua mensagem.
21
39
  jobs:
22
40
  new:
23
41
  title: Nova Vaga
@@ -50,9 +68,15 @@
50
68
  facebook: Facebook
51
69
  jobs:
52
70
  new: Publicar Vaga
71
+ articles:
72
+ index: Artigos
73
+ mine: Meus artigos
74
+ articles: Artigos
53
75
  forms:
54
76
  save: Publicar
55
77
  messages:
78
+ published_at: Publicado há %{time}
79
+ updated_at: Atualizado há %{time}
56
80
  logged_as: "%{username}"
57
81
  login_with:
58
82
  google_oauth2: Entre com com sua conta do Google
@@ -0,0 +1,7 @@
1
+ module Recruiter
2
+ module DecoratorHelper
3
+ def decorate_boolean(value)
4
+ I18n.t(value.to_s)
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,31 @@
1
+ module Recruiter
2
+ module PublicableDecoratorHelper
3
+ def created_at_ago
4
+ h.time_ago_in_words(object.created_at)
5
+ end
6
+
7
+ def updated_at_ago
8
+ h.time_ago_in_words(object.created_at)
9
+ end
10
+
11
+ def updated?
12
+ updated_at_ago != created_at_ago
13
+ end
14
+
15
+ def published_at
16
+ h.t("recruiter.messages.published_at", time: created_at_ago)
17
+ end
18
+
19
+ def updated_at
20
+ h.t("recruiter.messages.updated_at", time: updated_at_ago)
21
+ end
22
+
23
+ def publication
24
+ published_at.tap do |string|
25
+ if updated?
26
+ string << ' | ' << updated_at
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,21 @@
1
+ require "pygments"
2
+
3
+ module Recruiter
4
+ module Render
5
+ class HTML < Redcarpet::Render::HTML
6
+ # def initialize(*args)
7
+ # super(
8
+ # hard_wrap: true
9
+ # )
10
+ # end
11
+
12
+ def block_code(text, language)
13
+ begin
14
+ Pygments.highlight(text, lexer: language)
15
+ rescue
16
+ Pygments.highlight(text)
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
File without changes
@@ -1,3 +1,3 @@
1
1
  module Recruiter
2
- VERSION = "0.0.7"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/recruiter.rb CHANGED
@@ -1,4 +1,5 @@
1
- require "devise"
1
+ require "devise" # TODO: Remove this line once the warning is gone
2
+ require "sass"
2
3
  require "redcarpet"
3
4
  require "omniauth-facebook"
4
5
  require "omniauth-github"
@@ -10,7 +11,10 @@ require "foundation-rails"
10
11
  require "foundation-icons-sass-rails"
11
12
  require "jquery-rails"
12
13
 
14
+ require "recruiter/decorator_helper"
15
+ require "recruiter/publicable_decorator_helper"
13
16
  require "recruiter/engine"
17
+ require "recruiter/render/html"
14
18
 
15
19
  module Recruiter
16
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recruiter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Jacobus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-09 00:00:00.000000000 Z
11
+ date: 2014-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kaminari
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 3.2.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: makeup
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: draper
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -343,12 +357,15 @@ files:
343
357
  - app/assets/stylesheets/recruiter/gh-fork-ribbon.css
344
358
  - app/assets/stylesheets/recruiter/site.css.sass
345
359
  - app/assets/stylesheets/recruiter/variables.css.sass
360
+ - app/controllers/recruiter/articles_controller.rb
346
361
  - app/controllers/recruiter/filters_controller.rb
347
362
  - app/controllers/recruiter/jobs_controller.rb
348
363
  - app/controllers/recruiter/omniauth_callbacks_controller.rb
364
+ - app/controllers/recruiter/users/articles_controller.rb
349
365
  - app/controllers/recruiter/users/jobs_controller.rb
350
366
  - app/controllers/recruiter/users/user_controller.rb
351
367
  - app/controllers/recruiter_controller.rb
368
+ - app/decorators/recruiter/article_decorator.rb
352
369
  - app/decorators/recruiter/job_decorator.rb
353
370
  - app/decorators/recruiter/user_decorator.rb
354
371
  - app/helpers/recruiter/crud_flash_messager_helper.rb
@@ -359,6 +376,7 @@ files:
359
376
  - app/helpers/recruiter/markdown_helper.rb
360
377
  - app/helpers/recruiter/oauth_providers_helper.rb
361
378
  - app/helpers/recruiter/show_helper.rb
379
+ - app/models/recruiter/article.rb
362
380
  - app/models/recruiter/city.rb
363
381
  - app/models/recruiter/custom_devise_failure.rb
364
382
  - app/models/recruiter/filters.rb
@@ -396,9 +414,18 @@ files:
396
414
  - app/views/recruiter/_show_item.html.erb
397
415
  - app/views/recruiter/_tags.html.erb
398
416
  - app/views/recruiter/_top_menu.html.erb
417
+ - app/views/recruiter/articles/_article.html.erb
418
+ - app/views/recruiter/articles/index.html.erb
419
+ - app/views/recruiter/articles/show.html.erb
399
420
  - app/views/recruiter/jobs/_job.html.erb
400
421
  - app/views/recruiter/jobs/index.html.erb
401
422
  - app/views/recruiter/jobs/show.html.erb
423
+ - app/views/recruiter/users/articles/_article.html.erb
424
+ - app/views/recruiter/users/articles/_form.html.erb
425
+ - app/views/recruiter/users/articles/edit.html.erb
426
+ - app/views/recruiter/users/articles/index.html.erb
427
+ - app/views/recruiter/users/articles/new.html.erb
428
+ - app/views/recruiter/users/articles/show.html.erb
402
429
  - app/views/recruiter/users/jobs/_form.html.erb
403
430
  - app/views/recruiter/users/jobs/_job.html.erb
404
431
  - app/views/recruiter/users/jobs/edit.html.erb
@@ -416,6 +443,7 @@ files:
416
443
  - db/migrate/20140618165802_create_recruiter_jobs.rb
417
444
  - db/migrate/20140618170815_create_recruiter_tags.rb
418
445
  - db/migrate/20140618170904_create_recruiter_jobs_tags.rb
446
+ - db/migrate/20140712201534_create_recruiter_articles.rb
419
447
  - lib/generators/templates/locales/devise.en.yml
420
448
  - lib/generators/templates/locales/devise.pt-BR.yml
421
449
  - lib/generators/templates/locales/en.yml
@@ -423,7 +451,11 @@ files:
423
451
  - lib/generators/templates/locales/recruiter.pt-BR.yml
424
452
  - lib/generators/templates/locales/simple_form.en.yml
425
453
  - lib/recruiter.rb
454
+ - lib/recruiter/decorator_helper.rb
426
455
  - lib/recruiter/engine.rb
456
+ - lib/recruiter/publicable_decorator_helper.rb
457
+ - lib/recruiter/render/html.rb
458
+ - lib/recruiter/renderer/html.rb
427
459
  - lib/recruiter/version.rb
428
460
  - lib/tasks/recruiter_tasks.rake
429
461
  homepage: https://github.com/mjacobus/recruiter